/* ============================================================
   Northline Realty — Boutique Brokerage, Bengaluru
   Design language: clean modern brokerage
   Manrope (UI/body) + Space Grotesk (display)
   Navy #16324A · Sky #4A90C2 · White · Warm grey
   ============================================================ */

:root {
  --navy:        #16324A;
  --navy-900:    #0E2333;
  --navy-700:    #1C4360;
  --sky:         #4A90C2;
  --sky-600:     #3A7AAB;
  --sky-050:     #EAF2F9;
  --sky-100:     #DBEAF5;

  --white:       #FFFFFF;
  --warm-050:    #FAF8F4;
  --warm-100:    #F4F1EB;
  --warm-200:    #EAE5DC;
  --warm-300:    #DBD4C7;

  --ink:         #16324A;
  --body:        #43525E;
  --muted:       #6C7883;
  --line:        #E4E0D7;

  --green:       #1F9D57;

  --shadow-sm:   0 1px 2px rgba(20, 40, 60, .06), 0 2px 6px rgba(20, 40, 60, .05);
  --shadow-md:   0 12px 28px -12px rgba(18, 44, 68, .22), 0 4px 10px -6px rgba(18, 44, 68, .14);
  --shadow-lg:   0 30px 60px -24px rgba(15, 40, 62, .32), 0 10px 24px -16px rgba(15, 40, 62, .22);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;

  --container: 1200px;
  --gutter: clamp(1.15rem, 4vw, 3rem);

  --ff-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-disp: "Space Grotesk", "Manrope", system-ui, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--ff-body);
  color: var(--body);
  background: var(--warm-050);
  line-height: 1.6;
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--ff-disp);
  color: var(--ink);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.015em;
}

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--sky-100); color: var(--navy); }

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

.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--tight { padding-block: clamp(2.75rem, 5vw, 4.5rem); }
.section--warm { background: var(--warm-100); }
.section--navy { background: var(--navy); color: #D6E2EC; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sky-600);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--sky);
  display: inline-block;
}
.section--navy .eyebrow { color: #7FB6DE; }
.section--navy .eyebrow::before { background: var(--sky); }

.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
  margin-top: .9rem;
}
.section-head p {
  margin-top: 1rem;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 40rem;
}
.section--navy .section-head p { color: #A9C0D2; }

.lede { font-size: clamp(1.05rem, 1rem + .5vw, 1.25rem); color: var(--body); }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--navy);
  --_fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -.01em;
  background: var(--_bg);
  color: var(--_fg);
  border: 1.5px solid var(--_bg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; }

