/* =========================================================
   JAMES CLYDE HOMES — REDESIGN
   Design system • Modern, editorial, generous whitespace
   ========================================================= */

/* ---- Tokens ---- */
:root {
  /* Color */
  --ink: var(--bg, #0f1620);            /* near-black for headlines */
  --ink-2: #1F2937;
  --slate: #5B6573;          /* body copy */
  --slate-2: #8A93A0;        /* muted/meta */
  --line: #E6E4DF;           /* hairlines */
  --line-2: #EFEDE7;
  --paper: #FAF7F2;          /* warm cream */
  --paper-2: #F4F0E9;
  --white: var(--ink, #ffffff);

  --brand: #5E7A99;          /* refined JCH blue */
  --brand-deep: #3E5876;
  --brand-soft: #E8EEF4;

  --gold: var(--brand, #b89968);           /* warm metallic accent */
  --gold-soft: #E8DCC5;

  /* Type */
  --serif: "Cormorant Garamond", "Cormorant", "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  /* Spacing rhythm */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --s-11: 160px;

  /* Layout */
  --max: 1440px;
  --max-text: 720px;
  --pad: clamp(20px, 4vw, 56px);

  /* Motion */
  --ease: cubic-bezier(.2, .65, .25, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 200ms;
  --t-med: 420ms;
  --t-slow: 800ms;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(15,22,32,.04), 0 2px 8px rgba(15,22,32,.04);
  --shadow-md: 0 4px 18px rgba(15,22,32,.06), 0 24px 48px -16px rgba(15,22,32,.10);
  --shadow-lg: 0 40px 80px -32px rgba(15,22,32,.25);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
button { font-family:var(--font-display, inherit); cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
input, textarea, select { font: inherit; color: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.01em;
  margin: 0;
  line-height: 1.05;
}
.h-display { font-size: clamp(48px, 7.5vw, 112px); line-height: .96; letter-spacing: -.025em; }
.h-1 { font-size: clamp(40px, 5.5vw, 76px); line-height: 1.02; letter-spacing: -.02em; }
.h-2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -.015em; }
.h-3 { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.15; }
.h-4 { font-size: clamp(20px, 2vw, 24px); line-height: 1.25; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--slate-2);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}
.eyebrow.no-rule::before { display: none; }

p { margin: 0 0 1em; max-width: 62ch; }
p.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: var(--ink-2); max-width: 56ch; }
.italic-serif { font-family: var(--serif); font-style: italic; font-weight: 300; }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.container-wide {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.container-text {
  max-width: var(--max-text);
  margin-left: auto;
  margin-right: auto;
}
section { padding-block: clamp(80px, 11vw, 160px); }
.section-tight { padding-block: clamp(56px, 7vw, 96px); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 36px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2vw, 32px); }
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  transition: all var(--t-med) var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); transform: translateY(-1px); }
.btn .arrow { width: 14px; height: 14px; transition: transform var(--t-med) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-light:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-sm { padding: 12px 20px; font-size: 11px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  transition: all var(--t-fast) var(--ease);
}
.link-arrow svg { width: 14px; transition: transform var(--t-med) var(--ease); }
.link-arrow:hover { color: var(--brand-deep); }
.link-arrow:hover svg { transform: translateX(4px); }

/* =========================================================
   HEADER — Two-row layout
   Row 1: logo + social + phone + CTA
   Row 2: main navigation (centered)
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: background var(--t-med) var(--ease), border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}

/* On-photo state: transparent over hero with dark gradient overlay */
.site-header.on-photo {
  background: transparent;
  border-bottom-color: rgba(255,255,255,.12);
}
.site-header.on-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,22,32,.7), rgba(15,22,32,0));
  pointer-events: none;
  z-index: -1;
}

/* Scrolled — always solid white regardless of on-photo */
.site-header.scrolled {
  background: rgba(255,255,255,.96);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -12px rgba(15,22,32,.08);
}
.site-header.scrolled::before { display: none; }

/* ----- Row 1: Utility ----- */
.header-utility {
  padding: 18px 0;
  transition: padding var(--t-med) var(--ease);
}
.site-header.scrolled .header-utility { padding: 12px 0; }
.header-utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; }
.logo-mark {
  height: 64px;
  width: auto;
  display: block;
  transition: height var(--t-med) var(--ease), filter var(--t-med) var(--ease);
}
.site-header.scrolled .logo-mark { height: 48px; }
/* Logo color: solid dark navy by default, original white on photo */
.site-header .logo-mark {
  filter: brightness(0) saturate(100%) invert(8%) sepia(35%) saturate(1600%) hue-rotate(190deg) brightness(95%) contrast(98%);
}
.site-header.on-photo:not(.scrolled) .logo-mark { filter: none; }

