/* ==========================================================================
   SummitShield Roofing (Demo) — $20K Luxury System
   Tokens + Motion Scale locked (CEO-grade).
   Works with: index.html (provided)
   ========================================================================== */

/* -----------------------------
   1) DESIGN TOKENS
------------------------------ */
:root {
  /* Core Neutrals */
  --ink-900: #0B0F14;
  --slate-800: #121826;
  --slate-700: #1A2233;
  --fog-100: #F7F9FC;
  --fog-200: #EEF2F7;

  /* Text */
  --text-primary: #E9EEF6;
  --text-secondary: #B8C2D6;
  --text-disabled: #7F8AA3;
  --text-ink: #0E1420;

  /* Brand Accent */
  --brand-blue: #5B8CFF;
  --brand-blue-soft: #9DB5FF;
  --brand-blue-dim: #3A5FD9;

  /* Status */
  --success: #2ED3A7;
  --warning: #F2B94B;
  --error: #EB5757;

  /* Radius */
  --r-xs: 6px;
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 18px;
  --r-xl: 24px;

  /* Shadows */
  --shadow-soft: 0 6px 20px rgba(0,0,0,.25);
  --shadow-med: 0 12px 40px rgba(0,0,0,.35);
  --shadow-hero: 0 24px 80px rgba(0,0,0,.45);

  /* Spacing scale */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 96px;

  /* Layout */
  --max: 1180px;
  --gutter: 20px;

  /* Typography */
  --font-display: "Manrope", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;

  /* Motion */
  --t-instant: 80ms;
  --t-fast: 140ms;
  --t-standard: 220ms;
  --t-slow: 320ms;
  --t-cinematic: 420ms;

  --ease-primary: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-secondary: cubic-bezier(0.4, 0, 0.2, 1);

  /* Misc */
  --ring: 0 0 0 4px rgba(91, 140, 255, .22);
}

/* ==========================================================================
   DEMO EXIT CTA (MODAL)
========================================================================== */

.demo-exit {
  position: fixed;
  inset: 0;
  background: rgba(7, 10, 14, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-standard) var(--ease-secondary);
}

.demo-exit.active {
  opacity: 1;
  pointer-events: auto;
}

.demo-exit-inner {
  background: linear-gradient(160deg, #0b0f14, #121826);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  max-width: 440px;
  width: calc(100% - 32px);
  box-shadow: var(--shadow-hero);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
}

.demo-exit-close {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #e2e8f0;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
  margin-left: auto;
}

.demo-exit-eyebrow {
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 10px 0 12px;
}

.demo-exit-inner h3 {
  color: #fff;
  font-size: 1.6rem;
  margin: 0 0 12px;
}

.demo-exit-copy {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0 0 22px;
}

.demo-exit-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-exit-primary {
  background: var(--brand-blue);
  color: #0b0f14;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(91, 140, 255, 0.35);
}

.demo-exit-secondary {
  color: #94a3b8;
  font-size: 0.95rem;
  text-decoration: none;
}

.demo-exit-secondary:hover {
  color: #e5e7eb;
}

@media (max-width: 640px) {
  .demo-exit-inner {
    padding: 24px 20px;
  }
}

/* Reduced motion: still polished, just quieter */
@media (prefers-reduced-motion: reduce) {
  :root {
    --t-instant: 0ms;
    --t-fast: 0ms;
    --t-standard: 0ms;
    --t-slow: 0ms;
    --t-cinematic: 0ms;
  }
}

/* -----------------------------
   2) BASE
------------------------------ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background:
    radial-gradient(1100px 700px at 20% -10%, rgba(91, 140, 255, .18), transparent 55%),
    radial-gradient(900px 600px at 80% 0%, rgba(157, 181, 255, .12), transparent 60%),
    linear-gradient(180deg, #070A0E, var(--ink-900));
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.demo-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; color: var(--text-secondary); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.center { text-align: center; }

/* -----------------------------
   3) TYPOGRAPHY
------------------------------ */
h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.2;
}

