/*
  ========================================
  Page Sections
  ========================================
*/

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--green-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: #718096;
}

/* Hero */
.hero {
    padding: 100px 0 60px;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: stretch; /* ensure both columns match height */
}

/* Make hero card fill column height and center content vertically so it matches image height */
.hero-card {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    box-sizing: border-box;
}

/* Typography stays the same */
.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--green-primary);
    text-shadow: 0 2px 20px rgba(58, 127, 106, 0.1);
}

.hero-title:focus {
    outline: none;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 36px;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

/* Ensure the image column matches the hero card height */
.image-card {
    padding: 0;
    overflow: hidden;
    position: relative;
    height: 93%;
    min-height: 320px; /* reasonable minimum for very short content */
    display: flex;
    align-items: stretch;
    border-radius: 24px;
}

/* Make the image cover the full height of its column */
.image-card img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 24px;
    object-fit: cover;
}

.image-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(58, 127, 106, 0.2), transparent);
    pointer-events: none;
}


/* Serviços */
.servicos {
    padding: 40px 0 20px;
}

.services-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-accordion-item {
    opacity: 0;
    transform: translateY(40px);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-accordion-item:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.service-accordion-header {
    width: 100%;
    padding: 32px 32px 16px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    text-align: left;
}

.service-accordion-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.service-accordion-icon svg {
    width: 100%;
    height: 100%;
    color: var(--green-primary);
    filter: drop-shadow(0 4px 12px rgba(58, 127, 106, 0.2));
    transition: all 0.3s ease;
}

.service-accordion-item:hover .service-accordion-icon svg {
    color: var(--green-secondary);
    transform: scale(1.1);
}

.service-accordion-header h3 {
    flex: 1;
    font-size: 22px;
    font-weight: 600;
    color: var(--green-primary);
    margin: 0;
}

.service-accordion-content {
    display: block;
}

.service-accordion-body {
    padding: 0 32px 32px 120px;
}

.service-accordion-body p {
    font-size: 16px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 16px;
}

.service-accordion-body p:last-child {
    margin-bottom: 0;
}

/* Sobre */
.sobre {
    padding: 40px 0;
}

.sobre-card {
    padding: 60px;
    opacity: 0;
    transform: translateY(40px);
}

.sobre-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: stretch;
}

.image-mask {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
}

.image-mask img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(58, 127, 106, 0.1), rgba(91, 175, 142, 0.1));
    pointer-events: none;
}

.sobre-text h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--green-primary);
}

.sobre-text p {
    font-size: 17px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 20px;
}

.credentials {
    display: flex;
    gap: 40px;
    margin-top: 32px;
}

.credential-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.credential-label {
    font-size: 13px;
    font-weight: 500;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credential-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--green-primary);
}

/* FAQ & Info Section */
.faq {
    padding: 60px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.info-card.highlight {
    background: rgba(58, 127, 106, 0.08);
    border-color: rgba(58, 127, 106, 0.2);
}

.info-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--green-primary);
    margin-bottom: 24px;
}

.info-card p {
    font-size: 16px;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 16px;
}

.check-list {
    list-style: none;
    margin-bottom: 24px;
}

.check-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.6;
    color: #4a5568;
}

.check-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--green-primary);
    font-weight: 700;
}

.mt-large {
    margin-top: 40px;
}

.mt-4 {
    margin-top: auto;
}

.btn-full-mobile {
    width: fit-content;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-accordion-item {
    opacity: 0;
    transform: translateY(40px);
}

.faq-accordion-header {
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.faq-accordion-header:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.faq-accordion-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--green-primary);
    margin: 0;
    line-height: 1.4;
}

.accordion-chevron {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--green-primary);
}

.faq-accordion-header[aria-expanded="true"] .accordion-chevron {
    transform: rotate(180deg);
}

.faq-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-accordion-body {
    padding: 0 32px 32px 32px;
}

.faq-accordion-body p {
    font-size: 16px;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 20px;
}

.whatsapp-link {
    display: inline-block;
    color: var(--green-primary);
    font-weight: 600;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 12px;
    background: rgba(58, 127, 106, 0.1);
    transition: all 0.2s ease;
    font-size: 14px;
}

.whatsapp-link:hover {
    background: rgba(58, 127, 106, 0.2);
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .btn-full-mobile {
        width: 100%;
        text-align: center;
    }
}

/* Redes Sociais */
.redes-sociais {
    padding: 60px 0;
    position: relative;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.social-card {
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 28px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(40px);
}

.social-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                rgba(255, 255, 255, 0.15), 
                transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-card:hover::before {
    opacity: 1;
}

.social-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: iconFloat 3s ease-in-out infinite;
}

