/* ==========================================================================
   Local Growth Lab — Global Styles
   ========================================================================== */

:root {
  --color-primary: #0f3d5c;      /* deep blue */
  --color-primary-dark: #0a2c42;
  --color-secondary: #17836b;    /* green */
  --color-accent: #f5a623;       /* warm accent */
  --color-accent-dark: #d98b0d;
  --color-text: #1f2933;
  --color-muted: #5b6b78;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7f9;
  --color-border: #e2e8ee;
  --color-white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(15, 61, 92, 0.08);
  --shadow-md: 0 6px 20px rgba(15, 61, 92, 0.10);
  --shadow-lg: 0 16px 40px rgba(15, 61, 92, 0.14);
  --container: 1160px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition: 0.2s ease;
}

/* Reset */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-secondary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--color-primary);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }

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

.section { padding: 72px 0; }
.section--alt { background: var(--color-bg-alt); }
.section--tight { padding: 48px 0; }

.text-center { text-align: center; }
.muted { color: var(--color-muted); }
.lead { font-size: 1.2rem; color: var(--color-muted); max-width: 720px; }
.lead.text-center { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
  line-height: 1.2;
}
.btn--primary { background: var(--color-accent); color: #3a2600; }
.btn--primary:hover { background: var(--color-accent-dark); color: #3a2600; transform: translateY(-1px); }
.btn--secondary { background: var(--color-primary); color: #fff; }
.btn--secondary:hover { background: var(--color-primary-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn--outline:hover { background: var(--color-primary); color: #fff; }
.btn--ghost-light { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.4); }
.btn--ghost-light:hover { background: #fff; color: var(--color-primary); }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-primary);
}
.logo:hover { color: var(--color-primary); }
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1rem;
}

.main-nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0; padding: 0;
}
.main-nav a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.97rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a.active { color: var(--color-primary); border-bottom-color: var(--color-accent); }

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone { font-weight: 700; color: var(--color-primary); white-space: nowrap; }
.header-phone:hover { color: var(--color-secondary); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; width: 44px; height: 44px;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; display: block; position: relative;
  width: 24px; height: 2px; background: var(--color-primary);
  transition: var(--transition);
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background:
    linear-gradient(135deg, rgba(15,61,92,0.92) 0%, rgba(10,44,66,0.88) 55%, rgba(7,32,51,0.9) 100%),
    url("https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
  color: #fff;
  padding: 104px 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(23,131,107,0.35), transparent 70%);
}
.hero .container { position: relative; z-index: 1; max-width: 820px; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.25rem; color: rgba(255,255,255,0.9); margin-bottom: 1.75rem; }
.hero .eyebrow { color: var(--color-accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 1.25rem; font-size: 0.9rem; color: rgba(255,255,255,0.7); }

/* Page hero (inner pages) */
.page-hero {
  background:
    linear-gradient(135deg, rgba(15,61,92,0.93), rgba(10,44,66,0.9)),
    url("https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
  color: #fff;
  padding: 76px 0;
  position: relative;
}
.page-hero h1 { color: #fff; margin-bottom: 0.4rem; }
.page-hero p { color: rgba(255,255,255,0.9); font-size: 1.15rem; max-width: 720px; margin: 0; }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.85rem; color: var(--color-muted); padding: 14px 0; }
.breadcrumbs a { color: var(--color-secondary); }
.breadcrumbs span { color: var(--color-muted); }

/* ==========================================================================
   Grids & Cards
   ========================================================================== */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-top: 0.5rem; }
.card p:last-child { margin-bottom: 0; }

/* Card with photo on top */
.card--photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--photo .card-photo {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  display: block;
}
.card--photo .card-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.card--photo .card-body h3 { margin-top: 0; }
.card--photo .card-body > *:last-child { margin-bottom: 0; }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--color-bg-alt);
  color: var(--color-secondary);
  display: grid; place-items: center;
  font-size: 1.5rem; font-weight: 800;
}

.check-list { list-style: none; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 0.75rem;
}
.check-list li::before {
  content: "\2713";
  position: absolute; left: 0; top: 0;
  color: var(--color-secondary);
  font-weight: 800;
  width: 20px; height: 20px;
  background: rgba(23,131,107,0.12);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.8rem;
}

/* Steps */
.steps { counter-reset: step; display: grid; gap: 24px; }
.step {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 28px 28px 84px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 24px; top: 26px;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.2rem;
}
.step h3 { margin-top: 0; }
.step p:last-child { margin-bottom: 0; }

/* Feature split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split--reverse .split-media { order: 2; }
.media-box {
  background: linear-gradient(135deg, var(--color-bg-alt), #e9f1f0);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px;
  min-height: 260px;
  display: grid; place-items: center;
  text-align: center;
  color: var(--color-primary);
}
.media-box .big-emoji { font-size: 3.2rem; margin-bottom: 0.5rem; }

/* Real photo inside split sections */
.feature-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4 / 3;
  display: block;
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat .num { font-size: 2.4rem; font-weight: 800; color: var(--color-secondary); line-height: 1; }
.stat .label { color: var(--color-muted); font-size: 0.95rem; margin-top: 6px; }

/* Testimonials */
.quote {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); height: 100%;
}
.quote p { font-style: italic; }
.quote .author { font-weight: 700; color: var(--color-primary); font-style: normal; }
.quote .role { font-size: 0.88rem; color: var(--color-muted); }
.quote-person { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.quote-person img {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; flex: none;
}
.quote-person .author { line-height: 1.2; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--color-secondary), #0f6b57);
  color: #fff;
  text-align: center;
  border-radius: var(--radius);
  padding: 52px 32px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 640px; margin: 0 auto 1.5rem; }

/* FAQ */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}
.faq-q {
  width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  padding: 18px 22px; font-size: 1.05rem; font-weight: 700;
  color: var(--color-primary);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .icon { transition: transform var(--transition); flex: none; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height var(--transition), padding var(--transition); }
.faq-item.open .faq-a { padding: 0 22px 20px; max-height: 400px; }

/* Article / prose */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul { margin-bottom: 1.5rem; }
.article-meta { color: var(--color-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

/* Blog list */
.post-card {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column; height: 100%;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: grid; place-items: center; color: #fff; font-size: 2.5rem;
  overflow: hidden;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-body h3 { margin-top: 0; }
.post-body p { flex: 1; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-secondary); margin-bottom: 8px; }

/* ==========================================================================
   Contact / Forms
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.field input,
.field textarea {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem;
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(23,131,107,0.15);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--color-muted); }
.form-success {
  display: none;
  background: rgba(23,131,107,0.1);
  border: 1px solid var(--color-secondary);
  color: #0f6b57;
  padding: 16px; border-radius: var(--radius-sm);
  margin-bottom: 16px; font-weight: 600;
}
.form-success.show { display: block; }

.contact-info-list { list-style: none; padding: 0; }
.contact-info-list li { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; }
.contact-info-list .ci-icon { font-size: 1.3rem; flex: none; }
.map-embed { border: 0; width: 100%; height: 320px; border-radius: var(--radius); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 56px 0 28px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 36px;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,0.8); }
.site-footer a:hover { color: var(--color-accent); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 22px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}
.footer-disclaimer {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-top: 12px;
  line-height: 1.6;
}

/* ==========================================================================
   Utilities & Responsive
   ========================================================================== */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 2rem; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }

@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 460px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  .main-nav li { border-bottom: 1px solid var(--color-border); }
  .main-nav a { display: block; padding: 14px 0; }
  .header-phone { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0; }
  .header-cta .btn { display: none; }
}
