/* ==========================================================================
   Maria DeVito — Royal Edition
   Plain CSS (no framework). Layout uses flexbox + grid only.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Colour */
  --navy: #0E1A2B;
  --navy-deep: #0A1422;
  --navy-soft: #1C2C44;
  --gold: #B8975A;
  --gold-light: #D6BE8C;
  --gold-dark: #9A7B45;
  --gold-hover: #CDB07A;
  --ivory: #F6F1E7;
  --ivory-light: #FBF8F1;
  --champagne: #EFE7D6;
  --champagne-deep: #EAE0CC;
  --sand: #E6DCC8;
  --line: #E2D7C0;
  --line-strong: #CDBE9E;
  --text: #3D4A5C;
  --text-muted: #4A5668;
  --text-on-dark: #C9CDD6;
  --text-on-dark-muted: #B7BDC8;
  --brown: #6B5A3A;

  /* Type */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Helvetica Neue", sans-serif;

  /* Layout */
  --container: 1240px;
  --gutter: 40px;
  --section-y: 140px;
  --header-x: 48px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--navy);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-dark); }
a:hover { color: #6E5528; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
button { font: inherit; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--section-y) 0; }
.section--sm { padding: 120px 0; }
.bg-ivory { background: var(--ivory); }
.bg-ivory-light { background: var(--ivory-light); }
.bg-champagne { background: var(--champagne); }
.bg-navy { background: var(--navy); color: var(--ivory); }
.bg-navy-deep { background: var(--navy-deep); color: var(--ivory); }
.border-top { border-top: 1px solid var(--line); }
.border-y { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- 3. Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 18px;
  font-size: 12px; letter-spacing: .38em; text-transform: uppercase;
  color: var(--gold-dark);
}
.eyebrow--light { color: var(--gold-light); }
.eyebrow--lines::before, .eyebrow--lines::after {
  content: ""; width: 48px; height: 1px; background: var(--gold);
}
.eyebrow--line-left::before {
  content: ""; width: 48px; height: 1px; background: var(--gold);
}

.display-1, .display-2, .display-3 {
  font-family: var(--font-display); font-weight: 400; line-height: 1.06;
}
.display-1 { font-size: 92px; line-height: 1.02; }
.display-2 { font-size: 58px; }
.display-3 { font-size: 48px; }
.display-1 em, .display-2 em, .display-3 em { font-style: italic; color: var(--gold-dark); }
.bg-navy .display-1 em, .bg-navy .display-2 em, .bg-navy .display-3 em,
.hero em, .page-hero em { color: var(--gold-light); }

.lead {
  font-size: 17px; line-height: 1.8; font-weight: 300; color: var(--text);
}
.bg-navy .lead { color: var(--text-on-dark); }

.section-head {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px;
}
.section-head--split {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px; align-items: end;
}
.section-head--row {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
}
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack--lg { gap: 28px; }

.ornament { display: block; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 34px;
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; text-decoration: none;
  white-space: nowrap; border: 1px solid transparent; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-hover); color: var(--navy); }
.btn--ink { background: var(--navy); color: var(--ivory); }
.btn--ink:hover { background: var(--navy-soft); color: var(--ivory); }
.btn--outline-light { color: var(--ivory); border-color: rgba(214, 190, 140, .6); background: transparent; }
.btn--outline-light:hover { color: var(--gold-light); border-color: var(--gold-light); }
.btn--outline { color: var(--navy); border-color: var(--gold); background: transparent; padding: 0 40px; }
.btn--outline:hover { background: var(--navy); border-color: var(--navy); color: var(--gold-light); }
.btn--sm { min-height: 46px; padding: 0 24px; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- 5. Header ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20; color: var(--ivory);
}
.site-header__bar {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 32px;
  padding: 32px var(--header-x) 26px;
}
.site-header__left { display: flex; align-items: center; gap: 12px; }
.site-header__center { display: flex; align-items: center; gap: 56px; }
.site-header__right { display: flex; align-items: center; justify-content: flex-end; }
.site-header__rule { height: 1px; margin: 0 var(--header-x); background: rgba(214, 190, 140, .35); }

