/* =================================================================
   Sun City Systems — "Golden Hour" design system
   Warm editorial light theme · Fraunces + Hanken Grotesk
   ================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Warm paper palette */
  --paper:    #FFFDF8;   /* page background — warm white */
  --paper-2:  #FFF8EE;   /* raised cream surface */
  --paper-3:  #FBEEDC;   /* deeper cream (bands) */
  --paper-ink:#1B130C;   /* footer / dark band */

  /* Ink */
  --ink:    #1E1610;     /* headings — warm near-black */
  --ink-2:  #4A3C30;     /* body text */
  --muted:  #877665;     /* secondary / captions */
  --muted-2:#A89683;

  /* Lines */
  --line:   #EFE2CC;
  --line-2: #E6D4B6;

  /* Sun accents */
  --gold:     #EE9A0E;   /* primary amber */
  --gold-2:   #D07C08;   /* deeper amber */
  --gold-ink: #92520C;   /* accessible gold text on light */
  --ember:    #E0510E;   /* hot orange */
  --honey:    #FFEFD0;   /* pale gold wash */

  /* Gradients */
  --sun-grad:  linear-gradient(135deg, #FFD45E 0%, #F59E0B 45%, #EA580C 100%);
  --sun-soft:  radial-gradient(60% 60% at 70% 22%, rgba(255,196,84,.55) 0%, rgba(255,196,84,0) 70%);
  --sun-soft2: radial-gradient(50% 50% at 22% 78%, rgba(224,81,14,.16) 0%, rgba(224,81,14,0) 70%);

  /* Shadows — warm tinted */
  --shadow-sm: 0 1px 2px rgba(123,66,12,.06), 0 1px 1px rgba(123,66,12,.04);
  --shadow:    0 12px 30px -12px rgba(146,82,12,.22), 0 4px 10px -6px rgba(146,82,12,.12);
  --shadow-lg: 0 30px 60px -22px rgba(146,82,12,.30), 0 10px 24px -14px rgba(146,82,12,.16);

  /* Geometry */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-pill: 999px;

  --container: 1120px;
  --gutter: clamp(20px, 5vw, 48px);

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-eyebrow: .78rem;
  --fs-body:    1.0625rem;
  --fs-lead:    clamp(1.12rem, 1.6vw, 1.3rem);
  --fs-h3:      clamp(1.25rem, 2.2vw, 1.6rem);
  --fs-h2:      clamp(1.9rem, 4vw, 2.9rem);
  --fs-h1:      clamp(2.6rem, 6.4vw, 4.6rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Grain + ambient sun wash behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--sun-soft), var(--sun-soft2);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: var(--gold-ink); text-decoration: none; }
a:hover { color: var(--ember); }
:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(60px, 9vw, 120px); }
.section--tight { padding-block: clamp(44px, 6vw, 80px); }
.band { background: var(--paper-2); border-block: 1px solid var(--line); }
.band-deep { background: var(--paper-3); border-block: 1px solid var(--line-2); }

/* ---------- Typography helpers ---------- */
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.04; font-weight: 600; letter-spacing: -.02em; }
h1 { font-size: var(--fs-h1); font-weight: 600; letter-spacing: -.035em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.01em; }
p { color: var(--ink-2); }
strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: var(--fs-eyebrow); font-weight: 600;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--gold-ink);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent);
}
.lead { font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.55; }
.measure { max-width: 62ch; }
.measure-sm { max-width: 46ch; }
.center { text-align: center; }
.center .eyebrow::before { display: none; }

