/* ===================================================
   TERRIÁ INCORPORADORA & CO. — Stylesheet
   Paleta oficial: terracota / browns / bege (brandbook)
   Fontes: Costaline (display) + Lenia Sans (body)
=================================================== */

/* Costaline — display / títulos (woff com itálicos nativos) */
@font-face { font-family: "Costaline"; src: url("../fonts/Costaline/Costaline-Thin.woff") format("woff"); font-weight: 100; font-style: normal; }
@font-face { font-family: "Costaline"; src: url("../fonts/Costaline/Costaline-ThinItalic.woff") format("woff"); font-weight: 100; font-style: italic; }
@font-face { font-family: "Costaline"; src: url("../fonts/Costaline/Costaline-ExtraLight.woff") format("woff"); font-weight: 200; font-style: normal; }
@font-face { font-family: "Costaline"; src: url("../fonts/Costaline/Costaline-ExtraLightItalic.woff") format("woff"); font-weight: 200; font-style: italic; }
@font-face { font-family: "Costaline"; src: url("../fonts/Costaline/Costaline-Light.woff") format("woff"); font-weight: 300; font-style: normal; }
@font-face { font-family: "Costaline"; src: url("../fonts/Costaline/Costaline-LightItalic.woff") format("woff"); font-weight: 300; font-style: italic; }
@font-face { font-family: "Costaline"; src: url("../fonts/Costaline/Costaline-Regular.woff") format("woff"); font-weight: 400; font-style: normal; }
@font-face { font-family: "Costaline"; src: url("../fonts/Costaline/Costaline-Italic.woff") format("woff"); font-weight: 400; font-style: italic; }
@font-face { font-family: "Costaline"; src: url("../fonts/Costaline/Costaline-Medium.woff") format("woff"); font-weight: 500; font-style: normal; }
@font-face { font-family: "Costaline"; src: url("../fonts/Costaline/Costaline-MediumItalic.woff") format("woff"); font-weight: 500; font-style: italic; }
@font-face { font-family: "Costaline"; src: url("../fonts/Costaline/Costaline-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; }
@font-face { font-family: "Costaline"; src: url("../fonts/Costaline/Costaline-SemiBoldItalic.woff") format("woff"); font-weight: 600; font-style: italic; }
@font-face { font-family: "Costaline"; src: url("../fonts/Costaline/Costaline-Bold.woff") format("woff"); font-weight: 700; font-style: normal; }
@font-face { font-family: "Costaline"; src: url("../fonts/Costaline/Costaline-BoldItalic.woff") format("woff"); font-weight: 700; font-style: italic; }
@font-face { font-family: "Costaline"; src: url("../fonts/Costaline/Costaline-ExtraBold.woff") format("woff"); font-weight: 800; font-style: normal; }
@font-face { font-family: "Costaline"; src: url("../fonts/Costaline/Costaline-ExtraBoldItalic.woff") format("woff"); font-weight: 800; font-style: italic; }
@font-face { font-family: "Costaline"; src: url("../fonts/Costaline/Costaline-Black.woff") format("woff"); font-weight: 900; font-style: normal; }
@font-face { font-family: "Costaline"; src: url("../fonts/Costaline/Costaline-BlackItalic.woff") format("woff"); font-weight: 900; font-style: italic; }

/* Lenia Sans — corpo de texto */
@font-face { font-family: "Lenia Sans"; src: url("../fonts/Lenia Sans/LeniaSans-Thin.ttf"); font-weight: 100; }
@font-face { font-family: "Lenia Sans"; src: url("../fonts/Lenia Sans/LeniaSans-ExtraLight.ttf"); font-weight: 200; }
@font-face { font-family: "Lenia Sans"; src: url("../fonts/Lenia Sans/LeniaSans-Light.ttf"); font-weight: 300; }
@font-face { font-family: "Lenia Sans"; src: url("../fonts/Lenia Sans/LeniaSans-Regular.ttf"); font-weight: 400; }
@font-face { font-family: "Lenia Sans"; src: url("../fonts/Lenia Sans/LeniaSans-Medium.ttf"); font-weight: 500; }
@font-face { font-family: "Lenia Sans"; src: url("../fonts/Lenia Sans/LeniaSans-SemiBold.ttf"); font-weight: 600; }
@font-face { font-family: "Lenia Sans"; src: url("../fonts/Lenia Sans/LeniaSans-Bold.ttf"); font-weight: 700; }
@font-face { font-family: "Lenia Sans"; src: url("../fonts/Lenia Sans/LeniaSans-ExtraBold.ttf"); font-weight: 800; }
@font-face { font-family: "Lenia Sans"; src: url("../fonts/Lenia Sans/LeniaSans-Black.ttf"); font-weight: 900; }

:root {
  /* Paleta oficial Terriá */
  --brown-deep:   #4F2C1D;   /* PANTONE 4625 C — fundo escuro, header */
  --brown-dark:   #5C3D31;   /* PANTONE 7596 C — variante escura */
  --brown-mid:    #83412C;   /* PANTONE 7601   — tom médio */
  --terracota:    #C66E4E;   /* PANTONE 7618 C — acento / destaque */
  --beige:        #E7CEB7;   /* PANTONEP 31-2 C — fundo claro */
  --warm-gray:    #7E7F74;   /* PANTONEP 416 C — texto secundário */
  --white:        #ffffff;
  --cream:        #FAF5F0;   /* off-white cálido */

  /* aliases semânticos */
  --black:        var(--brown-deep);
  --near-black:   #3a1e12;
  --off-white:    var(--cream);
  --gray:         var(--warm-gray);
  --accent:       var(--terracota);
  --line:         rgba(231, 206, 183, 0.15);
  --line-dark:    rgba(79, 44, 29, 0.12);

  --font-display: "Costaline", serif;
  --font-body:    "Lenia Sans", sans-serif;

  --container: 1240px;
  --transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--brown-deep);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

/* Desabilita glifos alternativos do Costaline globalmente
   (evita & virar símbolo da marca e números ornamentais) */
[class*="section-title"],
[class*="hero-title"],
[class*="page-hero-title"],
h1, h2, h3 {
  font-feature-settings: "calt" 0, "dlig" 0, "swsh" 0, "hist" 0, "ss01" 0, "ss02" 0, "ss03" 0;
  font-variant-ligatures: none;
  font-variant-numeric: lining-nums;
}

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

a { color: inherit; text-decoration: none; }

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

em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: inherit;
}

h1, h2, h3 {
  -webkit-font-smoothing: antialiased;
}

/* ===================== LOADER ===================== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader-mark {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.4em;
  opacity: 0.6;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.8; }
}
.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

/* ===================== HEADER ===================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 28px 0;
  transition: padding var(--transition), background var(--transition), box-shadow var(--transition);
}
.header.is-scrolled {
  padding: 16px 0;
  background: rgba(11, 11, 12, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--white);
}
.logo-dot { color: var(--accent); }

/* Logo image in header */
.logo-img {
  height: 48px;
  width: auto;
  display: block;
  transition: opacity var(--transition);
}
.logo-img--dark { display: none; }
.logo-img--white { display: block; }

/* When header scrolls on light page, swap logo */
.header.logo-inverted .logo-img--white { display: none; }
.header.logo-inverted .logo-img--dark  { display: block; }

/* Footer logo */
.footer-logo {
  height: 44px;
  width: auto;
  display: block;
  opacity: 0.85;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.8;
  position: relative;
  transition: opacity 0.3s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.35s ease;
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  opacity: 1;
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  background: var(--white);
  color: var(--black);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 24px;
  height: 1px;
  background: var(--white);
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===================== HERO REEL ===================== */
.hero-reel {
  height: 200vh; /* scroll driver — 2 painéis */
  background: #0d0805;
}

.hero-reel-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.hero-reel-track {
  display: flex;
  height: 100%;
  width: 200vw;
  will-change: transform;
}

.hero-reel-panel {
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  position: relative;
}

/* ── Film panel ── */
.hero-panel-film {
  background: #0d0805;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 100px var(--container-pad, 6vw) 80px;
  overflow: hidden;
}

.hero-film-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/img/film-bg.jpg');
  background-size: cover;
  background-position: center center;
  z-index: 0;
}
.hero-film-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,8,5,0.72) 0%,
    rgba(13,8,5,0.45) 50%,
    rgba(13,8,5,0.78) 100%
  );
}
.hero-film-top,
.hero-film-player,
.hero-reel-next {
  position: relative;
  z-index: 1;
}

