/* ==========================================================================
   RepoMH — Texas Hill Country Editorial
   Used mobile home sales in San Antonio
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color — warm, honest, Texas */
  --bg:          #F5F0E6;   /* warm bone */
  --bg-deep:    #EBE3D2;   /* deeper cream */
  --bg-card:    #FFFFFF;
  --ink:         #1F2A24;   /* deep forest near-black */
  --ink-soft:   #4A554E;
  --ink-quiet:  #8A8478;
  --line:        #D9CFB8;   /* cream line */
  --line-soft:  #E7DDC7;
  --accent:      #C8553D;   /* burnt sienna / clay */
  --accent-dark: #A4452F;
  --accent-soft: #F1D5CC;
  --gold:        #A88842;   /* aged brass */
  --green:       #4A6B4A;   /* sage — "approved" */
  --green-soft:  #DCE5DA;
  --error:       #B8351F;

  /* Type */
  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body:    'Geist', ui-sans-serif, system-ui, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, 'SF Mono', monospace;

  /* Scale (clamp for fluid type) */
  --fs-12:  0.75rem;
  --fs-14:  0.875rem;
  --fs-16:  1rem;
  --fs-18:  1.125rem;
  --fs-20:  1.25rem;
  --fs-24:  clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-32:  clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
  --fs-48:  clamp(2rem,  1.6rem + 1.8vw, 3rem);
  --fs-64:  clamp(2.5rem, 1.8rem + 3vw,  4rem);
  --fs-96:  clamp(3.25rem, 2rem + 5.5vw, 6rem);

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Container */
  --container-w: 1280px;
  --gutter:      1.5rem;

  /* Other */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;
  --shadow-soft: 0 1px 2px rgba(31,42,36,.04), 0 4px 16px rgba(31,42,36,.06);
  --shadow-lift: 0 4px 8px rgba(31,42,36,.06), 0 20px 40px rgba(31,42,36,.10);
  --ease:     cubic-bezier(.2,.7,.2,1);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px; /* offset for sticky header */
  overflow-x: hidden;
  width: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

img, svg, video, picture {
  display: block;
  max-width: 100%;
}

img, video { height: auto; }

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-quiet);
  display: inline-flex;
  align-items: center;
  gap: 0.5ch;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: var(--ink-quiet);
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--ink);
}

h1, .h1 {
  font-size: var(--fs-96);
  font-variation-settings: "opsz" 144, "SOFT" 80;
  line-height: 0.95;
}

h2, .h2 {
  font-size: var(--fs-64);
  line-height: 1.02;
}

h3, .h3 {
  font-size: var(--fs-48);
  line-height: 1.08;
}

h4, .h4 {
  font-size: var(--fs-32);
  line-height: 1.15;
}

.serif-italic {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.lede {
  font-size: var(--fs-20);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
}

.mono { font-family: var(--font-mono); }

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  padding-inline: var(--gutter);
  margin-inline: auto;
}

.section {
  padding-block: var(--sp-24);
  position: relative;
}

.section--tight { padding-block: var(--sp-16); }

@media (max-width: 720px) {
  .section { padding-block: var(--sp-16); }
  .section--tight { padding-block: var(--sp-12); }
}

.section-divider {
  height: 1px;
  background: var(--line);
}

