﻿:root {
    --ink: #171514;
    --ink-soft: #2a2623;
    --sand: #f6f1ec;
    --mist: #f2e9e2;
    --copper: #c37b4f;
    --copper-dark: #a3623b;
    --olive: #6f6a5a;
    --white: #ffffff;
    --shadow-sm: 0 6px 18px rgba(18, 15, 12, 0.08);
    --shadow-md: 0 12px 28px rgba(18, 15, 12, 0.14);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --container: 1180px;
    --transition: 0.35s ease;
    --font-heading: "Fraunces", serif;
    --font-body: "Manrope", sans-serif;
    --anchor-offset: 150px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

#inicio {
    scroll-margin-top: 70px;
}

#equipe {
    scroll-margin-top: 70px;
}

#sobre {
    scroll-margin-top: 70px;
}

#areas {
    scroll-margin-top: 70px;
}

#contato {
    scroll-margin-top: 70px;
}

body {
    font-family: var(--font-body);
    background: radial-gradient(circle at top left, #ffffff 0%, #f8f3ee 45%, #efe7de 100%);
    color: var(--ink);
    line-height: 1.7;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--olive);
    margin-bottom: 14px;
    font-weight: 600;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 5px 0;
}

.logo img {
    height: 120px;
}

.main-nav ul {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
}

.main-nav a {
    position: relative;
    padding-bottom: 6px;
}

.main-nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--copper);
    transition: width var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a.btn {
    padding-bottom: 12px;
    line-height: 1;
}

.main-nav a.btn::after {
    display: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 600;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--copper);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--copper-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    border-color: var(--ink);
    color: var(--ink);
    background: transparent;
}

.btn-ghost:hover {
    background: var(--ink);
    color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--ink);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 26px;
    height: 2px;
    background: var(--ink);
    transition: var(--transition);
}

.hero {
    position: relative;
    padding: 90px 0 120px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(195, 123, 79, 0.16), rgba(23, 21, 20, 0.06));
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-copy h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 4vw, 4rem);
    line-height: 1.1;
    margin-bottom: 18px;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--ink-soft);
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 28px 0;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 20px;
    color: var(--olive);
    font-size: 0.9rem;
}

.hero-metrics strong {
    display: block;
    font-size: 1rem;
    color: var(--ink);
}

.hero-media {
    position: relative;
    aspect-ratio: 3 / 2;
}

.hero-media img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    object-fit: cover;
    object-position: 25% center;
    height: clamp(440px, 40vw, 580px);
    max-height: none;
    width: 100%;
}

.hero-card {
    position: absolute;
    bottom: -24px;
    left: 24px;
    background: var(--white);
    padding: 18px 22px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    max-width: 260px;
}

.section {
    padding: 90px 0;
}

.section-alt {
    background: var(--mist);
}

.section-title {
    text-align: left;
    margin-bottom: 40px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 2.8rem);
    max-width: 720px;
}

.split-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.highlight-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.signature {
    margin-top: 20px;
    font-weight: 600;
    color: var(--copper-dark);
}

.grid {
    display: grid;
    gap: 28px;
}

.grid.three {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid.four {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.value-card,
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.card {
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.card h3 {
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
}

.values-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    color: var(--ink-soft);
}

.team-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(23, 21, 20, 0.06);
    box-shadow: 0 10px 24px rgba(18, 15, 12, 0.10);
    transform: translateY(0) scale(1);
    will-change: transform, box-shadow;
}

.team-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
    opacity: 0.55;
    transition: opacity 0.35s ease;
}

.team-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transform: scale(1);
    transform-origin: center;
    filter: saturate(0.96) contrast(1.02);
    transition: transform 0.35s ease, filter 0.35s ease;
    will-change: transform;
}

.team-card.reveal {
    transition: opacity 0.7s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.team-card:hover,
.team-card:focus-within {
    transform: translateY(-5px);
    border-color: rgba(195, 123, 79, 0.32);
    box-shadow: 0 18px 34px rgba(18, 15, 12, 0.16);
}

.team-card:hover::after,
.team-card:focus-within::after {
    opacity: 1;
}

.team-card:hover img,
.team-card:focus-within img {
    transform: scale(1.01);
    filter: saturate(1) contrast(1.05);
}

.team-info {
    padding: 24px;
}

.team-info h3 {
    font-family: var(--font-heading);
    margin-bottom: 6px;
}

.role {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--copper);
    font-weight: 700;
}

.oab {
    font-size: 0.85rem;
    color: var(--olive);
    margin-bottom: 14px;
}

.areas {
    margin-top: 12px;
    color: var(--ink-soft);
}

.cta-band {
    background: var(--ink);
    color: var(--white);
}

.cta-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cta-band h2 {
    font-family: var(--font-heading);
    color: var(--white);
    margin-bottom: 10px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    align-items: start;
}