.site-logo img { width: 240px; max-width: 46vw; }

.main-nav { display: flex; align-items: center; gap: 40px; }
.main-nav a {
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ivory); text-decoration: none;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold-light); }

.header-social { display: flex; align-items: center; gap: 6px; }
.header-social a {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ivory);
}
.header-social a:hover { color: var(--gold-light); }

.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: none; border: 0; color: var(--ivory); cursor: pointer;
  align-items: center; justify-content: center;
}

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 50;
  background: var(--navy-deep); color: var(--ivory);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav a {
  font-family: var(--font-display); font-size: 34px; color: var(--ivory); text-decoration: none;
}
.mobile-nav a:hover { color: var(--gold-light); }
.mobile-nav__close {
  position: absolute; top: 20px; right: 20px; width: 44px; height: 44px;
  background: none; border: 0; color: var(--ivory); cursor: pointer;
}
body.nav-open { overflow: hidden; }

/* ---------- 6. Heroes ---------- */
.hero, .page-hero {
  position: relative; overflow: hidden; display: flex; align-items: center;
  background: var(--navy); color: var(--ivory);
}
.hero { min-height: 920px; }
.page-hero { min-height: 620px; }
.hero__media, .page-hero__media {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__overlay { position: absolute; inset: 0; background: rgba(10, 20, 34, .58); }
.page-hero .hero__overlay { background: rgba(10, 20, 34, .62); }
.hero__content, .page-hero__content {
  position: relative; width: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 32px;
}
.hero__content { padding-top: 240px; padding-bottom: 180px; }
.page-hero__content { padding-top: 220px; padding-bottom: 110px; gap: 24px; }
.hero__title { max-width: 980px; }
.hero__text { max-width: 620px; font-size: 18px; line-height: 1.75; font-weight: 300; color: #DDE0E6; }
.page-hero__text { max-width: 620px; font-size: 17px; line-height: 1.75; font-weight: 300; color: #DDE0E6; }
.hero .btn-row { justify-content: center; padding-top: 8px; }
.scroll-cue {
  position: absolute; left: 0; right: 0; bottom: 56px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold-light);
}
.scroll-cue::after { content: ""; width: 1px; height: 40px; background: var(--gold); }

.breadcrumb {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--text-on-dark);
}
.breadcrumb a { color: var(--text-on-dark); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb__sep { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }
.breadcrumb [aria-current] { color: var(--gold-light); }

/* ---------- 7. Placeholder (remove when real images are in) ---------- */
.ph {
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px;
  background: var(--sand); color: #8C7B5C;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
}
.ph--dark { background: var(--navy-soft); color: #8A93A3; align-items: flex-end; justify-content: flex-end; padding: 32px; }

/* ---------- 8. Contact bar ---------- */
.contact-bar { background: var(--navy-deep); border-top: 1px solid rgba(214, 190, 140, .35); }
.contact-bar__inner {
  display: flex; align-items: center; justify-content: center; gap: 40px; padding-top: 18px; padding-bottom: 18px;
}
.contact-bar__item {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; letter-spacing: .04em; color: var(--ivory); text-decoration: none;
}
a.contact-bar__item:hover { color: var(--gold-light); }
.contact-bar__divider { width: 1px; height: 22px; background: rgba(214, 190, 140, .4); }
.icon-ring {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(214, 190, 140, .6);
  display: inline-flex; align-items: center; justify-content: center; color: var(--gold-light);
}

/* ---------- 9. Split layouts ---------- */
.split {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 96px; align-items: center;
}
.split--reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split--top { align-items: start; }
.split--contact { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }

/* Portrait frame (cut-out photo on champagne) */
.portrait-frame {
  position: relative; width: 100%; max-width: 520px; aspect-ratio: 4 / 5; justify-self: center;
  background: var(--champagne-deep); overflow: hidden;
}
.portrait-frame__border {
  position: absolute; inset: 18px; border: 1px solid #C9AE7C; z-index: 3; pointer-events: none;
}
.portrait-frame__word {
  position: absolute; left: 0; right: 0; top: 7%; text-align: center;
  font-family: var(--font-display); font-style: italic; font-size: 190px; line-height: .9; color: #DDCFB2;
}
.portrait-frame__arch {
  position: absolute; left: 50%; bottom: 0; width: 78%; height: 62%; transform: translateX(-50%);
  border-radius: 50% 50% 0 0; background: #F3ECDD;
}
.portrait-frame__img {
  position: absolute; left: 50%; bottom: -6%; transform: translateX(-50%);
  height: 92%; width: auto; max-width: none;
}
.portrait-frame__fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 22%; z-index: 2;
  background: linear-gradient(to top, var(--champagne-deep), rgba(234, 224, 204, 0));
}
.portrait-frame__card {
  position: absolute; left: 36px; bottom: 40px; z-index: 4;
  display: flex; flex-direction: column; gap: 6px; padding: 18px 24px;
  background: var(--navy); color: var(--ivory);
}
.portrait-frame__card strong { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1; }
.portrait-frame__card span { font-size: 9px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-light); }

/* Offset gold frame around a photo */
.offset-frame { position: relative; width: 100%; }
.offset-frame::before {
  content: ""; position: absolute; top: 22px; left: 22px; right: -22px; bottom: -22px;
  border: 1px solid var(--gold);
}
.offset-frame img, .offset-frame .ph { position: relative; width: 100%; height: 100%; object-fit: cover; }
.offset-frame--5x4 { aspect-ratio: 5 / 4; }
.offset-frame--4x3 { aspect-ratio: 4 / 3; }

.signature { font-family: var(--font-display); font-style: italic; font-size: 34px; color: var(--gold-dark); }
.about-cta { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; padding-top: 12px; }

/* ---------- 10. Listings slider ---------- */
.slider { display: flex; flex-direction: column; gap: 40px; }
.slider__track {
  display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding-bottom: 4px;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__controls { display: flex; justify-content: flex-end; gap: 12px; }
.slider__btn {
  width: 52px; height: 52px; border-radius: 50%; padding: 0;
  border: 1px solid var(--gold); background: transparent; color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.slider__btn:hover { background: var(--navy); border-color: var(--navy); color: var(--gold-light); }

.property-card {
  flex: 0 0 calc((100% - 64px) / 3); scroll-snap-align: start;
  display: flex; flex-direction: column; text-decoration: none; color: var(--navy);
  background: var(--ivory); border: 1px solid var(--line); transition: border-color .25s;
}
.property-card:hover { border-color: var(--gold); color: var(--navy); }
.property-card__media { position: relative; aspect-ratio: 4 / 3; }
.property-card__media img, .property-card__media .ph { width: 100%; height: 100%; object-fit: cover; }
.property-card__tag {
  position: absolute; top: 20px; left: 20px; padding: 9px 14px;
  background: var(--navy); color: var(--gold-light);
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
}
.property-card__body { display: flex; flex-direction: column; gap: 12px; padding: 32px 32px 36px; }
.property-card__price { font-family: var(--font-display); font-size: 34px; line-height: 1; }
.property-card__address { font-size: 16px; color: #2A3A52; }
.property-card__town { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--brown); }
.property-card__meta {
  display: flex; flex-wrap: wrap; gap: 20px; margin-top: 8px; padding-top: 16px;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--text-muted);
}
.property-card__meta span + span::before { content: "·"; color: var(--gold); margin-right: 20px; }

/* ---------- 11. Pillars ---------- */
.pillars {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(214, 190, 140, .3);
}
.pillar { display: flex; flex-direction: column; gap: 18px; padding: 48px 32px 8px; }
.pillar:first-child { padding-left: 0; }
.pillar:last-child { padding-right: 0; }
.pillar + .pillar { border-left: 1px solid rgba(214, 190, 140, .2); }
.pillar__num, .card__num { font-family: var(--font-display); font-size: 44px; line-height: 1; color: var(--gold); }
.pillar h3 { font-family: var(--font-display); font-weight: 500; font-size: 28px; }
.pillar p { font-size: 15px; line-height: 1.75; font-weight: 300; color: var(--text-on-dark-muted); }

/* ---------- 12. Cards grid (services / expertise) ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column; gap: 20px; padding: 44px 40px;
  background: var(--ivory-light); border: 1px solid var(--line); transition: border-color .25s;
}
.card:hover { border-color: var(--gold); }
.card__num { font-size: 40px; }
.card h3 { font-family: var(--font-display); font-weight: 500; font-size: 27px; }
.card p { font-size: 15px; line-height: 1.75; font-weight: 300; color: var(--text-muted); }
.card svg { color: var(--gold-dark); }

/* ---------- 13. Awards ---------- */
.awards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.award {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 16px 24px;
}
.award + .award { border-left: 1px solid #D8CAAC; }
.award__year { font-family: var(--font-display); font-size: 48px; line-height: 1; }
.award h3 { font-family: var(--font-display); font-weight: 500; font-size: 24px; }
.award__org { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--brown); }

/* ---------- 14. Logo marquee ---------- */
.marquee-section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.marquee-section .eyebrow { display: flex; justify-content: center; font-size: 11px; letter-spacing: .42em; margin-bottom: 40px; }
.marquee { position: relative; overflow: hidden; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 160px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--ivory), rgba(246, 241, 231, 0)); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--ivory), rgba(246, 241, 231, 0)); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; }
.marquee__item {
  flex: 0 0 auto; width: 220px; height: 100px; margin: 0 36px;
  display: flex; align-items: center; justify-content: center;
}
.marquee__item img { max-height: 100%; width: auto; object-fit: contain; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 15. Closing statement (round photo) ---------- */
.circle-photo { position: relative; width: 100%; aspect-ratio: 1 / 1; }
.circle-photo::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(184, 151, 90, .5); transform: scale(1.06);
}
.circle-photo img {
  position: relative; width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; object-position: 62% 40%;
}

