/* Xamaras Group — site stylesheet
   Palette follows the house render brief: luxurious, calm, warm, earthy.
   Greens + terracotta, stucco and white stone. */

:root {
  --paper:      #F2F0E9;
  --surface:    #FBFAF6;
  --sunk:       #E7E4D9;
  --ink:        #17201A;
  --ink-2:      #4B564D;
  --ink-3:      #78827A;
  --rule:       #D7D3C5;
  --rule-2:     #E4E1D5;
  --accent:     #1D5340;
  --accent-2:   #2F7458;
  --acc-soft:   #DFE8DE;
  --clay:       #A85A34;
  --clay-soft:  #F0DFD3;
  --gold:       #8A7238;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:     #0F1411;
    --surface:   #171E19;
    --sunk:      #1C2520;
    --ink:       #E6EBE3;
    --ink-2:     #A5B0A6;
    --ink-3:     #7C887F;
    --rule:      #2B352D;
    --rule-2:    #222C25;
    --accent:    #83C7A2;
    --accent-2:  #9FD8B8;
    --acc-soft:  #1A2E23;
    --clay:      #D89468;
    --clay-soft: #2E2019;
    --gold:      #C6AD6A;
  }
}
:root[data-theme="dark"] {
  --paper:     #0F1411;
  --surface:   #171E19;
  --sunk:      #1C2520;
  --ink:       #E6EBE3;
  --ink-2:     #A5B0A6;
  --ink-3:     #7C887F;
  --rule:      #2B352D;
  --rule-2:    #222C25;
  --accent:    #83C7A2;
  --accent-2:  #9FD8B8;
  --acc-soft:  #1A2E23;
  --clay:      #D89468;
  --clay-soft: #2E2019;
  --gold:      #C6AD6A;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- typography ---------- */

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); line-height: 1.05; margin: 0 0 20px; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.15; margin: 0 0 18px; }
h3 { font-size: 1.22rem; line-height: 1.3; margin: 0 0 10px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.eyebrow.clay { color: var(--clay); }

.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); }
.small { font-size: 0.9rem; }

/* ---------- header ---------- */

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand .name { font-family: var(--serif); font-size: 1.12rem; letter-spacing: 0.01em; line-height: 1.1; }
.brand .name small {
  display: block; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3);
}

nav.main { display: flex; align-items: center; gap: 26px; }
nav.main a {
  font-size: 0.92rem; color: var(--ink-2); text-decoration: none;
  padding: 4px 0; border-bottom: 1px solid transparent;
}
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule); border-radius: 6px;
  color: var(--ink); padding: 7px 11px; font-size: 0.85rem; cursor: pointer; }

@media (max-width: 900px) {
  nav.main {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--rule); padding: 8px 24px 18px;
  }
  nav.main.open { display: flex; }
  nav.main a { padding: 11px 0; width: 100%; border-bottom: 1px solid var(--rule-2); }
  .nav-toggle { display: block; }
  .masthead .wrap { position: relative; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 0.94rem; font-weight: 500;
  padding: 12px 22px; border-radius: 2px; text-decoration: none;
  border: 1px solid var(--accent); background: var(--accent); color: var(--paper);
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { background: var(--sunk); color: var(--ink); border-color: var(--ink-3); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- hero ---------- */

.hero { position: relative; padding: 88px 0 76px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(58% 70% at 78% 8%, color-mix(in srgb, var(--acc-soft) 85%, transparent), transparent 68%),
    radial-gradient(46% 56% at 8% 92%, color-mix(in srgb, var(--clay-soft) 70%, transparent), transparent 70%);
}
.hero h1 em { font-style: italic; color: var(--accent); }

.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
  margin-top: 52px;
}
.stat { background: var(--surface); padding: 22px 20px; }
.stat .n { font-family: var(--serif); font-size: 1.85rem; line-height: 1; display: block; margin-bottom: 8px; }
.stat .l { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- sections ---------- */

section { padding: 76px 0; }
section + section { border-top: 1px solid var(--rule-2); }
.section-head { max-width: 66ch; margin-bottom: 44px; }

.grid { display: grid; gap: 26px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--rule);
  padding: 28px 26px; display: flex; flex-direction: column;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); margin: 0 0 14px; }
.card .tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px;
}
.card .more { margin-top: auto; font-size: 0.9rem; }

/* image slot — a labelled placeholder until Drive renders are dropped in */
.slot {
  position: relative; aspect-ratio: 16 / 10; border: 1px solid var(--rule);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--acc-soft) 60%, var(--sunk)) 0%, var(--sunk) 55%, color-mix(in srgb, var(--clay-soft) 55%, var(--sunk)) 100%);
  display: flex; align-items: flex-end; padding: 14px; margin-bottom: 20px;
}
.slot.tall { aspect-ratio: 3 / 4; }
.slot.wide { aspect-ratio: 21 / 9; }
.slot span {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
  background: color-mix(in srgb, var(--surface) 82%, transparent); padding: 4px 8px;
}