.grid { display: grid; gap: var(--sp-8); }
.flex { display: flex; gap: var(--sp-4); align-items: center; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-dark {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-dark:hover { background: #000; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn-outline-light {
  background: transparent;
  color: var(--bg);
  border-color: var(--bg);
}
.btn-outline-light:hover {
  background: var(--bg);
  color: var(--ink);
}

.btn-lg {
  padding: 1.1rem 2rem;
  font-size: var(--fs-16);
}

.btn-arrow::after {
  content: "→";
  font-family: var(--font-mono);
  margin-left: 0.25rem;
  transition: transform .2s var(--ease);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. Header / Nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 230, 0.85);
  backdrop-filter: saturate(120%) blur(12px);
  -webkit-backdrop-filter: saturate(120%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 12, "SOFT" 50;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-text sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  padding: 0;
}

.nav-links a {
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-block: 4px;
}
.nav-links a:hover { color: var(--accent); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-phone {
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-phone:hover { color: var(--accent); }
.nav-phone svg { width: 14px; height: 14px; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -6px; left: 0; right: 0; }
.nav-toggle span::after  { position: absolute; top: 6px;  left: 0; right: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-links,
  .nav-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  /* On mobile the hamburger menu + sticky bottom bar carry the CTAs,
     so hide the inline header buttons entirely to prevent overflow. */
  .nav-actions .btn { display: none; }

  .nav {
    gap: 1rem;
    flex-wrap: nowrap;
  }
  .brand { min-width: 0; flex: 1; overflow: hidden; }
  .brand-text { font-size: 1.25rem; white-space: nowrap; }
  /* The "· San Antonio · Est. 2025" line is what was forcing the row
     wider than the screen — drop it on mobile. */
  .brand-text sub { display: none; }
  .nav-actions { flex-shrink: 0; }

  .mobile-menu {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--bg);
    padding: 2rem var(--gutter) 3rem;
    transform: translateY(-110%);
    transition: transform .35s var(--ease);
    z-index: 99;
    overflow-y: auto;
  }
  .mobile-menu[data-open="true"] { transform: translateY(0); }
  .mobile-menu ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-top: 1px solid var(--line);
  }
  .mobile-menu li { border-bottom: 1px solid var(--line); }
  .mobile-menu a {
    font-family: var(--font-display);
    font-size: 2rem;
    padding-block: 1rem;
    display: block;
    color: var(--ink);
  }
  .mobile-menu .mobile-actions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .mobile-menu .mobile-actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   7. Promo strip (above header)
   -------------------------------------------------------------------------- */
.promo-strip {
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-block: 0.625rem;
  text-align: center;
}
.promo-strip a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 600px) {
  .promo-strip {
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    padding-inline: var(--gutter);
    line-height: 1.5;
  }
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-top: var(--sp-16);
  padding-bottom: var(--sp-20);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--sp-12);
  align-items: end;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
  .hero { padding-top: var(--sp-12); padding-bottom: var(--sp-12); }
}

.hero-headline {
  font-size: var(--fs-96);
  line-height: 0.92;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144, "SOFT" 70;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.hero-sub {
  margin-top: 1.75rem;
  font-size: var(--fs-20);
  max-width: 48ch;
  color: var(--ink-soft);
  line-height: 1.55;
}

.hero-ctas {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-trust {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}
.hero-trust .dot {
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  min-height: 460px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-deep);
  box-shadow: var(--shadow-lift);
}

.hero-visual img,
.hero-visual .placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Layered hero card overlays */
.hero-stat-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-soft);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.04em;
}
.hero-stat-card .num {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: block;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.hero-stat-card.tl { top: 1.5rem; left: -1.5rem; }
.hero-stat-card.br { bottom: 1.5rem; right: -1.5rem; }

@media (max-width: 960px) {
  .hero-stat-card.tl { left: 1rem; }
  .hero-stat-card.br { right: 1rem; }
}

/* Placeholder home illustration */
.placeholder-img {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(168,136,66,.18), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(200,85,61,.15), transparent 55%),
    linear-gradient(135deg, #C5BA9F 0%, #8FA38C 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.placeholder-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0 6px,
      rgba(255,255,255,.04) 6px 7px
    );
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   9. Marquee (savings ticker)
   -------------------------------------------------------------------------- */
.marquee {
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  padding-block: 1.25rem;
  border-block: 1px solid var(--ink);
}

.marquee-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  font-variation-settings: "opsz" 60, "SOFT" 70;
}

