/* =========================================================================
   GUINDAPA — Real Brand Edition
   Navy + Silver palette (lifted from logo), Montserrat typography.
   ========================================================================= */

:root {
    /* PALETA — extraída do logo */
    --navy-deep: #0d2549;        /* texto GUINDAPA do logo */
    --navy: #14315e;
    --navy-mid: #1f4377;
    --navy-light: #2d5a96;
    --navy-tint: #e8edf5;

    --silver-100: #f4f6f9;
    --silver-200: #e4e8ee;
    --silver-300: #c5cdd9;
    --silver-400: #97a2b3;
    --silver-500: #6b7589;
    --silver-600: #4a5365;

    --bg: #ffffff;
    --bg-soft: #f5f7fa;
    --bg-tint: #eef2f7;
    --bg-card: #ffffff;

    --ink: #0d2549;
    --ink-2: #1f3458;
    --muted: #5a6478;
    --muted-2: #8b94a6;
    --line: #e4e8ee;
    --line-soft: #eef1f5;

    --accent: #2d5a96;          /* navy mid claro como acento */
    --accent-2: #c5cdd9;         /* prata como secundário */

    /* TIPOGRAFIA — igual à do logo (Montserrat geométrica) */
    --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;

    /* RITMO */
    --maxw: 1320px;
    --gutter: clamp(20px, 4vw, 56px);
    --section-pad: clamp(80px, 12vh, 160px);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --t: 0.5s var(--ease);

    /* shadow corporativa subtil */
    --shadow-1: 0 1px 2px rgba(13, 37, 73, 0.04), 0 2px 8px rgba(13, 37, 73, 0.04);
    --shadow-2: 0 4px 24px rgba(13, 37, 73, 0.08), 0 12px 48px rgba(13, 37, 73, 0.05);
    --shadow-3: 0 24px 80px rgba(13, 37, 73, 0.15);
}

/* Dark variant */
[data-theme="dark"] {
    --bg: #07152d;
    --bg-soft: #0e2349;
    --bg-tint: #112d57;
    --bg-card: #0e2349;
    --ink: #f4f6f9;
    --ink-2: #c5cdd9;
    --muted: #97a2b3;
    --muted-2: #6b7589;
    --line: #1f3458;
    --line-soft: #14315e;
    --accent: #6a8fc4;
    --navy-tint: #14315e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--navy-deep); color: #fff; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    font-weight: 400;
}
body.modal-open { overflow: hidden; }

h1, h2, h3, h4 {
    font-family: var(--sans);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.05;
}
.wordmark {
    font-family: var(--sans);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
a { color: inherit; text-decoration: none; transition: color var(--t); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--accent);
    display: inline-block;
}
.eyebrow.no-rule::before { display: none; }

/* =========================================================================
   HEADER
   ========================================================================= */
header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: background var(--t), border-color var(--t), padding var(--t);
}
header.scrolled {
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-1);
}
.nav-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 92px;
    gap: 40px;
    transition: height var(--t);
}
header.scrolled .nav-container { height: 72px; }

.brand-logo {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 14px 0;
}
.brand-logo img {
    height: 100%;
    max-height: 64px;
    width: auto;
    transition: max-height var(--t);
}
header.scrolled .brand-logo img { max-height: 48px; }

.nav-links { display: flex; gap: 36px; justify-content: center; }
.nav-links a {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    position: relative;
    padding: 6px 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.nav-links a::after {
    content: "";
    position: absolute; left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width 0.4s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 24px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.35s var(--ease);
    border: 1.5px solid transparent;
    white-space: nowrap;
    font-family: var(--sans);
}
.btn-primary {
    background: var(--navy);
    color: #fff;
    box-shadow: var(--shadow-1);
}
.btn-primary:hover {
    background: var(--navy-deep);
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
}
.btn-ghost {
    background: transparent;
    border-color: rgba(255,255,255,0.25);
    color: #fff;
    backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: #fff; color: var(--navy-deep); border-color: #fff; }
.btn-ghost-dark {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}
.btn-ghost-dark:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-large { padding: 18px 32px; font-size: 12.5px; }
.btn .arrow { transition: transform 0.4s var(--ease); display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

.theme-toggle-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px;
    transition: all var(--t);
    background: var(--bg);
}
.theme-toggle-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.mobile-menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; align-items: center; justify-content: center; flex-direction: column; gap: 4px; background: var(--bg); }
.mobile-menu-btn span { width: 16px; height: 2px; background: var(--ink); transition: var(--t); }
.mobile-menu-btn.active span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-3px) rotate(-45deg); }

