/* ==========================================================================
   Solidé Interiors — vanilla portable stylesheet
   Works from file://, localhost, or any web host.
   ========================================================================== */

:root {
  --soft-bone: #f5f1ea;
  --charcoal-espresso: #2b2623;
  --warm-taupe: #bba89a;
  --aged-bronze: #8c6a43;
  --warm-earth: #a67b5b;

  --text-body: #282623;
  --text-muted: #4a4a4a;
  --text-dim: #555;

  --line-medium: rgba(40, 38, 35, 0.15);
  --line-soft: rgba(40, 38, 35, 0.1);

  --ease-out: cubic-bezier(0.25, 1, 0.33, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --reveal-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --reveal-duration: 1.2s;

  --max-w: 1440px;
  --gutter: clamp(20px, 4vw, 64px);

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Raleway", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: local("Cormorant Garamond");
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: local("Raleway");
}

/* Load Google Fonts as fallback if local not present. Loaded async by
   using the classic <link> approach in the <head>. If offline / file://,
   the browser gracefully falls back to system serif/sans. */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html {
  scroll-behavior: smooth;
}

html, body {
  background: var(--soft-bone);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-weight: 300;
  overflow-x: hidden;
}

body { min-height: 100vh; }

::selection { background: var(--aged-bronze); color: var(--soft-bone); }

/* ==========================================================================
   Bilingual visibility — controlled by <html lang="en"|"es">.
   Uses `html[lang=...]` as anchor so specificity (0,0,1,1) always beats
   the display: block declarations on component classes (0,0,1,0), no
   matter their order in the stylesheet.
   ========================================================================== */
html[lang="en"] [data-lang="es"] { display: none !important; }
html[lang="es"] [data-lang="en"] { display: none !important; }
/* Fallback if <html> has no lang yet (very brief flash before JS boots) */
html:not([lang="en"]):not([lang="es"]) [data-lang="es"] { display: none !important; }

/* ==========================================================================
   Typography helpers
   ========================================================================== */
h1, h2, h3, h4, h5, .font-serif {
  font-family: var(--font-serif);
  font-weight: 300;
}
.italic { font-style: italic; }

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--warm-taupe);
  display: inline-block;
}

.display-2 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.005em;
}

.editorial-body {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.7;
  color: var(--text-muted);
}

.quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  line-height: 1.4;
  color: var(--warm-earth);
  border-left: 1px solid var(--warm-earth);
  padding-left: 24px;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container-edge {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ==========================================================================
   Reveal animations (IntersectionObserver-driven from app.js)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity var(--reveal-duration) var(--reveal-ease),
              transform var(--reveal-duration) var(--reveal-ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translate3d(0, 0, 0); }
.reveal--fade { transform: none; }
.reveal--slow { --reveal-duration: 1.6s; }
.reveal--delay-1 { transition-delay: 140ms; }
.reveal--delay-2 { transition-delay: 280ms; }
.reveal--delay-3 { transition-delay: 420ms; }
.reveal--delay-4 { transition-delay: 560ms; }
.reveal--delay-5 { transition-delay: 700ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

.img-zoom-wrap { overflow: hidden; }
.img-zoom {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block; transform: scale(1.02);
  transition: transform 1.6s var(--ease-out);
}
.is-visible .img-zoom { transform: scale(1); }

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--soft-bone);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 1; visibility: visible;
  transition: opacity 0.85s var(--ease-out), visibility 0.85s var(--ease-out);
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__content {
  width: 100%; max-width: 520px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 38px;
  transition: transform 0.85s var(--ease-out), opacity 0.85s var(--ease-out);
}
.preloader.is-done .preloader__content { transform: translateY(-14px); opacity: 0; }
.preloader__brand {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  animation: brand-rise 1.2s var(--ease-out) both;
}
@keyframes brand-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.preloader__brand-text {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(3rem, 9vw, 5.4rem);
  letter-spacing: 0.18em; color: var(--charcoal-espresso); line-height: 1;
  padding-left: 0.18em;
}
.preloader__brand-sub {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 10px; letter-spacing: 0.55em; text-transform: uppercase;
  color: var(--warm-taupe); padding-left: 0.55em;
}
.preloader__bar {
  width: 100%; max-width: 320px; height: 1px;
  background: rgba(40, 38, 35, 0.12); position: relative; overflow: hidden;
}
.preloader__bar-fill {
  position: absolute; inset: 0;
  background: var(--charcoal-espresso);
  transform-origin: left center; transform: scaleX(0);
  transition: transform 0.35s linear;
}
.preloader__meta {
  display: flex; justify-content: space-between; align-items: baseline;
  width: 100%; max-width: 320px;
  font-family: var(--font-sans); font-size: 10px;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--warm-taupe);
}
.preloader__pct {
  font-variant-numeric: tabular-nums;
  color: var(--charcoal-espresso); font-weight: 500;
}
.preloader__quote {
  font-family: var(--font-serif); font-style: italic;
  text-transform: none; letter-spacing: 0;
  font-size: 13px; color: var(--text-muted);
}

