/* ==========================================================================
   Ladrilho Arquitetos — Editorial Gallery Design System
   Brand Palette: #163D5A (Blue), #A62B33 (Red), #F08A10 (Orange), #898D22 (Olive)
   Typography: Coolvetica (Brand Display) + Plus Jakarta Sans (Body & UI)
   ========================================================================== */

@font-face {
    font-family: "Coolvetica";
    src: url("../webfonts/coolvetica-rg.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Coolvetica";
    src: url("../webfonts/coolvetica-condensed-rg.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Surface & Ink */
    --bg: #ffffff;
    --surface: #f5f4f0;
    --ink: #1a1918;
    --muted: #5b5854;
    --line: #e4e2dc;

    /* Official Ladrilho Brand Palette */
    --brand-blue: #163d5a;
    --brand-blue-hover: #0f2b40;
    --brand-red: #a62b33;
    --brand-orange: #f08a10;
    --brand-olive: #898d22;

    /* Strict 3-Step Body Scale (Hero H1 & Nav Brand exempt) */
    --text-heading: clamp(1.75rem, 2.5vw, 2.25rem);
    --text-body: 1rem;
    --text-sm: 0.875rem;

    /* Layout & Motion */
    --container: 1200px;
    --header-h: 76px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Base & Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--ink);
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: var(--text-body);
    line-height: 1.65;
    font-variant-numeric: tabular-nums;
    overflow-x: clip;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 180ms var(--ease);
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote {
    margin: 0;
}

ul, ol {
    padding: 0;
    list-style: none;
}

.container {
    width: min(var(--container), calc(100% - 3rem));
    margin-inline: auto;
}

@media (max-width: 640px) {
    .container {
        width: calc(100% - 2rem);
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   Typography Discipline
   -------------------------------------------------------------------------- */
h1, h2 {
    font-family: "Coolvetica", "Plus Jakarta Sans", sans-serif;
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.04;
    color: var(--ink);
}

h2 {
    font-size: var(--text-heading);
}

h3 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: var(--text-body);
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
}

p,
.prose li {
    font-size: var(--text-body);
    line-height: 1.68;
    max-width: 62ch;
    color: var(--ink);
}

p + p {
    margin-top: 1.1rem;
}

.muted {
    color: var(--muted);
}

.text-sm {
    font-size: var(--text-sm);
    line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Modular 4-Color Ladrilho Architectural Stripe
   -------------------------------------------------------------------------- */
.ladrilho-bar {
    display: grid;
    grid-template-columns: 18fr 38fr 26fr 18fr;
    gap: 3px;
    height: 3px;
    width: 100%;
}

.ladrilho-bar span:nth-child(1) { background-color: var(--brand-blue); }
.ladrilho-bar span:nth-child(2) { background-color: var(--brand-red); }
.ladrilho-bar span:nth-child(3) { background-color: var(--brand-orange); }
.ladrilho-bar span:nth-child(4) { background-color: var(--brand-olive); }

/* --------------------------------------------------------------------------
   Single-Line Header & Mobile Drawer
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
    transition: background-color 220ms var(--ease), border-color 220ms var(--ease);
}

body.has-hero .site-header:not(.is-scrolled) {
    background-color: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo {
    height: 36px;
    width: auto;
}

.brand-logo-light {
    display: none;
}

body.has-hero .site-header:not(.is-scrolled) .brand-logo-light {
    display: block;
}

body.has-hero .site-header:not(.is-scrolled) .brand-logo-dark {
    display: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.site-nav a {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--ink);
    position: relative;
    padding-block: 0.25rem;
    white-space: nowrap;
}

body.has-hero .site-header:not(.is-scrolled) .site-nav a {
    color: rgba(255, 255, 255, 0.92);
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background-color: var(--brand-blue);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 200ms var(--ease);
}

body.has-hero .site-header:not(.is-scrolled) .site-nav a::after {
    background-color: var(--brand-orange);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
    font-weight: 600;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 4px;
    background-color: transparent;
    color: var(--ink);
    cursor: pointer;
    transition: border-color 180ms var(--ease), color 180ms var(--ease);
}

body.has-hero .site-header:not(.is-scrolled) .nav-toggle {
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

@media (max-width: 767px) {
    .brand-logo {
        height: 30px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 1rem 1.5rem 1.75rem;
        background-color: #ffffff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 40px rgba(26, 25, 24, 0.1);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 200ms var(--ease), transform 200ms var(--ease);
    }

    body.has-hero .site-header:not(.is-scrolled) .site-nav a {
        color: var(--ink);
    }

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

    .site-nav a {
        width: 100%;
        padding-block: 0.85rem;
        border-bottom: 1px solid var(--line);
        font-size: var(--text-body);
    }

    .site-nav a:last-child {
        border-bottom: 0;
    }

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

/* --------------------------------------------------------------------------
   Buttons & Links
   -------------------------------------------------------------------------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.65rem;
    border: 1px solid var(--brand-blue);
    border-radius: 3px;
    background-color: var(--brand-blue);
    color: #ffffff;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}

.btn-primary:hover {
    background-color: var(--brand-blue-hover);
    border-color: var(--brand-blue-hover);
    color: #ffffff;
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-primary:disabled {
    opacity: 0.65;
    cursor: wait;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--brand-blue);
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.text-link:hover {
    color: var(--brand-red);
}

/* --------------------------------------------------------------------------
   Hero (index.html full-bleed stage & slideshow)
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    align-items: flex-end;
    padding-top: calc(var(--header-h) + 2rem);
    padding-bottom: clamp(3rem, 7vh, 5.5rem);
    background-color: var(--ink);
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 900ms var(--ease), visibility 0s linear 900ms;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    transition: opacity 900ms var(--ease), visibility 0s linear 0s;
}

.hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slide .hero-media {
    transform: scale(1.045);
    transition: transform 6500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.hero-slide.is-active .hero-media {
    transform: scale(1);
}

.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        rgba(20, 19, 18, 0.58) 0%,
        rgba(20, 19, 18, 0.22) 26%,
        rgba(20, 19, 18, 0.34) 56%,
        rgba(20, 19, 18, 0.84) 100%
    );
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem 3rem;
}

.hero-content {
    flex: 1 1 auto;
    max-width: 720px;
    min-width: 0;
}

.hero-content h1 {
    font-size: clamp(2.35rem, 6.8vw, 6.25rem);
    line-height: 1;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.hero-lead {
    font-size: var(--text-body);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 44ch;
    margin-bottom: 1.85rem;
}

.hero-content .btn-primary {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--ink);
}

.hero-content .btn-primary:hover {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #ffffff;
}

.hero-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.9rem;
    flex-shrink: 0;
    min-width: 240px;
}

.hero-slide-meta {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.85rem;
    font-size: var(--text-sm);
}

.hero-slide-link {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    padding-bottom: 2px;
    transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.hero-slide-link:hover {
    color: #ffffff;
    border-color: var(--brand-orange);
}

.hero-slide-counter {
    color: rgba(255, 255, 255, 0.68);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

.hero-controls-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-indicators {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.hero-indicator {
    position: relative;
    width: 34px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.hero-indicator::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.32);
    transition: background-color 180ms var(--ease);
}

.hero-indicator:hover::before {
    background-color: rgba(255, 255, 255, 0.56);
}

.hero-indicator-fill {
    position: relative;
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transform: scaleX(0);
    transform-origin: left center;
}

@keyframes heroProgress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.hero-indicator.is-active .hero-indicator-fill {
    animation: heroProgress var(--hero-duration, 6000ms) linear forwards;
}

.hero.is-paused .hero-indicator.is-active .hero-indicator-fill {
    animation-play-state: paused;
}

.hero.is-static .hero-indicator.is-active .hero-indicator-fill {
    animation: none;
    transform: scaleX(1);
}

.hero-arrows {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 3px;
    background: rgba(20, 19, 18, 0.25);
    color: #ffffff;
    backdrop-filter: blur(4px);
    cursor: pointer;
    transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}

.hero-arrow:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.hero-arrow:focus-visible,
.hero-indicator:focus-visible,
.hero-slide-link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

@media (max-width: 860px) {
    .hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-controls {
        align-items: flex-start;
        width: 100%;
    }

    .hero-slide-meta,
    .hero-controls-bar {
        justify-content: space-between;
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   Editorial Sections & Layouts
   -------------------------------------------------------------------------- */
.page-main {
    padding-top: var(--header-h);
}

.section {
    padding-block: clamp(4rem, 7.5vw, 6.75rem);
    scroll-margin-top: calc(var(--header-h) + 1rem);
}

.section-surface {
    background-color: var(--surface);
}

.section-border {
    border-top: 1px solid var(--line);
}

.page-intro {
    padding-top: clamp(3rem, 6vw, 4.75rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
    border-bottom: 1px solid var(--line);
}

.page-intro h1 {
    font-size: clamp(2.5rem, 4.8vw, 4rem);
    line-height: 0.98;
    margin-bottom: 0.85rem;
}

.page-intro p {
    color: var(--muted);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: clamp(2rem, 4vw, 3.25rem);
    flex-wrap: wrap;
}

.editorial-split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

@media (max-width: 899px) {
    .editorial-split {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   3 Pillars (Estética, Orçamento, Conforto) — Clean Typographic Triad
   -------------------------------------------------------------------------- */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 3.5vw, 2.75rem);
    margin-top: clamp(2.75rem, 5vw, 4rem);
    padding-top: clamp(2rem, 4vw, 2.75rem);
    border-top: 1px solid var(--line);
}

.pillar-item {
    border-top: 3px solid var(--brand-blue);
    padding-top: 1.25rem;
}

.pillar-item.is-orcamento {
    border-top-color: var(--brand-orange);
}

.pillar-item.is-conforto {
    border-top-color: var(--brand-olive);
}

.pillar-item h3 {
    margin-bottom: 0.5rem;
}

.pillar-item p {
    color: var(--muted);
    font-size: var(--text-sm);
    line-height: 1.6;
}

@media (max-width: 767px) {
    .pillars-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Gallery Grid & Project Cards
   -------------------------------------------------------------------------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 3.25rem) clamp(1.5rem, 3vw, 2.5rem);
}

@media (max-width: 767px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    display: block;
}

.project-card.is-hidden {
    display: none;
}

.project-thumb {
    overflow: hidden;
    background-color: var(--surface);
    aspect-ratio: 3 / 2;
    margin-bottom: 1rem;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    transition: transform 360ms var(--ease);
}

.project-card:hover .project-thumb img {
    transform: scale(1.03);
}

.project-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.project-meta h3 {
    transition: color 180ms var(--ease);
}

.project-card:hover .project-meta h3 {
    color: var(--brand-blue);
}

.project-sub {
    color: var(--muted);
    font-size: var(--text-sm);
    margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   Connected Segmented Filter Tabs (portfolio.html)
   -------------------------------------------------------------------------- */
.filter-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
    margin-bottom: clamp(2rem, 4vw, 3rem);
    gap: 0.25rem;
}

.filter-tab {
    appearance: none;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1.15rem;
    margin-bottom: -1px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.filter-tab:hover {
    color: var(--ink);
}

.filter-tab[aria-selected="true"] {
    color: var(--brand-blue);
    border-bottom-color: var(--brand-blue);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Project Detail Page (projeto.html)
   -------------------------------------------------------------------------- */
.breadcrumb-line {
    padding-top: 2rem;
    font-size: var(--text-sm);
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-line a:hover {
    color: var(--brand-blue);
}

.project-layout {
    display: grid;
    grid-template-columns: minmax(0, 4.5fr) minmax(0, 7.5fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.project-sticky {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
}

.project-sticky h1 {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    margin-bottom: 1.25rem;
}

.specs-list {
    margin-block: 2rem;
    border-top: 1px solid var(--line);
}

.specs-list div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.75rem;
    border-bottom: 1px solid var(--line);
    font-size: var(--text-sm);
}

.specs-list dt {
    color: var(--muted);
}

.specs-list dd {
    margin: 0;
    font-weight: 500;
    text-align: right;
}

.highlights-list {
    margin-bottom: 2rem;
    padding-left: 1.15rem;
    list-style: disc;
}

.highlights-list li {
    margin-bottom: 0.45rem;
    color: var(--muted);
}

.project-gallery {
    display: grid;
    gap: 1.5rem;
}

.project-gallery figure {
    background-color: var(--surface);
}

.project-gallery button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    overflow: hidden;
}

.project-gallery img {
    width: 100%;
    height: auto;
    max-height: 82vh;
    object-fit: contain;
    background-color: var(--surface);
    transition: transform 320ms var(--ease);
}

.project-gallery button:hover img {
    transform: scale(1.02);
}

.project-gallery figcaption {
    padding: 0.75rem 0;
    font-size: var(--text-sm);
    color: var(--muted);
    background-color: var(--bg);
}

.project-pager {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding-block: 2rem;
    border-top: 1px solid var(--line);
}

.project-pager a:hover {
    color: var(--brand-blue);
}

.project-pager .pager-next {
    text-align: right;
}

@media (max-width: 899px) {
    .project-layout {
        grid-template-columns: 1fr;
    }

    .project-sticky {
        position: static;
    }
}

/* Native Lightbox Dialog */
.lightbox-dialog {
    border: 0;
    padding: 1rem;
    max-width: min(92vw, 1100px);
    background: transparent;
}

.lightbox-dialog::backdrop {
    background: rgba(20, 19, 18, 0.85);
}

.lightbox-frame {
    position: relative;
    background: var(--ink);
    border-radius: 4px;
    overflow: hidden;
}

.lightbox-frame img {
    max-height: 82vh;
    width: auto;
    margin-inline: auto;
}

.lightbox-caption {
    padding: 0.85rem 1.25rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: var(--text-sm);
}

.lightbox-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 3px;
    background: rgba(26, 25, 24, 0.75);
    color: #ffffff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   Quem Somos Page (escritorio.html)
   -------------------------------------------------------------------------- */
.studio-visual-stack {
    display: grid;
    gap: 1.5rem;
}

.brand-mark-frame {
    background-color: var(--surface);
    padding: 2rem;
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.brand-mark-frame img {
    max-width: 210px;
    width: 100%;
    height: auto;
}

.process-blocks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-block {
    padding: clamp(2.25rem, 4vw, 3.5rem);
    color: #ffffff;
}

.process-block.step-1 { background-color: var(--brand-blue); }
.process-block.step-2 { background-color: var(--brand-red); }
.process-block.step-3 { background-color: var(--brand-olive); }

.process-block h3 {
    color: #ffffff;
    margin-bottom: 0.65rem;
}

.process-block p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-sm);
    line-height: 1.65;
}

@media (max-width: 899px) {
    .process-blocks {
        grid-template-columns: 1fr;
    }
}

.services-intro {
    margin-bottom: clamp(2.5rem, 4.5vw, 3.75rem);
    align-items: end;
}

.services-group + .services-group {
    margin-top: clamp(3rem, 5.5vw, 4.5rem);
}

.services-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.15rem;
    border-top: 2px solid var(--brand-blue);
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.services-group-head.is-tech {
    border-top-color: var(--brand-olive);
}

.services-group-head h3 {
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--brand-blue);
}

.services-group-head.is-tech h3 {
    color: var(--brand-olive);
}

.services-group-head span {
    white-space: nowrap;
    flex-shrink: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 3.5vw, 3rem) clamp(1.5rem, 2.5vw, 2.25rem);
}

.service-thumb {
    overflow: hidden;
    background-color: var(--surface);
    aspect-ratio: 3 / 2;
    margin-bottom: 1rem;
}

.service-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 360ms var(--ease);
}

.service-card:hover .service-thumb img {
    transform: scale(1.03);
}

.service-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.service-meta h4 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: var(--text-body);
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
    transition: color 180ms var(--ease);
}

.service-card:hover .service-meta h4 {
    color: var(--brand-blue);
}

.service-index {
    font-size: var(--text-sm);
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.service-card p {
    color: var(--muted);
    font-size: var(--text-sm);
    line-height: 1.6;
}

@media (max-width: 980px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Contact Page (contato.html)
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: stretch;
}

@media (max-width: 899px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}

.form-grid .form-field {
    margin-bottom: 0;
}

.form-field label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.78rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 3px;
    background-color: #ffffff;
    font-size: var(--text-body);
    transition: border-color 180ms var(--ease);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
        margin-bottom: 1.25rem;
    }
}

.form-feedback {
    display: none;
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: 3px;
    font-size: var(--text-sm);
    line-height: 1.6;
}

.form-feedback.is-success {
    display: block;
    background-color: #eef5f0;
    border: 1px solid #b8d8c0;
    color: #225434;
}

.form-feedback.is-error {
    display: block;
    background-color: #fdf1ef;
    border: 1px solid #e6b8b0;
    color: #7c271b;
}

.contact-brand-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.35rem;
    background-color: var(--surface);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: clamp(2.75rem, 6vw, 4.5rem) clamp(1.75rem, 4vw, 3rem);
    overflow: hidden;
}