.mobile-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px var(--gutter) 32px; box-shadow: var(--shadow-2); }
.mobile-nav.active { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav li a { display: block; padding: 18px 0; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--line-soft); }
.mobile-nav li:last-child a { border-bottom: none; }
.mobile-nav .btn { margin-top: 24px; width: 100%; justify-content: center; }

/* =========================================================================
   HERO — corporate background image
   ========================================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    padding: calc(92px + 60px) 0 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

/* Background image — fills hero */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(135deg, #14315e 0%, #1f4377 50%, #2d5a96 100%);
    overflow: hidden;
}
.hero-bg::after {
    /* subtle pattern overlay */
    content: "";
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04) 0%, transparent 50%);
    pointer-events: none;
}
.hero-bg image-slot {
    --hero-img-opacity: 0.45;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: var(--hero-img-opacity);
    filter: grayscale(20%);
    mix-blend-mode: luminosity;
}
/* Dark overlay for legibility */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg,
            rgba(7, 21, 45, 0.35) 0%,
            rgba(7, 21, 45, 0.55) 50%,
            rgba(7, 21, 45, 0.85) 100%),
        linear-gradient(90deg,
            rgba(13, 37, 73, 0.6) 0%,
            rgba(13, 37, 73, 0.2) 60%,
            rgba(13, 37, 73, 0.4) 100%);
}

/* Silver decorative accents */
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    width: 1px; height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.06) 30%, rgba(255,255,255,0.06) 70%, transparent);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: clamp(60px, 10vh, 120px);
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.hero-meta .meta-block {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    line-height: 1.8;
    font-weight: 500;
}
.hero-meta .meta-block strong {
    display: block;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin-bottom: 4px;
}
.hero-eyebrow {
    color: rgba(255,255,255,0.85);
    margin-bottom: 28px;
}
.hero-eyebrow::before { background: var(--accent-2); }

.hero h1 {
    font-family: var(--sans);
    font-weight: 800;
    font-size: clamp(48px, 8vw, 130px);
    line-height: 0.98;
    letter-spacing: -0.035em;
    margin-bottom: 36px;
    color: #fff;
    text-wrap: balance;
    text-transform: none;
}
.hero h1 .accent {
    background: linear-gradient(135deg, #c5cdd9 0%, #ffffff 50%, #97a2b3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: normal;
}

.hero-bottom {
    display: grid;
    grid-template-columns: 1.4fr auto;
    align-items: end;
    gap: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.12);
    margin-top: 40px;
}
.hero-tagline {
    font-size: 17px;
    color: rgba(255,255,255,0.75);
    max-width: 520px;
    line-height: 1.6;
    font-weight: 400;
}
.hero-tagline strong { color: #fff; font-weight: 600; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Stats line on hero bottom */
.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 32px;
}
.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hero-stat .num {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1;
}
.hero-stat .label {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    font-weight: 600;
}

/* Scroll indicator */
.scroll-cue {
    position: absolute;
    bottom: 32px; left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    z-index: 2;
}
.scroll-cue::after {
    content: "";
    width: 1px; height: 36px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.7) 50%, transparent 50%);
    background-size: 1px 8px;
    animation: scrollDot 1.4s infinite linear;
}
@keyframes scrollDot {
    0%   { background-position: 0 -8px; }
    100% { background-position: 0 28px; }
}

/* =========================================================================
   STATS BAR (below hero)
   ========================================================================= */