.utility-right { display: flex; align-items: center; gap: 22px; }

.header-social { display: flex; gap: 10px; }
.header-social a {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  transition: all var(--t-fast) var(--ease);
}
.header-social a:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.header-social svg { width: 13px; height: 13px; }
.site-header.on-photo:not(.scrolled) .header-social a { color: var(--white); border-color: rgba(255,255,255,.35); }
.site-header.on-photo:not(.scrolled) .header-social a:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink);
  white-space: nowrap;
}
.site-header.on-photo:not(.scrolled) .nav-phone { color: var(--white); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all var(--t-med) var(--ease);
}
.nav-cta:hover { background: var(--ink); color: var(--white); }
.site-header.on-photo:not(.scrolled) .nav-cta { color: var(--white); border-color: rgba(255,255,255,.45); }
.site-header.on-photo:not(.scrolled) .nav-cta:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ----- Row 2: Main Nav (centered) ----- */
.header-nav {
  border-top: 1px solid var(--line);
  padding: 14px 0;
  transition: padding var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.site-header.on-photo:not(.scrolled) .header-nav { border-top-color: rgba(255,255,255,.14); }
.site-header.scrolled .header-nav { padding: 10px 0; }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
}
.nav-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  position: relative;
  padding: 6px 0;
}
.site-header.on-photo:not(.scrolled) .nav-link { color: var(--white); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--t-med) var(--ease);
  transform: translateX(-50%);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
  background: var(--gold);
  color: var(--ink);
  border-radius: 4px;
  vertical-align: middle;
}

/* ----- Mobile toggle ----- */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.site-header.on-photo:not(.scrolled) .nav-toggle span,
.site-header.on-photo:not(.scrolled) .nav-toggle span::before,
.site-header.on-photo:not(.scrolled) .nav-toggle span::after { background: var(--white); }

/* ----- Responsive collapse ----- */
@media (max-width: 1280px) { .nav-links { gap: 32px; } }
@media (max-width: 1100px) { .header-social { display: none; } }
@media (max-width: 960px) {
  .nav-phone { display: none; }
  .header-nav { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .nav-cta { display: none; }
  .logo-mark { height: 52px; }
}

/* ---- Mobile menu ---- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 60;
  display: none;
  padding: 100px var(--pad) 40px;
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.mobile-menu.open { display: block; opacity: 1; }
.mobile-menu a {
  display: block;
  padding: 16px 0;
  font-family: var(--serif);
  font-size: 36px;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.mobile-menu-close {
  position: absolute;
  top: 22px; right: var(--pad);
  width: 44px; height: 44px;
  color: var(--white);
  font-size: 24px;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.75);
  padding: clamp(80px, 9vw, 120px) 0 32px;
}
.site-footer h4 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-footer .logo-mark { height: 64px; filter: none; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 12px; }
.site-footer a:hover { color: var(--gold); }
.footer-tagline {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.4;
  color: rgba(255,255,255,.8);
  margin: 24px 0 28px;
  max-width: 32ch;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 12px;
  color: rgba(255,255,255,.5);
}
.footer-social { display: flex; gap: 18px; }
.footer-social a {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  transition: all var(--t-med) var(--ease);
}
.footer-social a:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.footer-social svg { width: 14px; height: 14px; }
@media (max-width: 900px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ---- Marquee divider ---- */
.divider-rule {
  height: 1px;
  background: var(--line);
  margin: 0;
  border: none;
}

/* ---- Image utilities ---- */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.media:hover img { transform: scale(1.04); }
.ratio-4-3 { aspect-ratio: 4/3; }
.ratio-3-2 { aspect-ratio: 3/2; }
.ratio-1-1 { aspect-ratio: 1/1; }
.ratio-3-4 { aspect-ratio: 3/4; }
.ratio-16-9 { aspect-ratio: 16/9; }
.ratio-21-9 { aspect-ratio: 21/9; }

/* ---- Reveal on scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* =========================================================
   PAGE STYLES
   ========================================================= */

/* ---- Homepage Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroIn 2.4s var(--ease-out) forwards;
}
@keyframes heroIn { to { transform: scale(1); } }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15,22,32,.55) 0%, rgba(15,22,32,0) 50%),
    linear-gradient(to bottom, rgba(15,22,32,.3) 0%, rgba(15,22,32,0) 30%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: clamp(60px, 8vw, 120px);
  padding-top: 200px;
}
/* Hero / dark-photo text — force white over global h1/h2/h3 ink color */
.hero h1, .hero h2, .hero h3,
.home-hero h1, .home-hero h2, .home-hero h3,
.warranty-hero h1, .warranty-hero h2, .warranty-hero h3,
.warranty-banner h1, .warranty-banner h2, .warranty-banner h3,
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4 { color: var(--white); }

.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(56px, 9vw, 140px);
  line-height: .98;
  letter-spacing: -.025em;
  max-width: 12ch;
  color: var(--white);
}
.hero-title em {
  font-style: italic;
  color: var(--gold-soft);
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 56px;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-tagline {
  font-size: 14px;
  letter-spacing: .04em;
  max-width: 36ch;
  color: rgba(255,255,255,.85);
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  right: var(--pad);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 56px;
  background: rgba(255,255,255,.4);
  animation: scrollPulse 2.2s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(.4); opacity: .4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* ---- Intro block ---- */
.intro {
  background: var(--paper);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: end;
}
.intro-grid h2 { max-width: 14ch; }
.intro-grid p { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.65; }
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; } }