/* ---------- tables ---------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--rule); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 560px; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
thead th {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3); background: var(--sunk);
  border-bottom: 1px solid var(--rule); white-space: nowrap;
}
tbody tr:last-child td { border-bottom: none; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.pill {
  display: inline-block; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 9px;
  border: 1px solid currentColor; border-radius: 999px;
}
.pill.avail { color: var(--accent); }
.pill.sold { color: var(--ink-3); }
.pill.few { color: var(--clay); }

/* ---------- misc blocks ---------- */

.note {
  border-left: 2px solid var(--clay); background: var(--clay-soft);
  padding: 18px 22px; color: var(--ink-2); font-size: 0.95rem;
}
.note strong { color: var(--ink); }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: s; position: relative; padding: 0 0 24px 52px;
  border-left: 1px solid var(--rule); margin-left: 14px;
}
.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: -14px; top: 0; width: 28px; height: 28px;
  display: grid; place-items: center; background: var(--paper);
  border: 1px solid var(--rule); border-radius: 999px;
  font-family: var(--mono); font-size: 10.5px; color: var(--accent);
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--ink-2); }

.split { display: grid; gap: 44px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }

dl.facts { margin: 0; }
dl.facts div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--rule-2); }
dl.facts dt { color: var(--ink-3); font-size: 0.92rem; }
dl.facts dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

.cta-band { background: var(--accent); color: var(--paper); padding: 68px 0; border-top: none; }
.cta-band h2 { color: var(--paper); }
.cta-band p { color: color-mix(in srgb, var(--paper) 82%, var(--accent)); max-width: 56ch; }
.cta-band .btn { background: var(--paper); color: var(--accent); border-color: var(--paper); }
.cta-band .btn:hover { background: color-mix(in srgb, var(--paper) 88%, var(--accent)); color: var(--accent); }
.cta-band .btn.ghost { background: transparent; color: var(--paper); border-color: color-mix(in srgb, var(--paper) 45%, transparent); }
.cta-band .btn.ghost:hover { background: color-mix(in srgb, var(--paper) 14%, transparent); color: var(--paper); }

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--rule); background: var(--surface);
  padding: 56px 0 36px; font-size: 0.92rem; color: var(--ink-2);
}
footer.site .cols { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
footer.site h4 {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px;
}
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 8px; }
footer.site a { color: var(--ink-2); text-decoration: none; }
footer.site a:hover { color: var(--accent); }
.colophon {
  margin-top: 42px; padding-top: 20px; border-top: 1px solid var(--rule-2);
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-3);
}

.disclaimer { font-size: 0.84rem; color: var(--ink-3); max-width: 78ch; }

/* ---------- forms ---------- */

.field { margin-bottom: 18px; }
.field label {
  display: block; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 2px; padding: 11px 13px;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--acc-soft);
}
form .btn { cursor: pointer; font-size: 0.94rem; }

/* ---------- real imagery ---------- */

/* figure that replaces a .slot once a render is available */
.shot { margin: 0 0 20px; border: 1px solid var(--rule); overflow: hidden; background: var(--sunk); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot.r16 img { aspect-ratio: 16 / 10; }
.shot.r219 img { aspect-ratio: 21 / 9; }
.shot.r34 img { aspect-ratio: 3 / 4; }
.shot figcaption {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--ink-3);
  padding: 9px 12px; border-top: 1px solid var(--rule); background: var(--surface);
}

/* image hero — render behind, scrim over, light type on top */
.hero.img-hero { padding: 0; border-bottom: 1px solid var(--rule); }
.hero.img-hero::before { display: none; }
.hero.img-hero .frame {
  position: relative; min-height: 74vh; display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
}
.hero.img-hero .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(10,16,12,0.30) 0%,
    rgba(10,16,12,0.26) 26%,
    rgba(10,16,12,0.62) 58%,
    rgba(10,16,12,0.82) 84%,
    rgba(10,16,12,0.90) 100%);
}
.hero.img-hero .frame > .wrap { position: relative; z-index: 1; padding-top: 84px; padding-bottom: 60px; width: 100%; }
.hero.img-hero h1,
.hero.img-hero .lede,
.hero.img-hero .eyebrow { color: #F4F2EC; }
.hero.img-hero h1 em { color: #CFE3D2; }
.hero.img-hero .lede { color: rgba(244,242,236,0.9); text-shadow: 0 1px 14px rgba(0,0,0,0.42); }
.hero.img-hero h1 { text-shadow: 0 2px 26px rgba(0,0,0,0.44); }
.hero.img-hero .eyebrow { color: #CDE7D6; text-shadow: 0 1px 10px rgba(0,0,0,0.55); }
.hero.img-hero .btn.ghost { color: #F4F2EC; border-color: rgba(244,242,236,0.5); }
.hero.img-hero .btn.ghost:hover { background: rgba(244,242,236,0.14); color: #F4F2EC; }

/* stat row sitting under an image hero */
.hero.img-hero + .statband { padding: 0; border-top: none; }
.hero.img-hero + .statband .stat-row { margin-top: 0; border-top: none; }

/* brand logo swap */
.brand .logo { height: 26px; width: auto; display: block; }
.brand .logo.on-light { display: block; }
.brand .logo.on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo.on-light { display: none; }
  :root:not([data-theme="light"]) .brand .logo.on-dark { display: block; }
}
:root[data-theme="dark"] .brand .logo.on-light { display: none; }
:root[data-theme="dark"] .brand .logo.on-dark { display: block; }
