/* =========================================================
   Web Design Horley — production static styles
   Brand tokens
   ========================================================= */
:root {
  --primary: #3b9fe7;
  --primary-dark: #2b8fd7;
  --navy: #0f1b2d;
  --bg: #ffffff;
  --surface: #f9fafb;
  --ink: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --red: #ef4444;
  --red-bg: #fef2f2;
  --red-bg-hover: #fee2e2;
  --blue-bg: #eff6ff;
  --blue-bg-hover: #dbeafe;
  --green: #4ade80;
  --maxw: 1200px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

/* -------- Reset -------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
.font-display { font-family: "Plus Jakarta Sans", "DM Sans", sans-serif; }

::selection { background-color: rgba(59,159,231,0.2); color: var(--primary); }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* -------- Layout helpers -------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--surface); }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 4rem; }
.eyebrow {
  color: var(--primary); font-weight: 600; font-size: 0.75rem;
  letter-spacing: 0.05em; text-transform: uppercase; display: block;
}
.section-head h2 {
  font-size: clamp(1.875rem, 4vw, 2.25rem); letter-spacing: -0.025em;
  margin: 0.75rem 0 1rem; color: var(--ink);
}
.section-head p { color: var(--muted); font-size: 1.125rem; }
.text-primary { color: var(--primary); }
.lucide { width: 24px; height: 24px; stroke-width: 2; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 500; font-size: 1rem; padding: 1rem 2rem;
  border-radius: var(--radius-sm); transition: background-color .2s, box-shadow .2s, transform .2s;
  cursor: pointer; border: none;
}
.btn .lucide { width: 20px; height: 20px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-lg); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-glass {
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3);
  color: #fff; backdrop-filter: blur(4px);
}
.btn-glass:hover { background: rgba(255,255,255,0.25); }
.btn-full { width: 100%; padding: 1rem 1.5rem; box-shadow: var(--shadow-sm); }

/* =========================================================
   Sticky Header (Enhancement A)
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 72px; transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
  background: transparent; border-bottom: 1px solid transparent;
}
.site-header .nav {
  max-width: var(--maxw); margin: 0 auto; height: 72px; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 0.5rem; }
.brand .lucide { width: 22px; height: 22px; color: var(--primary); }
.brand-name { font-size: 1.25rem; font-weight: 700; color: #fff; transition: color .3s ease; }
.brand-name .text-primary { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 2rem; font-size: 0.875rem; font-weight: 500; }
.nav-links a { color: rgba(255,255,255,0.85); transition: color .2s; }
.nav-links a:hover { color: var(--primary); }
.nav-right { display: flex; align-items: center; gap: 1.25rem; }
.nav-phone {
  display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 1rem;
  color: #fff; transition: color .2s;
}
.nav-phone .lucide { width: 18px; height: 18px; color: var(--primary); }
.nav-phone:hover { color: var(--primary); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600;
  padding: 0.75rem 1.25rem; background: var(--primary); color: #fff;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); transition: background-color .2s;
}
.nav-cta:hover { background: var(--primary-dark); }

/* Scrolled state: solid white */
.site-header.scrolled {
  background: rgba(255,255,255,0.95); backdrop-filter: blur(6px);
  box-shadow: var(--shadow-md); border-bottom-color: var(--border);
}
.site-header.scrolled .brand-name { color: var(--navy); }
.site-header.scrolled .nav-links a { color: var(--muted); }
.site-header.scrolled .nav-links a:hover { color: var(--primary); }
.site-header.scrolled .nav-phone { color: var(--navy); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(15,27,45,0.95), rgba(15,27,45,0.85) 50%, rgba(15,27,45,0.70));
}
.hero-inner { position: relative; z-index: 10; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 7rem 1.5rem 6rem; }
.hero-content { max-width: 42rem; }
.hero-eyebrow { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.hero-eyebrow .lucide { width: 16px; height: 16px; color: var(--primary); }
.hero-eyebrow span { color: var(--primary); font-weight: 500; font-size: 0.875rem; letter-spacing: 0.025em; text-transform: uppercase; }
.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem); color: #fff; letter-spacing: -0.025em;
  line-height: 1.1; margin-bottom: 1.5rem;
}
.hero-sub { font-size: clamp(1.125rem, 2vw, 1.25rem); color: rgba(255,255,255,0.7); margin-bottom: 2rem; line-height: 1.625; max-width: 36rem; }
.hero-sub strong { color: #fff; font-weight: 600; }
.hero-ctas { display: flex; flex-direction: column; gap: 1rem; }
.trust-badge {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 2rem;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 9999px;
  padding: 0.625rem 1.25rem; color: #fff; font-size: 0.875rem; font-weight: 500;
  width: fit-content;
}

@media (min-width: 640px) {
  .hero-ctas { flex-direction: row; }
}

/* =========================================================
   Cards / grids
   ========================================================= */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2,1fr); } .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3,1fr); } }