.btn--primary { --_bg: var(--navy); --_fg:#fff; }
.btn--primary:hover { --_bg: var(--navy-700); }

.btn--accent { --_bg: var(--sky); --_fg:#fff; border-color: var(--sky); }
.btn--accent:hover { --_bg: var(--sky-600); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--warm-300);
}
.btn--ghost:hover { background: var(--white); border-color: var(--navy); }
.section--navy .btn--ghost { color:#fff; border-color: rgba(255,255,255,.35); }
.section--navy .btn--ghost:hover { background: rgba(255,255,255,.08); border-color:#fff; }

.btn--wa { --_bg: var(--green); --_fg:#fff; border-color: var(--green); }
.btn--wa:hover { --_bg:#178547; }

.btn--lg { padding: 1rem 1.85rem; font-size: 1rem; }
.btn--full { width: 100%; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  background: var(--navy);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 8px;
  z-index: 200;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(18,44,68,.5);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}

/* Wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--ff-disp);
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--navy);
  letter-spacing: -.02em;
}
.brand__mark { flex: none; width: 36px; height: 36px; }
.brand small {
  display: block;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sky-600);
  margin-top: 1px;
}
.brand b { font-weight: 600; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 2vw, 1.8rem);
}
.nav__links a {
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy);
  padding: .4rem 0;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--sky);
  transition: width .3s var(--ease);
}
.nav__links a:hover::after, .nav__links a:focus-visible::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: .75rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1.5px solid var(--warm-300);
  background: var(--white);
  border-radius: 12px;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  position: relative;
  width: 20px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .3s var(--ease), background .3s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav__links {
    position: fixed;
    inset: 70px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--warm-050);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-140%);
    transition: transform .38s var(--ease);
    max-height: calc(100dvh - 70px);
    overflow-y: auto;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a {
    padding: 1rem .25rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .nav__links a::after { display: none; }
  .nav__actions .btn--header { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(74,144,194,.14), transparent 55%),
    linear-gradient(180deg, var(--warm-050), var(--warm-100));
  overflow: hidden;
}
.hero::before {
  /* faint blueprint grid */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(22,50,74,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,50,74,.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(90% 70% at 40% 20%, #000, transparent 80%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3.5rem, 7vw, 6rem);
}
.hero__copy { max-width: 34rem; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--white);
  border: 1px solid var(--line);
  padding: .45rem .9rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.hero__badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(31,157,87,.18);
}
.hero h1 {
  font-size: clamp(2.4rem, 1.5rem + 4.2vw, 4.1rem);
  margin: 1.15rem 0 0;
  letter-spacing: -.03em;
}
.hero h1 em {
  font-style: normal;
  color: var(--sky-600);
  position: relative;
}
.hero h1 em::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: .06em;
  height: .12em;
  background: linear-gradient(90deg, var(--sky), transparent);
  border-radius: 2px;
}
.hero__sub {
  margin-top: 1.35rem;
  font-size: clamp(1.05rem, 1rem + .5vw, 1.22rem);
  color: var(--body);
  max-width: 30rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.2rem;
  margin-top: 2.6rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--line);
}
.hero__proof .num {
  font-family: var(--ff-disp);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--navy);
  line-height: 1;
}
.hero__proof .lbl { font-size: .82rem; color: var(--muted); margin-top: .35rem; }

/* Hero visual */
.hero__visual { position: relative; }
.hero__frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background: var(--warm-200);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 55%, rgba(14,35,51,.28));
}
/* floating match card */
.match-card {
  position: absolute;
  left: clamp(-1.5rem, -2vw, -2.5rem);
  bottom: clamp(1rem, 3vw, 2.2rem);
  width: min(20rem, 78%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.25rem 1.35rem;
  box-shadow: var(--shadow-lg);
}
.match-card h2 {
  font-size: 1.02rem;
  font-family: var(--ff-body);
  font-weight: 800;
  color: var(--navy);
}
.match-card p { font-size: .82rem; color: var(--muted); margin-top: .15rem; }
.match-field {
  display: flex; flex-direction: column; gap: .3rem;
  margin-top: .85rem;
}
.match-field label {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--navy);
}
.match-field select {
  font: inherit;
  font-size: .9rem;
  padding: .6rem .7rem;
  border-radius: 10px;
  border: 1.5px solid var(--warm-300);
  background: var(--warm-050);
  color: var(--navy);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2316324A' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
}
.match-field select:focus-visible { border-color: var(--sky); outline: none; box-shadow: 0 0 0 3px var(--sky-100); }
.match-card .btn { margin-top: 1rem; }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 30rem; margin-inline: auto; width: 100%; }
  .match-card { left: auto; right: 1rem; }
}
@media (max-width: 420px) {
  .match-card { position: static; width: 100%; margin-top: -2.5rem; }
  .hero__frame { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
}

/* ============================================================
   Marquee locality strip
   ============================================================ */
.localities {
  border-block: 1px solid var(--line);
  background: var(--white);
  padding-block: 1rem;
  overflow: hidden;
}
.localities__track {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  white-space: nowrap;
  animation: marquee 34s linear infinite;
}
.localities:hover .localities__track { animation-play-state: paused; }
.localities__track span {
  font-family: var(--ff-disp);
  font-weight: 500;
  color: var(--navy);
  font-size: 1rem;
  display: inline-flex; align-items: center; gap: 2.5rem;
}
.localities__track span::after {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sky);
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .localities__track { animation: none; flex-wrap: wrap; white-space: normal; justify-content: center; }
}

