/* Samaya Crystal Beach Villas: tokens + site layout (ported from the design export). */
:root {
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --jungle: #02180c;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
  --radius-none: 0; --radius-sm: 2px; --radius-md: 6px; --radius-full: 999px;
  --hairline: 1px;
  --shadow-card: 0 1px 2px rgba(2, 24, 12, .06), 0 8px 24px rgba(2, 24, 12, .08);
  --villa-a1: #f19c9c; --villa-a2: #f6e97a; --villa-b: #a6d9a0; --villa-c: #a9c3ef; --plan-ink: #1d1f1a;
  --status-sold: #9b2c2c; --status-reserved: #8a5208; --status-available: #2c6a3a; --on-status: #ffffff;
}
[data-theme="jungle"] {
  --surface: #02180c; --surface-band: #02180c; --surface-raised: #0a2615;
  --ink: #efe9dc; --ink-muted: #bdb7a7; --gold: #c8a250; --gold-on-band: #c8a250;
  --on-band: #efe9dc; --ink-muted-on-band: #bdb7a7; --line: rgba(200, 162, 80, .32);
  background: var(--surface); color: var(--ink);
}
[data-theme="ivory"] {
  --surface: #f6f1e6; --surface-band: #02180c; --surface-raised: #fffdf8;
  --ink: #1d1f1a; --ink-muted: #59584f; --gold: #7d5c1c; --gold-on-band: #c8a250;
  --on-band: #efe9dc; --ink-muted-on-band: #bdb7a7; --line: #e2d8c4;
  background: var(--surface); color: var(--ink);
}

body { margin: 0; background: #f6f1e6; }
.page { font-family: var(--font-sans); color: var(--ink); background: var(--surface); min-width: 0; }
a { color: #7d5c1c; } a:hover { color: #5e4514; }

/* Page frame */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 48px); box-sizing: border-box; }
.section { padding-block: clamp(56px, 8vw, 112px); }
.stack { display: flex; flex-direction: column; }
.eyebrow { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin: 0; }
.h-display { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; color: var(--gold); margin: 0; letter-spacing: .02em; }
.h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.1; }
.h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.25; }
.lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.7; font-weight: 300; margin: 0; max-width: 62ch; }
.body { font-size: 15px; line-height: 1.75; font-weight: 300; margin: 0; }
.caption { font-size: 12px; line-height: 18px; color: var(--ink-muted); margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 28px; box-sizing: border-box;
  font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--gold-on-band); border-radius: var(--radius-none); cursor: pointer; transition: background .2s, color .2s; }
.btn:focus-visible { outline: 2px solid var(--gold-on-band); outline-offset: 3px; }
.btn-gold, .btn-gold:visited { background: var(--gold-on-band); color: var(--jungle); }
.btn-gold:hover { background: #d9b867; color: var(--jungle); }

/* Ornament */
.orn { display: flex; align-items: center; gap: 12px; color: var(--gold); width: 100%; max-width: 280px; }
.orn::before, .orn::after { content: ""; flex: 1; height: 1px; background: currentColor; }
.orn i { width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); flex: none; }

/* Header */
.site-head { position: relative; z-index: 2; background: var(--surface-band); border-bottom: 1px solid rgba(200, 162, 80, .28); font-family: var(--font-sans); color: var(--on-band); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 14px; max-width: 1360px; }
.site-head .logo { display: block; line-height: 0; }
.site-head .logo img { height: 64px; width: auto; display: block; }
.site-head nav ul { display: flex; flex-wrap: wrap; gap: 4px 28px; list-style: none; margin: 0; padding: 0; }
.site-head nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-band); text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; border-bottom: 1px solid transparent; }
.site-head nav a:hover { color: var(--gold-on-band); }
.site-head nav a[aria-current="page"] { color: var(--gold-on-band); border-bottom-color: var(--gold-on-band); }
@media (max-width: 900px) { .site-head .head-cta { display: none; } .site-head nav { order: 3; width: 100%; } .site-head nav ul { gap: 0 18px; } }

/* Photography */
.photo { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-none); }

/* Stat tile */
.sm-stat { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-6);
  background: var(--surface-raised); border: var(--hairline) solid var(--gold); }
.sm-stat b { font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 44px; color: var(--gold); min-width: 1ch; }
.sm-stat span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }

/* Status chips */
.chip { display: inline-block; padding: 3px 8px; border-radius: var(--radius-sm); color: var(--on-status); font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.chip-sold { background: var(--status-sold); } .chip-reserved { background: var(--status-reserved); } .chip-available { background: var(--status-available); }

/* Banner */
.sm-banner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-6); background: var(--surface-band);
  border: var(--hairline) solid var(--gold-on-band); padding: 28px 32px; color: var(--on-band); }
