/* =============================================================
   SunSpark Energy — production stylesheet
   Inlines design tokens (colors_and_type.css) + site styles (site.css)
   so the production HTML has zero relative-path or @import surprises.
   Font paths are absolute so the site works at any deploy depth.
   ============================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/Unbounded-Regular.ttf") format("truetype"); }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/Unbounded-Medium.ttf") format("truetype"); }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/Unbounded-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/Unbounded-Bold.ttf") format("truetype"); }

:root {
  --navy:        #0D1F2D;
  --navy-lift:   #142838;
  --navy-lift-2: #1A3344;
  --gold:        #F0C040;
  --gold-hover:  #E5B530;
  --gold-press:  #D6A520;
  --white:       #FFFFFF;
  --slate:       #8AA0B0;
  --slate-strong:#A6B8C5;
  --slate-soft:  rgba(138, 160, 176, 0.40);
  --slate-25:    rgba(138, 160, 176, 0.25);

  --fg-on-light:    #0D1F2D;
  --fg-on-light-2:  #3F5260;
  --fg-on-light-muted: #6B7B88;

  --border:          var(--slate-25);
  --border-strong:   var(--slate-soft);
  --border-on-light: rgba(13, 31, 45, 0.10);

  --font-display: "Unbounded", "Inter", system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shadow-card-light: 0 1px 2px rgba(13,31,45,0.06), 0 8px 24px rgba(13,31,45,0.06);
  --shadow-press:      inset 0 2px 0 rgba(0,0,0,0.15);

  --ease-out:  cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast:  150ms;
  --dur-base:  240ms;

  --container: 1200px;
}

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

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* === HEADER === */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 31, 45, 0.85);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--border); background: rgba(13, 31, 45, 0.95); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { color: var(--slate-strong); font-size: 14.5px; font-weight: 500; transition: color var(--dur-fast) var(--ease-out); }
.site-nav a:hover { color: var(--white); }
.brand-link { display: inline-flex; }

/* Wordmark */
.ss-wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em;
}
.ss-wordmark .wm-text { display: inline-flex; align-items: baseline; gap: 7px; }
.ss-wordmark .sun-fg { color: #fff; }
.ss-wordmark .spark-fg { color: var(--gold); }
.ss-wordmark .energy {
  font-size: 0.5em; font-weight: 500;
  letter-spacing: 0.20em; text-transform: uppercase; opacity: 0.9;
}

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1;
  padding: 14px 22px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; transition: all var(--dur-fast) var(--ease-out);
  text-decoration: none;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-hover); }
.btn-primary:active { background: var(--gold-press); transform: translateY(1px); box-shadow: var(--shadow-press); }

.btn-secondary { background: transparent; color: var(--white); border-color: rgba(138,160,176,0.40); }
.btn-secondary:hover { background: rgba(138,160,176,0.08); border-color: var(--slate); }

.btn-full { width: 100%; }

/* === PILLS === */
.pill {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 600; line-height: 1;
  letter-spacing: 0.10em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px;
  white-space: nowrap; width: fit-content;
}
.pill-slate { background: rgba(138,160,176,0.10); color: var(--slate-strong); border: 1px solid var(--border); }
.pill-gold-soft { background: rgba(240,192,64,0.12); color: var(--gold); border: 1px solid rgba(240,192,64,0.4); }

/* === SECTION HEADERS === */
.section { padding: 96px 0; }
.section-light { background: var(--white); color: var(--fg-on-light); }
.section-light .ss-h2, .section-light .ss-h4.on-light { color: var(--fg-on-light); }
.section-light .ss-deck, .section-light .card-p.on-light { color: var(--fg-on-light-2); }
.section-light .pill-slate { background: rgba(13,31,45,0.05); color: var(--fg-on-light-2); border-color: var(--border-on-light); }

.sect-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; max-width: 720px; }
.sect-head .pill { align-self: flex-start; }
.sect-head .ss-h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
.sect-head .ss-h2 em { color: var(--gold); font-style: normal; }
.sect-head .ss-deck { font-size: 19px; line-height: 1.5; color: var(--slate-strong); margin: 0; }

.ss-h4 { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.25; margin: 0; }
.ss-h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.2; margin: 0; }
.card-p { font-size: 14.5px; line-height: 1.55; color: var(--slate-strong); margin: 0; }

/* === HERO === */
.hero { position: relative; padding: 96px 0 64px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 78% 28%, rgba(240,192,64,0.18), transparent 45%);
}
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 880px; }
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px, 6.6vw, 84px); line-height: 1.04; letter-spacing: -0.025em;
  margin: 4px 0;
}
.hero-accent { color: var(--gold); }
.hero-deck { font-size: 19px; line-height: 1.55; color: var(--slate-strong); max-width: 640px; margin: 0; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { width: 100%; margin-top: 32px; }

/* === STAT STRIP === */
.stat-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  padding: 28px 0; border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 4.6vw, 64px); line-height: 0.95;
  letter-spacing: -0.02em; color: var(--gold);
}
.stat-lbl { font-size: 13px; color: var(--slate-strong); line-height: 1.4; }