/* DEMO BAR */
.demo-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: linear-gradient(180deg, #0b0f14, #121826);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 10px 0;
}

.demo-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.demo-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 14px;
}

.demo-logo {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--brand-blue);
  color: #0b0f14;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.demo-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.demo-brand-line1 { font-size: 0.85rem; font-weight: 700; }
.demo-brand-line2 { font-size: 0.75rem; color: #94a3b8; }
.demo-tag { font-size: 0.7rem; color: #94a3b8; margin-left: 6px; }

.demo-nav { flex: 1; text-align: center; }
.demo-back { color: #94a3b8; font-size: 0.85rem; text-decoration: none; }
.demo-back:hover { color: #e5e7eb; }

.demo-cta {
  background: var(--brand-blue);
  color: #0b0f14;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(91, 140, 255, 0.35);
}

.demo-bar.scrolled {
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

/* push content below demo bar */
.site-header { padding-top: 74px; }

/* Overline / eyebrow */
.eyebrow {
body.demo-locked { overflow: hidden; }

  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(233, 238, 246, .82);
  margin-bottom: 14px;
}

/* -----------------------------
   4) HEADER / NAV
------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 20, .62);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(233,238,246,.08);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  letter-spacing: .01em;
}

.logo strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
}

.logo span {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Desktop nav */
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  font-size: 14px;
  color: rgba(233,238,246,.84);
  padding: 10px 10px;
  border-radius: 999px;
  transition: background var(--t-standard) var(--ease-secondary),
              color var(--t-standard) var(--ease-secondary),
              transform var(--t-standard) var(--ease-secondary);
}

.nav a:hover {
  background: rgba(233,238,246,.06);
  color: var(--text-primary);
}

/* Mobile nav drawer — class toggled by JS */
.nav.is-drawer {
  position: fixed;
  inset: 76px 0 auto 0;
  padding: 14px var(--gutter) 18px;
  display: grid;
  gap: 8px;
  background: rgba(11, 15, 20, .78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(233,238,246,.10);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-standard) var(--ease-secondary),
              transform var(--t-standard) var(--ease-secondary);
}

.nav.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav.is-drawer a {
  padding: 14px 14px;
  border-radius: var(--r-m);
  border: 1px solid rgba(233,238,246,.08);
  background: rgba(18, 24, 38, .55);
}

.nav.is-drawer a:hover {
  border-color: rgba(91, 140, 255, .35);
  background: rgba(18, 24, 38, .72);
}

/* JS-injected hamburger */
.nav-toggle {
  width: 48px;
  height: 48px;
  display: none;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(233,238,246,.12);
  background: rgba(18, 24, 38, .6);
  color: var(--text-primary);
  box-shadow: var(--shadow-soft);
  transition: transform var(--t-standard) var(--ease-secondary),
              border-color var(--t-standard) var(--ease-secondary),
              background var(--t-standard) var(--ease-secondary);
}

.nav-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(91, 140, 255, .35);
  background: rgba(18, 24, 38, .75);
}

.nav-toggle svg { width: 22px; height: 22px; }

/* Breakpoint behavior */
@media (max-width: 980px) {
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .nav.is-drawer { display: grid; }
}

/* -----------------------------
   5) BUTTONS (TOKENIZED)
------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  height: 52px;
  padding: 0 18px;

  border-radius: var(--r-s);
  font-size: 14px;
  font-weight: 600;

  border: 1px solid rgba(233,238,246,.12);
  background: rgba(18, 24, 38, .65);
  color: var(--text-primary);

  box-shadow: var(--shadow-soft);
  transition: transform var(--t-standard) var(--ease-primary),
              box-shadow var(--t-standard) var(--ease-primary),
              background var(--t-standard) var(--ease-secondary),
              border-color var(--t-standard) var(--ease-secondary);
  user-select: none;
  cursor: pointer;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-soft), var(--ring);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-med);
  border-color: rgba(91, 140, 255, .22);
}

.btn:active {
  transform: translateY(0) scale(.98);
}

.btn-primary {
  background: var(--brand-blue);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 18px 60px rgba(91, 140, 255, .28);
}

.btn-primary:hover {
  background: var(--brand-blue-dim);
  box-shadow: 0 20px 70px rgba(91, 140, 255, .34);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(91, 140, 255, .45);
  box-shadow: none;
}

.btn-secondary:hover {
  background: rgba(91, 140, 255, .10);
  box-shadow: var(--shadow-soft);
}

/* -----------------------------
   6) SECTIONS / STRUCTURE
------------------------------ */
.section {
  padding: clamp(64px, 7vw, 120px) 0;
}

.section-dark {
  background: linear-gradient(180deg, rgba(18,24,38,.35), rgba(18,24,38,.18));
  border-top: 1px solid rgba(233,238,246,.06);
  border-bottom: 1px solid rgba(233,238,246,.06);
}

.section-light {
  background: rgba(247,249,252,.96);
  color: var(--text-ink);
}

.section-light h2,
.section-light h3 { color: #0E1420; }

.section-light p { color: rgba(14, 20, 32, .74); }

.section-header {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-header p { margin-top: 10px; }

/* -----------------------------
   7) HERO
------------------------------ */
.hero {
  padding: clamp(44px, 5vw, 72px) 0 24px;
}

.hero-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
}

.hero-content p {
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.7;
  max-width: 52ch;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-badges {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-badges li {
  font-size: 13px;
  color: rgba(233,238,246,.86);
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(233,238,246,.10);
  background: rgba(18,24,38,.45);
}

/* Hero media module */
.hero-media {
  position: relative;
  border-radius: var(--r-l);
  overflow: hidden;
  border: 1px solid rgba(233,238,246,.10);
  box-shadow: var(--shadow-hero);
  background: rgba(18,24,38,.35);
}

.hero-media img {
  width: 100%;
  height: min(520px, 62vh);
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,15,20,0) 35%, rgba(11,15,20,.58));
  pointer-events: none;
}

.credential-panel {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: grid;
  gap: 4px;
  padding: 14px 14px;
  border-radius: var(--r-m);
  border: 1px solid rgba(233,238,246,.12);
  background: rgba(11,15,20,.65);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-med);
}

.credential-panel strong {
  font-family: var(--font-display);
  font-size: 16px;
}

.credential-panel span {
  font-size: 13px;
  color: rgba(233,238,246,.78);
}

/* Mobile hero */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media img { height: 360px; }
}

/* -----------------------------
   8) VALUE / WHY US
------------------------------ */
.value-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.value-card {
  border-radius: var(--r-l);
  border: 1px solid rgba(233,238,246,.10);
  background: rgba(18, 24, 38, .45);
  box-shadow: var(--shadow-soft);
  padding: 22px;
  transition: transform var(--t-standard) var(--ease-primary),
              box-shadow var(--t-standard) var(--ease-primary),
              border-color var(--t-standard) var(--ease-secondary);
  transform-style: preserve-3d;
  will-change: transform;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-med);
  border-color: rgba(91, 140, 255, .22);
}

.value-card p { margin-top: 10px; }

@media (max-width: 980px) {
  .value-grid { grid-template-columns: 1fr; }
}

/* -----------------------------
   9) SERVICES GRID
------------------------------ */
.services-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 18px;
}