.stats {
    padding: clamp(60px, 9vh, 100px) 0;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.stat-cell {
    padding: 0 40px;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.stat-cell:first-child { padding-left: 0; }
.stat-cell:last-child { border-right: none; padding-right: 0; }
.stat-cell .num {
    font-family: var(--sans);
    font-size: clamp(64px, 9vw, 124px);
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--navy-deep);
    font-weight: 800;
}
.stat-cell .num small { font-size: 0.45em; color: var(--silver-400); letter-spacing: 0; margin-left: 2px; font-weight: 700; }
.stat-cell .label {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 12px;
    font-weight: 600;
}

/* =========================================================================
   SECTIONS
   ========================================================================= */
.section {
    padding: var(--section-pad) 0;
    position: relative;
}
.section.tinted { background: var(--bg-soft); }

.section-head {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    margin-bottom: clamp(60px, 10vh, 110px);
    align-items: end;
}
.section-head .h-left { display: flex; flex-direction: column; gap: 24px; }
.section-head h2 {
    font-family: var(--sans);
    font-weight: 800;
    font-size: clamp(40px, 6vw, 88px);
    line-height: 1;
    letter-spacing: -0.035em;
    color: var(--navy-deep);
}
.section-head h2 .accent {
    color: var(--accent);
    font-style: normal;
}
.section-head .lead {
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.55;
    color: var(--muted);
    max-width: 560px;
    text-wrap: pretty;
    font-weight: 400;
}

/* =========================================================================
   ABOUT
   ========================================================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-photo-wrap {
    position: sticky;
    top: 110px;
}
.about-photo {
    aspect-ratio: 4 / 5;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
    box-shadow: var(--shadow-2);
}
.about-photo image-slot {
    width: 100%;
    height: 100%;
    background: var(--navy);
}
.about-photo-caption {
    margin-top: 16px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted-2);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.about-photo-caption::before {
    content: ""; width: 20px; height: 1px; background: var(--accent);
}

.about-content { padding-top: 8px; }
.about-content > p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink-2);
    margin-bottom: 24px;
    text-wrap: pretty;
}
.about-content > p strong { color: var(--navy-deep); font-weight: 700; }

.principles {
    margin-top: 48px;
    border-top: 2px solid var(--navy-deep);
}
.principle {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
}
.principle .pn {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.1em;
}
.principle h4 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    color: var(--navy-deep);
    text-transform: none;
}
.principle p { color: var(--muted); font-size: 15px; line-height: 1.55; }

.values-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.values-row .value-pill {
    padding: 8px 16px;
    border: 1.5px solid var(--navy-deep);
    border-radius: 2px;
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--navy-deep);
    background: var(--bg);
    font-weight: 700;
    text-transform: uppercase;
}

/* =========================================================================
   SERVICES — editorial numbered list
   ========================================================================= */
.services-section { background: var(--bg); }

.services-list {
    border-top: 2px solid var(--navy-deep);
}
.svc-row {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    gap: 32px;
    padding: 36px 0;
    border-bottom: 1px solid var(--line);
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: all 0.4s var(--ease);
}
.svc-row::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0;
    background: var(--accent);
    transition: width 0.5s var(--ease);
}
.svc-row:hover { padding-left: 24px; background: linear-gradient(to right, var(--bg-soft), transparent); }
.svc-row:hover::before { width: 4px; }

.svc-row .svc-num {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--silver-400);
    letter-spacing: 0.12em;
    font-weight: 700;
}
.svc-row:hover .svc-num { color: var(--accent); }

.svc-row .svc-name {
    font-family: var(--sans);
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--navy-deep);
    line-height: 1.1;
    transition: color 0.4s var(--ease);
}
.svc-row .svc-tags {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
}
.svc-row .svc-cta {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--navy-deep);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    opacity: 0.7;
    transition: opacity 0.3s var(--ease);
    font-weight: 700;
}
.svc-row .svc-cta::after {
    content: "→";
    transition: transform 0.4s var(--ease);
    font-size: 14px;
}
.svc-row:hover .svc-cta { opacity: 1; color: var(--accent); }
.svc-row:hover .svc-cta::after { transform: translateX(8px); }
.svc-row:hover .svc-name { color: var(--accent); }