/* ---- Stats strip ---- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px);
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: var(--ink);
  display: block;
  margin-bottom: 12px;
}
.stat-num sup { font-size: .45em; color: var(--gold); vertical-align: top; margin-left: 4px; }
.stat-label {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--slate-2);
}
@media (max-width: 700px) {
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ---- Section heading ---- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head .lead-col { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}

/* ---- Home card (listings) ---- */
.home-card {
  display: block;
  background: var(--white);
  position: relative;
  cursor: pointer;
}
.home-card .media { aspect-ratio: 4/3; }
.home-card-body {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.home-card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}
.home-card-price {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--ink);
  letter-spacing: -.01em;
}
.home-card-status {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand);
  padding: 5px 10px;
  background: var(--brand-soft);
  border-radius: 4px;
}
.home-card-address {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  line-height: 1.2;
}
.home-card-meta {
  display: flex;
  gap: 18px;
  font-size: 12px;
  color: var(--slate);
  letter-spacing: .04em;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.home-card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.home-card-meta svg { width: 14px; height: 14px; color: var(--slate-2); }
.home-card-mls {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--slate-2);
}

/* ---- Available Homes featured strip (homepage) ---- */
.homes-featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
}
@media (max-width: 900px) {
  .homes-featured { grid-template-columns: 1fr; }
}

/* ---- Portfolio mosaic (homepage) ---- */
.portfolio-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 120px;
  gap: 16px;
}
.portfolio-mosaic .mos {
  position: relative;
  overflow: hidden;
}
.portfolio-mosaic .mos img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.portfolio-mosaic .mos:hover img { transform: scale(1.05); }
.portfolio-mosaic .m-1 { grid-column: span 7; grid-row: span 4; }
.portfolio-mosaic .m-2 { grid-column: span 5; grid-row: span 2; }
.portfolio-mosaic .m-3 { grid-column: span 5; grid-row: span 2; }
.portfolio-mosaic .m-4 { grid-column: span 4; grid-row: span 3; }
.portfolio-mosaic .m-5 { grid-column: span 4; grid-row: span 3; }
.portfolio-mosaic .m-6 { grid-column: span 4; grid-row: span 3; }
@media (max-width: 900px) {
  .portfolio-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .portfolio-mosaic .mos { grid-column: span 1 !important; grid-row: span 1 !important; }
  .portfolio-mosaic .m-1 { grid-column: span 2 !important; grid-row: span 2 !important; }
}

/* ---- Communities ---- */
.community-card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  color: var(--white);
}
.community-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,22,32,.85), rgba(15,22,32,0) 60%);
  z-index: 1;
  transition: opacity var(--t-med) var(--ease);
}
.community-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.community-card:hover img { transform: scale(1.06); }
.community-card-body { position: relative; z-index: 2; width: 100%; }
.community-card-name {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--white);
  margin-bottom: 6px;
}
.community-card-loc {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: 16px;
}
.community-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
}