.marquee-track span::after {
  content: "✦";
  color: var(--accent);
  font-size: 1.25em;
  margin-left: 3rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   10. Value props
   -------------------------------------------------------------------------- */
.values {
  background: var(--bg-deep);
  border-block: 1px solid var(--line);
}

.values-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: var(--sp-16);
  align-items: end;
}

@media (max-width: 768px) {
  .values-head { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: var(--sp-12); }
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: value;
}

@media (max-width: 900px) {
  .values-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.value-card {
  padding-top: 2rem;
  border-top: 1px solid var(--ink);
  position: relative;
  counter-increment: value;
}

.value-card::before {
  content: "0" counter(value);
  position: absolute;
  top: -1px;
  left: 0;
  background: var(--bg-deep);
  padding-right: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
  transform: translateY(-50%);
}

.value-card h3 {
  font-size: 2rem;
  line-height: 1.05;
  margin-bottom: 1rem;
  font-variation-settings: "opsz" 60, "SOFT" 60;
}

.value-card p {
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 36ch;
}

/* --------------------------------------------------------------------------
   11. Inventory grid
   -------------------------------------------------------------------------- */
.inventory-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: var(--sp-12);
  flex-wrap: wrap;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .inventory-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .inventory-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

.home-card {
  display: block;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

.home-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--ink);
}

.home-card-media {
  aspect-ratio: 4 / 3;
  background: var(--bg-deep);
  overflow: hidden;
  position: relative;
}

.home-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.home-card:hover .home-card-media img {
  transform: scale(1.03);
}

.home-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.home-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.home-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-variation-settings: "opsz" 60, "SOFT" 60;
  letter-spacing: -0.015em;
  line-height: 1.1;
  flex: 1;
  min-width: 0;
}

.home-card-price {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.home-card-monthly {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  color: var(--ink-quiet);
  letter-spacing: 0.04em;
  margin-top: 2px;
  display: block;
}

.home-card-specs {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  display: flex;
  gap: 1.25rem;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.home-card-specs span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.home-card-specs strong {
  color: var(--ink);
  font-weight: 500;
}

.home-card-tags {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--ink);
  border: 1px solid var(--line);
}

.tag-hot     { background: var(--accent); color: #fff; border-color: var(--accent); }
.tag-new     { background: var(--ink);    color: var(--bg); border-color: var(--ink); }
.tag-sold    { background: var(--ink-soft); color: var(--bg); border-color: var(--ink-soft); }
.tag-finance { background: var(--green-soft); color: var(--green); border-color: var(--green); }

/* --------------------------------------------------------------------------
   12. Financing section
   -------------------------------------------------------------------------- */
.financing {
  background: var(--ink);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}

.financing::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(200,85,61,.15), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(168,136,66,.12), transparent 50%);
  pointer-events: none;
}

.financing .container { position: relative; }

.financing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .financing-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.financing h2 {
  color: var(--bg);
  font-size: var(--fs-64);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.financing .lede {
  color: rgba(245,240,230,.75);
  font-size: var(--fs-18);
  max-width: none;
}

.financing-points {
  margin-top: 2rem;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.financing-points li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: var(--fs-16);
  color: rgba(245,240,230,.9);
}

.financing-points .check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Calculator widget */
.calc {
  background: var(--bg-card);
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lift);
}

.calc-eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.calc h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  font-variation-settings: "opsz" 60, "SOFT" 60;
}

.calc-row {
  margin-bottom: 1.25rem;
}

.calc-row label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin-bottom: 0.5rem;
}

.calc-row label .val {
  color: var(--ink);
  font-size: var(--fs-16);
  font-weight: 500;
  letter-spacing: 0;
}

.calc-row input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  outline: none;
}
.calc-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--bg-card);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.calc-row input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--bg-card);
}

.calc-result {
  background: var(--bg-deep);
  border-radius: var(--r-md);
  padding: 1.25rem;
  margin-top: 1.5rem;
  text-align: center;
}

.calc-result-label {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin-bottom: 0.25rem;
}

.calc-result-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
}

