/* Tokens — one accent (gold), WhatsApp green reserved for the contact action.
   Radius scale: buttons/chips 10px, cards 14px. */
:root {
    --navy-900: #090530;
    --navy-800: #0d0742;
    --navy-700: #1a1458;
    --paper: #f7f5f0;
    --surface: #ffffff;
    --ink: #1c2233;
    --muted: #586174;
    --line: #e4e0d6;
    --gold: #d1b77d;
    --gold-ink: #7d6230;
    --on-dark: #ffffff;
    --on-dark-muted: #c9cbe0;
    --whatsapp: #1b7a3e;
    --whatsapp-hover: #166634;
    --radius-btn: 10px;
    --radius-card: 14px;
    --container: 1120px;
    --gutter: clamp(16px, 4vw, 32px);
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    font-family: "Fira Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    line-height: 1.15;
    margin: 0;
    text-wrap: balance;
}

p {
    margin: 0;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

::selection {
    background: var(--gold);
    color: var(--navy-900);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.narrow {
    max-width: 820px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: var(--radius-btn);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 150ms var(--ease), transform 120ms var(--ease), border-color 150ms var(--ease);
}

.btn:active {
    transform: scale(0.97);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
    box-shadow: 0 6px 16px rgba(9, 5, 48, 0.25);
}

.btn-whatsapp:hover {
    background: var(--whatsapp-hover);
}

.btn-whatsapp img {
    width: 20px;
    height: 20px;
}

.btn-ghost {
    color: var(--on-dark);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: min(88vh, 760px);
    background: var(--navy-800);
    color: var(--on-dark);
    overflow: hidden;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 25% 30%;
    z-index: -2;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(13, 7, 66, 0.15) 0%, rgba(13, 7, 66, 0.55) 40%, rgba(13, 7, 66, 0.94) 62%, var(--navy-800) 100%);
}

.hero-content {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 64px var(--gutter);
    display: grid;
    grid-template-columns: 1fr minmax(0, 1.05fr);
}

.hero-content > * {
    grid-column: 2;
}

.nowrap {
    white-space: nowrap;
}

.hero-kicker {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero h1 {
    margin-top: 14px;
    font-size: clamp(2.4rem, 4.6vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.015em;
}

.hero-lead {
    margin-top: 18px;
    max-width: 34ch;
    font-size: 1.15rem;
    color: var(--on-dark-muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-note {
    margin-top: 18px;
    font-size: 0.9rem;
    color: var(--on-dark-muted);
}

/* ---------- Sections ---------- */
.section {
    padding: clamp(56px, 8vw, 96px) 0;
}

.section-paper {
    background: var(--paper);
}

.section-dark {
    background: var(--navy-800);
    color: var(--on-dark);
}

.section h2 {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--navy-800);
}

.section-dark h2 {
    color: var(--on-dark);
}

.section h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin-top: 14px;
    border-radius: 2px;
    background: var(--gold);
}

.section-head {
    max-width: 640px;
    margin-bottom: 40px;
}

.section-head p {
    margin-top: 16px;
    color: var(--muted);
    font-size: 1.05rem;
}

/* ---------- Áreas de atuação ---------- */
.areas {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.area {
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: 0 10px 30px rgba(13, 7, 66, 0.05);
}

.area h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy-800);
}

.area p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.98rem;
}

.area-topics {
    margin: 16px 0 0;
    padding: 16px 0 0;
    list-style: none;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
}

.area-topics li {
    position: relative;
    padding-left: 18px;
}

.area-topics li + li {
    margin-top: 6px;
}

.area-topics li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
}

.area-link {
    margin-top: auto;
    padding-top: 18px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gold-ink);
    text-underline-offset: 3px;
}

/* ---------- Sobre ---------- */
.about {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: clamp(32px, 6vw, 72px);
    align-items: center;
}

.about-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: var(--radius-card);
}

.about-text > p {
    margin-top: 22px;
    color: var(--on-dark-muted);
    max-width: 62ch;
}

