/* ============================================
   FLOODLIGHT MARKETING — Design System
   Warm editorial. Confident, not corporate.
   ============================================ */

:root {
  /* Palette — Floodlight brand */
  --ink:        #2b2b2b;
  --ink-soft:   #4a4a4a;
  --ink-muted:  #777777;
  --surface:    #ffffff;
  --surface-warm: #f5f5f5;
  --white:      #ffffff;
  --teal:       #16a0ad;
  --teal-light: #3dbfcb;
  --teal-deep:  #128a95;
  --orange:     #e8913a;
  --orange-deep:#d47e2a;
  --accent-bg:  #333333;

  /* Typography */
  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body:    'Source Sans 3', 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;

  /* Widths */
  --max-w: 1200px;
  --max-w-narrow: 800px;
  --max-w-text: 680px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.7;
  font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal-deep); }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(26, 26, 46, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 4px solid var(--teal);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.logo-icon {
  font-size: 1.6rem;
  color: var(--teal);
  line-height: 1;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.main-nav { display: flex; align-items: center; }

.nav-menu {
  list-style: none;
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav-menu a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active { color: var(--ink); }
.nav-menu a:hover::after,
.nav-menu a.active::after { width: 100%; }

.nav-toggle { display: none; }

.header-cta {
  display: inline-block;
  padding: 0.55rem 1.3rem;
  background: var(--orange);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s;
}

.header-cta:hover {
  background: var(--orange-deep);
  color: var(--white);
  transform: translateY(-1px);
}

/* ---- Hero ---- */
.hero {
  padding: var(--space-xl) 0 var(--space-2xl);
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(31, 188, 176, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal-deep);
  margin-bottom: var(--space-sm);
}

.hero h1 {
  max-width: 720px;
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  max-width: 580px;
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: var(--space-lg);
}

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--orange-deep);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 145, 58, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}

.hero-cta-group {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  flex-wrap: wrap;
}

.hero-cta-note {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-left: 0.5rem;
}

/* ---- Sections ---- */
.section {
  padding: var(--space-xl) 0;
}

.section-warm {
  background: var(--surface-warm);
}

.section-dark {
  background: var(--accent-bg);
  color: var(--surface);
}

.section-teal {
  background: var(--teal);
  color: var(--white);
}

.section-teal h2,
.section-teal h3,
.section-teal h4 { color: var(--white); }
.section-teal p { color: rgba(255, 255, 255, 0.88); }
.section-teal .section-eyebrow { color: rgba(255, 255, 255, 0.7); }
.section-teal strong { color: var(--white); }
.section-teal a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.4); }
.section-teal a:hover { color: var(--white); text-decoration-color: var(--white); }
.section-teal .testimonial-cite { color: rgba(255,255,255,0.65); }
.section-teal .testimonial-cite strong { color: var(--white); }
.section-teal .testimonial-quote::before { color: var(--white); opacity: 0.25; }
.section-teal .btn-primary {
  background: var(--orange);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.section-teal .btn-primary:hover {
  background: var(--orange-deep);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 { color: var(--surface); }
.section-dark p { color: rgba(250, 248, 245, 0.9); }
.section-dark .section-eyebrow { color: var(--teal-light); }
.section-dark a { color: var(--teal-light); }
.section-dark a:hover { color: var(--white); }
.section-dark .btn-primary,
.section-dark .btn-primary:hover,
.section-teal .btn-primary,
.section-teal .btn-primary:hover { color: var(--white); text-decoration: none; }

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal-deep);
  margin-bottom: 0.6rem;
}

.section-header {
  max-width: var(--max-w-narrow);
  margin-bottom: var(--space-lg);
}

.section-header p {
  max-width: var(--max-w-text);
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-top: var(--space-sm);
}

.section-dark .section-header p { color: rgba(250, 248, 245, 0.9); }