/* Grid layout variant */
[data-svc-layout="grid"] .services-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 2px solid var(--navy-deep);
    border-left: 1px solid var(--line);
}
[data-svc-layout="grid"] .svc-row {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    border-right: 1px solid var(--line);
    text-align: left;
    align-items: flex-start;
    gap: 16px;
    min-height: 220px;
}
[data-svc-layout="grid"] .svc-row:hover { padding-left: 28px; background: var(--bg-soft); }
[data-svc-layout="grid"] .svc-row::before { display: none; }
[data-svc-layout="grid"] .svc-tags { display: none; }
[data-svc-layout="grid"] .svc-num { font-size: 13px; }
[data-svc-layout="grid"] .svc-name { font-size: 22px; }

/* =========================================================================
   CALLOUT BAND — navy with logo watermark
   ========================================================================= */
.callout {
    background: var(--navy-deep);
    color: #fff;
    padding: clamp(100px, 14vh, 160px) 0;
    position: relative;
    overflow: hidden;
}
.callout::before {
    content: "";
    position: absolute;
    top: -20%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(45, 90, 150, 0.4) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}
.callout::after {
    content: "";
    position: absolute;
    bottom: -10%; left: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(197, 205, 217, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}
.callout-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
    align-items: center;
}
.callout h2 {
    font-size: clamp(40px, 5.5vw, 80px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #fff;
    margin-bottom: 28px;
}
.callout h2 .accent {
    background: linear-gradient(135deg, #c5cdd9 0%, #ffffff 50%, #97a2b3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.callout p {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255,255,255,0.75);
    max-width: 480px;
    margin-bottom: 32px;
}
.callout-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.callout-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}
.callout-logo img {
    max-width: 320px;
    width: 100%;
    filter: brightness(1.4) drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

/* =========================================================================
   FORMS
   ========================================================================= */
.quote-section {
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
}
.contact-section {
    border-top: 1px solid var(--line);
}

.form-wrap {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
}
.form-side h2 {
    font-family: var(--sans);
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 24px;
    color: var(--navy-deep);
}
.form-side h2 .accent { color: var(--accent); }
.form-side .lead {
    color: var(--muted);
    font-size: 17px;
    margin-bottom: 32px;
    max-width: 420px;
    line-height: 1.55;
}
.form-side .quick-contacts {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-side .quick-contacts a {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: var(--ink);
    font-weight: 500;
}
.form-side .quick-contacts i {
    color: var(--accent);
    width: 16px;
    font-size: 14px;
}
.form-side .quick-contacts a:hover { color: var(--accent); }

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    padding: clamp(32px, 4vw, 56px);
    border-radius: 4px;
    box-shadow: var(--shadow-1);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: span 2; }
.form-group label {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
    font-weight: 700;
}
.form-group label .req { color: var(--accent); margin-left: 2px; }

.form-group input,
.form-group select,
.form-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1.5px solid var(--silver-200);
    padding: 10px 0 12px;
    font-family: var(--sans);
    font-size: 15px;
    color: var(--ink);
    outline: none;
    transition: border-color 0.3s var(--ease);
    border-radius: 0;
    appearance: none;
    width: 100%;
    font-weight: 500;
}
.form-group select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6478' stroke-width='1.5'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 16px;
    padding-right: 24px;
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-bottom-color: var(--navy-deep); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted-2); font-weight: 400; }
.form-group .invalid { border-bottom-color: #c14343; }

.form-feedback {
    margin-top: 24px;
    padding: 14px 18px;
    border-left: 3px solid var(--accent);
    font-size: 13px;
    color: var(--ink);
    background: var(--navy-tint);
    font-weight: 500;
}
.form-feedback.success { border-left-color: #2f6b4a; color: #2f6b4a; background: #e9f5ee; }
.form-feedback.error { border-left-color: #c14343; color: #c14343; background: #fbeaea; }
.form-feedback[hidden] { display: none; }

.form-submit {
    margin-top: 36px;
    width: 100%;
    justify-content: space-between;
    padding: 20px 28px;
}
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
    background: var(--navy-deep);
    color: #fff;
    padding: clamp(80px, 12vh, 130px) 0 36px;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
}
.footer h4 {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 24px;
    font-weight: 700;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand-block .footer-logo {
    max-height: 100px;
    margin-bottom: 28px;
    filter: brightness(1.5) drop-shadow(0 8px 20px rgba(0,0,0,0.4));
}
.footer-brand-block .tagline {
    color: rgba(255,255,255,0.65);
    font-size: 15px;
    max-width: 360px;
    line-height: 1.6;
    font-weight: 400;
}
.footer-col p, .footer-col a {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    margin-bottom: 12px;
    display: block;
    line-height: 1.55;
    font-weight: 400;
}
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.04em;
    flex-wrap: wrap;
    gap: 20px;
    font-weight: 500;
}
.footer-bottom .socials { display: flex; gap: 10px; }
.footer-bottom .socials a {
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    transition: all var(--t);
}
.footer-bottom .socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* =========================================================================
   MODAL — side panel
   ========================================================================= */
.modal-overlay {
    position: fixed; inset: 0;
    background: color-mix(in srgb, var(--navy-deep) 70%, transparent);
    backdrop-filter: blur(6px);
    opacity: 0; visibility: hidden;
    z-index: 9999;
    transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(720px, 92vw);
    background: var(--bg);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.6s var(--ease);
    overflow-y: auto;
    box-shadow: var(--shadow-3);
}
.modal.active { transform: translateX(0); }

.modal-close {
    position: absolute;
    top: 28px; right: 28px;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: var(--bg);
    color: var(--ink);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    transition: all var(--t);
    z-index: 10;
}
.modal-close:hover { background: var(--navy-deep); color: #fff; border-color: var(--navy-deep); }

.modal-header {
    padding: clamp(48px, 8vh, 96px) clamp(32px, 5vw, 64px) 32px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
}
.modal-header .modal-num {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 16px;
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.16em;
}
.modal-header h2 {
    font-family: var(--sans);
    font-weight: 800;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    color: var(--navy-deep);
}
.modal-header h2 .accent { color: var(--accent); }
.modal-header p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.55;
    max-width: 520px;
}
.modal-body { padding: 48px clamp(32px, 5vw, 64px) clamp(48px, 8vh, 96px); }
.modal-section { margin-bottom: 48px; }
.modal-section:last-child { margin-bottom: 0; }
.modal-section h3 {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 20px;
}

.check-list { display: flex; flex-direction: column; }
.check-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 15px;
    color: var(--ink-2);
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 16px;
    align-items: start;
    line-height: 1.5;
}
.check-list li::before {
    content: "→";
    color: var(--accent);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
}

.tags-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 2px;
    font-size: 12px;
    color: var(--ink-2);
    background: var(--bg-soft);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.workflow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.workflow .step {
    border: 1px solid var(--line);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg);
    border-radius: 2px;
}
.workflow .step span {
    font-size: 11px;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.16em;
}
.workflow .step strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy-deep);
    letter-spacing: -0.01em;
}