.service-card {
  border-radius: var(--r-l);
  border: 1px solid rgba(233,238,246,.10);
  background: rgba(11, 15, 20, .55);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  min-height: 110px;
  display: flex;
  align-items: flex-end;
  transition: transform var(--t-standard) var(--ease-primary),
              box-shadow var(--t-standard) var(--ease-primary),
              border-color var(--t-standard) var(--ease-secondary),
              background var(--t-standard) var(--ease-secondary);
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(700px 220px at 20% 0%, rgba(91,140,255,.18), transparent 60%);
  opacity: .9;
  pointer-events: none;
  transform: translateZ(-1px);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-med);
  border-color: rgba(91, 140, 255, .22);
  background: rgba(18, 24, 38, .55);
}

@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* -----------------------------
   10) SPLIT + PROJECT PREVIEW
------------------------------ */
.split {
  display: grid;
  gap: 22px;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
}

.project-preview {
  border-radius: var(--r-l);
  overflow: hidden;
  border: 1px solid rgba(233,238,246,.10);
  box-shadow: var(--shadow-med);
  background: rgba(18, 24, 38, .35);
}

.project-preview img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; }
  .project-preview img { height: 280px; }
}

/* -----------------------------
   11) REVIEWS
------------------------------ */
.reviews-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
}

