/* ============================================================
   Self-hosted fonts (Cormorant Garamond + Inter, subsets latin + latin-ext)
   ============================================================ */
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/public/fonts/co3smX5slCNuHLi8bLeY9MK7whWMhyjYrGFEsdtdc62E6zd58jD-htM8Efs.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/public/fonts/co3smX5slCNuHLi8bLeY9MK7whWMhyjYrGFEsdtdc62E6zd58jD-iNM8.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/public/fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYp3tKgS4.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/public/fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYqXtK.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/public/fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYp3tKgS4.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/public/fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYqXtK.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/public/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/public/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/public/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/public/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/public/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/public/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/public/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/public/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ============================================================
   VITTA — Design System
   Architecture & Interior Design Studio · Porto
   ------------------------------------------------------------
   Princípios: silêncio, ritmo, generosidade, intemporalidade.
   ============================================================ */

:root {
    /* Palette — quiet luxury */
    --c-ink:        #0c0c0b;          /* near-black */
    --c-ink-soft:   #1f1f1d;
    --c-stone:      #4a4845;          /* mid grey-brown */
    --c-mute:       #66615a;          /* meta text — AA 4.5:1 sobre paper/cream/bone */
    --c-rule:       #d9d4cc;          /* hairlines */
    --c-cream:      #f5f1ea;          /* warm off-white */
    --c-bone:       #ede7dc;          /* slightly deeper bone */
    --c-paper:      #fbfaf7;          /* page bg */
    --c-paper-pure: #ffffff;
    --c-accent:     #8a6f4a;          /* warm bronze (used sparingly) */

    /* Typography */
    --f-serif:  "Cormorant Garamond", "EB Garamond", "Playfair Display", Georgia, serif;
    --f-sans:   "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --f-mono:   ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

    /* Scale */
    --t-xs:   0.75rem;
    --t-sm:   0.875rem;
    --t-base: 1rem;
    --t-lg:   1.125rem;
    --t-xl:   1.375rem;
    --t-2xl:  clamp(1.5rem, 2.2vw, 2rem);
    --t-3xl:  clamp(2rem, 3.4vw, 3.25rem);
    --t-4xl:  clamp(2.75rem, 5vw, 4.75rem);
    --t-5xl:  clamp(3.5rem, 7vw, 6.5rem);

    /* Rhythm */
    --s-1: .5rem;
    --s-2: 1rem;
    --s-3: 1.5rem;
    --s-4: 2rem;
    --s-5: 3rem;
    --s-6: 4.5rem;
    --s-7: 6.5rem;
    --s-8: 9rem;

    /* Layout */
    --container: 1320px;
    --gutter: clamp(1.25rem, 3vw, 2.5rem);

    --ease: cubic-bezier(.2, .7, .2, 1);
    --dur: .6s;

    --header-h: 118px;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; padding: 0; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--c-ink); color: var(--c-cream); }

/* ============================================================
   Base
   ============================================================ */
html, body { min-height: 100%; }
body {
    font-family: var(--f-sans);
    font-size: var(--t-base);
    line-height: 1.55;
    color: var(--c-ink);
    background: var(--c-paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--f-serif);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.01em;
    color: var(--c-ink);
}

h1 { font-size: var(--t-5xl); }
h2 { font-size: var(--t-4xl); }
h3 { font-size: var(--t-3xl); }
h4 { font-size: var(--t-2xl); }

p { color: var(--c-stone); }
p + p { margin-top: 1em; }

/* ============================================================
   Skip link
   ============================================================ */
.skip {
    position: absolute;
    left: -9999px;
    top: 1rem;
    background: var(--c-ink);
    color: var(--c-cream);
    padding: .5rem 1rem;
    z-index: 9999;
    border-radius: 2px;
}
.skip:focus { left: 1rem; }

/* ============================================================
   Container
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}
.container--narrow { max-width: 880px; }
.container--wide   { max-width: 1480px; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 80;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background var(--dur) var(--ease),
                color var(--dur) var(--ease),
                border-color var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease);
    border-bottom: 1px solid transparent;
}
.site-header--solid {
    background: rgba(251, 250, 247, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom-color: var(--c-rule);
}
.site-header__inner {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    position: relative;
    height: 100%;
}

.brand {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    color: inherit;
}
.brand img {
    height: 38px;
    width: auto;
    aspect-ratio: 659 / 154;
    display: block;
    transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.brand img:hover { opacity: .85; }

/* Nav primária — debaixo do logo, centrada */
.nav-primary {
    /* nada de posicionamento — segue o flexbox da coluna do header */
}
.nav-primary__list {
    display: flex;
    gap: clamp(.9rem, 2vw, 2rem);
    align-items: center;
}
.nav-primary__link {
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: inherit;
    position: relative;
    padding: .25rem 0;
    transition: opacity .2s var(--ease);
    white-space: nowrap;
}
.nav-primary__link::after {
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: -2px;
    height: 1px;
    background: currentColor;
    transition: right .35s var(--ease);
}
.nav-primary__link:hover::after,
.nav-primary__link[aria-current="page"]::after { right: 0; }