/* ============================================================
   Story / About
   ============================================================ */
.story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.story__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 5 / 4;
}
.story__media img { width:100%; height:100%; object-fit: cover; }
.story__media .tag {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(14,35,51,.82);
  color: #fff;
  backdrop-filter: blur(6px);
  padding: .5rem .9rem;
  border-radius: 999px;
  font-size: .8rem; font-weight: 700;
}
.story h2 { font-size: clamp(1.8rem, 1.3rem + 2.4vw, 2.7rem); margin-top: .9rem; }
.story p { margin-top: 1.1rem; }
.story__values { display: grid; gap: .75rem; margin-top: 1.8rem; }
.story__values li {
  display: flex; gap: .75rem; align-items: flex-start;
  font-weight: 600; color: var(--navy);
}
.story__values svg { flex: none; width: 22px; height: 22px; color: var(--sky); margin-top: 1px; }
.story__values small { display: block; font-weight: 500; color: var(--muted); }

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

/* ============================================================
   Listings
   ============================================================ */
.filters {
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin-bottom: 2rem;
}
.filter {
  padding: .55rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--warm-300);
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  font-size: .88rem;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.filter:hover { transform: translateY(-1px); border-color: var(--sky); }
.filter[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

.listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}
.listing {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
  display: flex; flex-direction: column;
}
.listing:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--sky-100); }
.listing.is-hidden { display: none; }
.listing__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--warm-200); }
.listing__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.listing:hover .listing__media img { transform: scale(1.06); }
.listing__status {
  position: absolute; top: .8rem; left: .8rem;
  background: var(--white);
  color: var(--navy);
  font-size: .72rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .35rem .7rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.listing__status[data-t="ready"] { color: var(--green); }
.listing__status[data-t="launch"] { color: var(--sky-600); }
.listing__body { padding: 1.25rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.listing__loc {
  font-size: .78rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--sky-600);
  display: flex; align-items: center; gap: .4rem;
}
.listing__loc svg { width: 14px; height: 14px; }
.listing h3 { font-size: 1.35rem; margin: .5rem 0 0; }
.listing__meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.1rem;
  margin-top: .85rem;
  color: var(--body);
  font-size: .9rem;
  font-weight: 600;
}
.listing__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.listing__meta svg { width: 16px; height: 16px; color: var(--muted); }
.listing__foot {
  margin-top: auto;
  padding-top: 1.15rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem;
  border-top: 1px solid var(--line);
}
.listing__price {
  font-family: var(--ff-disp);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--navy);
  line-height: 1.1;
}
.listing__price small { display: block; font-family: var(--ff-body); font-weight: 600; font-size: .7rem; color: var(--muted); letter-spacing: .04em; }
.listing__link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-weight: 700; font-size: .88rem; color: var(--sky-600);
}
.listing__link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.listing:hover .listing__link svg { transform: translateX(3px); }

.no-match {
  display: none;
  text-align: center;
  color: var(--muted);
  padding: 2.5rem 1rem;
  font-weight: 600;
}
.no-match.show { display: block; }

/* ============================================================
   How we work (signature)
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  counter-reset: step;
}
.step {
  position: relative;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  padding: 2rem 1.6rem 1.8rem;
  transition: transform .35s var(--ease), background .3s, border-color .3s;
}
.step:hover { transform: translateY(-5px); background: rgba(255,255,255,.07); border-color: rgba(74,144,194,.5); }
.step__num {
  counter-increment: step;
  font-family: var(--ff-disp);
  font-weight: 700;
  font-size: 1rem;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--sky);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(74,144,194,.7);
}
.step__num::before { content: "0" counter(step); }
.step h3 { font-size: 1.28rem; margin-top: 1.25rem; color: #fff; }
.step p { margin-top: .6rem; color: #AEC5D6; font-size: .96rem; }
.step__line {
  position: absolute; top: 2.6rem; right: -1rem;
  width: 2rem; height: 2px;
  background: linear-gradient(90deg, var(--sky), transparent);
}
.step:last-child .step__line { display: none; }
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
  .step__line { display: none; }
}

/* ============================================================
   Promise band (keychain detail)
   ============================================================ */