.social-icon svg {
    width: 36px;
    height: 36px;
    position: relative;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-card:hover .social-icon {
    animation: iconHover 0.6s ease-in-out;
}

.social-card:hover .social-icon svg {
    transform: scale(1.15) rotate(-5deg);
    animation: iconBounce 0.6s ease-in-out;
}

.social-icon.instagram {
    background: rgba(225, 48, 108, 0.15);
    color: #E1306C;
}

.social-card:hover .social-icon.instagram {
    background: rgba(225, 48, 108, 0.25);
    box-shadow: 0 8px 32px rgba(225, 48, 108, 0.3);
}

.social-icon.linkedin {
    background: rgba(10, 102, 194, 0.15);
    color: #0A66C2;
}

.social-card:hover .social-icon.linkedin {
    background: rgba(10, 102, 194, 0.25);
    box-shadow: 0 8px 32px rgba(10, 102, 194, 0.3);
}

.social-icon.email {
    background: rgba(58, 127, 106, 0.15);
    color: var(--green-primary);
}

.social-card:hover .social-icon.email {
    background: rgba(58, 127, 106, 0.25);
    box-shadow: 0 8px 32px rgba(58, 127, 106, 0.3);
}

.social-icon.whatsapp {
    background: rgba(37, 211, 102, 0.15);
    color: #25D366;
}

.social-card:hover .social-icon.whatsapp {
    background: rgba(37, 211, 102, 0.25);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.3);
}

.social-info {
    flex: 1;
}

.social-info h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--green-primary);
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.social-card:hover .social-info h3 {
    color: var(--green-secondary);
    transform: translateX(4px);
}

.social-info p {
    font-size: 15px;
    color: #718096;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.social-card:hover .social-info p {
    transform: translateX(4px);
}

.social-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--green-primary);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.social-card:hover .social-cta {
    opacity: 1;
    gap: 10px;
    color: var(--green-secondary);
    transform: translateX(8px);
}

.social-card:hover .social-cta svg {
    animation: arrowSlide 0.8s ease-in-out infinite;
}

/* CTA Final */
.cta-final {
    padding: 60px 0;
}

.cta-card {
    padding: 40px 32px;
    text-align: center;
    background: rgba(58, 127, 106, 0.1);
    opacity: 0;
    transform: translateY(40px);
}

.cta-card h2 {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--green-primary);
}

.cta-card p {
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 36px;
}

/* Mobile Responsiveness */
@media (hover: none) and (pointer: coarse) {
    .glass-card:hover {
        transform: none;
    }
    
    .btn-glass:hover {
        transform: none;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav {
        display: none;
    }

    .header-content .btn-glass {
        display: none;
    }

    .header-content {
        flex-direction: row;
        gap: 16px;
        justify-content: space-between;
    }

    .hero {
        padding: 80px 0 40px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-card {
        padding: 20px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .sobre-content {
        grid-template-columns: 1fr;
    }

    .sobre-card {
        padding: 16px;
    }

    .sobre-text h2 {
        font-size: 32px;
    }

    .sobre-text p {
        font-size: 16px;
    }

    .credentials {
        flex-direction: column;
        gap: 20px;
        margin-top: 24px;
    }

    .credential-item {
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(58, 127, 106, 0.15);
    }

    .credential-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-title {
        font-size: 36px;
    }

    .cta-card {
        padding: 48px 32px;
    }

    .cta-card h2 {
        font-size: 32px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 64px;
        height: 64px;
    }

    .whatsapp-float svg {
        width: 32px;
        height: 32px;
    }

    .back-to-top {
        bottom: 96px;
        right: 20px;
        width: 64px;
        height: 64px;
    }

    .back-to-top svg {
        width: 28px;
        height: 28px;
    }

    .service-accordion-header {
        padding: 24px 24px 12px 24px;
        gap: 16px;
    }

    .service-accordion-icon {
        width: 48px;
        height: 48px;
    }

    .service-accordion-header h3 {
        font-size: 18px;
    }

    .service-accordion-body {
        padding: 0 24px 24px 24px;
    }

    .service-accordion-body p {
        font-size: 15px;
    }

    .especializacao-accordion-header {
        padding: 24px;
        gap: 16px;
    }

    .especializacao-number {
        font-size: 36px;
        width: 60px;
    }

    .especializacao-info h3 {
        font-size: 18px;
    }

    .especializacao-accordion-body {
        padding: 0 24px 24px 24px;
    }

    .especializacao-accordion-body p {
        font-size: 15px;
    }

    .redes-sociais {
        padding: 80px 0;
    }

    .social-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .social-card {
        padding: 28px;
        gap: 20px;
    }

    .social-icon {
        width: 60px;
        height: 60px;
    }

    .social-icon svg {
        width: 30px;
        height: 30px;
    }

    .social-info h3 {
        font-size: 18px;
    }

    .social-info p {
        font-size: 14px;
    }
}