/* Lang switch — canto superior direito do header */
.lang-switch {
    position: absolute;
    top: 50%;
    right: var(--gutter);
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.lang-switch a {
    color: var(--c-mute);
    padding: .15rem .1rem;
    transition: color .2s var(--ease);
}
.lang-switch a:hover { color: var(--c-ink); }
.lang-switch a.is-active { color: var(--c-ink); }
.lang-switch__sep { color: var(--c-rule); }

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    position: absolute;
    top: 50%;
    right: var(--gutter);
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    place-items: center;
    color: inherit;
}
.menu-toggle__bar {
    display: block;
    width: 22px;
    height: 1px;
    background: currentColor;
    position: relative;
    transition: background .25s var(--ease);
}
.menu-toggle__bar::before,
.menu-toggle__bar::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 1px;
    background: currentColor;
    transition: transform .35s var(--ease), top .25s var(--ease);
}
.menu-toggle__bar::before { top: -7px; }
.menu-toggle__bar::after  { top:  7px; }
body.menu-open .menu-toggle__bar { background: transparent; }
body.menu-open .menu-toggle__bar::before { top: 0; transform: rotate(45deg); }
body.menu-open .menu-toggle__bar::after  { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
    position: fixed;
    inset: 0;
    background: var(--c-paper);
    z-index: 70;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
.mobile-drawer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--s-4);
    width: 100%;
    padding: var(--s-4);
}
body.menu-open .mobile-drawer { opacity: 1; visibility: visible; }
.mobile-drawer__list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
}
.mobile-drawer__link {
    font-family: var(--f-serif);
    font-size: clamp(2rem, 6vw, 3.25rem);
    color: var(--c-ink);
    line-height: 1.1;
}
.mobile-drawer__lang {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    font-size: .82rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--c-mute);
}
.mobile-drawer__lang a.is-active { color: var(--c-ink); }

/* Header transparent (over hero) */
.site-header--over-hero { color: var(--c-cream); }
.site-header--over-hero .nav-primary__link,
.site-header--over-hero .brand,
.site-header--over-hero .lang-switch a { color: var(--c-cream); }
.site-header--over-hero .lang-switch a.is-active { color: #fff; }
.site-header--over-hero .brand img { filter: invert(1) brightness(1.05); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    color: var(--c-cream);
    padding: 0 0 var(--s-6);
    overflow: hidden;
    background: #1a1916;
}
.hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,.55) 0%,
        rgba(0,0,0,.15) 35%,
        rgba(0,0,0,.5) 100%);
    z-index: 1;
}
.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    animation: heroZoom 14s var(--ease) forwards;
}
@keyframes heroZoom {
    from { transform: scale(1.12); }
    to   { transform: scale(1.02); }
}
.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.hero__kicker {
    font-size: .78rem;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: rgba(245,241,234,.78);
    margin-bottom: var(--s-3);
}
.hero__title {
    font-family: var(--f-serif);
    font-size: var(--t-5xl);
    font-weight: 400;
    line-height: 1.05;
    max-width: 22ch;
    color: var(--c-cream);
}
.hero__title em { font-style: italic; }
.hero__cta {
    margin-top: var(--s-5);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero__scroll {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: .72rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: rgba(245,241,234,.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
}
.hero__scroll::after {
    content: "";
    width: 1px;
    height: 38px;
    background: rgba(245,241,234,.4);
    animation: scrollLine 2.4s var(--ease) infinite;
    transform-origin: top;
}
@keyframes scrollLine {
    0%   { transform: scaleY(0); transform-origin: top; }
    45%  { transform: scaleY(1); transform-origin: top; }
    55%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   Sections
   ============================================================ */
section { position: relative; }

.section {
    padding-top: var(--s-7);
    padding-bottom: var(--s-7);
}
.section--cream { background: var(--c-cream); }
.section--bone  { background: var(--c-bone); }
.section--ink   { background: var(--c-ink); color: var(--c-cream); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--c-cream); }
.section--ink p { color: rgba(245,241,234,.78); }

.section-head {
    max-width: 880px;
    margin: 0 auto var(--s-6);
    text-align: center;
}
.section-head--left { text-align: left; margin-left: 0; margin-right: 0; }

/* Kicker — flexbox para garantir que as linhas decorativas ficam
   sempre FORA do texto (independente do comprimento). */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: .9rem;
    font-size: .76rem;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--c-mute);
    margin-bottom: var(--s-3);
}
.kicker::before {
    content: "";
    width: 2.25rem;
    height: 1px;
    background: var(--c-rule);
    flex-shrink: 0;
}
.kicker--center::after {
    content: "";
    width: 2.25rem;
    height: 1px;
    background: var(--c-rule);
    flex-shrink: 0;
}