.promise {
  position: relative;
  overflow: hidden;
}
.promise__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.promise__media { position: relative; min-height: 320px; }
.promise__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promise__copy {
  background: var(--navy);
  color: #D6E2EC;
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex; flex-direction: column; justify-content: center;
}
.promise__copy h2 { color: #fff; font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.5rem); }
.promise__copy p { margin-top: 1.1rem; color: #A9C0D2; }
.promise__copy .sign {
  margin-top: 1.8rem;
  font-family: var(--ff-disp);
  color: #fff; font-weight: 500;
}
.promise__copy .sign small { display: block; font-family: var(--ff-body); color: #7FB6DE; font-size: .8rem; font-weight: 600; margin-top: .2rem; }
@media (max-width: 800px) { .promise__grid { grid-template-columns: 1fr; } .promise__media { min-height: 240px; } }

/* ============================================================
   Gallery
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: clamp(.7rem, 1.5vw, 1rem);
}
.gallery figure { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--warm-200); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery figure:hover img { transform: scale(1.07); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .7rem .9rem;
  font-size: .78rem; font-weight: 700; color: #fff;
  background: linear-gradient(transparent, rgba(14,35,51,.7));
  transform: translateY(100%);
  transition: transform .35s var(--ease);
}
.gallery figure:hover figcaption { transform: translateY(0); }
.g-a { grid-column: span 2; grid-row: span 2; }
.g-b { grid-column: span 2; }
.g-c { grid-column: span 1; grid-row: span 2; }
@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .g-a { grid-column: span 2; grid-row: span 2; }
  .g-b, .g-c { grid-column: span 1; grid-row: span 1; }
}

/* ============================================================
   Team
   ============================================================ */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}
.agent {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.agent:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.agent__top { display: flex; align-items: center; gap: 1rem; }
.agent__photo {
  width: 74px; height: 74px; border-radius: 20px; overflow: hidden;
  flex: none; background: var(--sky-050);
  display: grid; place-items: center;
}
.agent__photo img { width: 100%; height: 100%; object-fit: cover; }
.agent__mono {
  font-family: var(--ff-disp);
  font-weight: 600; font-size: 1.55rem;
  color: var(--sky-600);
}
.agent h3 { font-size: 1.2rem; }
.agent__role { font-size: .82rem; font-weight: 700; color: var(--sky-600); letter-spacing: .03em; margin-top: .2rem; }
.agent p { margin-top: 1rem; font-size: .93rem; color: var(--body); }
.agent__area {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line);
  font-size: .82rem; font-weight: 700; color: var(--navy);
  display: flex; align-items: center; gap: .45rem;
}
.agent__area svg { width: 15px; height: 15px; color: var(--sky); }

/* ============================================================
   Testimonials
   ============================================================ */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}
.review {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  position: relative;
}
.review__stars { display: flex; gap: .15rem; color: #E8A93B; margin-bottom: 1rem; }
.review__stars svg { width: 18px; height: 18px; }
.review blockquote { font-size: 1.05rem; color: var(--navy); line-height: 1.55; flex: 1; }
.review__who { margin-top: 1.4rem; display: flex; align-items: center; gap: .8rem; }
.review__ava {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  font-family: var(--ff-disp); font-weight: 600; font-size: 1rem;
  flex: none;
}
.review__who b { color: var(--navy); font-size: .96rem; }
.review__who small { display: block; color: var(--muted); font-size: .82rem; }

/* ============================================================
   Contact
   ============================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(1.6rem, 3.5vw, 3rem);
  align-items: start;
}
.contact__aside .lede { margin-top: .9rem; }
.contact__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.info-list { display: grid; gap: 1.1rem; margin-top: 2rem; }
.info-list li { display: flex; gap: .9rem; }
.info-list .ic {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  background: var(--sky-050); color: var(--sky-600);
  display: grid; place-items: center;
}
.info-list svg { width: 20px; height: 20px; }
.info-list b { color: var(--navy); font-size: .95rem; display: block; }
.info-list span, .info-list a { color: var(--body); font-size: .95rem; }
.info-list a:hover { color: var(--sky-600); }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.3rem);
  box-shadow: var(--shadow-md);
}
.section--navy .form-card { color: var(--body); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: .82rem; font-weight: 700; color: var(--navy);
  letter-spacing: .01em;
}
.field label .req { color: var(--sky-600); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: .95rem;
  padding: .8rem .9rem;
  border-radius: 12px;
  border: 1.5px solid var(--warm-300);
  background: var(--warm-050);
  color: var(--navy);
  transition: border-color .2s, box-shadow .2s, background .2s;
  width: 100%;
}
.field select { appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2316324A' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--sky);
  background: #fff;
  box-shadow: 0 0 0 3px var(--sky-100);
}
.field input::placeholder, .field textarea::placeholder { color: #9AA4AD; }
.form-reassure {
  display: flex; align-items: center; gap: .5rem;
  margin-top: 1rem;
  font-size: .84rem; color: var(--muted);
}
.form-reassure svg { width: 16px; height: 16px; color: var(--green); flex: none; }
.form-card .btn { margin-top: 1.3rem; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy-900);
  color: #A9C0D2;
  padding-block: clamp(3rem, 5vw, 4.5rem) 2rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__brand .brand { color: #fff; }
.footer__brand .brand b { color: #fff; }
.footer__brand p { margin-top: 1.1rem; max-width: 24rem; color: #93AABD; font-size: .95rem; }
.footer__social { display: flex; gap: .6rem; margin-top: 1.4rem; }
.footer__social a {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.07);
  color: #D6E2EC;
  transition: background .25s, transform .25s, color .25s;
}
.footer__social a:hover { background: var(--sky); color: #fff; transform: translateY(-3px); }
.footer__social svg { width: 20px; height: 20px; }
.footer__col h4 { color: #fff; font-family: var(--ff-body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.footer__col ul { margin-top: 1rem; display: grid; gap: .7rem; }
.footer__col a { color: #A9C0D2; font-size: .95rem; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  padding-top: 1.8rem;
  font-size: .85rem; color: #7C93A6;
}
.footer__credit a { color: #D6E2EC; font-weight: 700; }
.footer__credit a:hover { color: var(--sky); text-decoration: underline; }
@media (max-width: 720px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ============================================================
   Reveal motion
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .listing, .agent, .step, .gallery img, .listing__media img { transition: none !important; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* ============================================================
   Thank-you page
   ============================================================ */
.ty {
  min-height: 78vh;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(74,144,194,.16), transparent 55%),
    linear-gradient(180deg, var(--warm-050), var(--warm-100));
  padding: 4rem var(--gutter);
}
.ty__card { max-width: 40rem; }
.ty__check {
  width: 84px; height: 84px; border-radius: 26px;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
  margin: 0 auto 1.8rem;
  box-shadow: 0 20px 40px -16px rgba(31,157,87,.6);
  animation: pop .6s var(--ease) both;
}
.ty__check svg { width: 42px; height: 42px; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.ty h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem); }
.ty p { margin-top: 1.1rem; font-size: 1.1rem; color: var(--body); }
.ty__cta { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; margin-top: 2.2rem; }
@media (prefers-reduced-motion: reduce) { .ty__check { animation: none; } }