.calc-result-amount sub {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink-quiet);
  letter-spacing: 0.04em;
  vertical-align: baseline;
  margin-left: 0.4rem;
}

.calc-disclaimer {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-quiet);
  margin-top: 0.75rem;
  text-align: center;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   13. Process / How it works
   -------------------------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: var(--sp-12);
  counter-reset: step;
}

@media (max-width: 1024px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .process-grid { grid-template-columns: 1fr; }
}

.step {
  counter-increment: step;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  position: relative;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -1px;
  left: 0;
  background: var(--bg);
  padding-right: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  transform: translateY(-50%);
}

.step h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-variation-settings: "opsz" 60, "SOFT" 60;
}

.step p {
  color: var(--ink-soft);
  font-size: var(--fs-14);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   14. Testimonials
   -------------------------------------------------------------------------- */
.testimonials {
  background: var(--bg-deep);
  border-block: 1px solid var(--line);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: var(--sp-12);
}

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

.testimonial {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 2rem;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.35;
  font-variation-settings: "opsz" 60, "SOFT" 80;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.5rem;
  flex: 1;
}

.testimonial-quote::before {
  content: "“";
  display: block;
  font-size: 3rem;
  line-height: 0.6;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.testimonial-author strong {
  font-weight: 500;
  font-size: var(--fs-14);
}

.testimonial-author span {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  color: var(--ink-quiet);
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink);
}

details.faq-item {
  border-bottom: 1px solid var(--line);
  padding-block: 1.25rem;
}

details.faq-item summary {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-variation-settings: "opsz" 60, "SOFT" 60;
  letter-spacing: -0.005em;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  color: var(--ink);
}

details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .25s var(--ease);
}

details.faq-item[open] summary::after {
  transform: rotate(45deg);
}

details.faq-item p {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: var(--fs-16);
  line-height: 1.6;
  max-width: 60ch;
}

/* --------------------------------------------------------------------------
   16. Final CTA
   -------------------------------------------------------------------------- */
.final-cta {
  background: var(--accent);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.1), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(31,42,36,.15), transparent 50%);
  pointer-events: none;
}

.final-cta-inner {
  text-align: center;
  position: relative;
  padding-block: var(--sp-20);
}

.final-cta h2 {
  color: var(--bg);
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144, "SOFT" 70;
  margin-bottom: 1.5rem;
}

.final-cta h2 em {
  font-style: italic;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.final-cta p {
  font-size: var(--fs-18);
  max-width: 50ch;
  margin: 0 auto 2rem;
  color: rgba(245,240,230,.9);
}

.final-cta-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   17. Forms
   -------------------------------------------------------------------------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}

.field input,
.field select,
.field textarea {
  padding: 0.875rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  color: var(--ink);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--bg);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.form .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding-block: var(--sp-16) var(--sp-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: var(--sp-12);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

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

.footer-brand .brand-text { color: var(--bg); }
.footer-brand .brand-text sub { color: rgba(245,240,230,.5); }

.footer-brand p {
  color: rgba(245,240,230,.7);
  font-size: var(--fs-14);
  max-width: 38ch;
  line-height: 1.55;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,240,230,.5);
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-col li a {
  color: var(--bg);
  font-size: var(--fs-14);
  transition: color .2s var(--ease);
}
.footer-col li a:hover { color: var(--accent); }

.footer-col address {
  font-style: normal;
  font-size: var(--fs-14);
  color: rgba(245,240,230,.85);
  line-height: 1.6;
}

.footer-col .footer-phone {
  font-family: var(--font-mono);
  font-size: var(--fs-18);
  display: inline-block;
  margin-top: 0.25rem;
  color: var(--bg);
  font-weight: 500;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(245,240,230,.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.04em;
  color: rgba(245,240,230,.5);
}

.footer-bottom .legal {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   19. Gallery / Inventory page
   -------------------------------------------------------------------------- */
.page-header {
  padding-block: var(--sp-16) var(--sp-12);
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  font-size: var(--fs-96);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.page-header .lede {
  font-size: var(--fs-18);
  max-width: 55ch;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--sp-12);
  align-items: center;
}

.filter-label {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin-right: 0.5rem;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all .2s var(--ease);
}

.filter-btn:hover { border-color: var(--ink); }
.filter-btn.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* --------------------------------------------------------------------------
   20. Home Detail Page
   -------------------------------------------------------------------------- */
.detail-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.75rem;
  margin-bottom: var(--sp-12);
  aspect-ratio: 16 / 9;
  max-height: 640px;
}

@media (max-width: 768px) {
  .detail-gallery {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
  }
  .detail-gallery .gallery-main { aspect-ratio: 4/3; }
  .detail-gallery .gallery-side { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; aspect-ratio: auto; }
  .detail-gallery .gallery-side > * { aspect-ratio: 1; }
}

.gallery-main,
.gallery-thumb {
  background: var(--bg-deep);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-main img,
.gallery-thumb img,
.gallery-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}

.gallery-main:hover img,
.gallery-thumb:hover img {
  transform: scale(1.02);
}

.gallery-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0.75rem;
}

@media (min-width: 769px) {
  .gallery-side .gallery-thumb:nth-child(n+3) { display: none; }
}

.gallery-thumb.has-video::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  color: white;
  font-size: 2rem;
  pointer-events: none;
}

