/* ═══════════════════════════════════════════
   Window Growth Co. — Shared Stylesheet
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=JetBrains+Mono:wght@400;500&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:       #0d0d0d;
  --white:     #ffffff;
  --green:     #1a6338;
  --green-mid: #236b3d;
  --green-hi:  #4caf78;
  --muted:     #6b6b6b;
  --border:    #e2e2e2;
  --light:     #f6f6f4;
  --dark:      #111111;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
}

p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
}

/* ── LOGOS / TRUSTED BY (shared across pages) ── */
.logos-section {
  padding: 36px 80px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.logos-label {
  font-size: 11px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-right: 56px; white-space: nowrap; flex-shrink: 0;
}
.logos-row { display: flex; align-items: center; gap: 72px; flex-wrap: wrap; justify-content: center; }
.logos-row img {
  height: 64px; max-width: 200px; object-fit: contain;
  opacity: 1; transition: transform 200ms ease;
}
.logos-row img:hover { transform: scale(1.08); }

li {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 8px;
}


/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 64px;
}
.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 32px; width: auto; display: block; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 32px; height: 100%; }
.nav-links a { 
  color: var(--muted); 
  text-decoration: none; 
  font-size: 13px; 
  font-weight: 600; 
  transition: color 150ms; 
  text-transform: uppercase; 
  letter-spacing: 0.05em; 
  display: flex;
  align-items: center;
  height: 100%;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 500; }

.nav-dropdown { position: relative; display: flex; align-items: center; height: 100%; }
.nav-dropdown .dropdown-trigger {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 150ms;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  height: 100%;
}
.nav-arrow {
  margin-left: 6px;
  font-size: 10px;
  display: inline-block;
  transform: translateY(1px);
}
.nav-dropdown-content {
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  background-color: var(--white);
  min-width: 200px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.12);
  z-index: 200;
  border-radius: 12px;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  padding: 12px 0;
  border: 1px solid var(--border);
  transition: opacity 200ms ease, transform 200ms ease, visibility 0ms linear 200ms;
}
.nav-dropdown-content::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}
.nav-dropdown-content a { color: var(--ink); padding: 12px 24px; text-decoration: none; display: block; font-size: 14px; font-weight: 500; transition: background 120ms; white-space: nowrap; border-bottom: none !important; width: auto !important; }
.nav-dropdown-content a:hover { background-color: #f8f8f7; color: var(--green); }
.nav-dropdown:hover .nav-dropdown-content {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 150ms ease, transform 150ms ease, visibility 0ms linear 0ms;
}
.nav-cta {
  background: var(--ink); color: var(--white) !important;
  padding: 10px 22px; font-size: 13px; font-weight: 600;
  text-decoration: none; letter-spacing: 0.02em;
  transition: background 150ms;
}
.nav-cta:hover { background: var(--green) !important; color: var(--white) !important; }

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  background: var(--dark);
  padding: 96px 80px 88px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.page-header-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4); font-weight: 500;
  margin-bottom: 20px; display: block;
}
.page-header h1 {
  font-family: 'DM Serif Display', serif;
  font-style: normal;
  font-size: clamp(44px, 5vw, 72px);
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.page-header h1 em { color: var(--green-hi); font-style: italic; }
.page-header p {
  font-size: 17px; color: rgba(255,255,255,0.55);
  max-width: 560px; line-height: 1.7; font-weight: 300;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--green); color: var(--white);
  padding: 15px 30px; font-size: 14px; font-weight: 600;
  text-decoration: none; letter-spacing: 0.02em;
  transition: background 150ms;
  display: inline-block;
}
.btn-primary:hover { background: var(--green-mid); }
.btn-primary.lg { font-size: 15px; padding: 18px 36px; }
.btn-outline-dark {
  border: 1.5px solid var(--border); color: var(--ink);
  padding: 13px 28px; font-size: 14px; font-weight: 500;
  text-decoration: none; letter-spacing: 0.01em;
  transition: border-color 150ms, color 150ms;
  display: inline-block;
}
.btn-outline-dark:hover { border-color: var(--ink); }
.btn-ghost {
  color: rgba(255,255,255,0.55); font-size: 14px; font-weight: 700;
  text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 2px; transition: color 150ms, border-color 150ms;
}
.btn-ghost:hover { color: var(--white); border-color: var(--white); }

/* ── SHARED SECTION PATTERNS ── */
.section-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--green); font-weight: 600; margin-bottom: 16px; display: block;
}
.section-label.light { color: rgba(255,255,255,0.4); }