/* ---------- 16. Newsletter ---------- */
.newsletter { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.newsletter p { max-width: 520px; font-size: 16px; line-height: 1.75; font-weight: 300; color: var(--text-muted); }
.newsletter__form { display: flex; flex-wrap: wrap; width: 100%; max-width: 560px; padding-top: 8px; }
.newsletter__form input {
  flex: 1 1 260px; min-height: 52px; padding: 0 20px;
  border: 1px solid var(--line-strong); background: var(--ivory-light);
  font-family: var(--font-body); font-size: 15px; color: var(--navy);
}
.newsletter__form input:focus { outline: 1px solid var(--gold-dark); }

/* ---------- 17. Instagram ---------- */
.insta { display: flex; flex-direction: column; align-items: center; gap: 48px; }
.insta__grid { display: grid; grid-template-columns: repeat(var(--insta-cols, 6), minmax(0, 1fr)); gap: 12px; width: 100%; }
.insta__tile { aspect-ratio: 1 / 1; display: block; overflow: hidden; background: #E2D6BE; }
.insta__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.insta__tile:hover img { transform: scale(1.04); }
.insta__tile .ph { width: 100%; height: 100%; background: #E2D6BE; }

/* ---------- 18. Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--text-on-dark-muted); }
.site-footer__inner { display: flex; flex-direction: column; gap: 64px; padding-top: 88px; padding-bottom: 40px; }
.site-footer__cols {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 48px;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 18px; }
.site-footer__brand img { width: 220px; }
.site-footer__tagline { font-size: 10px; letter-spacing: .42em; text-transform: uppercase; color: var(--gold-light); }
.site-footer__brand p { max-width: 320px; font-size: 14px; line-height: 1.75; font-weight: 300; }
.site-footer__col { display: flex; flex-direction: column; gap: 14px; font-size: 14px; line-height: 1.6; }
.site-footer__title { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-light); }
.site-footer a { color: var(--text-on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer__social { display: flex; gap: 18px; padding-top: 6px; }
.site-footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 28px; border-top: 1px solid rgba(214, 190, 140, .2);
  font-size: 12px; letter-spacing: .08em;
}

/* ---------- 19. About page ---------- */
.social-circles { display: flex; gap: 12px; padding-top: 6px; }
.social-circles a {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; color: var(--navy);
  transition: background .25s, color .25s, border-color .25s;
}
.social-circles a:hover { background: var(--navy); border-color: var(--navy); color: var(--gold-light); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 56px 32px; }
.stat + .stat { border-left: 1px solid rgba(214, 190, 140, .25); }
.stat__value { font-family: var(--font-display); font-size: 64px; line-height: 1; color: var(--gold-light); }
.stat__value--text { font-size: 40px; line-height: 1.3; font-style: italic; }
.stat__label { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--text-on-dark); }

.pull-quote { display: flex; flex-direction: column; gap: 18px; margin-top: 16px; padding-top: 40px; border-top: 1px solid var(--line); }
.pull-quote blockquote { font-family: var(--font-display); font-style: italic; font-size: 32px; line-height: 1.3; }
.pull-quote figcaption { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-dark); }

.edu-card { display: flex; flex-direction: column; gap: 22px; margin-top: 44px; padding: 40px 40px 44px; background: var(--navy); color: var(--ivory); }
.edu-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.edu-card li { display: flex; gap: 16px; align-items: baseline; }
.edu-card li::before {
  content: ""; flex: 0 0 auto; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg) translateY(-2px);
}
.edu-card strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 23px; }
.edu-card small { display: block; font-size: 13px; color: var(--text-on-dark-muted); }