.section-head h2 {
    margin-bottom: var(--s-3);
}
.section-head p {
    font-size: var(--t-lg);
    color: var(--c-stone);
    line-height: 1.7;
}

/* ============================================================
   Buttons & links
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.75rem;
    font-size: .78rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    border: 1px solid currentColor;
    color: var(--c-ink);
    transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
    line-height: 1;
}
.btn:hover { background: var(--c-ink); color: var(--c-cream); }
.btn--light { color: var(--c-cream); }
.btn--light:hover { background: var(--c-cream); color: var(--c-ink); }
.btn--solid { background: var(--c-ink); color: var(--c-cream); }
.btn--solid:hover { background: transparent; color: var(--c-ink); }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    font-size: .82rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: inherit;
    padding-bottom: .25rem;
    border-bottom: 1px solid var(--c-rule);
    transition: border-color .25s var(--ease), gap .25s var(--ease);
}
.link-arrow::after {
    content: "→";
    transition: transform .3s var(--ease);
}
.link-arrow:hover { border-color: currentColor; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ============================================================
   Intro block (home)
   ============================================================ */
.intro {
    padding-top: var(--s-7);
    padding-bottom: var(--s-7);
}
.intro__inner {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}
.intro__lead {
    font-family: var(--f-serif);
    font-size: var(--t-2xl);
    line-height: 1.45;
    color: var(--c-ink);
    font-style: italic;
}
.intro__lead--small {
    font-size: var(--t-lg);
    font-style: normal;
}

/* ============================================================
   Project grid (home & projetos)
   ============================================================ */
.project-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--s-5) var(--s-3);
}
.project-card {
    position: relative;
    display: block;
    grid-column: span 6;
    overflow: hidden;
}
.project-card--wide { grid-column: span 12; }
.project-card--sm   { grid-column: span 4; }

.project-card__media {
    position: relative;
    overflow: hidden;
    background: var(--c-bone);
    aspect-ratio: 4 / 3;
}
.project-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ease), filter .6s var(--ease);
    filter: brightness(.95) saturate(.95);
}
.project-card:hover .project-card__media img {
    transform: scale(1.05);
    filter: brightness(1) saturate(1);
}
.project-card__meta {
    margin-top: var(--s-3);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s-3);
}
.project-card__name {
    font-family: var(--f-serif);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-ink);
    line-height: 1.2;
}
.project-card__cat {
    font-size: .72rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--c-mute);
    white-space: nowrap;
}

/* Featured (home) — alternating bigger blocks */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--s-5) var(--s-3);
}
.featured-grid .project-card:nth-child(3n+1) { grid-column: span 7; }
.featured-grid .project-card:nth-child(3n+2) { grid-column: span 5; margin-top: var(--s-7); }
.featured-grid .project-card:nth-child(3n+3) { grid-column: span 12; }

/* Lead text na página dos projetos — 2 colunas editoriais */
.section--lead { padding-top: var(--s-6); padding-bottom: var(--s-5); }
.projects-lead {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1rem, 2.2vw, 2rem);
    max-width: 1080px;
    margin: 0 auto;
    text-align: left;
}
.projects-lead__col {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.projects-lead__p {
    font-size: var(--t-lg);
    line-height: 1.75;
    color: var(--c-stone);
    margin: 0;
}

/* Seccao da grelha com filtro — padding-top reduzido para aproximar do texto */
.section--grid { padding-top: 44px; }

/* Lead text nos servicos (entre header e lista) */
.services-lead { text-align: left; }
.services-lead__p {
    font-size: var(--t-lg);
    line-height: 1.75;
    color: var(--c-stone);
    margin: 0;
}

/* Seccao "Em Obra" — capa preta e branca + legenda, nao clicavel */
.section--obra { padding-top: var(--s-6); padding-bottom: var(--s-7); }
.section--obra .section-head { margin-bottom: var(--s-4); }

.project-card--obra {
    cursor: default;
    text-decoration: none;
}
.project-card--obra:hover .project-card__media img { transform: none; }

.project-card__media--obra img {
    filter: grayscale(1) contrast(.95);
    transition: filter .6s var(--ease);
}
.project-card--obra:hover .project-card__media--obra img {
    filter: grayscale(1) contrast(1);
}

/* Projects filter */
.project-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--s-3);
    margin-bottom: var(--s-6);
    font-size: .78rem;
    letter-spacing: .25em;
    text-transform: uppercase;
}
.project-filter__btn {
    padding: .5rem 1rem;
    color: var(--c-mute);
    text-transform: uppercase;
    letter-spacing: .25em;
    border-bottom: 1px solid transparent;
    transition: color .25s var(--ease), border-color .25s var(--ease);
}
.project-filter__btn.is-active,
.project-filter__btn:hover {
    color: var(--c-ink);
    border-bottom-color: var(--c-ink);
}

