/* ==========================================================================
   Blue Mountain — Federation Enclave
   Design tokens sampled from the reference screenshots.
   ========================================================================== */

:root {
  /* Brand */
  --navy:        #0B295B;
  --navy-800:    #123C7B;
  --navy-600:    #1E56A0;
  --navy-tint:   #F1F5FB;
  --green:       #28896A;
  --green-dark:  #1F6E55;
  --green-tint:  #E8F3EF;
  --pulse:       #4ADE80;

  /* Neutrals */
  --ink:      #0B295B;
  --body:     #4A5568;
  --muted:    #718096;
  --line:     #E6EAF0;
  --soft:     #F9FAFB;
  --cream:    #F7F4EE;
  --cream-warm: #F9E7CF;
  --white:    #FFFFFF;

  /* Amenity pastels (sampled) */
  --p1:#E5DEFF; --p2:#D3E4FD; --p3:#FDE1D3; --p4:#F2FCE2;
  --p5:#FEF7CD; --p6:#E0F7FA; --p7:#FCE4EC; --p8:#E8F5E9;
  --p9:#D3E4FD; --p10:#FFF3E0; --p11:#E3F2FD; --p12:#FFFDE7;

  /* Layout */
  --wrap: 1440px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 88px;

  /* Elevation */
  --sh-sm: 0 1px 2px rgba(11,41,91,.06), 0 1px 3px rgba(11,41,91,.05);
  --sh-md: 0 4px 6px -1px rgba(11,41,91,.07), 0 2px 4px -2px rgba(11,41,91,.05);
  --sh-lg: 0 12px 28px -8px rgba(11,41,91,.14), 0 4px 10px -4px rgba(11,41,91,.07);
  --sh-xl: 0 24px 50px -12px rgba(11,41,91,.22);

  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px;
  --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; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4, h5 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 1.35rem + 3.4vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.9vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .65vw, 1.55rem); }
h4 { font-size: 1.1rem; }

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