.modal-cta {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.modal-cta .btn-ghost-dark { color: var(--ink); }

/* =========================================================================
   SCROLL ANIMATIONS
   ========================================================================= */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.fade-up.in { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: 0.08s; }
.fade-up.d2 { transition-delay: 0.16s; }
.fade-up.d3 { transition-delay: 0.24s; }
.fade-up.d4 { transition-delay: 0.32s; }

/* =========================================================================
   TWEAKS PANEL
   ========================================================================= */
.tweaks-panel {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 320px;
    max-height: 80vh;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-3);
    z-index: 5000;
    padding: 24px;
    display: none;
    font-family: var(--sans);
    border-radius: 6px;
}
.tweaks-panel.visible { display: block; }
.tweaks-panel header {
    position: static;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
}
.tweaks-panel header strong {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--navy-deep);
    text-transform: uppercase;
}
.tweaks-panel .tw-close {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
}
.tweaks-section { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); }
.tweaks-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.tweaks-section > label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
    font-weight: 700;
}
.tw-options { display: flex; gap: 6px; flex-wrap: wrap; }
.tw-opt {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 2px;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--ink);
    cursor: pointer;
    transition: all var(--t);
    background: transparent;
    font-weight: 600;
}
.tw-opt.active { background: var(--navy-deep); color: #fff; border-color: var(--navy-deep); }
.tw-opt:hover:not(.active) { border-color: var(--navy-deep); }
.tw-slider { width: 100%; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    .hide-mobile { display: none; }

    .section-head { grid-template-columns: 1fr; gap: 32px; }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-photo-wrap { position: static; }
    .form-wrap { grid-template-columns: 1fr; gap: 48px; }
    .callout-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
    .callout-cta { justify-content: center; }
    .callout-logo img { max-width: 240px; }

    [data-svc-layout="grid"] .services-list { grid-template-columns: repeat(2, 1fr); }

    .stats-grid { grid-template-columns: 1fr; }
    .stat-cell { padding: 24px 0; border-right: none; border-bottom: 1px solid var(--line); flex-direction: row; align-items: baseline; justify-content: space-between; gap: 24px; }
    .stat-cell:last-child { border-bottom: none; }
    .stat-cell .num { font-size: 64px; }
    .stat-cell .label { margin-top: 0; }

    .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-brand-block { grid-column: span 2; margin-bottom: 24px; }

    .tweaks-panel { width: calc(100vw - 32px); right: 16px; bottom: 16px; }
}

@media (max-width: 640px) {
    .hero-meta { flex-direction: column; gap: 20px; padding-bottom: 24px; }
    .hero-bottom { grid-template-columns: 1fr; gap: 28px; }
    .hero-stats { gap: 32px; flex-wrap: wrap; }
    .svc-row { grid-template-columns: 50px 1fr; gap: 16px; padding: 24px 0; }
    .svc-row .svc-tags, .svc-row .svc-cta { display: none; }
    .svc-row:hover { padding-left: 0; }

    [data-svc-layout="grid"] .services-list { grid-template-columns: 1fr; }

    .form-grid { grid-template-columns: 1fr; gap: 24px; }
    .form-group.full { grid-column: span 1; }

    .footer-top { grid-template-columns: 1fr; }
    .footer-brand-block { grid-column: span 1; }

    .workflow { grid-template-columns: 1fr; }

    .brand-logo img { max-height: 44px; }
    header.scrolled .brand-logo img { max-height: 38px; }
}

/* Density variants */
[data-density="comfortable"] { --section-pad: clamp(80px, 12vh, 160px); }
[data-density="cozy"]        { --section-pad: clamp(60px, 9vh, 110px); }
[data-density="spacious"]    { --section-pad: clamp(110px, 16vh, 220px); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


/* =========================================================================
   ÁREAS DE ACTUAÇÃO
   ========================================================================= */
.areas-section {
    background: var(--bg);
    border-top: 1px solid var(--line);
}
.areas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 2px solid var(--navy-deep);
    border-left: 1px solid var(--line);
}
.area-cell {
    padding: 32px 28px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 160px;
    justify-content: space-between;
    transition: background 0.35s var(--ease);
    cursor: default;
    position: relative;
    overflow: hidden;
}
.area-cell::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}
.area-cell:hover { background: var(--bg-soft); }
.area-cell:hover::after { transform: scaleX(1); }
.area-cell .area-num {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--silver-400);
}
.area-cell:hover .area-num { color: var(--accent); }
.area-cell .area-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--navy-deep);
    line-height: 1.25;
}