/* ============================================================
   Page header (interior pages)
   ============================================================ */
.page-header {
    padding-top: calc(var(--header-h) + var(--s-7));
    padding-bottom: var(--s-6);
    text-align: center;
    background: var(--c-cream);
}
.page-header__kicker {
    font-size: .78rem;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--c-mute);
    margin-bottom: var(--s-3);
}
.page-header__title {
    font-family: var(--f-serif);
    font-size: var(--t-5xl);
    font-weight: 400;
    margin-bottom: var(--s-3);
}
.page-header__lead {
    max-width: 720px;
    margin: 0 auto;
    font-size: var(--t-lg);
    color: var(--c-stone);
    line-height: 1.7;
}

/* ============================================================
   About — split layout
   ============================================================ */
.about-split {
    display: grid;
    grid-template-columns: 6fr 6fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
}
.about-split__media {
    aspect-ratio: 4 / 5;
    background: var(--c-bone);
    overflow: hidden;
}
.about-split__media img { width: 100%; height: 100%; object-fit: cover; }

/* Par de fotos no topo do "Sobre" — layout editorial staggered:
   - esquerda: portrait mais alta, alinhada ao topo
   - direita: square-ish mais baixa, deslocada para baixo */
.about-split__media-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 clamp(1rem, 2.5vw, 1.75rem);
    align-items: start;
}
.about-split__media-pair figure {
    background: var(--c-bone);
    overflow: hidden;
    margin: 0;
}
.about-split__media-pair figure:first-child {
    aspect-ratio: 3 / 4;
}
.about-split__media-pair figure:last-child {
    aspect-ratio: 4 / 5;
    margin-top: 14%;
}
.about-split__media-pair img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ease);
}
.about-split__media-pair figure:hover img { transform: scale(1.03); }

.about-split__text p { font-size: var(--t-lg); line-height: 1.8; }
.about-split__text p + p { margin-top: 1.25em; }

.team-quote {
    font-family: var(--f-serif);
    font-style: italic;
    font-size: var(--t-3xl);
    line-height: 1.25;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: var(--c-ink);
}

/* Team grid — 4 colunas fixas, todos os cartões com a mesma estrutura
   para os textos alinharem ao nível da Filipa (que tem foto). */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-5) var(--s-4);
    margin-top: var(--s-6);
}
.team-card {
    text-align: left;
}
.team-card__media {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--c-bone);
    margin-bottom: var(--s-3);
}
.team-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ease);
}
.team-card:hover .team-card__media img { transform: scale(1.03); }

/* Empty placeholder colapsa por defeito (mobile + linhas sem foto adjacente).
   Só os cartões da mesma linha da Filipa é que precisam de reservar o espaço
   da foto — esses são re-activados nos media queries abaixo. */
.team-card__media--empty {
    aspect-ratio: auto;
    background: transparent;
    margin-bottom: 0;
}

/* Desktop (≥1025px, 4 cols): Filipa está em :nth-child(1); os irmãos da
   linha 1 são :nth-child(2..4). Damos-lhes o spacer da foto. */
@media (min-width: 1025px) {
    .team-card:nth-child(-n+4) .team-card__media--empty {
        aspect-ratio: 4 / 5;
        margin-bottom: var(--s-3);
    }
}

/* Tablet (721—1024px, 2 cols): só :nth-child(2) está na mesma linha da Filipa. */
@media (min-width: 721px) and (max-width: 1024px) {
    .team-card:nth-child(2) .team-card__media--empty {
        aspect-ratio: 4 / 5;
        margin-bottom: var(--s-3);
    }
}

.team-card__name {
    font-family: var(--f-serif);
    font-size: var(--t-xl);
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--c-ink);
    border-top: 1px solid var(--c-rule);
    padding-top: var(--s-3);
}
.team-card__role {
    font-size: .78rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--c-mute);
    margin: .5rem 0 1rem;
}
.team-card__contact {
    font-size: var(--t-sm);
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--c-stone);
    line-height: 1.6;
}
.team-card__contact a { color: inherit; border-bottom: 1px solid transparent; }
.team-card__contact a:hover { border-bottom-color: var(--c-ink); }

/* ============================================================
   Services
   ============================================================ */