.serif-h2 {
  font-family: 'DM Serif Display', serif;
  font-style: normal;
  font-size: clamp(36px, 3vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.serif-h3 {
  font-family: 'DM Serif Display', serif;
  font-style: normal;
  font-size: clamp(26px, 2.2vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ── SHARED CTA SECTION ── */
.cta-section {
  background: #0f172a;
  padding: 100px 80px;
}
.cta-inner {
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  gap: 80px; align-items: center;
}
.cta-left h2 {
  font-family: 'DM Serif Display', serif;
  font-style: normal;
  font-size: clamp(38px, 3.5vw, 56px);
  color: var(--white);
  line-height: 1.1; letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.cta-left p { font-size: 18px; color: rgba(255,255,255,0.55); line-height: 1.75; font-weight: 300; }
.cta-right {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 56px 48px;
  text-align: center;
  gap: 20px;
}
.cta-right .btn-primary {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 18px;
  padding: 20px 32px;
  border-radius: 6px;
}
.cta-note { font-size: 13px; color: rgba(255,255,255,0.35); line-height: 1.6; max-width: 280px; }
.cta-phone { font-size: 14px; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 150ms; }
.cta-phone:hover { color: var(--white); }



/* ── RESULT QUOTE BLOCK (reusable) ── */
.quote-block {
  font-size: 14px; color: var(--muted);
  font-style: normal; line-height: 1.7;
  border-left: 2px solid var(--green);
  padding-left: 20px; margin-top: 24px;
}
.quote-block cite {
  display: block; font-style: normal;
  font-size: 12px; color: var(--muted);
  margin-top: 8px; letter-spacing: 0.03em;
  opacity: 0.7;
}

/* ── TWEAKS PANEL ── */
#tweaks-panel {
  display: none;
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: white; border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  padding: 24px; width: 280px;
  font-family: 'DM Sans', sans-serif;
}
#tweaks-panel h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.tweak-row { margin-bottom: 16px; }
.tweak-row label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.tweak-row select, .tweak-row input[type=range] { width: 100%; font-family: 'DM Sans', sans-serif; font-size: 13px; border: 1px solid var(--border); padding: 6px 8px; background: white; }
.tweak-row input[type=range] { padding: 4px 0; border: none; }

/* ── HAMBURGER / MOBILE NAV ── */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

@media (max-width: 900px) {
  /* Show hamburger icon */
  .nav-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    z-index: 200;
    position: relative;
  }
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block;
    background: var(--ink);
    height: 2px;
    width: 22px;
    border-radius: 2px;
    position: absolute;
    transition: all 0.28s ease;
  }
  .nav-toggle-label span { top: 50%; transform: translateY(-50%); background: #000 !important; }
  .nav-toggle-label span::before { content: ''; top: -8px; background: #000 !important; }
  .nav-toggle-label span::after  { content: ''; top: 8px; background: #000 !important; }

  /* X animation when open */
  .nav-toggle:checked ~ .nav-toggle-label span { background: transparent; }
  .nav-toggle:checked ~ .nav-toggle-label span::before { transform: rotate(45deg); top: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span::after  { transform: rotate(-45deg); top: 0; }

  /* Nav becomes flex-wrap row so logo + hamburger sit on one line */
  nav {
    padding: 0 20px;
    height: 64px;
    flex-wrap: nowrap;
  }

  /* Hide nav links by default — full-screen overlay when checked */
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 150;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 32px 48px;
    gap: 0;
    overflow-y: auto;
  }
  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  /* Nav link styles inside overlay */
  .nav-links > a,
  .nav-links .nav-dropdown > a {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: var(--ink) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
    display: block;
  }
  .nav-links > a:first-child { border-top: 1px solid var(--border); }

  /* Override CTA button in mobile menu */
  .nav-links .nav-cta {
    margin-top: 24px;
    padding: 16px 24px !important;
    font-size: 16px !important;
    background: var(--green) !important;
    color: var(--white) !important;
    text-align: center;
    border-radius: 6px;
    border-bottom: none !important;
    border-top: none !important;
  }

  /* Dropdown inside mobile overlay */
  .nav-dropdown { width: 100%; }
  .nav-dropdown > a {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
    display: block;
  }
  .nav-dropdown-content {
    display: none !important;
    position: static !important;
    background: var(--light);
    padding: 0 0 0 16px;
    border-radius: 0;
    box-shadow: none !important;
    border: none !important;
  }
  .nav-dropdown:hover .nav-dropdown-content,
  .nav-dropdown:focus-within .nav-dropdown-content {
    display: block !important;
  }
  .nav-dropdown-content::before { display: none; }
  .nav-dropdown-content a {
    font-size: 16px !important;
    font-weight: 400 !important;
    color: var(--muted) !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid var(--border);
    text-transform: none !important;
    letter-spacing: 0 !important;
  }

  /* Shared page-header padding */
  .page-header { padding: 60px 24px 52px; }
  .page-header h1 { font-size: clamp(36px, 8vw, 52px); }

  /* Shared section padding */
  .cta-section { padding: 60px 24px; }
  .cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .cta-right { padding: 40px 28px; }



  /* Logos */
  .logos-section { padding: 28px 24px; flex-direction: column; gap: 20px; }
  .logos-label { margin-right: 0; margin-bottom: 8px; }
  .logos-row { flex-wrap: wrap; justify-content: center; gap: 20px 28px; }
  .logos-row img { height: 24px; max-width: 90px; }
}

/* ── SITE FOOTER ── */
.site-footer {
  background: #090909;
  padding: 80px 48px 40px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-logo-img { height: 40px; width: auto; margin-bottom: 16px; display: block; }
.footer-tagline { font-size: 14px; color: #94a3b8; line-height: 1.6; }
.footer-col h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 16px; font-weight: 400; color: #fff;
  margin-bottom: 20px; letter-spacing: 0;
}
.footer-col a {
  display: block; color: #94a3b8; text-decoration: none;
  font-size: 14px; margin-bottom: 8px; transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 14px; color: #94a3b8; margin-bottom: 16px; line-height: 1.6; }
.footer-socials { display: flex; gap: 20px; }
.footer-socials a { font-size: 20px; color: #fff; opacity: 0.8; transition: opacity 0.2s; }
.footer-socials a:hover { opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 40px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}
.footer-bottom p { font-size: 13px; color: #64748b; }

@media (max-width: 900px) {
  .site-footer { padding: 60px 24px 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 60px; }
  .footer-logo-img { height: 40px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.modal-box {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  position: relative;
}
.close-modal {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 30px;
  cursor: pointer;
  color: #94a3b8;
  line-height: 1;
}
.modal-box h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  margin-bottom: 24px;
  color: #000;
}
@media (max-width: 600px) {
  .modal-box { padding: 24px 16px; border-radius: 12px; }
}