/* ---- Testimonials ---- */
.testimonials {
  background: var(--paper);
}
.testimonial-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.testimonial {
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.testimonial .quote-mark {
  font-family: var(--serif);
  font-size: 64px;
  color: var(--gold);
  line-height: .5;
  margin-bottom: -10px;
}
.testimonial-body {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink-2);
  flex: 1;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-author img { width: 48px; height: 48px; border-radius: 999px; object-fit: cover; }
.testimonial-author .name { font-size: 13px; color: var(--ink); font-weight: 500; }
.testimonial-author .role { font-size: 11px; color: var(--slate-2); letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 900px) { .testimonial-track { grid-template-columns: 1fr; } }

/* ---- Warranty CTA banner ---- */
.warranty-banner {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.warranty-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 50%, rgba(184,153,104,.18), transparent 50%),
    radial-gradient(circle at 10% 100%, rgba(94,122,153,.20), transparent 50%);
}
.warranty-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: clamp(40px, 8vw, 100px);
  position: relative;
  z-index: 1;
}
.warranty-grid h2 { color: var(--white); }
.warranty-grid p { color: rgba(255,255,255,.78); }
.warranty-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.warranty-pill .dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 999px;
  animation: pulse 1.8s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,153,104,.6); }
  50% { box-shadow: 0 0 0 8px rgba(184,153,104,0); }
}
.warranty-mock {
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 28px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255,255,255,.7);
}
.warranty-mock .browser-bar {
  display: flex; gap: 6px; margin-bottom: 20px;
}
.warranty-mock .browser-bar span {
  width: 10px; height: 10px;
  background: rgba(255,255,255,.15);
  border-radius: 999px;
}
.warranty-mock .ticket {
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.warranty-mock .status-tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.warranty-mock .status-tag.open { background: rgba(184,153,104,.18); color: var(--gold); }
.warranty-mock .status-tag.progress { background: rgba(94,122,153,.22); color: #9DB2CB; }
.warranty-mock .status-tag.done { background: rgba(76,175,80,.18); color: #8BC78F; }

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

/* =========================================================
   SINGLE HOME PAGE
   ========================================================= */
.home-hero {
  position: relative;
  height: 92vh;
  min-height: 600px;
  overflow: hidden;
  color: var(--white);
}
.home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.home-hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05);
  animation: heroIn 2.4s var(--ease-out) forwards;
}
.home-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15,22,32,.7), rgba(15,22,32,0) 60%),
    linear-gradient(to bottom, rgba(15,22,32,.3), rgba(15,22,32,0) 30%);
}
.home-hero-content {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  z-index: 1;
  padding: 0 var(--pad) clamp(40px, 6vw, 80px);
}
.home-hero-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  max-width: var(--max);
  margin: 0 auto;
}
.home-hero-address {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: .98;
  letter-spacing: -.02em;
  max-width: 16ch;
  color: var(--white);
}
.home-hero-locality {
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: .85;
}
.home-hero-price-block { text-align: right; }
.home-hero-price {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: var(--white);
  letter-spacing: -.01em;
  margin-bottom: 8px;
}
.home-hero-priceft {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .7;
}
.home-hero-chips {
  position: absolute;
  top: 50%;
  right: var(--pad);
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.home-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(15,22,32,.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: var(--white);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.home-hero-chip svg { width: 14px; height: 14px; }

@media (max-width: 768px) {
  .home-hero-meta { flex-direction: column; align-items: flex-start; gap: 28px; }
  .home-hero-price-block { text-align: left; }
  .home-hero-chips { display: none; }
}

/* ---- Sticky property bar ---- */
.property-bar {
  position: sticky;
  top: 120px;
  z-index: 30;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: top var(--t-med) var(--ease);
}
.property-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}
.property-bar-left { display: flex; align-items: center; gap: 24px; }
.property-bar-price {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
}
.property-bar-addr {
  font-size: 13px;
  color: var(--slate);
}
.property-bar-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: all var(--t-fast) var(--ease);
}
.icon-btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; }
@media (max-width: 768px) {
  .property-bar-addr { display: none; }
}