.contact-brand-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.contact-logo {
    max-width: 320px;
    width: 100%;
    height: auto;
    margin-bottom: 0;
}

.contact-tagline {
    font-size: var(--text-sm);
    color: var(--muted);
    letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Closing CTA Band & Gallery Footer
   -------------------------------------------------------------------------- */
.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-band h2 {
    margin-bottom: 0.5rem;
}

.cta-band p {
    color: var(--muted);
}

.site-footer {
    background-color: var(--bg);
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 4.4fr) minmax(0, 1.8fr) minmax(0, 2.2fr) minmax(0, 3.2fr);
    gap: clamp(2rem, 4vw, 3rem);
    padding-block: clamp(3rem, 5vw, 4.25rem);
}

.footer-logo {
    max-width: 190px;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.footer-col h3 {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 0.85rem;
}

.footer-col li + li {
    margin-top: 0.45rem;
}

.footer-col a,
.footer-col li {
    font-size: var(--text-sm);
    color: var(--muted);
}

.footer-col a:hover {
    color: var(--brand-blue);
}

.footer-contact-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    overflow-wrap: anywhere;
}

.footer-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--brand-blue);
    transition: color 180ms var(--ease);
}

.footer-contact-list a:hover .footer-icon {
    color: var(--brand-orange);
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-block: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: var(--text-sm);
    color: var(--muted);
}

@media (max-width: 1320px) {
    .footer-bottom {
        padding-right: 4.5rem;
    }
}

/* --------------------------------------------------------------------------
   Floating WhatsApp Button
   -------------------------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    right: clamp(1.1rem, 2.5vw, 1.75rem);
    bottom: clamp(1.1rem, 2.5vw, 1.75rem);
    z-index: 95;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #25d366;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(20, 19, 18, 0.22);
    transition: transform 180ms var(--ease), background-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.whatsapp-float:hover {
    background-color: #1ebe5d;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(20, 19, 18, 0.28);
}

.whatsapp-float:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 3px;
}

@media (max-width: 899px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 540px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Subtle Scroll Reveal & Reduced Motion
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}

.reveal.is-pending {
    opacity: 0;
    transform: translateY(14px);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal,
    .reveal.is-pending {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .project-thumb img,
    .project-gallery img,
    .service-thumb img,
    .site-header,
    .site-nav,
    .btn-primary,
    .hero-slide,
    .hero-slide .hero-media,
    .whatsapp-float {
        transition: none;
    }

    .hero-slide .hero-media {
        transform: none;
    }

    .hero-indicator.is-active .hero-indicator-fill {
        animation: none;
        transform: scaleX(1);
    }
}
