/* =====================================================================
   FRONTIN Revestimentos — Sistema visual "Industrial Sóbrio"
   Corporativo, fotográfico, sério. Sem firulas.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Paleta oficial — Manual da Marca FRONTIN */
  --bg: #FFFFFF;
  --bg-alt: #F2F5F8;          /* Off-white */
  --fg: #15293B;             /* Azul-tinta (texto/dominante) */
  --navy: #15293B;           /* Azul-tinta (seções escuras) */
  --navy-2: #1E3A52;
  --muted: #F2F5F8;
  --muted-fg: #5A6776;       /* derivado do cinza médio, com contraste AA */
  --border: #E2E8EE;
  --border-strong: #C0C9D1;  /* Cinza metálico */
  --card: #FFFFFF;

  --accent: #2F6FB8;         /* Azul FRONTIN (acento) */
  --accent-ink: #27598F;     /* acento mais escuro p/ texto pequeno/links */
  --accent-light: #84B2E4;   /* acento sobre fundo escuro */
  --accent-hover: #27598F;
  --ring: #2F6FB8;

  --shadow-sm: 0 1px 2px rgba(13, 27, 46, .06);
  --shadow-md: 0 4px 14px rgba(13, 27, 46, .08);
  --shadow-lg: 0 14px 32px rgba(13, 27, 46, .10);
  --shadow-xl: 0 26px 56px rgba(13, 27, 46, .16);

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 18px;

  --container: 78rem;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --font-display: "Archivo", "Inter", system-ui, sans-serif;
  --font-logo: "Archivo Black", "Archivo", system-ui, sans-serif;
  --font-ui: "Archivo", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-ui);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, iframe, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }

:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ring); border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--accent); color: #fff; padding: .7rem 1.1rem; border-radius: 8px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Typography helpers ---------- */
.eyebrow, .label {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink);
}
.label {
  padding: .5rem .95rem; border-radius: 4px;
  border: 1px solid rgba(14, 91, 214, .22);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  background: rgba(14, 91, 214, .05);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}
.label__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.label__text { font: inherit; letter-spacing: .2em; }

.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.85rem, 1.3rem + 2.4vw, 2.9rem); line-height: 1.12;
  letter-spacing: -.018em; color: var(--fg);
}
.gradient-text { color: var(--accent); }      /* destaque sólido, sem clip */
.section-sub { color: var(--muted-fg); font-size: 1.06rem; max-width: 50ch; }
.section-head { max-width: 54rem; display: grid; gap: 1rem; margin-bottom: 3.2rem; }
.section-head .section-title { margin-top: .35rem; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.lead { font-size: 1.14rem; color: #2c3e56; }
.muted-p { color: var(--muted-fg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 600; font-size: .96rem; line-height: 1; letter-spacing: .01em;
  padding: .9rem 1.5rem; border-radius: var(--r);
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap; min-height: 48px;
}
.btn__arrow { transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.99); }

.btn--sm { padding: .7rem 1.1rem; font-size: .9rem; min-height: 44px; }
.btn--lg { padding: 1.05rem 1.8rem; font-size: 1.02rem; min-height: 56px; }

.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--outline { background: transparent; color: var(--fg); border: 1px solid var(--border-strong); }
.btn--outline:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent-ink); }

.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost-light { background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.32); }
.btn--ghost-light:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }

.btn--wa { background: #1FAE54; color: #fff; }
.btn--wa:hover { background: #1a9748; transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .94);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
  backdrop-filter: saturate(1.3) blur(10px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
/* header on hero (transparent, white text) until scrolled */
.site-header:not(.scrolled) .nav a,
.site-header:not(.scrolled) .brand__name { color: #fff; }
.site-header:not(.scrolled) .brand__sub { color: rgba(255,255,255,.7); }
.site-header:not(.scrolled) .nav-toggle span { background: #fff; }
.site-header:not(.scrolled) .nav-toggle { border-color: rgba(255,255,255,.4); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 78px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand__mark { width: 40px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-logo); font-weight: 400; font-size: 1.22rem; letter-spacing: .005em; color: var(--fg); }
.brand__sub { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .55rem; text-transform: uppercase; color: var(--muted-fg); margin-top: 5px; }
.brand__sub i { font-style: normal; }

.nav { display: flex; gap: .2rem; }
.nav a {
  position: relative; padding: .55rem .85rem; border-radius: 6px;
  font-size: .95rem; font-weight: 500; color: #36475d;
  transition: color .2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .4rem; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--accent-ink); }
.site-header:not(.scrolled) .nav a:hover, .site-header:not(.scrolled) .nav a.active { color: #fff; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.site-header:not(.scrolled) .nav a::after { background: #fff; }

.header__actions { display: flex; align-items: center; gap: .75rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 8px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--border); }
.nav-toggle span { width: 20px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: grid; gap: 1rem; padding: 1.25rem 1.5rem 1.75rem; background: var(--card); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: grid; gap: .25rem; }
.mobile-menu nav a { padding: .85rem .5rem; font-size: 1.1rem; font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-menu .btn { width: 100%; }

/* =====================================================================
   HERO — fotográfico, full-bleed
   ===================================================================== */
.hero { position: relative; min-height: clamp(560px, 84vh, 780px); display: flex; flex-direction: column; margin-top: -78px; padding-top: 78px; color: #fff; isolation: isolate; }
.hero > .container:not(.hero__strip) { flex: 1; display: flex; align-items: center; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media picture { position: absolute; inset: 0; display: block; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,18,32,.92) 0%, rgba(8,18,32,.72) 42%, rgba(8,18,32,.35) 100%),
    linear-gradient(0deg, rgba(8,18,32,.85) 0%, rgba(8,18,32,0) 45%);
}
.hero__inner { display: grid; gap: 1.6rem; justify-items: start; max-width: 44rem; padding-block: 4rem; }
.hero .eyebrow { color: var(--accent-light); }
.hero__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 1.3rem + 4vw, 4rem); line-height: 1.04; letter-spacing: -.022em; }
.hero__title .gradient-text { color: var(--accent-light); }
.hero__lead { font-size: 1.18rem; color: rgba(255,255,255,.82); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: .3rem; }
.hero__strip { position: relative; }
.hero__strip-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.6rem; padding: 1.1rem 0 1.4rem; border-top: 1px solid rgba(255,255,255,.16); }
.hero__strip-label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.hero__strip-list { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.hero__strip-list li { font-size: .92rem; font-weight: 600; color: rgba(255,255,255,.9); letter-spacing: .01em; }

/* =====================================================================
   STATS — banda clara
   ===================================================================== */
.stats { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: grid; gap: .35rem; padding: 2.6rem 1.6rem; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--border); }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.8rem); line-height: 1; color: var(--fg); }
.stat__num span { color: var(--accent); }
.stat__label { font-size: .9rem; color: var(--muted-fg); line-height: 1.4; }

/* =====================================================================
   SOBRE
   ===================================================================== */
