/* ─── VARIÁVEIS GERAIS ─── */
:root {
    --accent: #2e7d32;
    --accent-dark: #1b5e20;
    --surface: #f8f9fa;
    --surface-2: #ffffff;
    --surface-3: #f1f3f5;
    --border: rgba(0, 0, 0, 0.08);
    --text: #212529;
    --muted: #6c757d;
    --radius: 20px;
    --radius-sm: 12px;
}

/* ─── RESET E BASE ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--surface);
    background-image:
        radial-gradient(ellipse 60% 40% at 80% 10%, rgba(46, 125, 50, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 10% 80%, rgba(46, 125, 50, 0.05) 0%, transparent 50%);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 40px 20px 60px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ─── LAYOUT BASE (MOBILE) ─── */
.page {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}

/* ─── LAYOUT HORIZONTAL (DESKTOP) ─── */
@media (min-width: 860px) {
    .page {
        max-width: 1100px;
        display: grid;
        grid-template-columns: 340px 1fr;
        gap: 0 48px;
        align-items: start;
    }

    .header {
        grid-column: 1 / 2;
        grid-row: 1 / 100;
        position: sticky;
        top: 40px;
        text-align: left !important;
        padding: 0 !important;
    }

    .header .badges {
        justify-content: flex-start !important;
    }

    .header-logo {
        margin: 0 0 24px 0 !important;
    }

    .section-label,
    details.card,
    .social-links-container {
        grid-column: 2 / 3;
    }

    .footer {
        grid-column: 2 / 3;
        text-align: left !important;
        padding: 40px 0 0 0 !important;
    }
}

/* ─── HEADER COMPONENTS ─── */
.header {
    text-align: center;
    padding: 20px 10px 32px;
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.header-logo {
    width: 100%;
    max-width: 260px;
    height: auto;
    object-fit: contain;
    margin: 0 auto 24px;
    display: block;
}

.header p {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    background: var(--surface-3);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.badge:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: var(--text);
}

.badge.highlight {
    background: rgba(46, 125, 50, 0.1);
    border-color: rgba(46, 125, 50, 0.3);
    color: var(--accent);
}

/* ─── SECTIONS & CARDS ─── */
.section-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    padding: 15px 0 8px;
    display: block;
    width: 100%; 
}

/* ─── CENTRALIZAR APENAS NO MOBILE ─── */
@media (max-width: 859px) {
    .section-label {
        width: 100% !important;
        text-align: center !important;
        align-self: center !important;
    }
}

details.card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 16px;
}

details.card[open] {
    border-color: rgba(46, 125, 50, 0.4);
    box-shadow: 0 0 0 1px rgba(46, 125, 50, 0.1), 0 16px 40px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    min-height: 76px;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    user-select: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary:hover {
    background: var(--surface-3);
}

details[open] summary {
    border-bottom: 1px solid var(--border);
    background: #fafafa;
}

/* ─── LOGOS NOS CARDS ─── */
.card-logo {
    width: 140px;
    height: 45px;
    object-fit: contain;
    object-position: left center;
    flex-shrink: 0;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.logo-banner {
    width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    object-position: center;
    margin-top: 20px;
}

details.card:hover .card-logo {
    transform: scale(1.05);
}

@media (min-width: 400px) {
    .card-logo {
        width: 160px;
        height: 50px;
    }
}

/* ─── ÍCONES DOS CARDS ─── */
.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
    background: var(--surface-3);
    border: 1px solid var(--border);
}

.icon-box.green {
    background: rgba(46, 125, 50, 0.1);
    color: var(--accent);
    border: none;
}

.summary-text {
    flex: 1;
    min-width: 0;
}

.summary-text strong {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    letter-spacing: -0.2px;
}

.summary-text span {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 400;
    margin-top: 4px;
}

.chevron {
    width: 34px;
    height: 34px;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.4s ease, background 0.3s, border-color 0.3s;
}

.chevron svg {
    width: 14px;
    height: 14px;
    stroke: var(--muted);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

details[open] .chevron {
    transform: rotate(180deg);
    background: rgba(46, 125, 50, 0.1);
    border-color: rgba(46, 125, 50, 0.3);
}

details[open] .chevron svg {
    stroke: var(--accent);
}

/* ─── SUBMENU LINKS ─── */
.submenu {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    min-height: 68px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
    color: var(--text);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

@media (hover: hover) {
    .link-item:hover {
        background: #ffffff;
        border-color: rgba(46, 125, 50, 0.3);
        transform: translateX(6px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    }

    .link-item:hover .link-arrow {
        opacity: 1;
        transform: translateX(4px);
    }
}

.link-item:active {
    transform: scale(0.98);
}

.link-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.03);
}

.link-info {
    flex: 1;
    min-width: 0;
}

.link-info strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.2px;
    margin-bottom: 2px;
}

.link-info small {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 400;
}

.link-arrow {
    opacity: 0.4;
    transition: opacity 0.2s, transform 0.2s;
}

.link-arrow svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ─── FORMULÁRIO WHATSAPP ─── */
.whatsapp-form {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--surface-2);
    border-top: 1px solid var(--border);
}

.whatsapp-form textarea {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-3);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    resize: none; /* Impede o usuário de quebrar o layout puxando a caixa */
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.whatsapp-form textarea:focus {
    border-color: #25D366; /* Verde do WhatsApp quando clica na caixa */
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.whatsapp-form textarea::placeholder {
    color: var(--muted);
    opacity: 0.7;
}

.btn-whatsapp-send {
    background: #25D366;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp-send i {
    font-size: 1.2rem;
}

.btn-whatsapp-send:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-send:active {
    transform: translateY(0);
}

/* ─── BOTÕES DE REDES SOCIAIS ─── */
.social-links-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 0;
}

.social-btn {
    height: 48px;
    padding: 0 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.social-btn .icon {
    font-size: 1.6rem;
}

.social-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.social-btn.whatsapp {
    background: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.2);
    color: #25D366;
}

.social-btn.linkedin {
    background: rgba(10, 102, 194, 0.1);
    border-color: rgba(10, 102, 194, 0.2);
    color: #0a66c2;
}

.social-btn.instagram {
    background: rgba(225, 48, 108, 0.1);
    border-color: rgba(225, 48, 108, 0.2);
    color: #e1306c;
}

.social-btn.github {
    background: rgba(33, 37, 41, 0.1);
    border-color: rgba(33, 37, 41, 0.2);
    color: #212529;
}

.social-btn.whatsapp:hover {
    background: #25D366;
    color: white;
}

.social-btn.linkedin:hover {
    background: #0a66c2;
    color: white;
}

.social-btn.instagram:hover {
    background: #e1306c;
    color: white;
}

.social-btn.github:hover {
    background: #212529;
    color: white;
}

/* ─── FOOTER ─── */
.footer {
    text-align: center;
    padding: 32px 20px;
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.footer p {
    font-size: 0.8rem;
    color: var(--muted);
    opacity: 0.8;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.footer-credits {
    margin-top: 8px;
    font-size: 0.75rem !important;
    opacity: 0.8;
}

.footer-credits i {
    color: var(--accent);
    margin: 0 2px;
}

.footer-credits a {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.footer-credits a:hover {
    color: var(--accent);
}

/* ─── ANIMAÇÕES E TEXTURA ─── */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate { animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.3s; }
.d4 { animation-delay: 0.4s; }
.d5 { animation-delay: 0.5s; }

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.05;
    mix-blend-mode: multiply;
    z-index: 0;
}