.hero-film-top { text-align: center; }

.hero-film-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(26px, 3.2vw, 48px);
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 12px 0 16px;
  font-synthesis: none;
  font-feature-settings: "calt" 0, "dlig" 0, "swsh" 0, "hist" 0, "ss01" 0, "ss02" 0, "ss03" 0;
}

.hero-film-sub {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}

.hero-film-player {
  width: 100%;
  max-width: 820px;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}
.hero-film-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Ambient panel — reuses .hero styles, override height ── */
.hero-panel-ambient.hero {
  min-height: unset;
  height: 100vh;
}

/* Overlay mais forte para suprimir texto do vídeo */
.hero-panel-ambient .hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(11,11,12,0.65) 0%,
    rgba(11,11,12,0.45) 40%,
    rgba(11,11,12,0.92) 100%
  );
}

/* Crop das bordas superior e inferior do vídeo */
.hero-panel-ambient .hero-video {
  opacity: 0.38;
  transform: scale(1.2);
}

/* ── Next arrow ── */
.hero-reel-next {
  position: absolute;
  right: 5vw;
  bottom: 48px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}
.hero-reel-next:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.5);
}
.hero-reel-next svg { width: 20px; height: 20px; }

/* ── Nav dots ── */
.hero-reel-nav {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}
.hero-reel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.45);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, border-color 0.3s;
}
.hero-reel-dot.is-active {
  background: var(--white);
  border-color: var(--white);
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(11,11,12,0.82) 0%, rgba(11,11,12,0.45) 55%, rgba(11,11,12,0.1) 100%),
    linear-gradient(180deg, rgba(11,11,12,0.35) 0%, transparent 40%, rgba(11,11,12,0.5) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding-top: 120px;
  padding-bottom: 120px;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.5vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 780px;
}
.hero-accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 300;
}
.hero-subtitle {
  max-width: 480px;
  margin-top: 32px;
  font-size: 17px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
}
.hero-actions {
  margin-top: 48px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 36px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.35s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--white);
  color: var(--black);
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--black);
}
.btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--black);
}
.btn-block { width: 100%; }

