/* ============================================================================
   Next Generation Ghar — design system v2
   ----------------------------------------------------------------------------
   Direction: light editorial, built for Indian tier-2 buyers looking at a phone in
   daylight.

   Why light and not dark (evidence, not taste): under bright ambient light a dark UI
   loses roughly 60% of its contrast to veiling glare while a light one loses none,
   because glare moves the background toward its text. These users are outdoors at noon.
   (tier2-india-ui-evidence-research)

   Colour roles, from Indian colour-meaning data rather than Western convention:
     Blue  = trust → the primary. High recall, correct for a service brand.
     Gold  = prosperity → accent only: one rule, one CTA, price highlights.
     Red   = errors only (reads ~53% passion / ~50% danger here, never a brand colour).
     Green = verified / status only (its "savings" association is weak in India).

   Two border tokens on purpose: one hairline serving both decorative dividers and
   interactive inputs fails WCAG SC 1.4.11.
   ========================================================================== */

:root {
  /* ---- neutrals: warm, so photography does not look blue-cast against it ---- */
  --paper:      #FBFAF8;
  --paper-2:    #F3F0EA;
  --surface:    #FFFFFF;
  --surface-2:  #FAF8F4;

  /* ---- ink, measured against --paper and --surface ---- */
  --ink:        #14181C;   /* 16.1:1 — headings */
  --ink-2:      #3D4650;   /*  9.4:1 — body */
  --ink-3:      #5C6670;   /*  6.2:1 — secondary */
  --ink-4:      #6E7883;   /*  4.9:1 — captions, still AA for body text */

  /* ---- lines ---- */
  --line:       #E3DED6;   /* decorative dividers only */
  --line-2:     #9AA3AC;   /* interactive borders, ≥3:1 — meets SC 1.4.11 */

  /* ---- brand ---- */
  --blue-900:   #0B2A4A;
  --blue-700:   #10406F;
  --blue:       #12558F;   /* primary, 7.1:1 on white */
  --blue-50:    #EAF1F8;
  --gold-700:   #8A6420;
  --gold:       #B8892F;
  --gold-50:    #FBF3E2;
  --green-700:  #1F6B45;
  --green-50:   #E9F5EE;
  --red-700:    #9B2C2C;
  --red-50:     #FCECEC;

  /* ---- type: display large and tight, body small and loose. That ratio is what
         reads as designed rather than formatted. ---- */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;

  --t-display: clamp(2.5rem, 6.2vw, 4.5rem);
  --t-h2:      clamp(1.75rem, 3.4vw, 2.5rem);
  --t-h3:      clamp(1.0625rem, 1.6vw, 1.25rem);
  --t-body:    1.0625rem;
  --t-small:   0.9375rem;
  --t-micro:   0.8125rem;   /* uppercase labels only, never body copy */

  /* ---- rhythm: generous and consistent ---- */
  --pad-section: clamp(3.5rem, 7vw, 8rem);
  --pad-inline:  clamp(1.125rem, 4vw, 2.5rem);
  --max: 1180px;

  /* ---- shape + depth ---- */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --shadow-1: 0 1px 2px rgba(20,24,28,.05), 0 2px 8px rgba(20,24,28,.04);
  --shadow-2: 0 2px 6px rgba(20,24,28,.06), 0 12px 28px rgba(20,24,28,.08);
  --shadow-3: 0 4px 12px rgba(20,24,28,.08), 0 24px 56px rgba(20,24,28,.12);
}

/* ==========================================================================
   reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}
h1 { font-family: var(--font-display); font-size: var(--t-display);
     line-height: 1.02; letter-spacing: -0.032em; font-weight: 600; }
h2 { font-family: var(--font-display); font-size: var(--t-h2);
     line-height: 1.08; letter-spacing: -0.026em; font-weight: 600; }
h3 { font-size: var(--t-h3); line-height: 1.28; }
p  { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

/* ==========================================================================
   layout
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

.section { padding-block: var(--pad-section); }
.section--alt { background: var(--paper-2); }
.section--ink { background: var(--blue-900); color: #E8EDF2; }
.section--ink h2, .section--ink h3 { color: #FFFFFF; }
.section--ink p { color: #C3CFDA; }

/* The light cards that sit INSIDE a dark .section--ink keep a white surface, so
   the inherited white heading above made them white-on-white (1.00:1, invisible).
   Measured 22 Oct 2026: 6 instances — 3 promise cards on / plus the 3 city cards
   on /about.html. Restore the normal ink colour inside any light-surface card. */