.card {
  padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--border);
  background: #fff; transition: box-shadow .3s ease, transform .3s ease;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.875rem; line-height: 1.625; }
.icon-box {
  width: 3rem; height: 3rem; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
  transition: background-color .2s;
}
.icon-box .lucide { width: 24px; height: 24px; }
.icon-red { background: var(--red-bg); }
.icon-red .lucide { color: var(--red); }
.card:hover .icon-red { background: var(--red-bg-hover); }
.icon-blue { background: var(--blue-bg); }
.icon-blue .lucide { color: var(--primary); }
.card:hover .icon-blue { background: var(--blue-bg-hover); }

.problem-closing { text-align: center; margin-top: 3rem; font-size: 1.125rem; font-weight: 500; color: var(--ink); }
.problem-closing .text-primary { font-weight: 600; }

/* =========================================================
   How it works
   ========================================================= */
.steps { display: grid; grid-template-columns: 1fr; gap: 2rem; position: relative; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3,1fr); } }
.steps-line { display: none; }
@media (min-width: 768px) {
  .steps-line { display: block; position: absolute; top: 2rem; left: 16.67%; right: 16.67%; height: 2px; background: var(--border); z-index: 0; }
}
.step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.step-num {
  width: 4rem; height: 4rem; border-radius: 9999px; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700;
  margin-bottom: 1.5rem; box-shadow: var(--shadow-lg);
}
.step .icon-box { margin-bottom: 1rem; }
.step h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; }
.step p { color: var(--muted); font-size: 0.875rem; line-height: 1.625; max-width: 20rem; }

/* =========================================================
   Pricing
   ========================================================= */
.pricing-card {
  max-width: 28rem; margin: 0 auto;
  border-radius: var(--radius-lg); border: 1px solid var(--border); background: #fff;
  overflow: hidden; box-shadow: var(--shadow-lg); transition: box-shadow .3s ease;
}
.pricing-card:hover { box-shadow: var(--shadow-xl); }
.pricing-banner { background: var(--primary); text-align: center; padding: 0.75rem 1.5rem; }
.pricing-banner span { color: #fff; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.025em; }
.pricing-body { padding: 2rem; }
.pricing-price { text-align: center; margin-bottom: 2rem; }
.pricing-price .amt { display: flex; align-items: flex-end; justify-content: center; gap: 0.25rem; }
.pricing-price .amt .num { font-size: clamp(3rem, 6vw, 3.75rem); font-weight: 700; color: var(--ink); }
.pricing-price .amt .per { color: var(--muted); font-size: 1.125rem; margin-bottom: 0.5rem; }
.pricing-price .note { color: var(--muted); font-size: 0.875rem; margin-top: 0.5rem; }
.pricing-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.pricing-list li { display: flex; align-items: flex-start; gap: 0.75rem; }
.pricing-list .lucide { width: 20px; height: 20px; color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.pricing-list span { color: var(--ink); font-size: 0.875rem; }

/* =========================================================
   Who we work with
   ========================================================= */
.tiles { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 768px) { .tiles { grid-template-columns: repeat(4,1fr); } }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(6,1fr); } }
.tile {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  padding: 1.25rem; border-radius: var(--radius); border: 1px solid var(--border);
  background: #fff; transition: box-shadow .3s ease, border-color .3s ease; cursor: default;
}
.tile:hover { box-shadow: var(--shadow-md); border-color: rgba(59,159,231,0.3); }
.tile .icon-box { width: 2.5rem; height: 2.5rem; margin-bottom: 0; }
.tile .icon-box .lucide { width: 20px; height: 20px; }
.tile span { font-size: 0.875rem; font-weight: 500; text-align: center; }