/* Scroll cue */
/* ── Botão mute/unmute ── */
.hero-mute-btn {
  position: absolute;
  bottom: 100px;
  right: 40px;
  z-index: 201;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}
.hero-mute-btn:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.6); }
.hero-mute-btn svg { width: 16px; height: 16px; }

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 32px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  text-decoration: none;
}
.scroll-cue-line {
  width: 1px;
  height: 64px;
  background: rgba(255, 255, 255, 0.35);
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: var(--white);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  60% { transform: translateY(220%); }
  100% { transform: translateY(220%); }
}
.scroll-cue-text {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  opacity: 0.7;
}

/* ===================== SECTION COMMON ===================== */
section { position: relative; }
.section-label {
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.section-label--light { color: var(--accent); }
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 34px);
  line-height: 1.35;
  text-wrap: balance;
  color: var(--black);
}
.section-title--light { color: var(--white); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.section-intro {
  max-width: 360px;
  font-size: 15px;
  color: var(--gray);
}

/* ===================== ABOUT ===================== */
.about {
  padding: 140px 0;
  background: var(--off-white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.about-media-frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  background: var(--near-black);
}
.about-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-media {
  position: relative;
}
.about-media-tag {
  position: absolute;
  bottom: -22px;
  right: -22px;
  background: var(--black);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 18px 24px;
  max-width: 240px;
  border-radius: 4px;
}
.about-text {
  font-size: 16px;
  color: #44444a;
  margin-top: 24px;
  max-width: 540px;
}
.about-pillars {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.pillar-index {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.pillar h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
  white-space: nowrap;
}
.pillar p {
  font-size: 14px;
  color: var(--gray);
}

/* ===================== NUMBERS ===================== */
.numbers {
  background: var(--black);
  color: var(--white);
  padding: 140px 0;
}
.numbers .section-title { max-width: none; white-space: nowrap; margin-bottom: 80px; }
.contact .section-title { text-wrap: balance; max-width: 520px; }
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.number-item { border-left: 1px solid var(--line); padding-left: 24px; }
.number-value {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 600;
  color: var(--white);
}
.number-suffix {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  color: var(--accent);
}
.number-label {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 200px;
}

/* ===================== PROJECTS ===================== */
.projects { padding: 140px 0; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.project-card {
  group: project;
}
.project-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
  background: var(--off-white);
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--transition);
}
.project-card:hover .project-media img {
  transform: scale(1.06);
}
.project-status {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
}
.project-info {
  margin-top: 20px;
}
.project-info h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
}
.project-info p {
  font-size: 13px;
  color: var(--gray);
  margin-top: 4px;
}

/* ===================== DIFFERENTIALS ===================== */
.differentials {
  padding: 140px 0;
  background: var(--off-white);
}
.differentials .section-title { margin-bottom: 40px; white-space: nowrap; font-size: clamp(20px, 2.4vw, 36px); max-width: none; }
.partners .section-title { white-space: nowrap; font-size: clamp(18px, 2vw, 30px); max-width: none; margin: 0 auto 28px; }
.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
}
.diff-card {
  background: var(--off-white);
  padding: 48px 32px;
  transition: background var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.diff-card:hover { background: var(--white); }
.diff-number {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 40px;
}
.diff-card h3 {
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.3;
}
.diff-card p {
  font-size: 14px;
  color: #5c4a42;
  line-height: 1.75;
}

/* ===================== PARTNERS ===================== */
.partners {
  padding: 100px 0 48px;
  text-align: center;
}
.partners .section-label,
.partners .section-label,
.partners .section-title { text-align: center; }
.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.partner-logo {
  flex: 1 1 160px;
  max-width: 200px;
  padding: 28px 20px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s ease;
  opacity: 0.55;
}
.partner-logo:hover { opacity: 1; border-color: var(--brown-deep); }
.partner-logo svg { width: 100%; max-width: 120px; height: auto; }

/* ===================== CONTACT ===================== */
.contact {
  background: var(--black);
  color: var(--white);
  padding: 140px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.contact-text {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 420px;
}
.contact-details {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-details span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.contact-details a,
.contact-details p {
  font-size: 18px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.form-row input,
.form-row select,
.form-row textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.3s ease;
}
.form-row select option { color: var(--black); }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--accent);
}
.form-feedback {
  font-size: 13px;
  color: var(--accent);
  min-height: 18px;
}

/* ===================== FOOTER — Sinco-style mega footer ===================== */
.footer {
  background: var(--near-black);
  color: rgba(255, 255, 255, 0.65);
}
.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  max-width: var(--container);
  margin: 0 auto;
}
.footer-bar-social {
  display: flex;
  gap: 24px;
  font-size: 13px;
}
.footer-bar-social a {
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}
.footer-bar-social a:hover { color: var(--accent); }
.footer-bar-contact {
  display: flex;
  gap: 20px;
  font-size: 13px;
}
.footer-bar-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s;
}
.footer-bar-contact a:hover { color: var(--white); }
.footer-main {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px 32px 64px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.footer-logo { height: 36px; width: auto; }
.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  max-width: 200px;
  line-height: 1.6;
}
.footer-nav-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.footer-nav-cols::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--accent);
  opacity: 0.5;
  transform: translateX(-50%);
}
.footer-col { padding: 0 24px; }
.footer-col:first-child { padding-left: 0; }
.footer-col-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 20px;
  font-feature-settings: "calt" 0, "dlig" 0, "swsh" 0;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  transition: color 0.3s ease;
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 32px;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  flex-wrap: wrap;
  gap: 12px;
}