/* ==========================================================================
   Nav
   ========================================================================== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gutter);
  background: rgba(245, 241, 234, 0.65);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: var(--text-body);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out),
              box-shadow 0.35s var(--ease-out);
}
.site-nav.is-scrolled {
  background: rgba(245, 241, 234, 0.85);
  border-bottom-color: var(--line-medium);
  box-shadow: 0 1px 24px rgba(40, 38, 35, 0.05);
}
.site-nav__brand { display: inline-flex; align-items: center; text-decoration: none; color: inherit; cursor: pointer; line-height: 0; }
.site-nav__logo { height: 60px; width: auto; display: block; }

.site-nav__links { display: flex; gap: 38px; align-items: center; }
.site-nav__link {
  font-family: var(--font-sans); font-weight: 400;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: inherit; text-decoration: none; position: relative;
  padding: 6px 0; cursor: pointer; background: none; border: none;
}
.site-nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: currentColor;
  transition: width 0.4s var(--ease-out);
}
.site-nav__link:hover::after,
.site-nav__link[data-active="true"]::after { width: 100%; }

.site-nav__burger {
  display: none; width: 38px; height: 38px; padding: 0;
  background: transparent; border: none; position: relative; cursor: pointer; z-index: 101;
}
.site-nav__burger span {
  position: absolute; left: 8px; right: 8px; height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out), top 0.3s var(--ease-out);
}
.site-nav__burger span:nth-child(1) { top: 14px; }
.site-nav__burger span:nth-child(2) { top: 22px; }
.site-nav__burger.is-open span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.site-nav__burger.is-open span:nth-child(2) { top: 18px; transform: rotate(-45deg); }

@media (max-width: 720px) {
  .site-nav__links { display: none; }
  .site-nav__burger { display: block; }
  .site-nav { padding-left: 20px; padding-right: 20px; }
}

/* ==========================================================================
   Mobile menu
   ========================================================================== */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(43, 38, 35, 0.97);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--soft-bone);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 56px; padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease-out), visibility 0.45s var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__nav { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.mobile-menu__link {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(2.4rem, 8vw, 3.4rem); line-height: 1;
  color: var(--soft-bone);
  background: none; border: none; padding: 6px 0; cursor: pointer;
  position: relative;
  transform: translateY(20px); opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.6s var(--ease-out), color 0.3s var(--ease-out);
}
.mobile-menu__link::after {
  content: ""; position: absolute; left: 50%; bottom: -4px;
  width: 0; height: 1px; background: var(--warm-taupe);
  transform: translateX(-50%); transition: width 0.4s var(--ease-out);
}
.mobile-menu__link:hover { color: var(--warm-taupe); }
.mobile-menu__link:hover::after { width: 60%; }
.mobile-menu.is-open .mobile-menu__link { opacity: 1; transform: translateY(0); }
.mobile-menu.is-open .mobile-menu__link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: 0.18s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: 0.26s; }
.mobile-menu__lang {
  font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--warm-taupe);
  background: transparent; border: 1px solid rgba(245, 241, 234, 0.3);
  padding: 14px 32px; cursor: pointer;
  transition: all 0.3s var(--ease-out);
  opacity: 0; transform: translateY(20px);
}
.mobile-menu.is-open .mobile-menu__lang {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.6s var(--ease-out) 0.36s, transform 0.6s var(--ease-out) 0.36s,
              background 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.mobile-menu__lang:hover { background: var(--soft-bone); color: var(--charcoal-espresso); border-color: var(--soft-bone); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; width: 100%;
  display: flex; align-items: flex-end;
  background: var(--charcoal-espresso); overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  will-change: transform; transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}
.hero__bg-media {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(43, 38, 35, 0.35) 0%,
    rgba(43, 38, 35, 0.05) 35%,
    rgba(43, 38, 35, 0.55) 100%);
  z-index: 1; pointer-events: none;
}
.hero__content {
  position: relative; z-index: 2;
  padding: 0 var(--gutter) 8vh;
  width: 100%; color: var(--soft-bone);
}
.hero__panel {
  display: inline-block;
  background: rgba(30, 26, 24, 0.52);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  padding: clamp(22px, 2.7vw, 42px) clamp(26px, 3.5vw, 50px);
  /* Ancho suficiente para acomodar la primera línea del título en su idioma
     más largo (ES: "Espacios de los que nunca") en una sola línea. */
  max-width: min(820px, 92%);
  border: 1px solid rgba(245, 241, 234, 0.08);
}
.hero__eyebrow {
  font-family: var(--font-sans); font-weight: 400;
  font-size: clamp(9px, 0.85vw, 11px);
  letter-spacing: 0.3em; text-transform: uppercase;
  margin-bottom: 18px; opacity: 0.95;
}
.hero__title {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(1.7rem, 4.4vw, 3.9rem);
  line-height: 1.05; letter-spacing: -0.01em;
  color: var(--soft-bone);
}
/* Primera línea del título — nunca se parte. Fuerza el ancho del panel. */
.hero__title-line { display: inline-block; white-space: nowrap; }
@media (max-width: 560px) {
  /* En mobile, permitimos wrap para que no se salga de la pantalla. */
  .hero__title-line { white-space: normal; }
}
/* Contraste tipográfico dentro del título: regular + cursiva, mismo color.
   Sigue el mismo patrón editorial del About (serif regular + serif italic)
   sin quiebre de color — la tipografía sola crea la jerarquía. */