/* =========================================================
   FAQ (Enhancement C)
   ========================================================= */
.faq-list { max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden; transition: box-shadow .3s ease, border-color .3s ease; }
.faq-item.open { box-shadow: var(--shadow-md); border-color: rgba(59,159,231,0.3); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem; background: none; border: none; text-align: left;
  font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.0625rem; font-weight: 600; color: var(--ink);
  cursor: pointer;
}
.faq-q .chev { color: var(--primary); flex-shrink: 0; transition: transform .3s ease; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 1.5rem 1.25rem; color: var(--muted); line-height: 1.625; }

/* =========================================================
   Contact
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(2,1fr); } }
.contact-left h3 { font-size: 1.5rem; font-weight: 600; color: var(--ink); margin-bottom: 1.5rem; }
.contact-left > p { color: var(--muted); line-height: 1.625; margin-bottom: 1.5rem; }
.contact-details { display: flex; flex-direction: column; gap: 1rem; padding-top: 1rem; }
.contact-row { display: flex; align-items: center; gap: 0.75rem; }
.contact-row .icon-box { width: 2.5rem; height: 2.5rem; margin-bottom: 0; flex-shrink: 0; }
.contact-row .icon-box .lucide { width: 20px; height: 20px; }
.contact-row a, .contact-row span { color: var(--ink); font-weight: 500; font-size: 0.875rem; }
.contact-row a:hover { color: var(--primary); }
.formflow-embed { width: 100%; }
.formflow-embed iframe { width: 100%; min-height: 400px; border: none; overflow: hidden; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--navy); color: #fff; }
.footer-cta { border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-cta .container { padding-top: 3rem; padding-bottom: 3rem; text-align: center; }
.footer-cta h3 { font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 700; margin-bottom: 0.75rem; }
.footer-cta p { color: rgba(255,255,255,0.6); margin: 0 auto 1.5rem; max-width: 32rem; }
.footer-bar .container { padding-top: 2rem; padding-bottom: 2rem; }
.footer-top { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1.5rem; }
@media (min-width: 768px) { .footer-top { flex-direction: row; } }
.footer-brand .brand { margin-bottom: 0.5rem; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.875rem; }
.footer-contact { display: flex; flex-direction: column; align-items: center; gap: 1rem; font-size: 0.875rem; color: rgba(255,255,255,0.6); }
@media (min-width: 640px) { .footer-contact { flex-direction: row; } }
.footer-contact a { display: flex; align-items: center; gap: 0.5rem; transition: color .2s; }
.footer-contact a:hover { color: #fff; }
.footer-contact .lucide { width: 16px; height: 16px; }
.footer-copyright { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 1.5rem; padding-top: 1.5rem; text-align: center; }
.footer-copyright p { color: rgba(255,255,255,0.4); font-size: 0.75rem; }

/* =========================================================
   Mobile sticky bottom bar (Enhancement)
   ========================================================= */
.mobile-bar { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: 72px; }
  .nav-links, .nav-phone { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
    height: 72px;
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    font-weight: 600; font-size: 0.9375rem;
  }
  .mobile-bar .mb-call { color: var(--navy); }
  .mobile-bar .mb-consult { background: var(--primary); color: #fff; margin: 0.5rem; border-radius: var(--radius-sm); }
}

/* =========================================================
   Scroll-reveal animations
   ========================================================= */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease-out, transform .6s ease-out; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-left { opacity: 0; transform: translateX(-24px); transition: opacity .6s ease-out, transform .6s ease-out; }
.fade-left.visible { opacity: 1; transform: translateX(0); }
.scale-in { opacity: 0; transform: scale(0.9); transition: opacity .4s ease-out, transform .4s ease-out; }
.scale-in.visible { opacity: 1; transform: scale(1); }
.delay-1{transition-delay:.1s}.delay-2{transition-delay:.2s}.delay-3{transition-delay:.3s}
.delay-4{transition-delay:.35s}.delay-5{transition-delay:.4s}.delay-6{transition-delay:.45s}
.delay-7{transition-delay:.5s}.delay-8{transition-delay:.55s}.delay-9{transition-delay:.6s}
.delay-10{transition-delay:.65s}.delay-11{transition-delay:.7s}.delay-12{transition-delay:.75s}

@media (prefers-reduced-motion: reduce) {
  .fade-up, .fade-left, .scale-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