.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;
}
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 300;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 1040px; }
.section { padding-block: clamp(56px, 7vw, 104px); }
.section--soft  { background: var(--soft); }
.section--cream { background: var(--cream); }
.section--warm  { background: var(--cream-warm); }
.section--navy  { background: var(--navy); color: rgba(255,255,255,.82); }
.section--navy h2, .section--navy h3 { color: #fff; }
.prose { max-width: 78ch; }

/* Faint blueprint grid used behind a few light sections */
.section--grid {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--soft);
}
.section--grid::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(to right, rgba(11,41,91,.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,41,91,.055) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(120% 90% at 92% 8%, #000 10%, transparent 72%);
          mask-image: radial-gradient(120% 90% at 92% 8%, #000 10%, transparent 72%);
}

/* ---------- Section headings ---------- */
.s-head { text-align: center; max-width: 760px; margin: 0 auto clamp(32px, 4vw, 56px); }
.s-head p { margin-top: 14px; color: var(--muted); }
.s-head--left { text-align: left; margin-inline: 0; }

/* Heading with the thin rules either side (see "Our Gallery", "Our Trusted Partners") */
.s-title-ruled {
  display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 40px);
}
.s-title-ruled::before, .s-title-ruled::after {
  content: ""; height: 1px; flex: 1 1 0; max-width: 190px; background: var(--line);
}
.s-head--left .s-title-ruled { justify-content: flex-start; }
.s-head--left .s-title-ruled::before { display: none; }

/* Short underline accent (see "What Makes Us Special") */
.s-rule {
  display: block; /* it is a <span> — without this width/height/auto-margins do nothing */
  width: 92px; height: 3px; border-radius: 3px; margin: 18px auto 0;
  background: linear-gradient(90deg, var(--green), rgba(74,222,128,0));
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: 8px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  font-weight: 500; font-size: .97rem; line-height: 1.2; letter-spacing: .01em;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--navy  { --btn-bg: var(--navy); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bd: var(--navy); background: var(--navy); --btn-fg: #fff; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy); }
.btn--sm { padding: 9px 18px; font-size: .88rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 120;
  height: var(--header-h);
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
          backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.header.is-stuck { box-shadow: 0 4px 22px -10px rgba(11,41,91,.28); border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 20px; height: 100%; }

.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 58px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 8px;
  color: var(--body); font-size: 1rem; font-weight: 400;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav__link:hover, .nav__item:focus-within > .nav__link { color: var(--navy); background: var(--navy-tint); }
.nav__link[aria-current="page"] { color: var(--navy); font-weight: 500; }
.nav__link .chev { width: 13px; height: 13px; transition: transform .2s var(--ease); }

.nav__item { position: relative; }
.nav__item:hover .chev, .nav__item.is-open .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 258px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--sh-xl); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav__item:hover .dropdown, .nav__item:focus-within .dropdown, .nav__item.is-open .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block; padding: 10px 14px; border-radius: 8px;
  color: var(--body); font-size: .95rem;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--green-tint); color: var(--green-dark); }

.header__actions { display: flex; align-items: center; gap: 12px; flex: none; }

.pill-phone {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--navy); color: #fff; border-radius: 999px;
  padding: 10px 16px; font-size: .95rem; font-weight: 500;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.pill-phone:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.pill-phone svg { width: 16px; height: 16px; }
.dot-live {
  width: 9px; height: 9px; border-radius: 50%; background: var(--pulse); flex: none;
  box-shadow: 0 0 0 0 rgba(74,222,128,.7); animation: livePulse 2.2s infinite;
}
@keyframes livePulse {
  70%  { box-shadow: 0 0 0 9px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

.burger {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px;
  transition: background-color .18s var(--ease);
}
.burger:hover { background: var(--navy-tint); }
.burger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Drawer ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 140; background: rgba(11,41,91,.45);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.scrim.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; z-index: 150;
  width: min(400px, 90vw); height: 100dvh; background: #fff;
  box-shadow: -18px 0 50px -20px rgba(11,41,91,.35);
  transform: translateX(100%); transition: transform .34s var(--ease);
  display: flex; flex-direction: column;
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.drawer__head img { height: 52px; }
.drawer__close { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; color: var(--navy); }
.drawer__close:hover { background: var(--navy-tint); }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 24px 28px; }
.drawer__group + .drawer__group { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.drawer__label { font-size: .72rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.drawer__body a {
  display: block; padding: 10px 12px; margin-inline: -12px; border-radius: 8px;
  color: var(--ink); font-size: 1.02rem;
}
.drawer__body a:hover { background: var(--green-tint); color: var(--green-dark); }
.drawer__foot { padding: 20px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: clamp(520px, 78vh, 800px);
  display: grid; align-items: center;
  color: #fff; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(6,20,44,.80) 0%, rgba(6,20,44,.46) 42%, rgba(6,20,44,.12) 72%),
    linear-gradient(to top, rgba(6,20,44,.55), transparent 45%);
}
.hero h1 { color: #fff; max-width: 17ch; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero__sub { margin-top: 18px; font-size: clamp(1.02rem, .95rem + .4vw, 1.3rem); color: rgba(255,255,255,.9); max-width: 46ch; }
.hero__cta { display: flex; align-items: center; gap: 22px; margin-top: 34px; flex-wrap: wrap; }

.play {
  width: 62px; height: 62px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.16); border: 1.5px solid rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .22s var(--ease), background-color .22s var(--ease);
}
.play:hover { transform: scale(1.09); background: rgba(255,255,255,.3); }
.play svg { width: 21px; height: 21px; margin-left: 3px; }

/* ---------- Page banner (inner pages) ---------- */
.banner {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(220px, 27vw, 330px);
  display: grid; align-items: center; color: #fff;
  background: var(--navy);
}
.banner__media { position: absolute; inset: 0; z-index: -2; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, #0B295B 0%, rgba(11,41,91,.88) 28%, rgba(11,41,91,.30) 62%, rgba(11,41,91,.12) 100%);
}
.banner h1 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.5vw, 3.1rem); }
.banner p { margin-top: 10px; color: rgba(255,255,255,.85); font-size: clamp(1rem, .95rem + .25vw, 1.15rem); }
.banner--plain::after { background: linear-gradient(120deg, #0B295B 0%, #123C7B 55%, #0F3A6B 100%); }
.banner--gradient { background: linear-gradient(120deg, #0B295B 0%, #16603F 100%); }
.banner--gradient::after { display: none; }

/* Simple page head for pages that had no banner image */
.page-head { padding-top: clamp(40px, 5vw, 72px); }
.page-head h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem); }

/* ---------- Key facts strip ---------- */
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
.facts__item { flex: 1 1 200px; padding: 6px 28px; border-left: 1px solid rgba(11,41,91,.14); }
.facts__item:first-child { border-left: 0; }
.facts dt { font-size: .93rem; color: var(--muted); }
.facts dd { margin: 6px 0 0; display: flex; align-items: center; gap: 9px; font-weight: 500; color: var(--ink); }
.facts dd::before { content: ""; width: 7px; height: 7px; background: var(--navy); flex: none; }

/* ---------- Framed image (About block) ---------- */
.framed { position: relative; padding: 22px 22px 0 0; }
.framed::before {
  content: ""; position: absolute; inset: 0 0 26px 26px;
  border: 1.5px solid var(--green); border-radius: 4px;
}
.framed img { position: relative; border-radius: 3px; box-shadow: var(--sh-lg); width: 100%; }

.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--reverse > :first-child { order: 2; } }

.eyebrow-logo { height: 76px; width: auto; margin-bottom: 20px; }
.h2-duo { font-weight: 500; color: var(--muted); }
.h2-duo strong { color: var(--green); font-weight: 600; }

/* ---------- Architect band ---------- */
.architect { display: grid; gap: clamp(30px, 4vw, 56px); align-items: center; }
@media (min-width: 980px) { .architect { grid-template-columns: 1.05fr .95fr; } }
.architect p + p { margin-top: 16px; }
.architect strong { color: var(--ink); font-weight: 600; }

.portrait-group { display: grid; gap: 28px; align-items: center; }
@media (min-width: 620px) { .portrait-group { grid-template-columns: auto 1fr; } }
.portrait {
  width: clamp(190px, 22vw, 240px); aspect-ratio: 1; border-radius: 50%;
  object-fit: cover; object-position: center 22%;
  border: 9px solid rgba(40,137,106,.16);
  box-shadow: var(--sh-lg);
}
.quote {
  font-size: .95rem; line-height: 1.75; color: #6b5a42; font-style: italic;
  border-left: 2px solid rgba(40,137,106,.4); padding-left: 20px;
}

/* ---------- Video card ---------- */
.video-card {
  position: relative; display: block; width: min(100%, 880px); margin-inline: auto;
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-xl);
  aspect-ratio: 16/9; background: var(--navy);
}
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.video-card:hover img { transform: scale(1.04); }
.video-card__veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,20,44,.62), rgba(6,20,44,.14) 55%); }
.video-card__mark {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding: 20px;
}
.video-card__mark strong {
  color: #fff; font-size: clamp(1.1rem, .9rem + 1.1vw, 1.9rem); font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.video-card .play { position: relative; }

.tag-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 26px; }
.tag-row li { display: inline-flex; align-items: center; gap: 9px; font-size: .95rem; color: var(--body); }
.tag-row li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }

/* ---------- Feature cards over photo ---------- */
.feature-band { position: relative; isolation: isolate; overflow: hidden; color: #fff; }
.feature-band__media { position: absolute; inset: 0; z-index: -2; }
.feature-band__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,24,48,.86), rgba(8,24,48,.72)); }
.feature-band > .wrap > .s-head h2 { color: #fff; }
.feature-band .s-head p { color: rgba(255,255,255,.78); }

.grid-4 { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-3 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-2 { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 26px; box-shadow: var(--sh-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: rgba(40,137,106,.35); }
.card h3 { margin-bottom: 10px; color: var(--ink); }
/* Explicit colour: cards also sit inside .feature-band, which sets color:#fff
   on its subtree — without this the copy goes white-on-white. */
.card p { font-size: .95rem; color: var(--body); }
.card__icon { width: 34px; height: 34px; color: var(--green); margin-bottom: 16px; }
.card--flat { box-shadow: none; }
.card--flat:hover { transform: none; box-shadow: var(--sh-md); }
.card--tint { background: var(--green-tint); border-color: transparent; text-align: center; }
.card--tint .card__icon { margin-inline: auto; color: var(--navy); }

/* ---------- Partners marquee ---------- */
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee__track { display: flex; gap: 22px; width: max-content; animation: slide 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.partner-card {
  width: 320px; flex: none; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 24px; text-align: center; box-shadow: var(--sh-sm);
}
.partner-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.partner-card p { font-size: .93rem; color: var(--muted); }
.partner-card a { color: var(--green); }
.partner-card a:hover { text-decoration: underline; }

/* ---------- Amenities ---------- */
.amenities { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.amenity {
  border-radius: var(--r-md); padding: 26px 24px 28px; background: var(--p1);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.amenity:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.amenity svg { width: 26px; height: 26px; color: var(--navy); margin-bottom: 18px; }
.amenity h3 { font-size: 1.06rem; line-height: 1.32; margin-bottom: 10px; }
.amenity p { font-size: .9rem; line-height: 1.6; color: #5a6376; }
.amenity:nth-child(12n+1){background:var(--p1)} .amenity:nth-child(12n+2){background:var(--p2)}
.amenity:nth-child(12n+3){background:var(--p3)} .amenity:nth-child(12n+4){background:var(--p4)}
.amenity:nth-child(12n+5){background:var(--p5)} .amenity:nth-child(12n+6){background:var(--p6)}
.amenity:nth-child(12n+7){background:var(--p7)} .amenity:nth-child(12n+8){background:var(--p8)}
.amenity:nth-child(12n+9){background:var(--p9)} .amenity:nth-child(12n+10){background:var(--p10)}
.amenity:nth-child(12n+11){background:var(--p11)} .amenity:nth-child(12n){background:var(--p12)}

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.filters button {
  padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line);
  font-size: .92rem; color: var(--body); background: #fff;
  transition: all .18s var(--ease);
}
.filters button:hover { border-color: var(--navy); color: var(--navy); }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.masonry { columns: 4 250px; column-gap: 18px; }
.masonry > * { break-inside: avoid; margin-bottom: 18px; }

.shot {
  display: block; width: 100%; border-radius: var(--r-md); overflow: hidden;
  background: var(--navy-tint); box-shadow: var(--sh-md); position: relative;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.shot img { width: 100%; transition: transform .6s var(--ease); }
.shot:hover { transform: translateY(-4px); box-shadow: var(--sh-xl); }
.shot:hover img { transform: scale(1.05); }
.shot figcaption {
  position: absolute; inset: auto 0 0 0; padding: 26px 16px 13px;
  background: linear-gradient(to top, rgba(6,20,44,.85), transparent);
  color: #fff; font-size: .86rem; letter-spacing: .01em;
  opacity: 0; transform: translateY(8px); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.shot:hover figcaption, .shot:focus-visible figcaption { opacity: 1; transform: translateY(0); }
.is-hidden { display: none !important; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(5,14,30,.93); padding: clamp(16px, 4vw, 48px);
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox__cap { margin-top: 14px; text-align: center; color: rgba(255,255,255,.72); font-size: .92rem; }
.lb-btn {
  position: absolute; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.lb-btn:hover { background: rgba(255,255,255,.26); transform: scale(1.06); }
.lb-close { top: clamp(14px, 3vw, 28px); right: clamp(14px, 3vw, 28px); }
.lb-prev  { left: clamp(10px, 2vw, 28px);  top: 50%; margin-top: -25px; }
.lb-next  { right: clamp(10px, 2vw, 28px); top: 50%; margin-top: -25px; }
.lb-btn svg { width: 20px; height: 20px; }

/* ---------- Team ---------- */
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-sm); transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.person:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.person img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center 25%; }
.person__body { padding: 22px 24px 24px; }
.person__body h3 { font-size: 1.16rem; }
.person__role { color: var(--green); font-size: .95rem; margin: 4px 0 12px; }
.person__body p { font-size: .93rem; }
.person__links { display: flex; gap: 14px; margin-top: 16px; color: var(--navy); }
.person__links a { transition: color .16s var(--ease), transform .16s var(--ease); }
.person__links a:hover { color: var(--green); transform: translateY(-2px); }
.person__links svg { width: 18px; height: 18px; }

/* ---------- Media page ---------- */
.press {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 24px; box-shadow: var(--sh-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.press:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: rgba(40,137,106,.4); }
.press h3 { font-size: 1.08rem; line-height: 1.35; }
.press span { display: block; margin-top: 12px; font-size: .86rem; color: var(--muted); }
.press svg { width: 17px; height: 17px; flex: none; color: var(--muted); margin-top: 4px; }

/* ---------- Jobs ---------- */
.job { display: flex; flex-direction: column; }
.job__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.job__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 18px; }
.job__meta span { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; color: var(--muted); }
.job__meta svg { width: 15px; height: 15px; }
.job h4 { font-size: .97rem; margin: 20px 0 10px; color: var(--ink); }
.job ul { display: grid; gap: 9px; }
.job li { position: relative; padding-left: 18px; font-size: .92rem; }
.job li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--navy); }
.job .btn { margin-top: 22px; align-self: flex-start; }
.badge-job { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: var(--green-tint); color: var(--green); flex: none; }
.badge-job svg { width: 19px; height: 19px; }

/* ---------- Tabs (floor plans) ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.tabs button {
  padding: 11px 26px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: .96rem; font-weight: 500; color: var(--body); transition: all .18s var(--ease);
}
.tabs button:hover { border-color: var(--navy); color: var(--navy); }
.tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: var(--sh-md); }
.tabpanel[hidden] { display: none; }

.plan-sheet {
  display: block; border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; background: #fff; box-shadow: var(--sh-sm); position: relative;
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.plan-sheet:hover { box-shadow: var(--sh-lg); border-color: rgba(40,137,106,.4); }
.plan-sheet figcaption { padding: 13px 18px; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); background: var(--soft); }

.spec { border-collapse: collapse; width: 100%; font-size: .95rem; }
.spec caption { text-align: left; font-weight: 600; color: var(--ink); padding-bottom: 12px; font-size: 1.05rem; }
.spec th, .spec td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.spec th { font-weight: 500; color: var(--ink); width: 55%; }
.spec td { color: var(--muted); font-variant-numeric: tabular-nums; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec tfoot th, .spec tfoot td { font-weight: 600; color: var(--ink); background: var(--green-tint); }

/* ---------- Documents (permits) ---------- */
.doc { display: flex; align-items: center; gap: 18px; }
.doc__icon { width: 46px; height: 46px; border-radius: 10px; background: var(--navy-tint); color: var(--navy); display: grid; place-items: center; flex: none; }
.doc__icon svg { width: 22px; height: 22px; }
.doc h3 { font-size: 1.04rem; }
.doc p { font-size: .9rem; color: var(--muted); margin-top: 3px; }

.pdf-frame { width: 100%; height: clamp(520px, 78vh, 900px); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--soft); }

/* ---------- EMI calculator ---------- */
.emi { max-width: 760px; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-md); padding: clamp(24px, 4vw, 40px); }
.emi__row + .emi__row { margin-top: 30px; }
.emi__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.emi__top label { font-size: .95rem; color: var(--body); }
.emi__val { font-size: 1.2rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.emi__ctrl { display: flex; align-items: center; gap: 18px; }
.emi__ctrl input[type="number"] {
  width: 128px; flex: none; padding: 9px 12px; border: 1px solid var(--line);
  border-radius: var(--r-sm); font-variant-numeric: tabular-nums;
}
.emi__ctrl input[type="number"]:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(40,137,106,.14); }

input[type="range"] {
  -webkit-appearance: none; appearance: none; flex: 1; height: 6px; border-radius: 6px; cursor: pointer;
  background: linear-gradient(90deg, var(--navy), var(--green));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--navy); box-shadow: var(--sh-md); cursor: grab;
}
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); box-shadow: var(--sh-md); cursor: grab; }

.emi__out { margin-top: 34px; border-radius: var(--r-md); background: var(--navy-tint); border: 1px solid var(--line); padding: 26px; text-align: center; }
.emi__out p { font-size: 1.02rem; color: var(--body); }
.emi__out strong { display: block; margin-top: 6px; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); color: var(--navy); font-weight: 700; font-variant-numeric: tabular-nums; }
.emi__breakdown { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.emi__breakdown div { text-align: center; }
.emi__breakdown dt { font-size: .85rem; color: var(--muted); }
.emi__breakdown dd { margin: 4px 0 0; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.emi__note { margin-top: 18px; font-size: .84rem; color: var(--muted); text-align: center; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-md); padding: clamp(24px, 3.4vw, 36px); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .92rem; margin-bottom: 8px; color: var(--body); }
.field .req { color: #C0392B; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(40,137,106,.14); }
.field textarea { min-height: 128px; resize: vertical; }
.field-row { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.form-note { margin-top: 14px; font-size: .86rem; color: var(--muted); text-align: center; }
.form-status { margin-top: 16px; padding: 13px 16px; border-radius: var(--r-sm); font-size: .92rem; display: none; }
.form-status.is-shown { display: block; }
.form-status--ok { background: var(--green-tint); color: var(--green-dark); }

.contact-line { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 26px; }
.contact-line svg { width: 20px; height: 20px; color: var(--navy); flex: none; margin-top: 3px; }
.contact-line h4 { font-size: 1rem; margin-bottom: 3px; }
.contact-line a:hover { color: var(--green); }

/* ---------- Footer ---------- */
.footer { background: #fff; border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 76px); }
.footer__grid { display: grid; gap: clamp(32px, 5vw, 60px); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.footer h3 { font-size: 1.2rem; margin-bottom: 22px; }
.footer__line { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 18px; font-size: .95rem; }
.footer__line svg { width: 18px; height: 18px; color: var(--navy); flex: none; margin-top: 4px; }
.footer__line a:hover { color: var(--green); }
.footer__links li { margin-bottom: 14px; }
.footer__links a { font-size: .96rem; transition: color .16s var(--ease), padding-left .16s var(--ease); }
.footer__links a:hover { color: var(--green); padding-left: 4px; }
.socials { display: flex; gap: 18px; margin-bottom: 28px; }
.socials a { color: var(--navy); transition: color .16s var(--ease), transform .16s var(--ease); }
.socials a:hover { color: var(--green); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; }
.footer__call { display: inline-flex; align-items: center; gap: 11px; font-size: 1.35rem; font-weight: 600; color: var(--navy); }
.footer__call svg { width: 22px; height: 22px; }
.footer__bar { margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); padding-block: 24px; text-align: center; font-size: .9rem; color: var(--muted); }

/* ---------- Floating actions ---------- */
.fabs { position: fixed; right: 22px; bottom: 24px; z-index: 110; display: grid; gap: 14px; }
.fab {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #fff; box-shadow: 0 8px 22px -6px rgba(40,137,106,.6);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.fab:hover { transform: scale(1.1); background: var(--green-dark); }
.fab svg { width: 22px; height: 22px; }
.fab--top { background: var(--navy); box-shadow: 0 8px 22px -6px rgba(11,41,91,.5); opacity: 0; visibility: hidden; transform: translateY(10px); }
.fab--top.is-shown { opacity: 1; visibility: visible; transform: none; }
.fab--top:hover { background: var(--navy-800); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .pill-phone span.num { display: none; }
  .pill-phone { padding: 11px; }
  .header__actions { margin-left: auto; }
}
@media (max-width: 760px) {
  :root { --header-h: 74px; }
  .brand img { height: 48px; }
  .btn--visit { display: none; }
  .facts__item { flex-basis: 100%; border-left: 0; border-top: 1px solid rgba(11,41,91,.14); padding: 14px 0; }
  .facts__item:first-child { border-top: 0; padding-top: 0; }
  .masonry { columns: 2 150px; column-gap: 12px; }
  .masonry > * { margin-bottom: 12px; }
  .fabs { right: 14px; bottom: 16px; }
  .fab { width: 46px; height: 46px; }
}

@media print {
  .header, .fabs, .drawer, .scrim, .lightbox, .footer__links, .socials { display: none !important; }
  body { color: #000; }
  .reveal { opacity: 1; transform: none; }
}