.sm-banner h4 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 26px; text-transform: uppercase; color: var(--gold-on-band); }
.sm-banner p { margin: 2px 0 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.sm-banner .sep { width: var(--hairline); align-self: stretch; background: var(--gold-on-band); opacity: .6; }

/* Master plan grid */
.plan-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; }
.plan-legend span { display: inline-flex; align-items: center; gap: 8px; }
.plan-legend i { width: 14px; height: 14px; display: inline-block; }
.plan-box { overflow-x: auto; background: var(--surface-raised); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 20px; }
.plan { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)) 1.6fr; grid-template-rows: 150px 56px 150px; gap: 4px; min-width: 960px; }
.plot { font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: 2px;
  color: #1d1f1a; cursor: pointer; padding: 6px; text-align: center; background: var(--plot-bg); }
.plot[data-type="A1"] { --plot-bg: var(--villa-a1); }
.plot[data-type="A2"] { --plot-bg: var(--villa-a2); }
.plot[data-type="B"] { --plot-bg: var(--villa-b); }
.plot[data-type="C"] { --plot-bg: var(--villa-c); }
.plot[data-status="sold"] { background: repeating-linear-gradient(135deg, var(--plot-bg) 0 8px, #ffffff99 8px 10px); }
.plot:hover { filter: brightness(1.05); }
.plot:focus-visible { outline: 3px solid #02180c; outline-offset: 2px; }
.plot[aria-pressed="true"] { box-shadow: 0 0 0 3px #02180c; }
.plot .t { font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.plot .n { font-family: var(--font-display); font-size: 20px; line-height: 1; }
.plot .s { font-size: 11px; }
.lane { grid-row: 2; grid-column: 6 / span 6; background: #e6e0d2; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; letter-spacing: .2em; color: #59584f; }
.svc { grid-column: 12; grid-row: 1 / span 3; background: #ece4d3; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; letter-spacing: .14em; color: #59584f; text-align: center; padding: 8px; }
.plan-error { margin: 0; padding: 14px 18px; border: 1px solid var(--status-reserved); background: #fff4e0; color: #5c3a05; font-size: 14px; }
.plan-error a { color: inherit; font-weight: 600; }

/* Selected plot panel */
.detail { display: flex; flex-direction: column; gap: 16px; padding: 28px; background: var(--surface-band); color: var(--on-band); }
.detail-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.detail-head .h-display { color: var(--gold-on-band); }
.detail-bar { height: 4px; width: 64px; }
.detail dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.detail dt { font-size: 12px; line-height: 18px; color: var(--ink-muted-on-band); }
.detail dd { margin: 4px 0 0; font-weight: 700; }
.detail dd.price { color: var(--gold-on-band); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.aerial { position: relative; min-height: 320px; }
.aerial .photo { position: absolute; inset: 0; }

/* Footer */
.site-foot { font-family: var(--font-sans); color: var(--on-band); background: var(--surface-band); border-top: 1px solid rgba(200, 162, 80, .28); }
.site-foot a { color: var(--on-band); text-decoration: none; }
.site-foot a:hover { color: var(--gold-on-band); }
.site-foot .wrap { padding-block: 64px 32px; display: flex; flex-direction: column; gap: 48px; }
.site-foot .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.site-foot .col { display: flex; flex-direction: column; gap: 12px; }
.site-foot .col a, .site-foot .col .body { font-size: 14px; font-weight: 300; }
.site-foot .col .body { color: var(--on-band); }
.site-foot .brand { display: flex; flex-direction: column; gap: 16px; max-width: 340px; }
.site-foot .brand img { width: 200px; height: auto; display: block; }
.site-foot .brand .body { color: var(--ink-muted-on-band); font-size: 14px; }
.site-foot .tagline { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.site-foot .tagline .orn { color: var(--gold-on-band); }
.site-foot .tagline .h-display { font-size: clamp(22px, 3vw, 36px); line-height: 1.2; color: var(--gold-on-band); }
.site-foot .tagline .eyebrow { color: var(--on-band); }
.site-foot .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(200, 162, 80, .2); padding-top: 20px; }
.site-foot .legal .caption { color: var(--ink-muted-on-band); }

/* Floating WhatsApp button */
.wa-float { position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 50; display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 20px 0 16px; background: var(--jungle, #02180c); color: #efe9dc; border: 1px solid #c8a250; border-radius: 999px;
  font-family: "Montserrat", system-ui, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 1px 2px rgba(2, 24, 12, .06), 0 8px 24px rgba(2, 24, 12, .18); transition: background .2s, transform .2s; }
.wa-float:hover { background: #0a2615; transform: translateY(-2px); color: #efe9dc; }
.wa-float:focus-visible { outline: 2px solid #c8a250; outline-offset: 3px; }
.wa-float svg { width: 24px; height: 24px; flex: none; color: #c8a250; }
@media (max-width: 600px) { .wa-float { padding: 0; width: 56px; justify-content: center; } .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media print { .wa-float { display: none; } }