.section-head { display: grid; gap: 16px; margin-bottom: clamp(34px, 5vw, 60px); }
.section-head.center { justify-items: center; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--sans); font-weight: 600; font-size: .98rem; line-height: 1;
  padding: .92em 1.5em; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary { --btn-bg: var(--gold); --btn-fg: #2A1602; box-shadow: 0 10px 22px -10px rgba(214,124,8,.7); }
.btn-primary:hover { --btn-bg: #FFB42A; color: #2A1602; box-shadow: 0 16px 30px -12px rgba(214,124,8,.8); }

.btn-dark:hover { background: #2E2318; color: var(--paper); }

.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--paper-2); border-color: var(--gold); color: var(--gold-ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* link with animated underline */
.tlink { color: var(--gold-ink); font-weight: 600; display: inline-flex; align-items: center; gap: .4em; }
.tlink .arrow { transition: transform .2s ease; }
.tlink:hover .arrow { transform: translateX(3px); }

/* ---------- Brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand .sun { width: 30px; height: 30px; flex: none; }
.brand b { font-weight: 600; font-size: 1.15rem; }
.brand .llc { font-family: var(--sans); font-weight: 600; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); align-self: center; padding: 2px 7px; border: 1px solid var(--line-2); border-radius: var(--r-pill); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 70px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: .96rem; padding: 8px 13px; border-radius: var(--r-pill); transition: background .18s ease, color .18s ease; }
.nav-links a:hover { background: var(--paper-2); color: var(--ink); }
.nav-links a.active { color: var(--gold-ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* CTA button living inside .nav-links needs to beat the .nav-links a rules */
.nav-links a.nav-cta { margin-left: 8px; padding: .72em 1.3em; color: #2A1602; background: var(--gold); box-shadow: 0 10px 22px -12px rgba(214,124,8,.7); }
.nav-links a.nav-cta:hover { background: #FFB42A; color: #2A1602; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper-2); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 70px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) 22px;
    box-shadow: var(--shadow);
    clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none;
    transition: clip-path .3s ease, opacity .2s ease;
  }
  .nav-links.open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 14px; font-size: 1.05rem; }
  .nav-links .nav-cta { margin: 8px 0 0; }
  .nav-links .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-sun {
  position: absolute; z-index: -1; top: -120px; right: -80px;
  width: min(46vw, 520px); aspect-ratio: 1; opacity: .9;
  filter: blur(.4px);
  pointer-events: none;
}
.hero h1 { max-width: 16ch; }
.hero .lead { margin-top: 22px; }
.hero .btn-row { margin-top: 34px; }

.hero-meta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; color: var(--muted); font-size: .92rem; }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(238,154,14,.16); }
.hero-meta span { display: inline-flex; align-items: center; gap: 9px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .3s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card h3 { margin-bottom: 9px; }
.card p { color: var(--ink-2); font-size: 1rem; }

.icon {
  width: 50px; height: 50px; border-radius: 14px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--honey), #FFFDF8);
  border: 1px solid var(--line-2); color: var(--gold-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.icon svg { width: 24px; height: 24px; }

/* numbered "what we do" / steps */
.tag { display: inline-block; font-family: var(--display); font-weight: 600; color: var(--gold); font-size: 1.05rem; }

/* feature list with check marks */
.checks { list-style: none; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 36px; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sun-grad); box-shadow: 0 4px 10px -4px rgba(214,124,8,.6);
}
.checks li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.checks li b { display: block; color: var(--ink); font-weight: 600; }

/* ---------- Product feature (split) ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.panel {
  border-radius: var(--r-lg); border: 1px solid var(--line-2);
  background: linear-gradient(165deg, var(--paper-2), var(--paper));
  padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow);
}

/* phone-ish chat mock */
.chat { display: grid; gap: 12px; }
.bubble { max-width: 78%; padding: 12px 15px; border-radius: 16px; font-size: .96rem; line-height: 1.4; box-shadow: var(--shadow-sm); }
.bubble.in { background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 5px; justify-self: start; color: var(--ink-2); }
.bubble.out { background: var(--sun-grad); color: #2A1602; border-bottom-right-radius: 5px; justify-self: end; font-weight: 500; }
.bubble .meta { display: block; margin-top: 6px; font-size: .72rem; color: var(--muted); }
.bubble.out .meta { color: rgba(42,22,2,.6); }
.ai-chip { justify-self: end; display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 600; color: var(--gold-ink); background: var(--honey); border: 1px solid var(--line-2); padding: 4px 10px; border-radius: var(--r-pill); }

/* ---------- Notice / callout ---------- */
.notice {
  display: flex; gap: 18px; align-items: flex-start;
  background: linear-gradient(135deg, var(--honey), var(--paper));
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 30px); box-shadow: var(--shadow-sm);
}
.notice .seal { flex: none; width: 46px; height: 46px; }
.notice p { color: var(--ink-2); }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: var(--paper-ink); color: #F6EBDA;
  padding: clamp(40px, 6vw, 72px); text-align: center;
}
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 90% at 50% -10%, rgba(255,180,42,.35), transparent 60%); }
.cta * { position: relative; }
.cta h2 { color: #FFF6E8; }
.cta p { color: #D9C7AE; }
.cta .btn-row { justify-content: center; margin-top: 28px; }

/* ---------- Page header (legal / support) ---------- */
.page-head { position: relative; overflow: hidden; padding-top: clamp(40px, 6vw, 68px); padding-bottom: clamp(34px, 5vw, 52px); border-bottom: 1px solid var(--line); }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 120% at 88% -10%, rgba(255,196,84,.5), transparent 60%); }
.page-head h1 { font-size: clamp(2.2rem, 5.4vw, 3.5rem); max-width: 20ch; }
.page-head .lead { margin-top: 16px; }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 76ch; }
.prose h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-top: 2.4em; margin-bottom: .5em; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.18rem; margin-top: 1.6em; margin-bottom: .35em; }
.prose p, .prose li { color: var(--ink-2); }
.prose p { margin-top: 1em; }
.prose ul, .prose ol { margin-top: 1em; padding-left: 1.3em; display: grid; gap: .5em; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--ink); }
.prose .ph { background: var(--honey); border-bottom: 1px dashed var(--gold-2); padding: 0 4px; border-radius: 4px; color: var(--gold-ink); font-weight: 600; font-style: normal; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.4em 0; }