.reviews-grid blockquote {
  margin: 0;
  padding: 22px;
  border-radius: var(--r-l);
  border: 1px solid rgba(14,20,32,.12);
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(0,0,0,.08);
  color: rgba(14, 20, 32, .86);
  transition: transform var(--t-standard) var(--ease-primary),
              box-shadow var(--t-standard) var(--ease-primary);
}

.reviews-grid blockquote:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 55px rgba(0,0,0,.12);
}

.reviews-grid cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  color: rgba(14, 20, 32, .60);
  font-size: 14px;
}

@media (max-width: 980px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

/* -----------------------------
   12) CTA BAND
------------------------------ */
.cta-band {
  padding: clamp(56px, 6vw, 96px) 0;
  background:
    radial-gradient(900px 450px at 20% 0%, rgba(91,140,255,.22), transparent 60%),
    linear-gradient(180deg, rgba(18,24,38,.55), rgba(11,15,20,.85));
  border-top: 1px solid rgba(233,238,246,.06);
}

.cta-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
}

.cta-grid h2 { margin: 0; }
.cta-grid > div {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .cta-grid { grid-template-columns: 1fr; }
  .cta-grid > div { justify-content: flex-start; }
}

/* -----------------------------
   13) FOOTER
------------------------------ */
.site-footer {
  padding: 34px 0;
  border-top: 1px solid rgba(233,238,246,.08);
  background: rgba(11,15,20,.72);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer p {
  color: rgba(233,238,246,.72);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer nav a {
  font-size: 13px;
  color: rgba(233,238,246,.72);
}

.site-footer nav a:hover {
  color: var(--text-primary);
}

/* -----------------------------
   14) REVEAL SYSTEM (JS toggles)
------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--t-slow) var(--ease-secondary),
              transform var(--t-slow) var(--ease-secondary);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -----------------------------
   15) OPTIONAL: MOBILE STICKY CTA (not in HTML)
   If you later add <div class="sticky-cta"> ... </div>
------------------------------ */
.sticky-cta {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 120;
  padding: 10px;
  border-radius: 999px;
  border: 1px solid rgba(233,238,246,.12);
  background: rgba(11,15,20,.70);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-med);
  display: none;
  gap: 10px;
}
.sticky-cta .btn { flex: 1; height: 48px; }
@media (max-width: 980px) {
  .sticky-cta { display: flex; }
}
/* --------------------------------
   SERVICE CARD WITH IMAGE
--------------------------------- */

.service-card.has-image {
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 220px;
  position: relative;
}

.service-card.has-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  z-index: 0;
}

/* dark overlay for text readability */
.service-card.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(11,15,20,0.25),
      rgba(11,15,20,0.75)
    );
  z-index: 1;
}

/* service title */
.service-card.has-image span {
  position: relative;
  z-index: 2;
  padding: 18px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* hover polish */
.service-card.has-image:hover img {
  transform: scale(1.05);
}

.service-card.has-image img {
  transition: transform var(--t-cinematic) var(--ease-primary);
}