.section--ink .card h2,
.section--ink .card h3,
.section--ink .card h4 { color: var(--ink); }
.section--ink .card p { color: var(--ink-3); }
.section--ink .eyebrow { color: #E9C377; }

/* ==========================================================================
   header — sticky glass, gains a hairline once scrolled
   ========================================================================== */
.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,250,248,.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-head.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px rgba(20,24,28,.06);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.75rem);
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 48px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.logo .mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--blue-700), var(--blue));
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), var(--shadow-1);
  flex: none;
}
.logo .wordmark { white-space: nowrap; line-height: 1.15; }
.logo .wordmark small {
  display: block;
  font-size: .6875rem;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* --ink-3 is a HEADER ink token; in the dark footer it measured 2.49:1 on
   rgb(11,42,74) — a real WCAG failure on every page (measured 22 Oct 2026).
   #A9B8C6 measures 7.17:1 there and still reads as a muted sub-label. */
.site-foot .logo .wordmark small,
footer .logo .wordmark small { color: #A9B8C6; }

.nav-main { display: flex; align-items: center; gap: .1rem; margin-inline-start: auto; }
.nav-main a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .6rem .85rem;
  color: var(--ink-2);
  font-size: var(--t-small);
  font-weight: 550;
  text-decoration: none;
  border-radius: 8px;
  transition: color .18s ease, background .18s ease;
}
.nav-main a:hover { color: var(--ink); background: var(--paper-2); }
.nav-main a::after {
  content: "";
  position: absolute;
  left: .85rem; right: .85rem; bottom: .35rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s cubic-bezier(.22,.61,.36,1);
}
.nav-main a:hover::after,
.nav-main a[aria-current="page"]::after { transform: scaleX(1); }
.nav-main a[aria-current="page"] { color: var(--ink); font-weight: 650; }

.head-cta { display: flex; align-items: center; gap: .5rem; flex: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  flex: none;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px; content: "";
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }

/* ==========================================================================
   buttons — 44px minimum height at every viewport
   ========================================================================== */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--t-small);
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s cubic-bezier(.22,.61,.36,1), box-shadow .18s ease,
              background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--blue-700); color: #fff; box-shadow: var(--shadow-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.994); box-shadow: var(--shadow-1); }

.btn.gold { --btn-bg: var(--gold-700); }
.btn.gold:hover { background: #74541B; }

.btn.line { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-2); }
.btn.line:hover { background: var(--surface); border-color: var(--ink-3); color: var(--ink); }

.btn.sm { min-height: 44px; padding: .5rem 1rem; font-size: .875rem; }
.btn.block { width: 100%; }

/* ==========================================================================
   hero — fills the viewport, carries real media, and READS
   The defect this replaces: white text on a near-white field at 1.04:1. Text over
   media sits on a scrim that is measured, never hoped for.
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--blue-900);
  isolation: isolate;
}

.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.06);
  animation: heroDrift 26s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(0, -1.4%, 0); }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(11,42,74,.58) 0%,
      rgba(11,42,74,.46) 34%,
      rgba(11,42,74,.80) 78%,
      rgba(9,32,56,.94) 100%),
    radial-gradient(120% 80% at 20% 100%, rgba(9,32,56,.72), transparent 60%);
}

.hero .wrap { padding-block: clamp(3rem, 9vw, 7rem); width: 100%; }
.hero__inner { max-width: 46rem; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.5rem;
  padding: .45rem .85rem .45rem .6rem;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  color: #F2F6FA;
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.hero__eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #6FD69A;
  box-shadow: 0 0 0 3px rgba(111,214,154,.28);
  flex: none;
}

.hero h1 {
  color: #FFFFFF;
  margin-bottom: 1.35rem;
  text-shadow: 0 2px 24px rgba(6,20,36,.34);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(180deg, #F7E3B0, #E9C377);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #F2D48A;   /* fallback where background-clip:text is unsupported */
}