/* ---- Smart stat icons ---- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--white);
}
.spec {
  padding: clamp(24px, 3vw, 36px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.spec:last-child { border-right: none; }
.spec-icon {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}
.spec-icon svg { width: 28px; height: 28px; stroke-width: 1.25; }
.spec-num {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  color: var(--ink);
}
.spec-label {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--slate-2);
}
@media (max-width: 900px) {
  .spec-grid { grid-template-columns: repeat(3, 1fr); }
  .spec:nth-child(3) { border-right: none; }
  .spec:nth-child(1), .spec:nth-child(2), .spec:nth-child(3) {
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 560px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .spec { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
  .spec:nth-child(2n) { border-right: none !important; }
}

/* ---- Property details grid ---- */
.property-details {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 900px) { .property-details { grid-template-columns: 1fr; } }
.property-description p { font-size: 17px; line-height: 1.75; color: var(--ink-2); max-width: none; }
.property-description p + p { margin-top: 1em; }

.fact-list {
  background: var(--paper);
  padding: 32px;
  border-top: 3px solid var(--brand);
}
.fact-list h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--slate-2);
  margin: 0 0 20px;
}
.fact {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.fact:last-child { border-bottom: none; }
.fact .key { color: var(--slate); }
.fact .val { color: var(--ink); font-weight: 500; }

/* ---- Tabbed actions ---- */
.action-row {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.action-tile {
  flex: 1;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--t-fast) var(--ease);
}
.action-tile:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.action-tile-icon {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper);
  color: var(--brand);
  border-radius: 999px;
}
.action-tile-icon svg { width: 18px; height: 18px; }
.action-tile-label {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--slate-2);
  display: block;
  margin-bottom: 2px;
}
.action-tile-text {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
}

/* ---- Gallery: Editorial mode ---- */
.gallery-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.gallery-modes {
  display: inline-flex;
  background: var(--paper);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.gallery-mode {
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
  border-radius: 999px;
  transition: all var(--t-fast) var(--ease);
}
.gallery-mode.active { background: var(--ink); color: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 120px;
  gap: 14px;
}
.gallery-grid .g {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--paper-2);
}
.gallery-grid .g img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter var(--t-med) var(--ease);
}
.gallery-grid .g::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15,22,32,0);
  transition: background var(--t-med) var(--ease);
  pointer-events: none;
}
.gallery-grid .g::before {
  content: "";
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,.9) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230F1620' stroke-width='1.5'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.3-4.3'/><path d='M11 8v6'/><path d='M8 11h6'/></svg>") center no-repeat;
  opacity: 0;
  transform: scale(.8);
  transition: all var(--t-med) var(--ease);
  z-index: 2;
}
.gallery-grid .g:hover img { transform: scale(1.08); }
.gallery-grid .g:hover::before { opacity: 1; transform: scale(1); }

/* asymmetric layout */
.gallery-grid .g1 { grid-column: span 8; grid-row: span 5; }
.gallery-grid .g2 { grid-column: span 4; grid-row: span 3; }
.gallery-grid .g3 { grid-column: span 4; grid-row: span 2; }
.gallery-grid .g4 { grid-column: span 4; grid-row: span 3; }
.gallery-grid .g5 { grid-column: span 4; grid-row: span 3; }
.gallery-grid .g6 { grid-column: span 4; grid-row: span 3; }
.gallery-grid .g7 { grid-column: span 6; grid-row: span 4; }
.gallery-grid .g8 { grid-column: span 6; grid-row: span 4; }
.gallery-grid .g9 { grid-column: span 4; grid-row: span 3; }
.gallery-grid .g10 { grid-column: span 4; grid-row: span 3; }
.gallery-grid .g11 { grid-column: span 4; grid-row: span 3; }
.gallery-grid .g12 { grid-column: span 6; grid-row: span 3; }
.gallery-grid .g13 { grid-column: span 6; grid-row: span 3; }
@media (max-width: 900px) {
  .gallery-grid { grid-auto-rows: 180px; }
  .gallery-grid .g { grid-column: span 6 !important; grid-row: span 2 !important; }
  .gallery-grid .g1 { grid-column: span 12 !important; grid-row: span 3 !important; }
}
@media (max-width: 600px) {
  .gallery-grid .g { grid-column: span 12 !important; }
}