@media (max-width: 1024px) {
    .areas-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .areas-grid { grid-template-columns: 1fr; }
    .area-cell { min-height: auto; padding: 24px 20px; }
}

/* Refinement: restrained hierarchy, readable surfaces and compact mobile hero. */
html { scroll-padding-top: 100px; }
:focus-visible { outline: 3px solid #699ddd; outline-offset: 5px; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 20000; padding: 14px 20px; background: var(--bg); color: var(--ink); }
.skip-link:focus { top: 12px; }
.hero { min-height: min(900px, 100svh); padding: 132px 0 64px; }
.hero-location { display: flex; justify-content: space-between; border-bottom: 1px solid #ffffff26; padding-bottom: 18px; margin-bottom: 42px; color: #c5cdd9; font-size: 10px; letter-spacing: .2em; font-weight: 600; }
.hero h1 { font-size: clamp(42px, 6.5vw, 94px); line-height: 1.06; max-width: 1100px; letter-spacing: -.045em; }
.hero h1 .accent { background: none; color: #c5d4e8; }
.hero-eyebrow { font-size: 10px; letter-spacing: .17em; margin-bottom: 22px; }
.hero-bottom { gap: 36px; margin-top: 30px; padding-top: 28px; }
.hero-tagline { font-size: 16px; max-width: 560px; }
.hero-cta { flex-direction: column; min-width: 245px; }
.hero-cta .btn-primary { background: #f4f6f9; color: #0d2549; }
.hero-cta .btn-primary:hover { background: #dce5f0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .48; filter: grayscale(25%); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.scroll-cue { display: none; }
.trust-strip { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 30px; padding-bottom: 30px; }
.trust-grid > div { display: grid; gap: 10px; padding: 0 28px; border-right: 1px solid var(--line); }
.trust-grid > div:first-child { padding-left: 0; }
.trust-grid > div:last-child { border: 0; }
.trust-kicker { font-size: 10px; letter-spacing: .16em; color: var(--muted); font-weight: 600; }
.trust-grid strong { font-size: 17px; font-weight: 600; }
[data-density="comfortable"] { --section-pad: clamp(72px, 9vw, 120px); }
.section-head .lead, .form-side .lead { line-height: 1.8; }
.svc-row { cursor: pointer; }
.svc-row:focus-visible { background: var(--bg-tint); }
.form-card { border-radius: 10px; box-shadow: var(--shadow-2); }
.form-note { font-size: 12px; line-height: 1.65; color: var(--muted); margin-top: 16px; }
.form-feedback a { text-decoration: underline; font-weight: 600; }
.form-submit { white-space: normal; }
.fade-up, .text-reveal { opacity: 1; transform: none; }
.animate-entry:not(.in) { opacity: 0; transform: translateY(18px); }
[data-theme="dark"] .area-name, [data-theme="dark"] .modal-header h2 { color: var(--ink); }
[data-theme="dark"] .brand-logo img { background: #fff; border-radius: 3px; padding: 4px; }
@media (max-width: 1024px) {
    .nav-container { grid-template-columns: 1fr auto; gap: 16px; height: 78px; }
    .nav-container > nav { display: none; }
    .hero { min-height: auto; padding-top: 115px; }
    .hero-bottom { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: row; }
    .trust-grid > div { padding: 0 16px; }
    .trust-grid strong { font-size: 14px; }
}
@media (max-width: 640px) {
    .hero { padding: 104px 0 40px; }
    .hero-location { margin-bottom: 28px; font-size: 9px; }
    .hero-eyebrow { font-size: 9px; line-height: 1.6; letter-spacing: .1em; }
    .hero h1 { font-size: clamp(36px, 8.7vw, 55px); margin-bottom: 22px; }
    .hero h1 br { display: none; }
    .hero-bottom { margin-top: 22px; padding-top: 22px; gap: 24px; }
    .hero-tagline { font-size: 14px; }
    .hero-cta { display: grid; grid-template-columns: 1fr; width: 100%; min-width: 0; }
    .hero-cta .btn { padding: 16px 20px; }
    .trust-grid { grid-template-columns: 1fr; gap: 18px; padding-top: 24px; padding-bottom: 24px; }
    .trust-grid > div { padding: 0 0 18px; border-right: 0; border-bottom: 1px solid var(--line); gap: 6px; }
    .trust-grid > div:last-child { padding-bottom: 0; }
    .svc-row { grid-template-columns: 32px 1fr auto; gap: 12px; }
    .svc-row .svc-cta { display: block; font-size: 0; }
    .svc-row .svc-cta::after { content: '↗'; font-size: 20px; }
    .svc-name { font-size: 19px; }
    .form-card { padding: 24px 20px; }
    .mobile-nav { max-height: calc(100svh - 78px); overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .animate-entry:not(.in) { opacity: 1; transform: none; }
}
.modal { visibility: hidden; box-shadow: none; }
.modal.active { visibility: visible; box-shadow: var(--shadow-3); }
[data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4,
[data-theme="dark"] .about-content > p strong, [data-theme="dark"] .svc-name,
[data-theme="dark"] .principle h4 { color: #f4f6f9; }
[data-theme="dark"] #header { background: #07152df5; }
[data-theme="dark"] .nav-links a, [data-theme="dark"] .theme-toggle-btn { color: #f4f6f9; }
[data-theme="dark"] .mobile-menu-btn span { background: #f4f6f9; }
