/* ============================================================
   Shared design system — modern, responsive, light/dark aware.
   Each site overrides the CSS variables in :root to re-theme.
   ============================================================ */

:root {
  /* Brand — override per site */
  --accent:        #6366f1;
  --accent-2:      #8b5cf6;
  --accent-soft:   rgba(99, 102, 241, 0.12);

  /* Surfaces & text (light) */
  --bg:            #ffffff;
  --bg-alt:        #f7f7fb;
  --surface:       #ffffff;
  --border:        #e7e7ee;
  --text:          #16161d;
  --text-muted:    #5b5b6b;
  --shadow:        0 10px 40px -12px rgba(20, 20, 40, 0.18);

  --radius:        18px;
  --radius-sm:     12px;
  --maxw:          1120px;
  --font:          "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #0b0b12;
    --bg-alt:      #11111c;
    --surface:     #15151f;
    --border:      #262633;
    --text:        #f2f2f7;
    --text-muted:  #a0a0b2;
    --shadow:      0 10px 40px -12px rgba(0, 0, 0, 0.6);
    --accent-soft: rgba(99, 102, 241, 0.18);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.2rem; }

p { color: var(--text-muted); }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 60ch; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-color: var(--border); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--text); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px -8px var(--accent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px var(--accent); }
.btn-ghost { color: var(--text); background: var(--surface); border-color: var(--border); }
.btn-ghost:hover { transform: translateY(-2px); }

/* ---- Hero ---- */
.hero { position: relative; padding: 120px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% 0 auto 0; height: 620px; z-index: -1;
  background: radial-gradient(60% 60% at 70% 20%, var(--accent-soft), transparent 70%);
}
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Cards / grid ---- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.card h3 { margin-bottom: 8px; }

.section-head { max-width: 640px; margin: 0 auto 54px; text-align: center; }
.bg-alt { background: var(--bg-alt); }

/* ---- Contact form ---- */
.contact-wrap { max-width: 620px; margin: 0 auto; }
.form { display: grid; gap: 16px; margin-top: 28px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field input, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 13px 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field textarea { min-height: 130px; resize: vertical; }
/* Honeypot — hidden from real users, catches bots */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-note { font-size: 0.9rem; text-align: center; min-height: 1.2em; }
.form-note.ok { color: #10b981; }
.form-note.err { color: #ef4444; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--border); padding: 44px 0; }
.footer .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer p { font-size: 0.9rem; }
.social { display: flex; gap: 18px; }
.social a { color: var(--text-muted); transition: color .2s; }
.social a:hover { color: var(--accent); }

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

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 4px; padding: 16px 24px 24px;
    background: var(--bg); border-bottom: 1px solid var(--border);
  }
  section { padding: 72px 0; }
}
/* 75 Kingswood — luxury villa palette: gold on deep neutrals. */
:root {
  --accent:      #a8842c;
  --accent-2:    #d4af37;
  --accent-soft: rgba(168, 132, 44, 0.12);
}
@media (prefers-color-scheme: dark) {
  :root { --accent-soft: rgba(212, 175, 55, 0.20); }
}

/* --- Page-specific pieces (villa marketing page) --- */
.stats-strip { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.stat {
  flex: 1 1 140px; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 18px 14px;
}
.stat b { display: block; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--text); }
.stat span { font-size: 0.85rem; color: var(--text-muted); }

.amenities { columns: 3; column-gap: 30px; margin-top: 8px; }
.amenities li {
  list-style: none; padding: 9px 0 9px 26px; position: relative;
  break-inside: avoid; color: var(--text); font-size: 0.98rem;
}
.amenities li::before {
  content: "✦"; position: absolute; left: 0; color: var(--accent); font-size: 0.9rem;
}
@media (max-width: 820px) { .amenities { columns: 2; } }
@media (max-width: 520px) { .amenities { columns: 1; } }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.gallery .tile {
  position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius-sm);
  overflow: hidden; border: 1px solid var(--border); background: var(--bg-alt);
}
.gallery .tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.gallery .tile:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 13px 10px;
  font-size: 0.82rem; font-weight: 500; color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,0.72), rgba(0,0,0,0));
}
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* Floor plan — one card per level; sheets stay on white so the line drawing reads in dark mode */
.plan-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
  align-items: start; margin-top: 8px;
}
.plan-card {
  margin: 0; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow); overflow: hidden;
  transition: transform .35s ease, border-color .35s ease;
}
.plan-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.plan-card .sheet { display: block; background: #fff; padding: 20px; }
.plan-card .sheet img { width: 100%; }
.plan-card figcaption { padding: 16px 20px 20px; }
.plan-card .lvl {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.plan-card h3 { margin: 4px 0 4px; font-size: 1.15rem; }
.plan-card p { color: var(--text-muted); font-size: .9rem; margin: 0; }
@media (max-width: 820px) { .plan-grid { grid-template-columns: 1fr; } }

/* Full-bleed hero photo with dark scrim for legible white text */
.hero.has-photo { min-height: 88vh; display: grid; align-items: center; color: #fff; }
.hero.has-photo::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2;
  background-image: var(--hero-img); background-size: cover; background-position: center;
}
.hero.has-photo::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
  background: linear-gradient(180deg, rgba(8,10,18,0.45) 0%, rgba(8,10,18,0.72) 100%);
}
.hero.has-photo .eyebrow { color: #ecd291; }
.hero.has-photo .lead { color: rgba(255,255,255,0.92); }
.hero.has-photo .btn-ghost { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.4); }
.hero.has-photo .stat { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.24); }
.hero.has-photo .stat b { color: #fff; }
.hero.has-photo .stat span { color: rgba(255,255,255,0.82); }

/* Guest rating badge (visible companion to the aggregateRating markup) */
.rating-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 22px; padding: 9px 16px; border-radius: 999px;
  text-decoration: none; font-size: 0.95rem;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.24);
  color: #fff; backdrop-filter: blur(4px);
  transition: background .2s ease, transform .15s ease;
}
.rating-badge:hover { background: rgba(255,255,255,0.2); transform: translateY(-1px); }
.rating-badge .stars { color: #ecd291; letter-spacing: 1px; }
.rating-badge strong { font-weight: 600; }
.rating-badge .rating-label { color: rgba(255,255,255,0.85); }

/* Looping background video in the hero */
.hero.has-video .hero-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}