.hero__title em,
.hero__title strong,
.hero__title b {
  font-style: italic;
  font-weight: 300;
  color: inherit;
}
.hero__meta {
  margin-top: 22px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(9px, 0.85vw, 11px);
  letter-spacing: 0.25em; text-transform: uppercase; opacity: 0.92;
}
.hero__scroll-cue {
  position: absolute; bottom: 28px; right: var(--gutter);
  z-index: 3; color: var(--soft-bone);
  font-family: var(--font-sans); font-size: 10px;
  letter-spacing: 0.3em; text-transform: uppercase;
  display: flex; align-items: center; gap: 12px;
  opacity: 0.7;
  animation: cue 2.6s var(--ease-in-out) infinite;
}
.hero__scroll-cue::after {
  content: ""; width: 1px; height: 40px; background: var(--soft-bone); display: inline-block;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(8px); opacity: 1; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
  position: relative;
  padding: 18vh 0 14vh;
  background: var(--soft-bone);
  overflow: hidden; isolation: isolate;
}
.about__bg {
  position: absolute; inset: 0; z-index: 0; opacity: 0.25; pointer-events: none;
  background:
    repeating-radial-gradient(circle at 30% 40%, rgba(140,106,67,0.08) 0, rgba(140,106,67,0) 40%),
    repeating-radial-gradient(circle at 70% 60%, rgba(166,123,91,0.06) 0, rgba(166,123,91,0) 45%);
}
.about > .container-edge { position: relative; z-index: 1; }
.about__grid {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 100px); align-items: start;
}
/* Prevent long titles (Spanish is often longer than English) from
   inflating the text column and squeezing the portrait column. */
.about__grid > * { min-width: 0; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; gap: 48px; } }

.about__portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden; background: #fff; padding: 28px;
}
.about__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

.about__text { position: sticky; top: 14vh; }