.towns {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); width: 100%;
  border-top: 1px solid rgba(214, 190, 140, .3); border-bottom: 1px solid rgba(214, 190, 140, .3);
}
.towns li { padding: 30px 12px; text-align: center; font-family: var(--font-display); font-size: 26px; }
.towns { list-style: none; margin: 0; padding: 0; }

/* ---------- 20. Forms ---------- */
.form { display: flex; flex-direction: column; gap: 30px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--brown); }
.field input, .field textarea {
  width: 100%; min-height: 44px; padding: 12px 0;
  font-family: var(--font-body); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--navy);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); outline: none;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--gold-dark); }
.form--light { padding: 56px; background: var(--ivory-light); border: 1px solid var(--line); }
.form--dark { padding: 64px 56px; background: var(--navy); color: var(--ivory); gap: 32px; }
.form--dark .field { color: var(--gold-light); }
.form--dark .field input, .form--dark .field textarea { color: var(--ivory); border-bottom-color: rgba(214, 190, 140, .45); }
.form--dark .field input:focus, .form--dark .field textarea:focus { border-bottom-color: var(--gold-light); }
.form__title { font-family: var(--font-display); font-size: 36px; line-height: 1.1; }

.contact-list { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; }
.contact-list a, .contact-list div { display: flex; align-items: flex-start; gap: 14px; color: var(--navy); text-decoration: none; line-height: 1.6; }
.contact-list svg { flex: 0 0 auto; margin-top: 3px; color: var(--gold-dark); }