.about-text .about-quote {
    color: var(--on-dark);
    font-size: 1.15rem;
    font-weight: 500;
    font-style: italic;
    padding-left: 16px;
    border-left: 3px solid var(--gold);
}

.about-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 32px 0 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.about-facts dt {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-facts dd {
    margin: 4px 0 0;
    font-weight: 500;
}

/* ---------- Região atendida ---------- */
.region {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 6vw, 64px);
    align-items: center;
}

.region p {
    margin-top: 20px;
    color: var(--muted);
}

.cities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cities li {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    background: var(--paper);
    font-weight: 500;
    color: var(--navy-800);
}

/* ---------- FAQ ---------- */
.faq {
    margin-top: 32px;
    border-top: 1px solid var(--line);
}

.faq details {
    border-bottom: 1px solid var(--line);
}

.faq summary {
    position: relative;
    padding: 20px 40px 20px 0;
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--navy-800);
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--gold-ink);
}

.faq details[open] summary::after {
    content: "−";
}

.faq details p {
    padding: 0 0 22px;
    color: var(--muted);
    max-width: 68ch;
}

.faq a {
    color: var(--gold-ink);
    font-weight: 500;
    text-underline-offset: 3px;
}

/* ---------- Artigos ---------- */
.posts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.post {
    display: block;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    text-decoration: none;
    background: var(--surface);
    transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}

.post:hover {
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(13, 7, 66, 0.08);
}

.post-tag {
    color: var(--gold-ink);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.post h3 {
    margin-top: 10px;
    font-size: 1.25rem;
    color: var(--navy-800);
}

.post p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.98rem;
}

.posts-more {
    margin-top: 24px;
}

.posts-more a {
    font-weight: 600;
    color: var(--gold-ink);
    text-underline-offset: 3px;
}

/* ---------- Contato ---------- */
.contact {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(32px, 6vw, 72px);
    align-items: center;
}

.contact p {
    margin: 20px 0 28px;
    color: var(--on-dark-muted);
}

.contact-list {
    display: grid;
    gap: 20px;
    font-style: normal;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-card);
    background: var(--navy-700);
}

.contact-list span {
    display: block;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-list a {
    font-weight: 500;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

/* ---------- Floating WhatsApp ---------- */
.float-whatsapp {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1000;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--whatsapp);
    box-shadow: 0 8px 24px rgba(9, 5, 48, 0.3);
    transition: transform 120ms var(--ease);
}

.float-whatsapp:active {
    transform: scale(0.95);
}

.float-whatsapp img {
    width: 32px;
    height: 32px;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--navy-900);
    color: var(--on-dark-muted);
    font-size: 0.92rem;
    padding: 40px 0 24px;
}

.footer strong {
    color: var(--on-dark);
}

.footer p {
    margin-top: 4px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: flex-start;
}

.footer-nav a {
    text-underline-offset: 3px;
}

.footer-copy {
    max-width: var(--container);
    margin: 28px auto 0;
    padding: 20px var(--gutter) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .areas {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    body {
        font-size: 16px;
    }

    html {
        scroll-padding-top: 110px;
    }

    .hero {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
    }

    .hero-img {
        position: relative;
        height: auto;
        aspect-ratio: 4 / 3;
        object-position: 30% 20%;
    }

    .hero::after {
        bottom: auto;
        aspect-ratio: 4 / 3;
        background: linear-gradient(180deg, rgba(13, 7, 66, 0) 55%, var(--navy-800) 100%);
    }

    .hero-content {
        padding: 8px var(--gutter) 48px;
        display: block;
    }

    .hero-actions .btn {
        flex: 1 1 100%;
    }

    .areas,
    .posts,
    .region,
    .contact,
    .about {
        grid-template-columns: 1fr;
    }

    .about-photo {
        max-width: 200px;
    }

    .about-facts {
        grid-template-columns: 1fr;
    }

    .area,
    .post,
    .contact-list {
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