.about__eyebrow {
  color: var(--charcoal-espresso);
  font-weight: 600; font-size: 12px; letter-spacing: 0.32em;
  margin-bottom: 4px;
}
.about__title {
  margin-top: 18px; margin-bottom: 40px;
  font-size: clamp(2.1rem, 4.6vw, 4.2rem);
  line-height: 1.05; color: var(--charcoal-espresso);
}
/* The title lines used to be nowrap. We keep them as blocks (each on its
   own line) but ALLOW natural wrap so a longer language never forces the
   text column to expand and shrink the portrait next to it. */
.about__title-line { display: block; }
.about__title-line--em { font-style: italic; color: var(--aged-bronze); }
.about__paras p { font-size: clamp(0.98rem, 1.1vw, 1.15rem); color: var(--text-body); }
.about__paras p + p { margin-top: 18px; }
.about__quote { margin-top: 40px; font-size: clamp(1.15rem, 1.5vw, 1.4rem); }

/* ==========================================================================
   Projects
   ========================================================================== */
.projects {
  background: var(--soft-bone);
  border-top: 1px solid var(--line-soft);
  padding: 14vh 0 0;
}
.projects__intro {
  margin-bottom: 100px;
  display: grid; grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 100px); align-items: end;
}
@media (max-width: 900px) { .projects__intro { grid-template-columns: 1fr; gap: 32px; } }
.projects__intro p {
  font-family: var(--font-sans);
  font-size: 0.95rem; line-height: 1.7; color: var(--text-dim); max-width: 50ch;
}

.project-case { padding: 12vh 0; border-top: 1px solid var(--line-soft); }
.project-case__head {
  display: grid; grid-template-columns: 4fr 8fr;
  gap: clamp(40px, 6vw, 100px); align-items: end; margin-bottom: 80px;
}
@media (max-width: 900px) { .project-case__head { grid-template-columns: 1fr; gap: 28px; } }
.project-case__meta { display: flex; flex-direction: column; gap: 14px; }
.project-case__num {
  font-family: var(--font-sans); font-size: 11px; color: var(--warm-taupe);
  letter-spacing: 0.3em; text-transform: uppercase;
}
.project-case__location {
  font-family: var(--font-sans); font-size: 11px;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--text-body); font-weight: 500;
}
.project-case__title { font-size: clamp(2.6rem, 5.2vw, 4.4rem); }
.project-case__title em { font-style: italic; color: var(--aged-bronze); }
.project-case__title-em { white-space: nowrap; display: inline-block; }
@media (max-width: 700px) { .project-case__title-em { white-space: normal; } }

.project-case__body {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 100px); margin-bottom: 100px;
}
@media (max-width: 900px) { .project-case__body { grid-template-columns: 1fr; } }
.project-case__body .quote { margin-top: 24px; }

.project-case__featured { display: flex; flex-direction: column; gap: 18px; margin-bottom: 80px; }
.project-case__pairs { display: flex; flex-direction: column; gap: 96px; }
.project-case__pair { display: flex; flex-direction: column; gap: 18px; }
.project-case__pair-label {
  font-family: var(--font-sans); font-size: 11px;
  letter-spacing: 0.32em; text-transform: uppercase; font-weight: 600;
  color: var(--warm-taupe); display: block;
}
.project-case__pair-body { max-width: 68ch; margin-top: 10px; }

/* Church showcase gallery */
.project-case__showcase { margin-top: 80px; display: flex; flex-direction: column; gap: 32px; }
.project-case__showcase-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 900px) { .project-case__showcase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .project-case__showcase-grid { grid-template-columns: 1fr; } }
.project-case__showcase-item {
  aspect-ratio: 4 / 3; overflow: hidden; background: var(--charcoal-espresso);
}

/* ==========================================================================
   Before / After compare slider
   ========================================================================== */
.compare {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  overflow: hidden; background: var(--charcoal-espresso);
  user-select: none; cursor: grab; touch-action: pan-y;
}
.compare.is-dragging { cursor: grabbing; }
.compare__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block;
}
.compare__after { z-index: 1; }
.compare__before { z-index: 2; }
.compare__handle {
  position: absolute; top: 0; bottom: 0;
  width: 2px; background: var(--soft-bone);
  z-index: 3; pointer-events: none;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
}
.compare__handle-grip {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border: 1.5px solid var(--soft-bone);
  background: rgba(43, 38, 35, 0.55); color: var(--soft-bone);
  border-radius: 50%;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s var(--ease-out), background 0.35s var(--ease-out);
}
.compare:hover .compare__handle-grip,
.compare.is-dragging .compare__handle-grip {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(43, 38, 35, 0.75);
}
.compare__label {
  position: absolute; top: 22px; z-index: 4;
  font-family: var(--font-sans); font-size: 11px;
  letter-spacing: 0.32em; text-transform: uppercase; font-weight: 600;
  color: var(--soft-bone);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 0 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}