.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: var(--muted); font-size: .92rem; }

.toc { border: 1px solid var(--line); background: var(--paper-2); border-radius: var(--r); padding: 18px 20px; margin-top: 8px; }
.toc p { font-weight: 600; color: var(--ink); margin-bottom: 8px; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.toc ol { list-style: none; padding: 0; display: grid; gap: 7px; counter-reset: t; }
.toc a { color: var(--ink-2); font-weight: 500; }
.toc a:hover { color: var(--gold-ink); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 22px; transition: border-color .2s ease, box-shadow .25s ease; }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 1.1rem; padding: 18px 30px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.5rem; color: var(--gold); transition: transform .25s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding-bottom: 20px; color: var(--ink-2); }

/* ---------- Contact row ---------- */
.contact-card { display: grid; gap: 6px; }
.contact-card .big { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--ink); }
.kv { display: grid; gap: 2px; }
.kv dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.kv dd { color: var(--ink-2); }

/* ---------- Footer ---------- */
.footer { background: var(--paper-ink); color: #CDBBA3; padding-block: clamp(48px, 7vw, 80px) 34px; margin-top: clamp(40px,6vw,90px); }
.footer a { color: #E7D7BF; }
.footer a:hover { color: #FFFFFF; }
.footer .brand b, .footer .brand { color: #FFF6E8; }
.footer .brand .llc { color: #C9B696; border-color: rgba(231,215,191,.25); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: #F3E6D2; font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; font-weight: 700; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer .blurb { color: #B7A488; margin-top: 16px; max-width: 34ch; font-size: .95rem; }
.footer-note { margin-top: clamp(36px, 5vw, 56px); padding-top: 24px; border-top: 1px solid rgba(231,215,191,.16); display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; align-items: center; color: #A8957B; font-size: .88rem; }
.footer-note .ownership { color: #C9B696; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* spinning sun rays (subtle) */
@keyframes spin { to { transform: rotate(360deg); } }
.hero-sun .rays { transform-origin: center; animation: spin 90s linear infinite; }
@media (prefers-reduced-motion: reduce) { .hero-sun .rays { animation: none; } }

/* utility */
.mt-s { margin-top: 14px; } .mt { margin-top: 26px; } .mt-l { margin-top: 44px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); border: 0; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 100; }
.skip:focus { left: 0; color: var(--paper); }