/* ---------- 21. Gallery page ---------- */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 36px; border-bottom: 1px solid var(--line); }
.tab {
  min-height: 44px; padding: 12px 4px; background: none; border: 0; border-bottom: 1px solid transparent;
  font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: #6B7586; cursor: pointer;
}
.tab:hover { color: var(--navy); }
.tab[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--gold); }

.gallery-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 280px; grid-auto-flow: dense; gap: 16px;
}
.gallery-item { position: relative; display: block; overflow: hidden; background: var(--sand); }
.gallery-item[hidden] { display: none; }
.gallery-item--tall { grid-row: span 2; }
.gallery-item--wide { grid-column: span 2; }
.gallery-item img, .gallery-item .ph { width: 100%; height: 100%; object-fit: cover; }
.gallery-item__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: rgba(10, 20, 34, .72); color: var(--ivory);
  opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .gallery-item__cap, .gallery-item:focus-visible .gallery-item__cap { opacity: 1; }
.gallery-item__cat { display: block; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-light); }
.gallery-item__title { display: block; font-family: var(--font-display); font-size: 22px; }

/* ---------- 22. Contact page ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 110px; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 44px 32px;
  background: var(--ivory-light); border: 1px solid var(--line); color: var(--navy); text-decoration: none;
  transition: border-color .25s;
}
a.contact-card:hover { border-color: var(--gold); color: var(--navy); }
.contact-card__icon {
  width: 60px; height: 60px; border-radius: 50%; border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center; color: var(--gold-dark);
}
.contact-card__label { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-dark); }
.contact-card__value { font-family: var(--font-display); font-size: 26px; line-height: 1.35; }

.map { position: relative; height: 440px; border-top: 1px solid #D8CAAC; }
.map iframe, .map .ph { width: 100%; height: 100%; border: 0; filter: grayscale(.4) sepia(.15); }
.map__label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -130%);
  display: flex; flex-direction: column; gap: 4px; padding: 16px 22px; text-align: center;
  background: var(--navy); color: var(--ivory); box-shadow: 0 18px 36px rgba(0, 0, 0, .2);
}
.map__label strong { font-family: var(--font-display); font-weight: 400; font-size: 20px; }
.map__label span { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-light); }

/* ---------- 23. Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease-out, transform .7s ease-out; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 24. Responsive ---------- */
@media (max-width: 1200px) {
  .site-header__center { gap: 32px; }
  .main-nav { gap: 28px; }
}