.gallery-more {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(31,42,36,.85);
  color: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 960px) {
  .detail-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.detail-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.02em;
  line-height: 1;
}

.detail-subtitle {
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  color: var(--ink-quiet);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.75rem;
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-block: 2rem;
  border-block: 1px solid var(--line);
  margin-bottom: 2rem;
}

@media (max-width: 600px) {
  .detail-specs { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

.spec {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}

.spec-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-variation-settings: "opsz" 60, "SOFT" 60;
  line-height: 1;
  color: var(--ink);
}

.detail-description {
  font-size: var(--fs-18);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 65ch;
  margin-bottom: 2.5rem;
}

.detail-features h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-variation-settings: "opsz" 60, "SOFT" 60;
}

.feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
}

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

.feature-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: var(--fs-14);
  color: var(--ink-soft);
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--line);
}

.feature-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}

/* Sticky inquiry card */
.inquiry-card {
  position: sticky;
  top: 100px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.inquiry-price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.inquiry-price .total {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  letter-spacing: -0.02em;
  line-height: 1;
}

.inquiry-price .monthly {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  color: var(--ink-quiet);
  letter-spacing: 0.04em;
}

.inquiry-card .btn { width: 100%; }
.inquiry-card .btn + .btn { margin-top: 0.5rem; }

.inquiry-card hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 1.5rem 0;
}

.inquiry-contact {
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--ink-soft);
}

.inquiry-contact a {
  display: block;
  color: var(--ink);
  font-size: var(--fs-18);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   21. Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(31,42,36,.95);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox[data-open="true"] {
  display: flex;
  animation: fadeIn .3s var(--ease);
}

.lightbox-media {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--r-md);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: var(--bg);
  color: var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: transform .2s var(--ease);
}

.lightbox-nav:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

@media (max-width: 600px) {
  .lightbox-nav { width: 44px; height: 44px; }
  .lightbox-prev { left: 0.75rem; }
  .lightbox-next { right: 0.75rem; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* --------------------------------------------------------------------------
   22. Reveal animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

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

/* --------------------------------------------------------------------------
   23. Mobile sticky CTA bar
   -------------------------------------------------------------------------- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(245,240,230,.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 0.75rem var(--gutter);
  gap: 0.5rem;
}

.mobile-cta .btn { flex: 1; padding: 0.875rem 1rem; font-size: var(--fs-14); }

@media (max-width: 720px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 80px; }
}

/* --------------------------------------------------------------------------
   24. Empty state
   -------------------------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding-block: var(--sp-16);
  color: var(--ink-quiet);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
}

.empty-state h3 {
  font-size: 1.5rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