/* ===================== HOME PROJECTS — Cards retrato estilo referência ===================== */
.home-projects {
  background: var(--cream);
  padding: 100px 0;
}

.home-projects-head {
  margin-bottom: 64px;
}

.hpp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Card wrapper */
.hpp-card {
  display: flex;
  flex-direction: column;
}

.hpp {
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 3/4;
}

.hpp img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
  transition: filter 0.7s ease, transform 1.2s ease;
}
.hpp:hover img {
  filter: brightness(0.9);
  transform: scale(1.04);
}

/* Overlay marrom — some no hover */
.hpp-overlay {
  position: absolute;
  inset: 0;
  background: rgba(79,44,29,0.55);
  z-index: 1;
  transition: opacity 0.6s ease;
}
.hpp:hover .hpp-overlay { opacity: 0; }

/* Info box — sempre visível, bottom-left */
.hpp-info {
  position: absolute;
  bottom: 36px;
  left: 28px;
  right: 28px;
  z-index: 2;
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
}
.hpp:hover .hpp-info { transform: translateY(-20px); }

.hpp-info-cat {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  display: block;
}
.hpp-info-name {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.25;
  font-synthesis: none;
  font-feature-settings: "calt" 0, "dlig" 0, "swsh" 0, "hist" 0;
}
.hpp-info-loc {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 5px;
}

/* CTA — aparece no hover */
.hpp-cta-wrap {
  position: absolute;
  bottom: 20px;
  left: 28px;
  z-index: 2;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s 0.1s ease, transform 0.3s 0.1s ease;
}
.hpp:hover .hpp-cta-wrap { opacity: 1; transform: translateY(0); }

