/* Chencharu Close Residence — deliberately its own identity, not a Thomson Reserve
   recolour: geometric sans instead of serif, slate-teal instead of forest green,
   split hero instead of full-bleed, numbered feature strip instead of a card grid. */

:root {
    --ink: #14303c;            /* deep slate teal - headings, dark surfaces */
    --ink-soft: #1d4353;
    --accent: #d98a4e;         /* warm clay - CTAs, highlights */
    --accent-hover: #c2763d;
    --jade: #5fa89c;           /* secondary accent for rules and marks */
    --bg: #f8f7f4;             /* warm off-white page */
    --bg-alt: #eeece6;
    --surface: #ffffff;
    --text: #2f3a3d;
    --text-mute: #6a7679;
    --line: #e0ddd5;
    --shadow: rgba(20, 48, 60, 0.09);
    --radius: 14px;
}

[data-theme="dark"] {
    --ink: #9fc9c0;
    --ink-soft: #7fb0a7;
    --accent: #e8a06a;
    --accent-hover: #d78d55;
    --jade: #6fbdaf;
    --bg: #10181b;
    --bg-alt: #162126;
    --surface: #18242a;
    --text: #dfe5e5;
    --text-mute: #9aa8ab;
    --line: #26343a;
    --shadow: rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    transition: background-color .3s, color .3s;
}

h1, h2, h3, .brand { font-family: 'Outfit', 'Inter', sans-serif; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }

a { color: var(--ink); }
img { max-width: 100%; display: block; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 5%; }

/* ---------- header: light bar with a rule, not a dark slab ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { max-width: 1180px; margin: 0 auto; padding: .85rem 5%; display: flex; align-items: center; gap: 1.5rem; }
.brand { font-size: 1.15rem; text-decoration: none; display: flex; align-items: baseline; gap: .5rem; white-space: nowrap; }
.brand span { color: var(--accent); font-weight: 700; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { color: var(--text-mute); text-decoration: none; font-size: .82rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: .3rem 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.header-cta { display: flex; align-items: center; gap: .65rem; margin-left: auto; }
.nav + .header-cta { margin-left: 0; }
@media (max-width: 1020px) { .nav { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; background: var(--accent); color: #fff; border: none; padding: .8rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; font-family: inherit; }
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--ink); transform: none; }
.theme-btn { background: none; border: 1px solid var(--line); border-radius: 50%; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }

/* ---------- split hero (Thomson uses a full-bleed photo; this does not) ---------- */
.hero { padding: 4.5rem 0 3.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--jade); margin-bottom: 1.1rem; }
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--jade); }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1.08; margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 1.08rem; color: var(--text-mute); max-width: 34rem; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.8rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hero-meta div span { display: block; font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.hero-meta div small { color: var(--text-mute); font-size: .8rem; }
.hero-visual { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 100%); display: flex; align-items: center; justify-content: center; box-shadow: 0 24px 60px var(--shadow); }
.hero-visual .placeholder { color: rgba(255,255,255,.65); font-size: .9rem; text-align: center; padding: 2rem; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; } .hero-visual { aspect-ratio: 16/10; } }

/* ---------- numbered feature strip (vs Thomson's 2x2 cards) ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 42rem; margin-bottom: 2.75rem; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .7rem; }
.section-head p { color: var(--text-mute); }

.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
.feature { padding-top: 1.1rem; border-top: 2px solid var(--line); transition: border-color .25s; }
.feature:hover { border-top-color: var(--accent); }
.feature .num { font-family: 'Outfit', sans-serif; font-size: .78rem; font-weight: 700; color: var(--accent); letter-spacing: .1em; }
.feature h3 { font-size: 1.08rem; margin: .5rem 0 .45rem; }
.feature p { font-size: .92rem; color: var(--text-mute); }
@media (max-width: 860px) { .feature-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .feature-row { grid-template-columns: 1fr; } }

/* ---------- facts table ---------- */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; }
.fact { display: flex; justify-content: space-between; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.fact dt { color: var(--text-mute); font-size: .9rem; }
.fact dd { font-weight: 600; text-align: right; color: var(--ink); font-size: .95rem; }
.tbc { color: var(--accent); font-weight: 600; font-size: .8rem; letter-spacing: .04em; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; gap: 0; } }