.hero .lead {
  max-width: 38rem;
  margin-bottom: 2rem;
  color: #DCE6EF;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}

.hero .cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.75rem; }
.hero .btn.line {
  border-color: rgba(255,255,255,.45);
  color: #FFFFFF;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(4px);
}
.hero .btn.line:hover { background: rgba(255,255,255,.18); border-color: #fff; color: #fff; }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.22);
  max-width: 42rem;
}
.hero__fact b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: .4rem;
}
.hero__fact span { color: #C6D4E1; font-size: var(--t-micro); line-height: 1.4; display: block; }

.hero__cue {
  position: absolute;
  left: 50%; bottom: 1.5rem;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 30px; height: 44px;
  border: 1.5px solid rgba(255,255,255,.42);
  border-radius: 999px;
  z-index: 2;
}
.hero__cue::after {
  content: "";
  width: 4px; height: 8px;
  border-radius: 2px;
  background: #fff;
  animation: cueBounce 1.9s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes cueBounce {
  0%, 100% { transform: translateY(-4px); opacity: .35; }
  50%      { transform: translateY(5px);  opacity: 1; }
}

/* plain page banner for interior pages — no hero media, so no scrim needed */
.pagehead {
  background: linear-gradient(165deg, var(--blue-900), var(--blue-700));
  color: #DCE6EF;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.pagehead h1 { color: #fff; max-width: 22ch; }
.pagehead p { color: #C3CFDA; margin-top: 1rem; max-width: 44rem; font-size: 1.0625rem; }
.pagehead .eyebrow { color: #E9C377; }

/* ==========================================================================
   section heads
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--gold-700);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  border-radius: 2px;
  background: var(--gold);
  flex: none;
}

.head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.head p { margin-top: 1rem; font-size: clamp(1rem, 1.3vw, 1.125rem); color: var(--ink-3); }
.section--ink .head p { color: #BCCAD6; }

/* ==========================================================================
   bento grid — mixed cells; equal three-card rows are what dates a page
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.75rem, 1.4vw, 1.25rem); }
.bento > * { min-width: 0; }
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.grid { display: grid; gap: clamp(.75rem, 1.4vw, 1.25rem); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

/* ==========================================================================
   cards
   ========================================================================== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: clamp(1.15rem, 2vw, 1.6rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-1);
  transition: transform .2s cubic-bezier(.22,.61,.36,1), box-shadow .22s ease,
              border-color .22s ease;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.card h3 { font-size: 1.0625rem; margin: 0; }
.card p { margin: 0; color: var(--ink-3); font-size: var(--t-small); line-height: 1.55; }

.card__icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--blue-50);
  color: var(--blue);
  font-size: 1.125rem;
  margin-bottom: .35rem;
  flex: none;
}

.card--feature {
  background: linear-gradient(155deg, var(--blue-900), var(--blue-700));
  border-color: transparent;
  color: #D7E3EE;
  justify-content: flex-end;
  min-height: 240px;
}
.card--feature h3 { color: #fff; font-family: var(--font-display); font-size: 1.4375rem; }
.card--feature p { color: #BFD0DF; }
.card--feature .card__icon { background: rgba(255,255,255,.14); color: #F2D48A; }

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .75rem;
  margin-top: auto;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
  font-size: var(--t-small);
  color: var(--ink-3);
}
.card__price { font-weight: 700; color: var(--ink); }

/* ==========================================================================
   forms
   ========================================================================== */
form.stack { display: grid; gap: .9rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: var(--t-small); font-weight: 600; color: var(--ink); }
.hint { font-size: var(--t-small); color: var(--ink-3); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }

input[type="text"], input[type="tel"], input[type="email"], input[type="number"],
input[type="search"], input[type="date"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: .7rem .9rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;   /* 16px stops iOS zooming the page on focus */
  transition: border-color .16s ease, box-shadow .16s ease;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(18,85,143,.16);
}
input::placeholder, textarea::placeholder { color: var(--ink-4); }

.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--t-small); color: var(--ink-3); }
.consent input { width: 20px; height: 20px; flex: none; margin-top: .15rem; }

.msg { padding: .8rem .95rem; border-radius: var(--r-sm); font-size: var(--t-small); display: none; }
.msg.on { display: block; }
.msg.ok { background: var(--green-50); color: var(--green-700); border: 1px solid #BFE3CE; }
.msg.bad { background: var(--red-50); color: var(--red-700); border: 1px solid #F0C4C4; }

/* ==========================================================================
   property cards
   ========================================================================== */
.prop {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform .2s cubic-bezier(.22,.61,.36,1), box-shadow .22s ease;
  text-decoration: none;
  color: inherit;
}
.prop:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); color: inherit; }
.prop__media { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; }
.prop__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
}
.prop:hover .prop__media img { transform: scale(1.045); }
.prop__body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.prop__price { font-size: 1.125rem; font-weight: 700; color: var(--ink); letter-spacing: -0.015em; }
.prop__title { font-size: var(--t-small); font-weight: 600; color: var(--ink-2); margin: 0; }
.prop__meta {
  margin-top: auto; padding-top: .7rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .3rem .7rem;
  font-size: var(--t-small); color: var(--ink-3);
}

.tag {
  display: inline-flex; align-items: center;
  min-height: 26px; padding: .18rem .6rem;
  border-radius: 999px;
  background: var(--blue-50); color: var(--blue-700);
  font-size: var(--t-micro); font-weight: 650;
}
.tag--gold, .tag--sale { background: var(--gold-50); color: var(--gold-700); }
.tag--green, .tag--rent { background: var(--green-50); color: var(--green-700); }

.badge {
  display: inline-block;
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 700;
  padding: .2rem .5rem;
  border-radius: 6px;
  background: var(--blue-50);
  color: var(--blue-700);
}
.badge.gold { background: var(--gold-50); color: var(--gold-700); }

/* filters */
.filters {
  display: flex; gap: .75rem; flex-wrap: wrap; align-items: end;
  margin-bottom: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(.9rem, 2vw, 1.25rem);
  box-shadow: var(--shadow-1);
}
.filters > .field { flex: 1 1 180px; min-width: 0; }

/* note / disclaimer */
.note {
  background: var(--gold-50);
  border: 1px solid #EEDCB0;
  border-radius: var(--r-sm);
  padding: .9rem 1.05rem;
  font-size: var(--t-small);
  color: #6B5316;
  line-height: 1.55;
}

/* ==========================================================================
   footer
   ========================================================================== */
.site-foot { background: var(--blue-900); color: #B9C7D4; padding-block: clamp(2.5rem, 5vw, 4rem) 1.75rem; }
.site-foot h4 {
  color: #fff; font-size: var(--t-micro); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .9rem;
}
.site-foot a { color: #C6D4E1; text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; font-size: var(--t-small); }
.foot-brand p { color: #A9B9C8; font-size: var(--t-small); max-width: 26rem; margin-top: .85rem; }
.foot-bottom {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.4rem;
  font-size: var(--t-small);
  color: #9DAEBE;
}
.credit a { color: #E9C377; font-weight: 600; }

/* ==========================================================================
   reveal on scroll — the hide is gated on a class the inline script sets at once,
   so a JS failure leaves every section fully visible.
   ========================================================================== */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1),
              transform .6s cubic-bezier(.22,.61,.36,1);
}
html.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__media img, .hero__cue::after { animation: none !important; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ==========================================================================
   responsive — breakpoints where the CONTENT breaks, not at device names
   ========================================================================== */
@media (max-width: 1024px) {
  .span-3 { grid-column: span 6; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* 861-949px header band. At 860 and below the hamburger takes over; the moment
   the desktop nav returns at 861 it competes with a full-size CTA and the row
   overflows. Measured 22 Oct 2026 before this rule: 861px -> /about.html 75px,
   /enquiry.html 74px, / 38px, 4 pages 15-16px; 900px -> 38-39px; 940px -> 1-2px.
   Nothing here changes <=860 (mobile) or >=950 (already fits). */
@media (min-width: 861px) and (max-width: 949px) {
  .site-head .wrap { gap: .5rem; }
  .nav-main { gap: 0; }
  .nav-main a { padding-inline: .5rem; font-size: .9375rem; }
  .head-cta { gap: .25rem; }
  .head-cta .btn {
    white-space: nowrap; min-width: 0; max-width: 150px;
    overflow: hidden; text-overflow: ellipsis;
    padding-inline: .7rem; font-size: .875rem;
  }
}

@media (max-width: 860px) {
  .nav-main { display: none; }
  .nav-toggle { display: inline-flex; }
  .head-cta .btn { min-height: 44px; padding: .55rem .9rem; font-size: .875rem; }

  /* Between 861 and ~949px the desktop nav reappears while the full-width CTA
     still claims its room, so the header could not fit and the page scrolled
     sideways: measured 22 Oct 2026 at 861px — /about.html 75px, /enquiry.html
     74px, / 38px, others 15-16px; still 38px at 900 and 1-2px at 940. Tighten
     the nav padding/gap and let the CTA text ellipsis in that band only. */
  .nav-main { gap: 0; }
  .nav-main a { padding-inline: .55rem; }
  .head-cta .btn { white-space: nowrap; min-width: 0; max-width: 168px;
                   overflow: hidden; text-overflow: ellipsis; }
  .site-head .wrap { gap: .75rem; }

  .nav-main.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%; left: 0; right: 0;
    margin: 0;
    padding: .25rem var(--pad-inline) .9rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
  }
  .nav-main.is-open a {
    padding: .85rem .25rem;
    min-height: 52px;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-main.is-open a:last-child { border-bottom: 0; }
  .nav-main.is-open a::after { display: none; }

  .span-6, .span-4, .span-8, .span-3 { grid-column: span 12; }
  .card--feature { min-height: 200px; }
}

@media (max-width: 560px) {
  .hero { min-height: 92svh; }
  .hero__facts {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 1.1rem;
    border-top: 0;              /* the stacked strip carries its own top rule */
  }
  .hero__fact {
    display: flex;
    align-items: baseline;
    gap: .7rem;
    padding: .7rem 0;
    border-bottom: 1px solid rgba(255,255,255,.16);
  }
  .hero__fact:first-child { border-top: 1px solid rgba(255,255,255,.22); }
  .hero__fact:last-child { border-bottom: 0; padding-bottom: 0; }
  .hero__fact b { margin-bottom: 0; font-size: 1.5rem; min-width: 4.25rem; }
  .hero__fact span { font-size: .9375rem; line-height: 1.45; }   /* was 13px */
  .hero .cta { flex-direction: column; align-items: stretch; }
  .hero .cta .btn { width: 100%; min-height: 52px; }
  .hero__cue { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; }
  .site-head .wrap { min-height: 62px; }
  .two { grid-template-columns: 1fr; }
  .head-cta .btn { display: none; }   /* the menu panel carries the CTA on phones */
}

/* ==========================================================================
   PHONES — <=560px. Measured 22 Oct 2026 at 390x844 on the live site:
   24/40 interactive elements on / under 44px, 27/31 on /services.html;
   /services.html ran 7062px tall as 15 single-column cards.
   These rules are additive and scoped; nothing here touches >=861px.
   ========================================================================== */
@media (max-width: 560px) {

  /* --- A. tap targets -----------------------------------------------------
     Text links inside cards stay text links: pad the hit area, do not paint a
     button. inline-flex + align-items:center gives the 44px box around the
     glyphs without moving the baseline of surrounding copy. */

  /* The generated in-card link (site.js: <a class="card__cta">) had NO rule at
     all, so it rendered 111x19px — the single worst offender on both pages. */
  .card__cta {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: auto;
    padding-block: .6rem;
    padding-inline: 0;
    font-size: .9375rem;
    font-weight: 650;
    color: var(--blue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    align-self: flex-start;
  }
  .card__cta::after {
    content: "\2192";
    margin-inline-start: .35rem;
    font-size: .95em;
    transition: transform .18s ease;
  }
  .card__cta:active::after { transform: translateX(2px); }

  /* Footer + contact phone links (tel:) measured 19-32px. */
  .site-foot a,
  footer a { min-height: 44px; }
  .foot-grid ul { gap: 0; }
  .foot-grid li { display: flex; }
  .foot-grid li a { flex: 1 1 auto; }

  /* Inline text links that must not be swallowed by the paragraph line box. */
  .site-foot .foot-bottom a,
  .credit a { min-height: 44px; padding-block: .5rem; }

  /* tel: links written inline into a paragraph or a card meta row measured 19px
     (they are bare <a> in running text, so nothing in the card rules reached
     them on /contact.html). */
  .note a,
  .card__meta a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: .4rem;
  }
  /* A tel: link inside a card meta row must not stretch that row's baseline
     grid apart — keep the row's own rhythm and let the hit box overflow it. */
  .card__meta { row-gap: 0; }

  /* Same problem on /post-property.html, which the first pass missed: a bare
     <a href="tel:..."> written straight into a paragraph with no .note and no
     .card__meta (owner-contact line, and a second one in the "already listed"
     copy). Measured 19px at 390px. Catch any inline tel link the class-based
     rules above do not reach. */
  a[href^="tel:"] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: .4rem;
  }

  /* Wordmark anchor measured 38px: the mark is 38px, so give the row breathing
     room rather than growing the logo itself. */
  .logo { min-height: 48px; }

  /* --- B. service cards: 1 column -> compact 2-column tile grid ----------
     Fifteen full-width cards was why /services.html ran 7,062px. Two tiles per
     row with a clamped description keeps scan-ability (name + price visible)
     and roughly halves the section. */
  .grid.g3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
  }
  .grid.g3 > .card {
    padding: .85rem .8rem .6rem;
    gap: .3rem;
    border-radius: var(--r-sm);
  }
  .grid.g3 > .card .card__icon {
    width: 30px; height: 30px;
    border-radius: 8px;
    font-size: .8125rem;
    margin-bottom: .1rem;
  }
  .grid.g3 > .card h3 {
    font-size: .9375rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
  }
  .grid.g3 > .card p {
    font-size: .875rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
  .grid.g3 > .card .card__meta {
    margin-top: .35rem;
    padding-top: .5rem;
    gap: .15rem .4rem;
    font-size: .875rem;
    line-height: 1.3;
  }
  .grid.g3 > .card .card__price { font-size: .875rem; }
  .grid.g3 > .card .card__cta {
    min-height: 44px;
    padding-block: .5rem 0;
    font-size: .875rem;
  }
  /* Feature card inside the same grid keeps its weight but stops claiming a
     full screen; it is not part of the services grid so this is a safety net. */
  .card--feature { min-height: 190px; }

  /* --- C. hero stats: 3 squeezed columns -> one fact per row ------------- */
  .hero__facts {
    grid-template-columns: 1fr;
    max-width: none;
    gap: 0;
  }

  /* --- D. hero image: portrait source must not lose its subject ---------
     A 900x1600 portrait at 390x844 needs scale 1.0 and a top-biased crop;
     the desktop drift animation's 1.06-1.12 push plus a 42% focal point
     cropped the subject out on phones. object-fit stays cover. */
  .hero__media img {
    object-position: center 32%;
    transform: none;
    animation: none;
  }

  /* --- E. typography floor: no body-supporting text under 14px ---------- */
  .hero__fact span { font-size: .9375rem; }              /* 15px, was 13px */
  .tag {                                                 /* "Sale" / "Rent" pills, was 13px */
    font-size: .875rem;
    min-height: 30px;
    padding-inline: .65rem;
  }
  .logo .mark { font-size: .875rem; }                    /* NG monogram, was 13px */
  .prop__meta { font-size: .9375rem; }
  .card p { font-size: .9375rem; }
  .note, .hint, .msg, .consent, .field label { font-size: .9375rem; }
  /* Uppercase micro-labels: never below 12px (logo sub-label was 11px). */
  .logo .wordmark small { font-size: .75rem; }
  .site-foot h4 { font-size: .8125rem; }
  .eyebrow, .hero__eyebrow, .badge { font-size: .75rem; }
}

/* 320-380px: two tiles no longer fit legibly. */
@media (max-width: 380px) {
  .grid.g3 { grid-template-columns: 1fr; }
  .grid.g3 > .card p { -webkit-line-clamp: 3; line-clamp: 3; }
  .grid.g3 > .card { padding: .9rem .85rem .65rem; }
  .hero__fact b { font-size: 1.375rem; min-width: 3.75rem; }
}


/* 320px — the GIGW floor. Nothing may overflow here. */
@media (max-width: 380px) {
  :root { --pad-inline: 1rem; --t-body: 1rem; }
  .logo .wordmark small { display: none; }
  .logo .mark { width: 34px; height: 34px; font-size: .75rem; }
  .btn { padding-inline: 1.1rem; }
}

/* utility */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--ink-3); }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