.hpp-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  color: var(--white);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.hpp-cta:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* Label abaixo da imagem */
.hpp-below {
  margin-top: 20px;
  text-align: center;
}
.hpp-below-cat {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 4px;
}
.hpp-below-year {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 300;
  color: var(--brown-deep);
  letter-spacing: -0.01em;
  font-feature-settings: "calt" 0, "dlig" 0, "swsh" 0;
}

/* ===================== HORIZONTAL SCROLL SECTION — Processo ===================== */
.hscroll-section {
  position: relative;
  height: 500vh;
}
.hscroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hscroll-track {
  display: flex;
  gap: 0;
  will-change: transform;
  /* largura calculada por JS */
}
.hscroll-panel {
  flex-shrink: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hscroll-panel--intro {
  background: var(--brown-deep);
  flex-direction: column;
  align-items: flex-start;
  padding: 0 10vw;
}
.hscroll-panel--intro .eyebrow {
  color: var(--accent);
  margin-bottom: 24px;
}
.hscroll-panel--intro h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 60px);
  color: var(--white);
  font-weight: 600;
  line-height: 1.3;
  max-width: 600px;
}
.hscroll-panel--intro p {
  margin-top: 24px;
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  max-width: 440px;
}
.hscroll-panel--project {
  background: var(--cream);
  padding: 0;
}
.hscroll-project-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hscroll-project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  transition: transform 1.2s var(--transition);
}
.hscroll-panel--project:hover .hscroll-project-img img {
  transform: scale(1.04);
}
.hscroll-project-info {
  position: relative;
  z-index: 2;
  padding: 0 10vw;
  color: var(--white);
}
.hscroll-project-num {
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 700;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  margin-bottom: -40px;
  display: block;
}
.hscroll-project-status {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hscroll-project-name {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 20px;
}
.hscroll-project-location {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
}
.hscroll-progress {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.hscroll-dot {
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,0.25);
  transition: background 0.4s ease, width 0.4s ease;
}
.hscroll-dot.is-active {
  background: var(--white);
  width: 40px;
}

/* ===================== HOME BLOG PREVIEW ===================== */
.home-blog {
  padding: 48px 0 120px;
  background: var(--white);
}
.home-blog .section-head { margin-bottom: 56px; }
.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.hblog-card { display: flex; flex-direction: column; }
.hblog-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 4px;
  background: var(--cream);
  margin-bottom: 24px;
}
.hblog-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s ease;
}
.hblog-card:hover .hblog-card-img img { transform: scale(1.05); }
.hblog-card-meta {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.hblog-card-title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--brown-deep);
  line-height: 1.45;
  margin-bottom: 12px;
  transition: color 0.3s;
}
.hblog-card:hover .hblog-card-title { color: var(--accent); }
.hblog-card-excerpt {
  font-size: 14px;
  color: var(--warm-gray);
  line-height: 1.75;
  flex: 1;
}
.hblog-card-link {
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brown-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s, color 0.3s;
}
.hblog-card-link::after { content: "→"; }
.hblog-card-link:hover { gap: 12px; color: var(--accent); }
.btn-outline-dark {
  border-color: var(--line-dark);
  color: var(--brown-deep);
}
.btn-outline-dark:hover {
  background: var(--brown-deep);
  color: var(--white);
  border-color: var(--brown-deep);
}

/* ===================== LUXURY UPGRADES ===================== */

/* Cursor personalizado */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s, height 0.3s, opacity 0.3s;
  mix-blend-mode: normal;
}
.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(198, 110, 78, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.3s, height 0.3s, opacity 0.3s;
}
.cursor.is-hover, .cursor-ring.is-hover {
  width: 56px;
  height: 56px;
  opacity: 0.6;
}

/* Linha divisória decorativa */
.section-divider {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin: 20px 0;
}