/* ---------- form ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: 0 16px 40px var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; color: var(--ink); }
.field input, .field select {
    width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 9px;
    background: var(--bg); color: var(--text); font-family: inherit; font-size: .95rem;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--jade); }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .82rem; color: var(--text-mute); line-height: 1.5; margin-bottom: 1rem; }
.consent input { margin-top: .25rem; flex-shrink: 0; }
.form-note { font-size: .78rem; color: var(--text-mute); margin-top: .9rem; }
.hp { position: absolute; left: -9999px; }
.form-ok { display: none; text-align: center; padding: 1.5rem 0; }
.form-ok h3 { color: var(--jade); margin-bottom: .6rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #dfe8ea; padding: 3rem 0 2rem; margin-top: 2rem; }
[data-theme="dark"] .site-footer { background: #0b1215; }
.site-footer h4 { color: #fff; font-family: 'Outfit', sans-serif; font-size: 1rem; margin-bottom: .6rem; }
.site-footer a { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.5rem; font-size: .78rem; color: #a9bcc0; line-height: 1.7; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- TODO banner: visible only while facts are unconfirmed ---------- */
.todo-banner { background: #fff4e5; border-bottom: 1px solid #f0d0a0; color: #7a4a12; padding: .6rem 5%; font-size: .82rem; text-align: center; }
[data-theme="dark"] .todo-banner { background: #33240f; border-bottom-color: #574020; color: #e8c99a; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* FAQ accordion. <details> gives open/close with no JS, and the answers stay in the
   HTML when collapsed - which matters here, because the answers ARE the SEO content. */
.narrow { max-width: 820px; }
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: none; }
.faq summary { padding: 1.05rem 1.2rem; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 0.5rem; height: 0.5rem; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.22s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { background: var(--bg-alt); }
.faq details > div { padding: 0 1.2rem 1.15rem; font-size: 0.94rem; line-height: 1.65; color: var(--text-mute); }

/* ---- Mobile ----
   The nav was hidden below 1020px with nothing put in its place, so a phone
   visitor had no way to reach any section of the page. A horizontally
   scrollable strip restores every link with no JS and no hamburger to maintain. */
@media (max-width: 1020px) {
  .header-inner { flex-wrap: wrap; gap: .6rem 1rem; padding: .7rem 5%; }
  .nav { display: flex; order: 3; width: 100%; margin: 0; gap: 1.15rem;
         overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: .3rem 0; font-size: .82rem; }
  .header-cta { margin-left: auto; }
}

@media (max-width: 640px) {
  .brand { font-size: 1rem; }
  /* dt and dd side by side squeezed the label and wrapped every value onto two
     lines. Stacked, each row reads as one thought. */
  .fact { flex-direction: column; align-items: flex-start; gap: .15rem; padding: .8rem 0; }
  .fact dt { font-size: .8rem; }
  .fact dd { text-align: left; }
  .hero-meta { gap: 1.1rem 1.6rem; }
  /* Footer links were 17px tall — under any reasonable thumb. */
  .site-footer a { display: inline-block; padding: .35rem 0; }
  .section { padding-top: 2.6rem; padding-bottom: 2.6rem; }
}

/* Restoring the nav pushed the sticky header to 152px — 19% of a phone screen
   permanently occupied. Trimmed back to roughly 110px, which keeps the Register
   button always reachable without eating the page. */
@media (max-width: 1020px) {
  .header-inner { padding: .45rem 5%; gap: .35rem .9rem; }
  .header-cta { gap: .45rem; }
  .header-cta .btn { padding: .5rem .85rem; font-size: .84rem; }
  .theme-btn { width: 34px; height: 34px; }
  /* .4rem gives ~30px tall links: still thumb-friendly, only 6px more header. */
  .nav a { font-size: .8rem; padding: .4rem 0; }
}