/* === CARDS === */
.card {
  border-radius: 16px; padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.card-dark { background: var(--navy-lift); border: 1px solid var(--border); }
.card-dark:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card-light { background: #fff; border: 1px solid var(--border-on-light); box-shadow: var(--shadow-card-light); }
.card-light:hover { transform: translateY(-2px); }
.card-featured { border-color: var(--gold); }

/* === PROCESS === */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (min-width: 1100px) { .process-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; } }
.process-num { font-family: var(--font-display); font-weight: 700; font-size: 32px; color: var(--gold); line-height: 1; }
.process-foot {
  margin: 32px auto 0; max-width: 880px; text-align: center;
  font-size: 13px; color: var(--fg-on-light-muted); line-height: 1.55;
}

/* === OWNERS === */
.owners-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: start; }
.bullet-list { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 18px; }
.bullet-list li { display: flex; gap: 14px; align-items: flex-start; }
.bullet-list svg { flex-shrink: 0; margin-top: 3px; }
.bul-t { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--white); margin-bottom: 4px; }
.bul-d { font-size: 14.5px; color: var(--slate-strong); line-height: 1.5; }

.economics { padding: 32px; }
.econ-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase; color: var(--slate); margin-bottom: 12px; }
.econ-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px solid var(--border); gap: 16px; }
.econ-k { color: var(--slate-strong); font-size: 14.5px; }
.econ-v { color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 16px; text-align: right; }
.econ-foot { font-size: 11px; color: var(--slate); margin-top: 16px; line-height: 1.5; }

/* === SERVICES === */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.serv-num { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--gold); letter-spacing: 0.08em; margin-bottom: 4px; }

/* === PROPERTY TYPES === */
.prop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.prop-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }

/* === WHAT IT LOOKS LIKE === */
.section-look { background: var(--navy-lift); }
.look-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.look-card { display: flex; flex-direction: column; background: var(--navy); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.look-card-wide { grid-column: 1 / -1; }
.look-img { position: relative; aspect-ratio: 16 / 9; width: 100%; display: flex; align-items: center; justify-content: center; background: var(--navy-lift); overflow: hidden; }
.look-card-wide .look-img { aspect-ratio: 16 / 7; }
.look-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.look-mark { position: absolute; right: 14px; bottom: 14px; z-index: 1; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; padding: 6px; border-radius: 8px; background: rgba(13, 31, 45, 0.7); border: 1px solid rgba(240, 192, 64, 0.25); backdrop-filter: blur(2px); }
.look-mark img { display: block; width: 100%; height: 100%; }
.look-stamp { display: none; /* legacy hidden */ position: relative; z-index: 1; padding: 14px 22px; border-radius: 999px; background: rgba(13, 31, 45, 0.75); border: 1px solid rgba(240,192,64,0.30); backdrop-filter: blur(2px); }
.look-stamp-lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.look-stamp-id { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.10em; color: var(--slate-strong); }
.look-cap { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.look-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.look-foot { margin: 28px auto 0; max-width: 880px; text-align: center; font-size: 12.5px; color: var(--slate); line-height: 1.55; }

/* === OPERATING MODEL === */
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.model-card { padding: 32px; gap: 14px; position: relative; }
.model-name { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.model-t { color: var(--white); font-size: 20px; line-height: 1.2; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.model-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.model-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--slate-strong); line-height: 1.5; }
.model-list svg { flex-shrink: 0; margin-top: 2px; }
.model-badge { position: absolute; top: -12px; left: 32px; background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.model-foot { margin: 28px auto 0; max-width: 880px; text-align: center; font-size: 12.5px; color: var(--slate); line-height: 1.55; }

/* === CONTACT === */
.section-contact { background: var(--navy-lift); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: center; font-size: 16px; color: var(--white); }
.contact-list .ic { font-size: 18px; }
.contact-list a:hover { color: var(--gold); }
.contact-note { margin: 24px 0 0; font-size: 12px; color: var(--slate); line-height: 1.6; max-width: 460px; }

.contact-card { padding: 32px; gap: 16px; background: var(--navy); border: 1px solid var(--border); border-radius: 16px; display: flex; flex-direction: column; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase; color: var(--slate); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--white);
  background: var(--navy-lift); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; outline: none; resize: vertical;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240,192,64,0.22);
}
.contact-success { padding: 32px 8px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cs-icon { width: 44px; height: 44px; border-radius: 999px; background: rgba(240,192,64,0.16); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.cs-icon svg { width: 22px; height: 22px; }
.form-error { font-size: 13.5px; line-height: 1.5; color: #FFD58A; background: rgba(240, 192, 64, 0.10); border: 1px solid rgba(240, 192, 64, 0.35); border-radius: 8px; padding: 12px 14px; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* === FOOTER === */
.site-footer { padding: 32px 0 24px; border-top: 1px solid var(--border); }
.site-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-brand { display: flex; flex-direction: column; gap: 6px; }
.foot-tag { font-size: 12px; color: var(--slate); }
.foot-meta { font-size: 12.5px; color: var(--slate); }
.foot-links { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--slate-strong); }
.foot-links .dot { color: var(--slate); }
.foot-links a:hover { color: var(--gold); }
.foot-fine { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 11.5px; line-height: 1.6; color: var(--slate); max-width: 920px; }

/* === RESPONSIVE === */
@media (max-width: 1100px) { .site-nav { gap: 22px; font-size: 14px; } }
@media (max-width: 920px) {
  .process-grid, .services-grid, .prop-grid, .model-grid { grid-template-columns: 1fr 1fr; }
  .look-grid { grid-template-columns: 1fr; }
  .look-card-wide { grid-column: auto; }
  .owners-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-nav { display: none; }
  .stat-strip { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 560px) {
  .process-grid, .services-grid, .prop-grid, .model-grid { grid-template-columns: 1fr; }
}