.services-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
.service {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
    padding: var(--s-7) 0;
    border-top: 1px solid var(--c-rule);
}
.service:last-child { border-bottom: 1px solid var(--c-rule); }
.service:nth-child(even) .service__media { order: -1; }
.service__media {
    aspect-ratio: 4 / 3;
    background: var(--c-bone);
    overflow: hidden;
}
.service__media img { width: 100%; height: 100%; object-fit: contain; padding: 1.5rem; }
.service__num {
    font-family: var(--f-mono);
    font-size: var(--t-sm);
    color: var(--c-mute);
    letter-spacing: .2em;
    margin-bottom: var(--s-2);
}
.service__title {
    font-family: var(--f-serif);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: var(--s-3);
}
.service__desc { font-size: var(--t-lg); line-height: 1.75; }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
}
.contact-info__block { margin-bottom: var(--s-4); }
.contact-info__label {
    font-size: .72rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--c-mute);
    margin-bottom: .55rem;
}
.contact-info__value {
    font-family: var(--f-serif);
    font-size: var(--t-xl);
    color: var(--c-ink);
    line-height: 1.45;
}
.contact-info__value a {
    border-bottom: 1px solid var(--c-rule);
    transition: border-color .25s var(--ease);
}
.contact-info__value a:hover { border-bottom-color: var(--c-ink); }
.contact-info__hours {
    font-size: var(--t-base);
    color: var(--c-stone);
    line-height: 1.5;
}
.contact-info__note {
    font-size: .72rem;
    font-style: italic;
    color: var(--c-mute);
    margin-top: .35rem;
    line-height: 1.4;
}

/* AB Group block (Contactos) — uma única linha centrada:
   "A VITTA LTD FAZ PARTE DA AB GROUP"  [Abarbosa logo]  [Ziya logo] */
.ab-group {
    padding: var(--s-6) 0;
    text-align: center;
    border-top: 1px solid var(--c-rule);
}
.ab-group__logo {
    height: 56px;
    width: auto;
    aspect-ratio: 659 / 154;
    display: block;
    margin: 0 auto var(--s-4);
}
.ab-group__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--s-4);
}
.ab-group__label {
    font-family: var(--f-sans);
    font-size: .78rem;
    letter-spacing: .22em;
    color: var(--c-stone);
    line-height: 1;
}
.ab-group__partners {
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
}
.ab-group__partners a {
    display: inline-flex;
    align-items: center;
}
.ab-group__partners img {
    height: 14px;
    width: auto;
    opacity: .85;
    transition: opacity .25s var(--ease);
}
.ab-group__partners a:hover img { opacity: 1; }

/* Cabeçalho do formulário — kicker discreto + título a tamanho moderado */
.contact-form-wrap { display: block; }
.contact-form__kicker {
    display: inline-block;
    font-size: .72rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--c-mute);
    margin-bottom: .8rem;
}
.contact-form__title {
    font-family: var(--f-serif);
    font-weight: 400;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.2;
    color: var(--c-ink);
    margin: 0 0 var(--s-4);
}

/* Form */
.form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-4) var(--s-4);
}
.form__row { display: flex; flex-direction: column; gap: .35rem; }
.form__row--full { grid-column: span 2; }
.form__label {
    font-size: .68rem;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--c-mute);
    font-weight: 500;
}
.form__label .req { color: var(--c-accent); margin-left: .15rem; }
.form__input,
.form__select,
.form__textarea {
    width: 100%;
    padding: .65rem 0 .55rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--c-rule);
    color: var(--c-ink);
    font-size: var(--t-base);
    font-family: var(--f-sans);
    line-height: 1.4;
    transition: border-color .25s var(--ease);
    border-radius: 0;
}
.form__input::placeholder,
.form__textarea::placeholder { color: var(--c-mute); opacity: .6; }
.form__textarea {
    resize: vertical;
    min-height: 120px;
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    outline: none;
    border-bottom-color: var(--c-ink);
}
.form__select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--c-stone) 50%),
                      linear-gradient(135deg, var(--c-stone) 50%, transparent 50%);
    background-position: calc(100% - 14px) center, calc(100% - 8px) center;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 28px;
}
.form__check {
    grid-column: span 2;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    font-size: var(--t-sm);
    color: var(--c-stone);
    line-height: 1.55;
}
.form__check input { margin-top: .25rem; accent-color: var(--c-ink); }
.form__honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.form__actions {
    grid-column: span 2;
    margin-top: var(--s-4);
    display: flex;
    justify-content: flex-start;
}
.form__actions .btn { min-width: 220px; justify-content: center; }

.form__alert {
    grid-column: span 2;
    padding: 1rem 1.25rem;
    border-left: 2px solid;
    font-size: var(--t-sm);
    line-height: 1.5;
}
.form__alert--ok  { background: #f0ede4; border-color: var(--c-accent); color: var(--c-ink); }
.form__alert--err { background: #fbeeea; border-color: #b75a3e; color: #6a2e1b; }

.form__error {
    font-size: .78rem;
    color: #b75a3e;
    margin-top: .25rem;
}

/* ============================================================
   Project detail
   ============================================================ */
.project-hero {
    padding-top: calc(var(--header-h) + var(--s-5));
    padding-bottom: var(--s-5);
    text-align: center;
    background: var(--c-cream);
}
.project-hero__cat {
    font-size: .78rem;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--c-mute);
    margin-bottom: var(--s-3);
}
.project-hero__title {
    font-family: var(--f-serif);
    font-size: var(--t-5xl);
    font-weight: 400;
    margin-bottom: var(--s-3);
}
.project-cover {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--c-bone);
}
.project-cover img { width: 100%; height: 100%; object-fit: cover; }