/* ---- Gallery: Reel mode (horizontal scroll) ---- */
.gallery-reel {
  display: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 16px;
  padding-bottom: 16px;
}
.gallery-reel::-webkit-scrollbar { display: none; }
.gallery-reel.active { display: flex; }
.gallery-reel .reel-item {
  flex: 0 0 70vw;
  max-width: 900px;
  height: 65vh;
  max-height: 700px;
  scroll-snap-align: center;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-reel .reel-item img {
  width: 100%; height: 100%; object-fit: cover;
}
.gallery-reel .reel-item .reel-num {
  position: absolute;
  bottom: 20px; left: 24px;
  color: var(--white);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .1em;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
}

.gallery-grid.hidden, .gallery-reel.hidden { display: none; }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8,12,18,.97);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox.open { display: flex; animation: fadeIn .3s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-stage {
  width: min(92vw, 1400px);
  height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 40px 120px rgba(0,0,0,.6);
  animation: imgIn .5s var(--ease-out) both;
}
@keyframes imgIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  width: 56px; height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  color: var(--white);
  transition: all var(--t-fast) var(--ease);
  backdrop-filter: blur(10px);
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: var(--white); color: var(--ink); border-color: var(--white);
}
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg { width: 18px; height: 18px; }
.lightbox-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(92vw, 1400px);
  margin-top: 24px;
  color: rgba(255,255,255,.7);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.lightbox-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 16px;
  max-width: 90vw;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 12px;
}
.lightbox-thumbs::-webkit-scrollbar { display: none; }
.lightbox-thumbs button {
  flex: 0 0 72px;
  height: 54px;
  overflow: hidden;
  border-radius: 4px;
  opacity: .45;
  transition: opacity var(--t-fast) var(--ease);
  padding: 0;
}
.lightbox-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.lightbox-thumbs button.active { opacity: 1; outline: 2px solid var(--gold); }
.lightbox-thumbs button:hover { opacity: .85; }

/* ---- Location / Map ---- */
.map-wrap {
  position: relative;
  height: 480px;
  background: var(--paper);
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-wrap iframe { width: 100%; height: 100%; border: none; filter: grayscale(.3) contrast(1.05); }

/* ---- Inquire form ---- */
.inquire {
  background: var(--paper);
  padding: clamp(40px, 5vw, 64px);
}
.inquire h3 { margin-bottom: 16px; }
.inquire-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.inquire-form .field-full { grid-column: span 2; }
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--slate-2);
}
.field input,
.field textarea,
.field select {
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 15px;
  color: var(--ink);
  border-radius: 0;
  transition: border-color var(--t-fast) var(--ease);
}
.field input:focus,
.field textarea:focus,
.field select:focus { outline: none; border-color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
@media (max-width: 700px) {
  .inquire-form { grid-template-columns: 1fr; }
  .inquire-form .field-full { grid-column: span 1; }
}

/* ---- About / interior page hero ---- */
.page-hero {
  padding-top: 240px;
  padding-bottom: 80px;
  background: var(--paper);
}
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: 24px; }

/* ---- Floor plans grid ---- */
.floorplan {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}
.floorplan .media { aspect-ratio: 4/3; background: var(--paper); }
.floorplan-body { padding: 24px; }
.floorplan-name { font-family: var(--serif); font-size: 24px; color: var(--ink); margin-bottom: 8px; }
.floorplan-meta { font-size: 12px; color: var(--slate-2); letter-spacing: .12em; text-transform: uppercase; }

/* ---- Available homes listing page filter bar ---- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.filter-chip {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
  transition: all var(--t-fast) var(--ease);
  cursor: pointer;
}
.filter-chip:hover, .filter-chip.active {
  background: var(--ink); color: var(--white); border-color: var(--ink);
}
.results-count {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate-2);
  margin-left: auto;
}

/* ---- Block heading with rule ---- */
.block-heading {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}
.block-heading h3 { flex: 0 0 auto; }
.block-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---- Page-specific: Warranty ---- */
.warranty-hero {
  min-height: 90vh;
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.warranty-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(184,153,104,.18), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(94,122,153,.25), transparent 50%);
}
.warranty-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-top: 180px;
}
.warranty-hero h1 { color: var(--white); }
.warranty-hero p { color: rgba(255,255,255,.78); }
.warranty-features {
  background: var(--paper);
}

/* ---- Misc small bits ---- */
.kicker {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--slate);
}
.divider-marker {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 0 24px;
}
.text-center { text-align: center; }
.text-right { text-align: right; }
.muted { color: var(--slate-2); }
.mt-6 { margin-top: 48px; }
.mt-4 { margin-top: 32px; }
.mt-2 { margin-top: 16px; }
.mb-6 { margin-bottom: 48px; }

/* ---- Page transitions ---- */
body.page-loaded { animation: pageIn .5s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