.about { padding-block: clamp(4rem, 3rem + 5vw, 7rem); }
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: center; }
.about__media { position: relative; }
.slideshow { position: relative; aspect-ratio: 4 / 3.4; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); background: var(--muted); }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s var(--ease); }
.slide.is-active { opacity: 1; }
.slideshow__dots { position: absolute; left: 0; right: 0; bottom: .9rem; z-index: 2; display: flex; justify-content: center; gap: .4rem; }
.slideshow__dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; transition: background .3s var(--ease), width .3s var(--ease); }
.slideshow__dots button:hover { background: rgba(255,255,255,.85); }
.slideshow__dots button.is-active { background: #fff; width: 18px; border-radius: 4px; }
.slideshow__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.88); color: var(--navy); display: grid; place-items: center; box-shadow: var(--shadow-md); opacity: .9; transition: opacity .25s var(--ease), background .2s var(--ease), transform .2s var(--ease); }
.slideshow:hover .slideshow__nav, .slideshow:focus-within .slideshow__nav { opacity: 1; }
.slideshow__nav:hover { background: #fff; }
.slideshow__nav--prev:hover { transform: translateY(-50%) translateX(-2px); }
.slideshow__nav--next:hover { transform: translateY(-50%) translateX(2px); }
.slideshow__nav--prev { left: .7rem; }
.slideshow__nav--next { right: .7rem; }
@media (hover: none) { .slideshow__nav { opacity: .92; } }
.frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.frame img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }
.about__badge { position: absolute; right: -1rem; bottom: -1.2rem; background: var(--navy); color: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 1rem 1.3rem; display: grid; gap: .15rem; }
.about__badge-k { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.about__badge-v { font-size: .76rem; color: rgba(255,255,255,.7); letter-spacing: .02em; }
.about__content { display: grid; gap: 1.25rem; justify-items: start; }
.checklist { display: grid; gap: .8rem; margin-top: .25rem; }
.checklist li { display: flex; align-items: flex-start; gap: .75rem; font-weight: 500; color: #243650; }
.check { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 5px; background: var(--accent); position: relative; }
.check::after { content: ""; position: absolute; left: 7px; top: 5px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* =====================================================================
   SERVIÇOS
   ===================================================================== */
.services { padding-block: clamp(4rem, 3rem + 5vw, 7rem); background: var(--bg-alt); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 2.2rem 1.9rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.service-card { display: grid; gap: .85rem; align-content: start; }
.service-card__icon { width: 54px; height: 54px; border-radius: var(--r); background: var(--navy); color: #fff; display: grid; place-items: center; transition: background .3s var(--ease); }
.card:hover .service-card__icon { background: var(--accent); }
.service-card__num { position: absolute; top: 1.6rem; right: 1.9rem; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--border-strong); }
.card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.card__text { color: var(--muted-fg); font-size: 1rem; }
.service-card--featured { border-color: var(--accent); border-width: 1px; box-shadow: 0 0 0 1px var(--accent), var(--shadow-md); }
.service-card--featured .service-card__icon { background: var(--accent); }
.service-card__flag { position: absolute; top: -11px; left: 1.9rem; font-family: var(--font-mono); font-size: .6rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--accent); padding: .3rem .6rem; border-radius: 4px; }

.systems { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.systems__label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-fg); }
.systems__list { display: flex; flex-wrap: wrap; gap: .55rem; }
.systems__list li { font-size: .9rem; font-weight: 500; color: #2a3b52; padding: .5rem .9rem; border-radius: 6px; background: var(--card); border: 1px solid var(--border); }

/* =====================================================================
   PROJETOS
   ===================================================================== */
.projects { padding-block: clamp(4rem, 3rem + 5vw, 7rem); }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2.4rem; }
.chip { font-size: .9rem; font-weight: 500; padding: .6rem 1.15rem; border-radius: 6px; border: 1px solid var(--border); color: #3a4a60; background: var(--card); transition: all .2s var(--ease); }
.chip:hover { border-color: var(--border-strong); color: var(--accent-ink); }
.chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.project { display: block; text-align: left; position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--border); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s var(--ease); }
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.project__media { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--muted); position: relative; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.project:hover .project__media img { transform: scale(1.05); }
.project__count { position: absolute; top: .8rem; left: .8rem; display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-mono); font-size: .68rem; font-weight: 500; color: #fff; background: rgba(10,26,46,.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); padding: .32rem .55rem; border-radius: 4px; }
.project__body { display: grid; gap: .35rem; padding: 1.2rem 1.3rem 1.4rem; }
.project__tag { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.project__name { font-family: var(--font-display); font-weight: 700; font-size: 1.16rem; line-height: 1.2; letter-spacing: -.01em; }
.project__local { font-size: .9rem; color: var(--muted-fg); }
.project__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: .3rem; font-size: .82rem; font-weight: 600; color: var(--accent-ink); }
.project__more svg { transition: transform .25s var(--ease); }
.project:hover .project__more svg { transform: translateX(3px); }
.project.is-hidden { display: none; }

/* =====================================================================
   CLIENTES
   ===================================================================== */
.clients { padding-block: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); background: var(--bg-alt); border-block: 1px solid var(--border); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__group li { display: flex; align-items: center; gap: 2.6rem; padding-left: 2.6rem; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, .9rem + .8vw, 1.45rem); letter-spacing: -.01em; color: #51637a; white-space: nowrap; }
.marquee__group li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .55; flex: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; row-gap: .4rem; }
  .marquee__group:last-child { display: none; }
}

/* =====================================================================
   CTA — escura
   ===================================================================== */