.compare__label--before { left: 22px; }
.compare__label--after  { right: 22px; }
.compare__hint {
  position: absolute; bottom: 18px; left: 50%;
  transform: translateX(-50%); z-index: 4;
  font-family: var(--font-sans); font-size: 10px;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(245, 241, 234, 0.72);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  animation: compareHintPulse 3s ease-in-out infinite;
}
@keyframes compareHintPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.85; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  position: relative;
  padding: 18vh 0 12vh;
  background: var(--charcoal-espresso); color: var(--soft-bone);
  border-top: 1px solid rgba(245, 241, 234, 0.08);
  overflow: hidden; isolation: isolate;
}
.contact__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 30% 40%, rgba(166, 123, 91, 0.5), rgba(140, 106, 67, 0) 65%),
    radial-gradient(55% 65% at 70% 60%, rgba(187, 168, 154, 0.35), rgba(187, 168, 154, 0) 70%),
    radial-gradient(45% 55% at 85% 20%, rgba(140, 106, 67, 0.35), rgba(140, 106, 67, 0) 65%),
    linear-gradient(115deg, rgb(43, 38, 35) 0%, rgb(28, 23, 20) 100%);
  mix-blend-mode: normal;
}
.contact::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgba(43, 38, 35, 0.35) 0%,
    rgba(43, 38, 35, 0) 18%,
    rgba(43, 38, 35, 0) 82%,
    rgba(43, 38, 35, 0.45) 100%);
  pointer-events: none;
}
.contact > .container-edge { position: relative; z-index: 2; }

.contact__grid {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 8vw, 120px); align-items: start;
}
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; gap: 60px; } }

.contact__head { position: sticky; top: 12vh; }
.contact__eyebrow {
  color: var(--warm-taupe) !important;
  font-size: 12px !important; font-weight: 600 !important;
}
.contact__title {
  margin-top: 20px; color: var(--soft-bone);
  font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1;
}
.contact__lead {
  margin-top: 28px;
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.15rem, 1.4vw, 1.35rem); line-height: 1.5;
  color: rgba(245, 241, 234, 0.9); max-width: 42ch;
}
.contact__direct {
  display: flex; flex-direction: column; gap: 18px;
  margin-top: 44px; padding-top: 32px;
  border-top: 1px solid rgba(245, 241, 234, 0.15);
}
.contact__direct-item {
  display: flex; flex-direction: column; gap: 4px;
  color: var(--soft-bone); text-decoration: none;
  transition: color 0.25s var(--ease-out), transform 0.35s var(--ease-out);
}
.contact__direct-item:hover { color: var(--warm-taupe); transform: translateX(4px); }
.contact__direct-label {
  font-family: var(--font-sans); font-size: 10px;
  letter-spacing: 0.32em; text-transform: uppercase; font-weight: 500;
  color: rgba(245, 241, 234, 0.55);
}
.contact__direct-value {
  font-family: var(--font-serif);
  font-size: 1.35rem; font-weight: 400; letter-spacing: 0.01em;
}