.project-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--s-3);
    padding-top: var(--s-6);
    padding-bottom: var(--s-6);
}
.project-gallery figure {
    overflow: hidden;
    background: var(--c-bone);
}
.project-gallery img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ease);
}
.project-gallery figure:hover img { transform: scale(1.03); }

/* Patterns of 6, 6, 12, 4, 4, 4, 6, 6 ... */
.project-gallery figure:nth-child(1) { grid-column: span 12; aspect-ratio: 16 / 9; }
.project-gallery figure:nth-child(2) { grid-column: span 6;  aspect-ratio: 4 / 3; }
.project-gallery figure:nth-child(3) { grid-column: span 6;  aspect-ratio: 4 / 3; }
.project-gallery figure:nth-child(4) { grid-column: span 4;  aspect-ratio: 3 / 4; }
.project-gallery figure:nth-child(5) { grid-column: span 8;  aspect-ratio: 4 / 3; }
.project-gallery figure:nth-child(6) { grid-column: span 8;  aspect-ratio: 4 / 3; }
.project-gallery figure:nth-child(7) { grid-column: span 4;  aspect-ratio: 3 / 4; }
.project-gallery figure:nth-child(8) { grid-column: span 6;  aspect-ratio: 4 / 3; }
.project-gallery figure:nth-child(9) { grid-column: span 6;  aspect-ratio: 4 / 3; }
.project-gallery figure:nth-child(n+10) { grid-column: span 4; aspect-ratio: 3 / 4; }

.project-next {
    border-top: 1px solid var(--c-rule);
    padding-top: var(--s-6);
    padding-bottom: var(--s-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-3);
}
.project-next__back { font-size: .82rem; letter-spacing: .25em; text-transform: uppercase; color: var(--c-mute); }
.project-next__next {
    text-align: right;
    font-family: var(--f-serif);
    font-size: var(--t-2xl);
    color: var(--c-ink);
}
.project-next__next small {
    display: block;
    font-family: var(--f-sans);
    font-size: .72rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--c-mute);
    margin-bottom: .25rem;
}

/* ============================================================
   Footer — layout compacto: top em 3 colunas + tail inline
   ============================================================ */
.site-footer {
    background: var(--c-ink);
    color: rgba(245, 241, 234, .72);
    padding: var(--s-4) 0 var(--s-3);
    font-size: var(--t-sm);
    position: relative;
}

/* Hairlines */
.footer-rule {
    border: 0;
    height: 1px;
    background: rgba(245, 241, 234, .14);
    margin: var(--s-4) 0 var(--s-3);
}

/* ===== Grid principal: 4 colunas ===== */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.3fr 1fr 1.2fr;
    gap: clamp(1.5rem, 3.5vw, 3.5rem);
    align-items: start;
    padding: var(--s-4) 0 var(--s-3);
}

.footer-col { display: flex; flex-direction: column; gap: 1rem; }

/* Coluna brand */
.footer-brand { display: inline-flex; }
.footer-logo {
    height: 50px;
    width: auto;
    aspect-ratio: 659 / 154;
    display: block;
    filter: invert(1) brightness(1.05);
    transition: opacity .25s var(--ease);
}
.footer-brand:hover .footer-logo { opacity: .85; }
.footer-desc {
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(245, 241, 234, .58);
    margin: 0;
    max-width: 36ch;
}
.footer-social {
    display: flex;
    gap: .55rem;
    margin-top: .35rem;
}
.footer-social a {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(245, 241, 234, .06);
    color: rgba(245, 241, 234, .65);
    transition: color .25s var(--ease), background .25s var(--ease), transform .35s var(--ease);
}
.footer-social a:hover {
    color: var(--c-ink);
    background: var(--c-cream);
    transform: translateY(-2px);
}

/* Cabeçalhos de cada coluna (CONTACTOS · NAVEGAR · SERVi?OS) */
.footer-col__title {
    font-family: var(--f-sans);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--c-cream);
    margin: 0 0 .35rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid rgba(245, 241, 234, .14);
    line-height: 1;
}

/* Lista de contactos com ícones */
.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .9rem;
    margin: 0;
    padding: 0;
    font-size: .85rem;
    line-height: 1.45;
    color: rgba(245, 241, 234, .65);
}
.footer-contact-list li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: .65rem;
    align-items: start;
}
.footer-contact-list__icon {
    color: rgba(245, 241, 234, .7);
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
}
.footer-contact-list a {
    color: rgba(245, 241, 234, .85);
    border-bottom: 1px solid transparent;
    transition: color .25s var(--ease), border-color .25s var(--ease);
}
.footer-contact-list a:hover {
    color: var(--c-cream);
    border-bottom-color: rgba(245, 241, 234, .4);
}
.footer-contact-list small {
    display: block;
    font-size: .72rem;
    color: rgba(245, 241, 234, .68);
    margin-top: .2rem;
    font-style: italic;
}