/* ---- Problem Section ---- */
.problem-text {
  max-width: var(--max-w-text);
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.problem-text strong {
  color: var(--ink);
}

/* ---- Framework Grid ---- */
.framework-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.framework-card {
  background: var(--white);
  border-radius: 12px;
  padding: var(--space-md) var(--space-md) calc(var(--space-md) + 0.5rem);
  border: 1px solid rgba(26, 26, 46, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.framework-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--space-md);
  right: var(--space-md);
  height: 3px;
  background: var(--teal);
  border-radius: 0 0 3px 3px;
  opacity: 0;
  transition: opacity 0.3s;
}

.framework-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26, 26, 46, 0.08);
}

.framework-card:hover::before { opacity: 1; }

.framework-card h3 {
  margin-bottom: 0.8rem;
}

.framework-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.framework-number {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--teal);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 0.8rem;
}

/* ---- Testimonial ---- */
.testimonial-featured {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  text-align: center;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.7;
  margin-bottom: var(--space-md);
  position: relative;
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--teal);
  opacity: 0.4;
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
  line-height: 1;
}

.testimonial-cite {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.testimonial-cite strong {
  color: var(--ink);
  display: block;
  font-weight: 600;
}

/* ---- Services Grid ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.service-card {
  padding: var(--space-md);
  border-radius: 12px;
  background: rgba(250, 248, 245, 0.06);
  border: 1px solid rgba(250, 248, 245, 0.1);
  transition: border-color 0.3s;
}

.service-card:hover {
  border-color: var(--teal);
}

.service-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- Who We Work For ---- */
.verticals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: var(--space-md);
}

.vertical-card {
  background: var(--white);
  border: 1px solid rgba(22, 160, 173, 0.12);
  border-top: 3px solid var(--teal);
  border-radius: 0 0 8px 8px;
  padding: 1.6rem 1.2rem;
  transition: transform 0.2s, box-shadow 0.3s;
}

.vertical-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(22, 160, 173, 0.1);
}

.vertical-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}

/* ---- CTA Banner ---- */
.cta-banner {
  text-align: center;
  max-width: var(--max-w-narrow);
  margin: 0 auto;
}

.cta-banner h2 {
  margin-bottom: var(--space-sm);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  margin-bottom: var(--space-md);
}

/* ---- Content Pages ---- */
.page-header {
  padding: var(--space-lg) 0;
  background: var(--white);
}

.page-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.page-content {
  max-width: var(--max-w-text);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
}

.page-content h2 { margin: var(--space-lg) 0 var(--space-sm); }
.page-content h3 { margin: var(--space-md) 0 var(--space-sm); }
.page-content ul, .page-content ol {
  margin-bottom: 1.2em;
  padding-left: 1.5em;
}
.page-content li { margin-bottom: 0.5em; }

/* ---- Alignment Pull ---- */
.pull-highlight {
  max-width: var(--max-w-narrow);
  margin: var(--space-lg) auto;
  padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-md) + 4px);
  border-left: 4px solid var(--teal);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--accent-bg);
  color: rgba(250, 248, 245, 0.75);
  padding: var(--space-xl) 0 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: var(--space-lg);
}

.footer-brand .logo-icon { color: var(--teal); font-size: 1.4rem; }
.footer-brand .logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--surface);
}

.footer-tagline {
  margin-top: var(--space-sm);
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(250, 248, 245, 0.55);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.footer-col h4 {
  color: var(--surface);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
  font-family: var(--font-body);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  color: rgba(250, 248, 245, 0.6);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--teal-light); }

.footer-bottom {
  max-width: var(--max-w);
  margin: var(--space-lg) auto 0;
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid rgba(250, 248, 245, 0.08);
  font-size: 0.8rem;
  color: rgba(250, 248, 245, 0.35);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  html { font-size: 16px; }

  .framework-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .verticals { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-md); }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: var(--space-md);
    border-bottom: 1px solid rgba(26, 26, 46, 0.06);
    gap: var(--space-sm);
  }

  .nav-menu.is-open { display: flex; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
  }

  .nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: 0.2s;
  }

  .header-cta { display: none; }

  .hero { padding: var(--space-lg) 0; }
  .section { padding: var(--space-lg) 0; }

  .hero-cta-group { flex-direction: column; align-items: flex-start; }
  .hero-cta-note { margin-left: 0; margin-top: 0.5rem; }

  .footer-links { grid-template-columns: 1fr; }
}