.contact-info h3 {
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.contact-block {
    margin-bottom: 24px;
}

.contact-block h4 {
    color: var(--copper-dark);
    margin-bottom: 8px;
}

.contact-block a {
    color: var(--copper-dark);
    font-weight: 600;
}

.contact-form {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.form-group {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.form-control {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-family: inherit;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--copper);
    box-shadow: 0 0 0 3px rgba(195, 123, 79, 0.2);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.map-section {
    padding-top: 0;
}

.map-embed {
    width: 100%;
    height: 420px;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.8);
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-bottom: 30px;
}

.footer-logo {
    height: 120px;
    margin-bottom: 14px;
}

.site-footer h4 {
    color: var(--white);
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    display: grid;
    gap: 6px;
}

.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: var(--white);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-md);
    z-index: 999;
    transition: transform var(--transition);
}

.whatsapp-float:hover {
    transform: translateY(-4px);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--delay, 0ms);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.team-card.reveal.in-view:hover,
.team-card.reveal.in-view:focus-within {
    transform: translateY(-12px);
}

@media (max-width: 900px) {

    .site-header {
        transition: box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
    }

    .site-header.is-hidden {
        transform: translateY(0);
    }

    .site-header.is-compact {
        background: transparent;
        border-bottom-color: transparent;
        backdrop-filter: none;
        box-shadow: none !important;
    }

    .header-grid {
        grid-template-columns: 1fr auto;
        align-items: center;
        justify-items: stretch;
        gap: 12px;
        padding: 8px 0;
        transition: none;
    }

    .logo {
        max-width: 220px;
    }

    .logo img {
        height: 95px;
    }

    .site-header.is-compact .header-grid {
        grid-template-columns: 1fr auto;
        padding: 6px 0;
    }

    .site-header.is-compact .logo {
        display: none;
    }

    #inicio {
        scroll-margin-top: 150px;
    }

    #equipe {
        scroll-margin-top: -10px;
    }

    #sobre {
        scroll-margin-top: -30px;
    }

    #areas {
        scroll-margin-top: -30px;
    }

    #contato {
        scroll-margin-top: -30px;
    }

    .main-nav {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100dvh;
        background: linear-gradient(160deg, #f7f2ed 0%, #efe4d9 56%, #e6d7c9 100%);
        box-shadow: none;
        border-top: 6px solid var(--copper);
        padding: 110px 26px 36px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-102%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.16s linear;
        display: block;
        z-index: 1100;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
        width: 100%;
    }

    .main-nav a {
        color: var(--ink);
        font-family: var(--font-body);
        font-size: clamp(1.65rem, 8.3vw, 2.45rem);
        font-weight: 700;
        line-height: 1.05;
        letter-spacing: 0.01em;
        padding: 0;
    }

    .main-nav a::after {
        display: none;
    }

    .main-nav a.btn {
        padding: 0;
        line-height: 1.05;
        background: none;
        color: var(--ink);
        border: 0;
        box-shadow: none;
        border-radius: 0;
        font-family: var(--font-body);
        font-size: clamp(1.65rem, 8.3vw, 2.45rem);
        font-weight: 700;
    }

    .main-nav.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .mobile-toggle {
        display: flex;
        position: fixed;
        top: 14px;
        right: 16px;
        width: 128px;
        height: 56px;
        justify-content: center;
        align-items: flex-end;
        flex-direction: column;
        gap: 5px;
        padding: 0 16px 0 0;
        background: linear-gradient(145deg, #cd885b, #b77246);
        border: none;
        border-radius: 999px;
        box-shadow: 0 10px 24px rgba(117, 73, 42, 0.3);
        z-index: 1102;
        transition: width 0.16s ease, height 0.16s ease, top 0.16s ease, right 0.16s ease,
            border-radius 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
    }

    .mobile-toggle::before {
        content: "menu";
        position: absolute;
        left: 20px;
        top: 19px;
        font-family: var(--font-body);
        font-size: 0.78rem;
        font-weight: 700;
        color: var(--white);
        letter-spacing: 0.08em;
        text-transform: uppercase;
        transition: opacity 0.12s ease;
    }

    .mobile-toggle span {
        width: 22px;
        height: 2.2px;
        border-radius: 999px;
        background: var(--white);
        transition: transform 0.2s ease, opacity 0.15s ease, background 0.2s ease;
        transform-origin: center;
    }

    .mobile-toggle.open {
        width: 56px;
        height: 56px;
        top: 12px;
        right: 14px;
        padding: 0;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--ink);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    }

    .mobile-toggle.open::before {
        opacity: 0;
    }

    .mobile-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (max-width: 700px) {
    .container {
        padding: 0 18px;
    }

    .hero {
        padding-top: 28px;
        padding-bottom: 72px;
    }

    .hero-grid {
        gap: 24px;
    }

    .hero-copy h1 {
        font-size: clamp(2rem, 11vw, 2.9rem);
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-media {
        aspect-ratio: 4 / 3;
    }

    .hero-media img {
        height: 100%;
        object-position: 30% center;
    }

    .hero-card {
        position: static;
        margin-top: 16px;
    }

    .cta-grid {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (hover: none),
(pointer: coarse) {

    .team-card:hover,
    .team-card:focus-within {
        transform: none;
        border-color: rgba(23, 21, 20, 0.06);
        box-shadow: 0 10px 24px rgba(18, 15, 12, 0.10);
    }

    .team-card:hover img,
    .team-card:focus-within img {
        transform: none;
        filter: saturate(0.96) contrast(1.02);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