.cta { padding-block: clamp(4rem, 3rem + 5vw, 6.5rem); background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.section__texture { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle, rgba(255,255,255,.9) 1px, transparent 1px); background-size: 30px 30px; opacity: .04; }
.cta__inner { position: relative; display: grid; gap: 1.2rem; justify-items: center; text-align: center; max-width: 46rem; margin-inline: auto; }
.cta__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 1.4rem + 2.6vw, 3rem); line-height: 1.1; }
.cta__title .gradient-text { color: var(--accent-light); }
.cta__sub { color: rgba(255,255,255,.78); font-size: 1.1rem; max-width: 42ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; margin-top: .5rem; }

/* =====================================================================
   CONTATO + FORMULÁRIO
   ===================================================================== */
.contact { padding-block: clamp(4rem, 3rem + 5vw, 7rem); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: start; }
.contact__info { display: grid; gap: 1.4rem; align-content: start; }
.contact__channels { display: grid; gap: .9rem; }
.contact__channel { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--r); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.contact__channel:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.contact__channel-ico { flex: none; width: 42px; height: 42px; border-radius: 8px; background: var(--muted); color: var(--accent); display: grid; place-items: center; }
.contact__channel-txt { display: grid; gap: .05rem; }
.contact__channel-k { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-fg); }
.contact__channel-v { font-weight: 600; color: #243650; font-size: 1.02rem; }
.contact__address { display: flex; gap: .8rem; align-items: flex-start; color: #2a3b52; padding-top: .2rem; }
.contact__address svg { color: var(--accent); flex: none; margin-top: 2px; }
.contact__map { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); min-height: 240px; background: var(--muted); margin-top: .3rem; }
.contact__map iframe { width: 100%; height: 100%; min-height: 240px; border: 0; display: block; }
.contact__map-link { position: absolute; right: .8rem; bottom: .8rem; z-index: 2; display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; color: var(--fg); background: rgba(255,255,255,.95); padding: .6rem .9rem; border-radius: 999px; box-shadow: var(--shadow-md); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: transform .2s var(--ease), color .2s var(--ease); }
.contact__map-link:hover { transform: translateY(-2px); color: var(--accent-ink); }

/* Form */
.contact__form-wrap { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: clamp(1.6rem, 1rem + 2vw, 2.5rem); }
.form-title { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; margin-bottom: .3rem; }
.form-sub { color: var(--muted-fg); font-size: .96rem; margin-bottom: 1.5rem; }
.form { display: grid; gap: 1.05rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .82rem; font-weight: 600; color: #2a3b52; }
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
  font: inherit; font-size: .96rem; color: var(--fg);
  height: 50px; padding: 0 .9rem; border: 1px solid var(--border-strong); border-radius: var(--r);
  background: #fff; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); width: 100%;
}
.field textarea { height: auto; min-height: 120px; padding: .75rem .9rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9aa8b8; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,91,214,.14); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form__note { font-size: .82rem; color: var(--muted-fg); }
.form__feedback { font-size: .92rem; font-weight: 600; }
.form__feedback.ok { color: #1a9748; }
.form__feedback.err { color: #d23b3b; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); padding-block: 3.5rem 1.75rem; }
.site-footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; }
.footer-brand__mark { width: 44px; height: 44px; background: rgba(255,255,255,.06); border-radius: 22%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.footer-brand__text { display: flex; flex-direction: column; line-height: 1; }
.footer-brand__name { font-family: var(--font-logo); font-weight: 400; font-size: 1.26rem; letter-spacing: .005em; color: #fff; }
.footer-brand__sub { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .57rem; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 5px; }
.footer-brand__sub i { font-style: normal; }
.site-footer__brand p { max-width: 38ch; font-size: .94rem; }
.site-footer__h { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 1rem; }
.site-footer__nav, .site-footer__contact { display: grid; gap: .6rem; align-content: start; }
.site-footer__nav a, .site-footer__contact a { color: rgba(255,255,255,.78); width: fit-content; transition: color .2s var(--ease); }
.site-footer__nav a:hover, .site-footer__contact a:hover { color: #fff; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-top: 1.75rem; font-size: .82rem; color: rgba(255,255,255,.55); }

/* WhatsApp float */
.wa-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1FAE54; color: #fff; box-shadow: 0 8px 22px rgba(31,174,84,.42); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 32px rgba(31,174,84,.5); }

/* =====================================================================
   LIGHTBOX + GALERIA
   ===================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 1.5rem; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(6,14,26,.8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .25s var(--ease); }
.lightbox__dialog { position: relative; z-index: 1; width: min(1000px, 100%); max-height: 90vh; max-height: 90dvh; overflow: auto; display: grid; grid-template-columns: 1.3fr 1fr; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-xl); animation: pop .3s var(--ease); }
.lightbox__gallery { background: var(--navy); display: grid; grid-template-rows: 1fr auto; min-height: 320px; }
.lightbox__stage { position: relative; overflow: hidden; }
.lightbox__stage img { width: 100%; height: 100%; max-height: 70vh; max-height: 70dvh; object-fit: cover; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--fg); display: grid; place-items: center; box-shadow: var(--shadow-md); transition: background .2s var(--ease), transform .2s var(--ease); }
.lightbox__nav:hover { background: #fff; }
.lightbox__nav--prev { left: .7rem; }
.lightbox__nav--next { right: .7rem; }
.lightbox__nav[hidden] { display: none; }
.lightbox__counter { position: absolute; bottom: .7rem; right: .7rem; font-family: var(--font-mono); font-size: .7rem; color: #fff; background: rgba(10,26,46,.7); padding: .25rem .55rem; border-radius: 4px; }
.lightbox__thumbs { display: flex; gap: .5rem; padding: .7rem; overflow-x: auto; }
.lightbox__thumbs[hidden] { display: none; }
.lightbox__thumb { flex: none; width: 64px; height: 48px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; opacity: .6; transition: opacity .2s var(--ease), border-color .2s var(--ease); }
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__thumb.is-active { opacity: 1; border-color: #fff; }
.lightbox__meta { padding: 2.2rem 2rem; display: grid; gap: .7rem; align-content: center; }
.lightbox__tag { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.lightbox__name { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1.15; }
.lightbox__local { color: var(--muted-fg); font-weight: 500; margin-top: -.3rem; }
.lightbox__desc { color: #2c3e56; }
.lightbox__client { font-size: .92rem; color: var(--muted-fg); }
.lightbox__client strong { color: var(--fg); }
.lightbox__meta .btn { margin-top: .5rem; }
.lightbox__close { position: absolute; top: .7rem; right: .7rem; z-index: 3; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--fg); box-shadow: var(--shadow-md); transition: transform .2s var(--ease), background .2s var(--ease); }
.lightbox__close:hover { transform: rotate(90deg); background: #fff; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.99); } }

/* =====================================================================
   REVEAL
   ===================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-group].is-visible [data-reveal]:nth-child(1) { transition-delay: .02s; }
[data-reveal-group].is-visible [data-reveal]:nth-child(2) { transition-delay: .09s; }
[data-reveal-group].is-visible [data-reveal]:nth-child(3) { transition-delay: .16s; }
[data-reveal-group].is-visible [data-reveal]:nth-child(4) { transition-delay: .23s; }
[data-reveal-group].is-visible [data-reveal]:nth-child(5) { transition-delay: .30s; }
[data-reveal-group].is-visible [data-reveal]:nth-child(6) { transition-delay: .37s; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 980px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .about__grid { grid-template-columns: 1fr; gap: 4rem; }
  .about__media { max-width: 32rem; }
  .cards-3 { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(odd)::before { display: none; }
  .clients__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .lightbox__dialog { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .container { padding-inline: 1.25rem; }
  .header__actions > .btn { display: none; }
  .hero { min-height: 0; }
  .hero__inner { padding-block: 2.5rem 1.5rem; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1; }
  .project-grid { grid-template-columns: 1fr; }
  .clients__grid { grid-template-columns: 1fr 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .cta__actions { width: 100%; }
  .cta__actions .btn { flex: 1; }
  .section-head { margin-bottom: 2.4rem; }
  .lightbox__stage img { max-height: 38vh; max-height: 38dvh; }
}
@media (max-width: 560px) {
  .brand__sub { display: none; }
  .brand__name { font-size: 1.4rem; }
  .header__actions { gap: .5rem; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
}

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