/* Lista de links de navegação e serviços */
.footer-link-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    margin: 0;
    padding: 0;
    font-size: .87rem;
}
.footer-link-list a {
    color: rgba(245, 241, 234, .72);
    transition: color .25s var(--ease), padding-left .25s var(--ease);
}
.footer-link-list a:hover {
    color: var(--c-cream);
    padding-left: 4px;
}

/* ===== Bottom strip ===== */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .75rem var(--s-3);
    font-size: .76rem;
    color: rgba(245, 241, 234, .78);
}
.footer-bottom__copy {
    color: rgba(245, 241, 234, .78);
    line-height: 1.4;
}
.footer-bottom__legal {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
}
.footer-bottom__legal a {
    color: rgba(245, 241, 234, .78);
    border-bottom: 1px solid transparent;
    transition: color .25s var(--ease), border-color .25s var(--ease);
}
.footer-bottom__legal a:hover {
    color: var(--c-cream);
    border-bottom-color: rgba(245, 241, 234, .55);
}
/* Apenas os separadores · directos (nao apanha spans dentro dos <a>) */
.footer-bottom__legal > span { color: rgba(245, 241, 234, .35); }

.footer-top-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.footer-top-link svg { transition: transform .35s var(--ease); }
.footer-top-link:hover svg { transform: translateY(-3px); }

/* Crédito de desenvolvedor */
.footer-credit {
    margin-top: var(--s-3);
    padding-top: var(--s-2);
    border-top: 1px solid rgba(245, 241, 234, .12);
    text-align: center;
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(245, 241, 234, .68);
}
.footer-credit span {
    color: rgba(245, 241, 234, .9);
    margin-left: .2em;
}

/* ============================================================
   Página Legal (Privacidade)
   ============================================================ */
.section--legal { padding-top: var(--s-5); padding-bottom: var(--s-7); }
.legal article { margin-bottom: var(--s-5); }
.legal h2 {
    font-family: var(--f-serif);
    font-size: clamp(1.4rem, 2vw, 1.75rem);
    color: var(--c-ink);
    margin: 0 0 var(--s-3);
    padding-bottom: .65rem;
    border-bottom: 1px solid var(--c-rule);
    line-height: 1.25;
}
.legal h3 {
    font-family: var(--f-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-ink);
    margin: var(--s-3) 0 .5rem;
    letter-spacing: .01em;
}
.legal p {
    font-size: var(--t-base);
    line-height: 1.7;
    color: var(--c-stone);
    margin: 0 0 .9rem;
    max-width: 64ch;
}
.legal a {
    color: var(--c-ink);
    border-bottom: 1px solid var(--c-rule);
    transition: border-color .25s var(--ease);
}
.legal a:hover { border-bottom-color: var(--c-ink); }
.legal__dl {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 2fr;
    gap: .55rem var(--s-4);
    margin: 0;
}
.legal__dl dt {
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--c-mute);
    align-self: center;
}
.legal__dl dd {
    margin: 0;
    color: var(--c-ink);
    font-size: var(--t-base);
    align-self: center;
}
@media (max-width: 720px) {
    .legal__dl { grid-template-columns: 1fr; gap: .1rem var(--s-2); }
    .legal__dl dd { margin: 0 0 .8rem; }
}

/* ============================================================
   WhatsApp floating button (em todas as páginas)
   ============================================================ */
.wa-float {
    position: fixed;
    bottom: 28px;
    /* Em ecrãs wide alinha com a margem do container (max 1320px) + gutter;
       em ecrãs pequenos cai para um mínimo de 24px. */
    right: max(24px, calc((100vw - 1320px) / 2 + 24px));
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 22px rgba(37, 211, 102, .35), 0 2px 8px rgba(0,0,0,.15);
    z-index: 90;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s var(--ease);
}
.wa-float:hover {
    transform: scale(1.08);
    background: #1ebe5a;
    box-shadow: 0 8px 28px rgba(37, 211, 102, .55), 0 3px 10px rgba(0,0,0,.2);
    color: #fff;
}
.wa-float svg { position: relative; z-index: 2; }
.wa-float__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25d366;
    z-index: 1;
    animation: waPulse 2.4s ease-out infinite;
    pointer-events: none;
}
@keyframes waPulse {
    0%   { transform: scale(1);   opacity: .55; }
    70%  { transform: scale(1.6); opacity: 0;  }
    100% { transform: scale(1.6); opacity: 0;  }
}
@media (prefers-reduced-motion: reduce) {
    .wa-float__pulse { animation: none; display: none; }
    .wa-float { transition: none; }
}
@media (max-width: 480px) {
    .wa-float { width: 50px; height: 50px; bottom: 18px; right: 18px; }
    .wa-float svg { width: 24px; height: 24px; }
}
@media print {
    .wa-float { display: none; }
}