/* Texto marcado com sublinhado elegante */
.u-underline {
  position: relative;
  display: inline;
}
.u-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}
.u-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Reveal com delay em cascata */
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ===================== WHATSAPP BUTTON ===================== */
.whatsapp-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-btn svg {
  width: 28px;
  height: 28px;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

/* ===================== PROCESSO (vertical) ===================== */
.processo { padding: 120px 0; background: var(--white); }
.processo-head { margin-bottom: 80px; max-width: 900px; }
.processo-head .section-title { white-space: nowrap; }
.processo-intro { font-size: 16px; color: var(--warm-gray); line-height: 1.7; margin-top: 20px; }
.processo-steps { display: flex; flex-direction: column; gap: 80px; }
.processo-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.processo-step--rev .processo-step-media { order: 2; }
.processo-step--rev .processo-step-info { order: 1; }
.processo-step-media {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
}
.processo-step-media img { width: 100%; height: 100%; object-fit: cover; }
.processo-num {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 700;
  color: var(--cream);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.processo-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.processo-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  color: var(--brown-deep);
  margin-bottom: 16px;
  font-feature-settings: "calt" 0, "dlig" 0, "swsh" 0, "hist" 0, "ss01" 0, "ss02" 0, "ss03" 0;
}
.processo-text { font-size: 16px; color: var(--warm-gray); line-height: 1.75; max-width: 400px; }

/* ===================== BROKER CTA ===================== */
.broker-cta {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}
.broker-cta-bg {
  position: absolute;
  inset: 0;
}
.broker-cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.broker-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79,44,29,0.92) 0%, rgba(79,44,29,0.75) 100%);
}
.broker-cta-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.broker-cta-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 40px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.25;
  margin: 16px 0 24px;
  max-width: 700px;
  font-feature-settings: "calt" 0, "dlig" 0, "swsh" 0, "hist" 0, "ss01" 0, "ss02" 0, "ss03" 0;
}
.broker-cta-text {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 520px;
  text-align: center;
}
.broker-cta-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 64px; }
.broker-cta-stats { display: flex; gap: 56px; }
.broker-stat-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.broker-stat-label { font-size: 13px; color: rgba(255,255,255,0.55); letter-spacing: 0.05em; }

/* ===================== REVEAL ANIMATION ===================== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s var(--transition), transform 1s var(--transition);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-pillars { grid-template-columns: 1fr; gap: 28px; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 24px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .hpp-grid { grid-template-columns: repeat(2, 1fr); }
  .home-blog-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .processo-step, .processo-step--rev { grid-template-columns: 1fr; gap: 40px; }
  .processo-step--rev .processo-step-media { order: 0; }
  .processo-step--rev .processo-step-info { order: 0; }
  .broker-cta-stats { gap: 32px; }

  /* Footer */
  .footer-main { grid-template-columns: 1fr; gap: 48px; padding: 56px 32px; }
  .footer-nav-cols { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .footer-nav-cols::before { display: none; }
  .footer-col { padding: 0; }
}

@media (max-width: 760px) {
  .container { padding: 0 24px; }

  .nav { display: none; }
  .menu-toggle { display: flex; }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11, 11, 12, 0.97);
    padding: 24px 32px 32px;
    gap: 20px;
    backdrop-filter: blur(14px);
  }
  .nav-cta { display: inline-flex; align-self: center; }

  .projects-grid { grid-template-columns: 1fr; }
  .hpp-grid { grid-template-columns: 1fr; gap: 24px; }
  .home-blog-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .about-grid { gap: 40px; }
  .section-head { align-items: flex-start; }
  .about-media-tag { position: static; margin-top: 16px; }

  /* Títulos: permitir quebra de linha no mobile (desativa nowrap do desktop) */
  .numbers .section-title,
  .partners .section-title,
  .differentials .section-title,
  .processo-head .section-title,
  .pillar h3 { white-space: normal; }

  /* Tamanhos de título maiores e legíveis no mobile */
  .section-title { font-size: clamp(28px, 8vw, 40px); }
  .broker-cta-title { font-size: clamp(26px, 7.5vw, 36px); }
  .hero-title { font-size: clamp(30px, 8.5vw, 44px); }

  /* Footer bar e bottom empilham */
  .footer-bar { flex-direction: column; gap: 14px; align-items: flex-start; padding: 20px 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding: 24px; }

  /* Broker stats empilha */
  .broker-cta-stats { flex-wrap: wrap; gap: 28px 40px; justify-content: center; }

  /* Reduz padding vertical de seções pesadas */
  .about, .projects, .numbers, .home-projects, .home-blog, .partners { padding: 80px 0; }

  /* Logos de parceiros em 2 colunas no mobile */
  .partners-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .partner-logo { flex: none; max-width: none; padding: 24px 14px; }

  /* Esconde o scroll cue no mobile (ficava atrás dos botões) */
  .scroll-cue { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .numbers-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav-cols { grid-template-columns: 1fr; gap: 32px; }
  .number-item { border-left: none; padding-left: 0; }
}