.contact__quiz { display: flex; flex-direction: column; gap: 38px; }
.quiz-group__label {
  display: block;
  font-family: var(--font-sans); font-size: 12px;
  letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600;
  color: var(--warm-taupe); margin-bottom: 16px;
}
.quiz-options { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz-pill {
  flex: 1 1 auto; min-width: 180px;
  padding: 16px 20px;
  background: rgba(245, 241, 234, 0.04);
  border: 1px solid rgba(245, 241, 234, 0.22);
  color: var(--soft-bone);
  font-family: var(--font-sans); font-size: 13.5px;
  font-weight: 400; line-height: 1.4; text-align: left;
  cursor: pointer;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  border-radius: 2px;
}
.quiz-pill:hover { background: rgba(245, 241, 234, 0.08); border-color: rgba(245, 241, 234, 0.5); transform: translateY(-1px); }
.quiz-pill.selected {
  border-color: var(--warm-taupe);
  background: rgba(187, 168, 154, 0.16);
  color: var(--soft-bone); font-weight: 500;
}
.quiz-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 560px) { .quiz-row { grid-template-columns: 1fr; } }
.quiz-input {
  width: 100%; background: transparent;
  border: none; border-bottom: 1px solid rgba(245, 241, 234, 0.32);
  padding: 16px 0;
  font-family: var(--font-sans); font-size: 15px;
  color: var(--soft-bone); outline: none;
  transition: border-color 0.3s var(--ease-out);
}
.quiz-input::placeholder { color: rgba(245, 241, 234, 0.5); letter-spacing: 0.03em; }
.quiz-input:focus { border-bottom-color: var(--warm-taupe); }
.quiz-textarea {
  resize: none;
  border: 1px solid rgba(245, 241, 234, 0.22);
  padding: 16px;
  background: rgba(245, 241, 234, 0.04);
  border-radius: 2px; min-height: 90px;
}
.quiz-textarea:focus { border-color: var(--warm-taupe); background: rgba(245, 241, 234, 0.06); }

.contact__submit-row { margin-top: 18px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.contact__submit {
  background: var(--soft-bone); color: var(--charcoal-espresso);
  border: 1px solid var(--soft-bone);
  padding: 18px 40px;
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
  border-radius: 2px;
}
.contact__submit:hover { background: transparent; color: var(--soft-bone); }
.contact__submit:disabled { opacity: 0.6; cursor: not-allowed; }
.contact__whatsapp {
  font-family: var(--font-sans); font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(245, 241, 234, 0.8); text-decoration: none;
  padding: 12px 4px; border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.contact__whatsapp:hover { color: var(--warm-taupe); border-bottom-color: var(--warm-taupe); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 80px var(--gutter) 40px;
  background: var(--charcoal-espresso); color: var(--soft-bone);
  border-top: 1px solid rgba(245, 241, 234, 0.08);
}
.site-footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 60px; margin-bottom: 60px;
}
@media (max-width: 700px) { .site-footer__grid { grid-template-columns: 1fr; gap: 40px; } }
.site-footer__brand {
  font-family: var(--font-serif); font-size: 2.2rem;
  letter-spacing: 0.06em; margin-bottom: 14px;
}
.site-footer__tag {
  font-family: var(--font-serif); font-style: italic;
  font-size: 1.1rem; color: rgba(245, 241, 234, 0.6);
}
.site-footer__col h5 {
  font-family: var(--font-sans); font-size: 10px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--warm-taupe); margin-bottom: 18px; font-weight: 500;
}
.site-footer__col ul { list-style: none; }
.site-footer__col li { margin-bottom: 10px; }
.site-footer__col a, .site-footer__col button {
  font-family: var(--font-sans); font-size: 13px;
  color: rgba(245, 241, 234, 0.85);
  text-decoration: none;
  background: none; border: none; padding: 0; cursor: pointer;
  transition: color 0.3s var(--ease-out);
}
.site-footer__col a:hover, .site-footer__col button:hover { color: var(--soft-bone); }
.site-footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(245, 241, 234, 0.08);
  font-family: var(--font-sans); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(245, 241, 234, 0.5);
}
@media (max-width: 700px) {
  .site-footer__bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* ==========================================================================
   Modal (thank-you)
   ========================================================================== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(43, 38, 35, 0.94);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal {
  background: var(--soft-bone);
  padding: 60px 50px;
  max-width: 500px; width: 100%; text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}
.modal p {
  font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.5;
  color: var(--text-body); margin-bottom: 30px;
}
.modal p strong { font-weight: 400; color: var(--aged-bronze); }
.modal button {
  padding: 14px 32px;
  background: transparent; border: 1px solid var(--text-body);
  font-family: var(--font-sans); font-size: 11px;
  letter-spacing: 0.25em; text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}
.modal button:hover { background: var(--text-body); color: var(--soft-bone); }