@media (max-width: 1024px) {
  .property-card { flex-basis: calc((100% - 32px) / 2); }
}

@media (max-width: 900px) {
  :root { --gutter: 20px; --section-y: 80px; --header-x: 20px; }
  .section--sm { padding: 80px 0; }
  .site-header__bar { padding: 20px 20px 16px; }
  .main-nav, .header-social, .site-header__right .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .display-1 { font-size: 52px; }
  .display-2, .display-3 { font-size: 40px; }
  .hero { min-height: 760px; }
  .hero__content { padding-top: 180px; padding-bottom: 140px; }
  .page-hero__content { padding-top: 170px; padding-bottom: 80px; }
  .split, .split--reverse, .split--even, .split--contact, .section-head--split { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .grid-3, .awards, .stats, .contact-cards { grid-template-columns: minmax(0, 1fr); }
  .award + .award { border-left: 0; border-top: 1px solid #D8CAAC; }
  .stat + .stat { border-left: 0; border-top: 1px solid rgba(214, 190, 140, .25); }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar, .pillar:first-child, .pillar:last-child { padding: 40px 20px 8px; }
  .pillar:nth-child(odd) { border-left: 0; }
  .towns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; }
  .insta__grid { --insta-cols: 3 !important; }
  .contact-bar__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .contact-bar__divider { display: none; }
  .form--light { padding: 32px 24px; }
  .form--dark { padding: 40px 24px; }
  .offset-frame::before { top: 12px; left: 12px; right: -12px; bottom: -12px; }
}

@media (max-width: 560px) {
  .display-1 { font-size: 42px; }
  .property-card { flex-basis: 86%; }
  .pillars, .site-footer__cols, .form__row { grid-template-columns: minmax(0, 1fr); }
  .pillar + .pillar { border-left: 0; border-top: 1px solid rgba(214, 190, 140, .2); }
  .towns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery-item--wide { grid-column: auto; }
  .insta__grid { --insta-cols: 2 !important; }
  .portrait-frame__word { font-size: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