/* ============================================================
   Luxury layer — modern, editorial, architectural.
   Elegant serif display, restrained champagne palette,
   sharp corners, hairline detailing, generous whitespace.
   ============================================================ */
:root {
  --accent:      #b99a6b;                 /* brushed brass / champagne */
  --accent-2:    #d8c19a;
  --accent-soft: rgba(185, 154, 107, 0.14);
  --radius:      3px;
  --radius-sm:   2px;
  --serif:       "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font:        "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) { :root { --accent-soft: rgba(185, 154, 107, 0.22); } }

body { font-weight: 400; letter-spacing: 0.004em; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: 0; }
h1 { font-size: clamp(3.2rem, 8vw, 6rem); line-height: 1.02; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h3 { font-size: 1.5rem; }

.eyebrow {
  font-family: var(--font); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px;
}
.lead { font-weight: 300; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.75; }

section { padding: 128px 0; }
.section-head { margin-bottom: 72px; }

/* Architectural buttons — tracked, sharp, restrained */
.btn {
  border-radius: 2px; font-family: var(--font);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; padding: 16px 32px;
}
.btn-primary { background: var(--accent); color: #17130c; box-shadow: none; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: none; }
.btn-ghost { background: transparent; border-color: color-mix(in srgb, currentColor 32%, transparent); }
.btn-ghost:hover { transform: translateY(-1px); }

/* Nav — refined logotype + tracked links */
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; letter-spacing: 0.02em; }
.nav-links a:not(.btn) { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
/* Keep the CTA's dark text — base .nav-links a color would otherwise win by specificity */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #17130c; }

/* Cards — hairline, flat, architectural */
.card { box-shadow: none; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(0,0,0,0.5); }
.card .icon { border-radius: 2px; }

/* Elegant serif numerals + card titles */
.stat b { font-family: var(--serif); font-weight: 500; }
.card h3, .footer p, .field label { font-family: var(--serif); }
.field label { font-size: 1rem; }

/* Editorial amenity marks */
.amenities li { padding-left: 30px; }
.amenities li::before { content: "—"; color: var(--accent); }

/* Hero refinements over the video */
.hero.has-photo .eyebrow { color: var(--accent-2); }
.hero.has-video::after { background: linear-gradient(180deg, rgba(10,10,14,0.42) 0%, rgba(10,10,14,0.8) 100%); }

/* Full-bleed editorial "view" band */
.view-band {
  position: relative; min-height: 76vh; display: grid; place-items: center;
  text-align: center; color: #fff; padding: 120px 0;
  background-image: var(--view-img); background-size: cover; background-position: center;
}
.view-band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,14,0.32) 0%, rgba(10,10,14,0.58) 100%);
}
.view-band .container { position: relative; z-index: 1; }
.view-band .eyebrow { color: var(--accent-2); }
.view-band h2 { color: #fff; font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
.view-band p { color: rgba(255,255,255,0.92); max-width: 48ch; margin: 20px auto 0; font-weight: 300; }