/* ============================================================
   Reveal animation (intersection observer)
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal--delay-1 { transition-delay: .1s; }
.reveal--delay-2 { transition-delay: .2s; }
.reveal--delay-3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001s !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Utility classes (substituem inline styles bloqueados por CSP)
   ============================================================ */
.u-text-center  { text-align: center; }
.u-mt-3         { margin-top: var(--s-3); }
.u-mt-4         { margin-top: var(--s-4); }
.u-mt-5         { margin-top: var(--s-5); }
.u-mt-6         { margin-top: var(--s-6); }
.u-no-border    { border-bottom: none; }
.u-span-2       { grid-column: span 2; }
.error-page__h1   { margin-top: var(--s-3); font-size: var(--t-3xl); }
.error-page__lead { max-width: 480px; margin: var(--s-3) auto; }

/* ============================================================
   404
   ============================================================ */
.error-page {
    min-height: 80vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: var(--s-7) var(--gutter);
}
.error-page__code {
    font-family: var(--f-serif);
    font-size: clamp(6rem, 18vw, 12rem);
    line-height: 1;
    color: var(--c-ink);
    font-style: italic;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .featured-grid .project-card:nth-child(3n+1),
    .featured-grid .project-card:nth-child(3n+2),
    .featured-grid .project-card:nth-child(3n+3) {
        grid-column: span 12;
        margin-top: 0;
    }
    .project-card { grid-column: span 6; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .about-split, .contact-grid {
        grid-template-columns: 1fr;
    }
    .about-split__media { max-width: 480px; margin: 0 auto; }
    .about-split__media-pair { max-width: 640px; margin: 0 auto; }
    .projects-lead { grid-template-columns: 1fr; gap: var(--s-3); }
    .service {
        grid-template-columns: 1fr;
        gap: var(--s-3);
        padding: var(--s-5) 0;
    }
    .service:nth-child(even) .service__media { order: 0; }
    .service__media { max-width: 460px; }
}

@media (max-width: 720px) {
    :root {
        --header-h: 72px;
    }
    .nav-primary, .lang-switch { display: none; }
    .menu-toggle { display: grid; }
    .brand img { height: 28px; }

    /* ====== Hero mobile — mais coeso, focado, sem espaço morto ====== */
    .hero {
        /* Fallback agressivo para Samsung Internet (sem suporte svh):
           vh inclui a barra do browser, por isso usar valor menor.
           Chrome/Safari modernos sobrescrevem com svh (sem barra). */
        min-height: 52vh;
        min-height: 62svh;
        padding-top: var(--s-5);
        padding-bottom: var(--s-5);
        align-items: center;
        text-align: center;
    }
    /* Gradiente mais leve no fundo (em mobile o conteúdo está centrado,
       não há texto no fundo do hero) */
    .hero__media::after {
        background: linear-gradient(
            180deg,
            rgba(0,0,0,.5) 0%,
            rgba(0,0,0,.25) 50%,
            rgba(0,0,0,.15) 100%);
    }
    .hero__kicker {
        margin-bottom: var(--s-2);
    }
    .hero__title {
        max-width: none;
        font-size: clamp(2.2rem, 8vw, 3rem);
        margin: 0 auto;
    }
    .hero__cta {
        margin-top: var(--s-4);
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .hero__cta-secondary {
        border: none;
        padding: 0;
        text-decoration: underline;
        text-underline-offset: 6px;
        text-decoration-color: rgba(245, 241, 234, .35);
        font-size: .78rem;
        letter-spacing: .22em;
    }
    .hero__cta-secondary:hover {
        background: transparent;
        color: var(--c-cream);
        text-decoration-color: var(--c-cream);
    }
    .hero__scroll { display: none; }

    .project-card,
    .project-card--sm,
    .project-card--wide {
        grid-column: span 12;
    }
    .team-grid { grid-template-columns: 1fr; }
    .form { grid-template-columns: 1fr; }
    .form__row--full,
    .form__check,
    .form__actions,
    .form__alert { grid-column: span 1; }

    .project-gallery figure,
    .project-gallery figure:nth-child(n) {
        grid-column: span 12;
        aspect-ratio: 4 / 3;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--s-4) var(--s-3);
    }
    .footer-col--brand { grid-column: span 2; }
    .footer-bottom {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-col--brand { grid-column: span 1; }
    .ab-group__row { gap: 1rem; flex-direction: column; }
    .ab-group__partners { gap: var(--s-2); }
    .ab-group__partners img { height: 12px; }
}
