/* ============================================
   Lincoln Spray Foam — Main Stylesheet
   Hand-written CSS, no frameworks. Mobile-first.
   ============================================ */

/* ---- Custom Properties ---- */
:root {
  /* Primary palette */
  --color-dark-primary: #16213E;
  --color-dark-secondary: #0F3460;
  --color-dark-tertiary: #0A1628;

  /* Accent */
  --color-accent: #FF6B2C;
  --color-accent-hover: #E85A1E;
  --color-accent-light: rgba(255, 107, 44, 0.15);

  /* Text */
  --color-text-on-dark: #F8FAFC;
  --color-text-muted-dark: #94A3B8;
  --color-text-on-light: #1E293B;
  --color-text-muted-light: #64748B;

  /* Backgrounds */
  --color-bg-light: #F8FAFC;
  --color-bg-white: #ffffff;
  --color-bg-section: #F1F5F9;

  /* Borders */
  --color-border-dark: rgba(255, 255, 255, 0.08);
  --color-border-light: #E2E8F0;

  /* Font stack */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Legacy aliases (keep for backward compat with template references) */
  --primary: #16213E;
  --primary-light: #0F3460;
  --accent: #FF6B2C;
  --accent-hover: #E85A1E;
  --neutral-dark: #1E293B;
  --neutral-mid: #64748B;
  --neutral-light: #F8FAFC;
  --white: #ffffff;
  --border: #E2E8F0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(15, 52, 96, 0.12);
  --radius: 6px;
  --max-width: 1200px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; word-break: break-word; }
/* Restore natural word breaking for table cells — prevents mid-word breaks in narrow columns */
td, th { word-break: normal; overflow-wrap: break-word; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-on-light);
  background: var(--color-bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--color-dark-secondary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--color-accent); }
ul, ol { list-style-position: inside; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text-on-light);
  line-height: 1.25;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(1.875rem, 5vw, 2.75rem); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; }
h3 { font-size: 1.375rem; font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }
p { margin-bottom: 1rem; max-width: 680px; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--color-text-on-light); }

/* Content body links */
.content-body a, .blog-content a, .content-page a {
  color: var(--color-dark-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.content-body a:hover, .blog-content a:hover, .content-page a:hover {
  color: var(--color-accent);
}

/* ---- Container ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 1.25rem; }

/* ---- Sections ---- */
.section { padding: 3.5rem 1.25rem; }
.section-alt { background: var(--color-bg-white); }
.section-dark { background: linear-gradient(135deg, #0F3460 0%, #16213E 100%); color: var(--color-text-on-dark); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--color-text-on-dark); }
.section-title {
  text-align: center;
  margin-bottom: 0.625rem;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  color: var(--color-text-on-light);
  letter-spacing: -0.015em;
}
.section-title.on-dark { color: var(--color-text-on-dark); }
.section-sub { text-align: center; color: var(--color-text-muted-light); max-width: 580px; margin: 0 auto 2.25rem; font-size: 1.0625rem; line-height: 1.7; }
.accent-line { width: 40px; height: 3px; background-color: var(--color-accent); border-radius: 2px; margin-bottom: 16px; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--color-dark-secondary);
  border-bottom: 1px solid var(--color-border-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.22);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 0.875rem;
}
.site-logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; }
.site-logo .logo-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text-on-dark);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.site-logo .logo-tagline { font-size: 0.725rem; color: rgba(255,255,255,0.55); }

/* Hamburger */
.nav-toggle {
  background: none;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--color-text-on-dark); transition: transform 0.28s, opacity 0.28s; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Nav (mobile) */
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--color-dark-secondary);
  padding: 0.75rem 1.25rem 1.5rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.28);
  border-top: 1px solid var(--color-border-dark);
}
.site-nav.open { display: block; }
.site-nav > ul { list-style: none; display: flex; flex-direction: column; }
.site-nav a {
  display: block;
  color: #CBD5E1;
  text-decoration: none;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--color-border-dark);
  font-weight: 400;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}
.site-nav a:hover, .site-nav a.active { color: var(--color-text-on-dark); }
.nav-phone-mobile { margin-top: 1rem; }
.nav-phone-mobile a {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.0625rem;
  display: block;
  text-align: center;
  padding: 0.75rem;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  text-decoration: none;
}

/* Header desktop elements (hidden on mobile) */
.header-phone { display: none; }
.header-cta { display: none; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-body);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, transform 0.1s ease, border-color 0.2s, color 0.2s;
  text-align: center;
  min-height: 44px;
  line-height: 1.2;
  gap: 0.5rem;
}
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.btn-primary { background: var(--color-accent); color: #ffffff; border-color: var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); transform: translateY(-1px); color: #ffffff; }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: transparent; color: var(--color-text-on-dark); border: 1.5px solid rgba(248, 250, 252, 0.3); }
.btn-secondary:hover { border-color: rgba(248, 250, 252, 0.6); background-color: rgba(255, 255, 255, 0.05); color: var(--color-text-on-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--color-accent); border-color: var(--color-accent); }
.btn-outline:hover { background: var(--color-accent); color: #ffffff; transform: translateY(-1px); }
.btn-lg { padding: 16px 32px; font-size: 1.0625rem; }

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(160deg, #0F3460 0%, #16213E 60%, #0A1628 100%);
  color: var(--color-text-on-dark);
  padding: 3.5rem 1.25rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 70% 50%, rgba(255, 107, 44, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner { max-width: var(--max-width); margin: 0 auto; position: relative; }
.hero h1 { color: var(--color-text-on-dark); margin-bottom: 1rem; font-family: var(--font-heading); }
.hero-h2 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: #CBD5E1;
  margin: -0.25rem 0 1.25rem;
  letter-spacing: 0;
  line-height: 1.5;
}
.hero-sub { font-size: 1.0625rem; color: #CBD5E1; margin-bottom: 1.75rem; max-width: 580px; line-height: 1.7; }
.hero-tag {
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 16px;
}
.hero-ctas { display: flex; flex-direction: column; gap: 0.875rem; margin-bottom: 2.5rem; }
.hero-phone { font-size: 1.625rem; font-weight: 700; color: var(--color-accent); text-decoration: none; display: block; margin-bottom: 0.25rem; }
.hero-phone:hover { color: var(--color-accent-hover); }
.hero-phone-label { font-size: 0.875rem; color: rgba(255,255,255,0.55); display: block; margin-bottom: 0.75rem; }
.trust-badges { display: flex; flex-direction: column; gap: 0.75rem; border-top: 1px solid var(--color-border-dark); padding-top: 2rem; margin-top: 0.5rem; }
.trust-badge { display: flex; align-items: center; gap: 0.625rem; color: #94A3B8; font-size: 0.9375rem; font-weight: 500; }
.trust-badge svg { flex-shrink: 0; color: var(--color-accent); }

/* Trust bar (inline variant) */
.trust-bar {
  display: flex;
  gap: 24px;
  padding: 16px 20px;
  background-color: var(--color-dark-secondary);
  border-top: 1px solid var(--color-border-dark);
  flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 500; color: #94A3B8; }
.trust-item .trust-icon { color: var(--color-accent); font-weight: 700; }

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.125rem; }
.service-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: 10px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s;
  display: block;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: inherit; border-color: rgba(15, 52, 96, 0.2); }
.service-card-icon {
  width: 48px; height: 48px;
  background: var(--color-accent-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  color: var(--color-accent);
}
.service-card h3 { margin-bottom: 0.4rem; font-size: 1rem; font-weight: 600; color: var(--color-text-on-light); font-family: var(--font-heading); }
.service-card p { color: var(--color-text-muted-light); font-size: 0.875rem; margin: 0; line-height: 1.6; }
.service-card-link { display: inline-block; margin-top: 0.875rem; color: var(--color-accent); font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.service-card-link::after { content: ' →'; }

/* ============================================
   BENEFITS / WHY
   ============================================ */
.benefits-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.benefit-item { text-align: center; padding: 1.5rem 1rem; }
.benefit-icon { width: 68px; height: 68px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.125rem; color: var(--color-accent); }
.benefit-item h3 { margin-bottom: 0.5rem; color: var(--color-text-on-dark); }
.benefit-item p { color: rgba(255,255,255,0.75); font-size: 0.9375rem; }

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--color-border-light); border-radius: var(--radius); margin-bottom: 0.625rem; overflow: hidden; background: var(--color-bg-white); }
.faq-question { width: 100%; background: none; border: none; padding: 1.125rem 1.25rem; text-align: left; font-size: 1rem; font-weight: 600; color: var(--color-text-on-light); cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; font-family: var(--font-body); line-height: 1.4; min-height: 44px; }
.faq-question:hover { background: rgba(15, 52, 96, 0.03); }
.faq-icon { flex-shrink: 0; transition: transform 0.28s; color: var(--color-accent); margin-top: 2px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 1.25rem; max-height: 0; overflow: hidden; transition: max-height 0.32s ease, padding 0.32s ease; }
.faq-item.open .faq-answer { max-height: 600px; padding: 0 1.25rem 1.25rem; }
.faq-answer p { color: var(--color-text-muted-light); margin: 0; }

/* ============================================
   TABLES
   ============================================ */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5rem 0; border-radius: var(--radius); border: 1px solid var(--color-border-light); box-shadow: var(--shadow); }
table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 0.9375rem; background: var(--color-bg-white); }
th { background: var(--color-dark-secondary); color: var(--color-text-on-dark); padding: 0.75rem 0.875rem; text-align: left; font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.02em; font-family: var(--font-heading); white-space: nowrap; }
td { padding: 0.75rem 0.875rem; border-bottom: 1px solid var(--color-border-light); color: var(--color-text-muted-light); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--color-bg-section); }
tr:hover td { background: #EFF6FF; }
td:first-child { font-weight: 600; color: var(--color-text-on-light); min-width: 140px; }
td:nth-child(2) { min-width: 130px; white-space: nowrap; }
td:nth-child(3) { min-width: 180px; }

/* ============================================
   ANSWER BOX (AEO quick answer)
   ============================================ */
.answer-box { position: relative; z-index: 1; background: rgba(15, 52, 96, 0.05); border-left: 4px solid var(--color-dark-secondary); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.25rem 1.5rem; margin: 2rem 0 2rem; }
.answer-box p { color: var(--color-text-on-light); font-size: 1.0625rem; margin: 0; }
.answer-box strong { color: var(--color-dark-primary); }

/* ============================================
   INLINE CTA BOX
   ============================================ */
.inline-cta { background: linear-gradient(135deg, #0F3460 0%, #16213E 100%); color: var(--color-text-on-dark); padding: 1.75rem 1.5rem; border-radius: 8px; text-align: center; margin: 2.5rem 0; }
.inline-cta h3 { color: var(--color-text-on-dark); margin-bottom: 0.5rem; }
.inline-cta p { color: rgba(255,255,255,0.8); margin-bottom: 1.25rem; font-size: 0.9375rem; }
.inline-cta-btns { display: flex; flex-direction: column; gap: 0.75rem; align-items: center; }

/* ============================================
   CONTACT FORM
   ============================================ */
.form-wrap { max-width: 680px; margin: 0 auto; background: var(--color-bg-white); padding: 2rem 1.5rem; border-radius: 8px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0; }
.form-group { margin-bottom: 1.125rem; }
.form-label { display: block; font-weight: 500; font-size: 0.85rem; margin-bottom: 6px; color: var(--color-text-on-light); }
.form-label .required { color: var(--color-accent); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border-light);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--color-text-on-light);
  background: var(--color-bg-white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 44px;
}
.form-control:focus { outline: none; border-color: var(--color-dark-secondary); box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.12); }
.form-control.error { border-color: #c62828; }
.field-error { display: none; color: #c62828; font-size: 0.8125rem; margin-top: 0.3rem; }
.form-group.has-error .field-error { display: block; }
.form-group.has-error .form-control { border-color: #c62828; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748B' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
textarea.form-control { resize: vertical; min-height: 100px; }
.honeypot { display: none !important; position: absolute; left: -9999px; }
.form-submit-wrap { margin-top: 0.25rem; }
.form-success { display: none; background: rgba(15, 52, 96, 0.06); border: 1.5px solid var(--color-dark-secondary); border-radius: var(--radius); padding: 1.75rem; text-align: center; }
.form-success h3 { color: var(--color-dark-secondary); margin-bottom: 0.5rem; }
.form-success p { color: var(--color-text-muted-light); margin: 0; }

/* ============================================
   PAGE HEADER (non-home interior pages)
   ============================================ */
.page-header { background: linear-gradient(160deg, #0F3460 0%, #16213E 100%); color: var(--color-text-on-dark); padding: 3rem 1.25rem 2.5rem; }
.page-header h1 { color: var(--color-text-on-dark); margin-bottom: 0.75rem; }
.page-header .page-sub { color: #CBD5E1; font-size: 1.0625rem; max-width: 580px; margin: 0; }

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb { padding: 0.625rem 1.25rem; background: var(--color-bg-white); border-bottom: 1px solid var(--color-border-light); font-size: 0.875rem; }
.breadcrumb-inner { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; gap: 0.375rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--color-dark-secondary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: var(--color-accent); }
.breadcrumb-sep { color: var(--color-border-light); }
.breadcrumb-current { color: var(--color-text-muted-light); }

/* ============================================
   SERVICE AREA LIST
   ============================================ */
.service-area-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin-top: 1.5rem; }
.service-area-item { background: var(--color-bg-white); border: 1px solid var(--color-border-light); border-radius: var(--radius); padding: 0.625rem 1rem; font-size: 0.9375rem; display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--color-text-muted-light); transition: border-color 0.2s, color 0.2s; }
.service-area-item::before { content: '→'; color: var(--color-accent); font-weight: 700; flex-shrink: 0; }
.service-area-item:hover { border-color: var(--color-dark-secondary); color: var(--color-dark-primary); }

/* ============================================
   BLOG
   ============================================ */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.blog-card { background: var(--color-bg-white); border: 1px solid var(--color-border-light); border-radius: 10px; padding: 1.5rem; text-decoration: none; color: inherit; display: block; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: inherit; }
.blog-meta { font-size: 0.875rem; color: var(--color-text-muted-light); margin-bottom: 0.625rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.blog-meta span { display: flex; align-items: center; gap: 0.3rem; }
.blog-card h2 { font-size: 1.25rem; margin-bottom: 0.625rem; color: var(--color-text-on-light); font-family: var(--font-heading); }
.blog-card p { color: var(--color-text-muted-light); font-size: 0.9375rem; margin: 0; }
.blog-read-more { color: var(--color-accent); font-weight: 600; margin-top: 0.875rem; display: inline-block; text-decoration: none; font-size: 0.9375rem; }
.blog-read-more::after { content: ' →'; }

/* Blog Post */
.blog-post-header { background: linear-gradient(160deg, #0F3460 0%, #16213E 100%); color: var(--color-text-on-dark); padding: 3rem 1.25rem; }
.blog-post-header h1 { color: var(--color-text-on-dark); margin-bottom: 0.75rem; }
.blog-post-header .blog-meta { color: rgba(255,255,255,0.6); }
.blog-content { max-width: 780px; margin: 0 auto; padding: 2.5rem 1.25rem; }
.blog-content h2 { font-size: 1.625rem; margin: 2.25rem 0 0.875rem; padding-top: 0.25rem; }
.blog-content h3 { margin: 1.75rem 0 0.625rem; }
.blog-content ul, .blog-content ol { padding-left: 1.5rem; margin-bottom: 1rem; list-style-position: outside; }
.blog-content li { margin-bottom: 0.4rem; }
.toc { background: var(--color-bg-white); border: 1px solid var(--color-border-light); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.toc-title { font-size: 0.9375rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--color-text-on-light); font-family: var(--font-body); }
.toc ol { padding-left: 1.25rem; list-style-position: outside; }
.toc li { margin-bottom: 0.375rem; }
.toc a { color: var(--color-dark-secondary); font-size: 0.9375rem; text-decoration: none; }
.toc a:hover { text-decoration: underline; color: var(--color-accent); }
.related-posts { background: var(--color-bg-white); padding: 2rem 1.25rem; border-top: 1px solid var(--color-border-light); }
.related-posts h3 { margin-bottom: 1rem; }
.related-post-item { padding: 0.75rem 0; border-bottom: 1px solid var(--color-border-light); }
.related-post-item:last-child { border-bottom: none; }
.related-post-item a { color: var(--color-dark-secondary); font-weight: 500; }

/* ============================================
   ABOUT
   ============================================ */
.about-stat-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }
.about-stat { text-align: center; min-width: 110px; padding: 1rem; }
.about-stat-number { font-size: 2.25rem; font-weight: 700; color: var(--color-dark-secondary); font-family: var(--font-heading); line-height: 1; margin-bottom: 0.25rem; }
.about-stat-label { font-size: 0.875rem; color: var(--color-text-muted-light); }

/* ============================================
   CONTENT PAGE LAYOUT
   ============================================ */
.content-page { max-width: 800px; margin: 0 auto; padding: 0 1.25rem; }
.content-page h2 { font-size: 1.625rem; margin: 2.25rem 0 0.875rem; }
.content-page h3 { margin: 1.75rem 0 0.625rem; }
.content-page ul, .content-page ol { padding-left: 1.5rem; margin-bottom: 1rem; list-style-position: outside; }
.content-page li { margin-bottom: 0.4rem; }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section { background: linear-gradient(135deg, #0F3460 0%, #16213E 100%); color: var(--color-text-on-dark); padding: 3.5rem 1.25rem; text-align: center; }
.cta-section h2 { color: var(--color-text-on-dark); margin-bottom: 0.75rem; }
.cta-section p { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; flex-direction: column; gap: 0.875rem; align-items: center; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-dark-tertiary);
  border-top: 1px solid var(--color-border-dark);
  color: #94A3B8;
  padding: 3rem 1.25rem 1.5rem;
}
.footer-grid { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 2rem; }
.footer-brand .logo-name { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--color-text-on-dark); display: block; margin-bottom: 0.3rem; }
.footer-brand .logo-tagline { font-size: 0.8rem; color: #475569; display: block; margin-bottom: 1rem; }
.footer-nap { font-size: 0.9375rem; line-height: 1.85; }
.footer-nap a { color: var(--color-accent); text-decoration: none; font-weight: 600; font-size: 1rem; }
.footer-nap a:hover { text-decoration: underline; }
.footer-heading { color: var(--color-text-on-dark); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.875rem; font-family: var(--font-body); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.375rem; }
.footer-links a { color: #94A3B8; text-decoration: none; font-size: 0.85rem; transition: color 0.15s ease; }
.footer-links a:hover { color: var(--color-accent); }
.footer-bottom { max-width: var(--max-width); margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--color-border-dark); display: flex; flex-direction: column; gap: 0.375rem; font-size: 0.75rem; color: #475569; }

/* ============================================
   MOBILE STICKY CTA BAR
   ============================================ */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--color-accent);
  display: none;
}
.mobile-cta-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 1.25rem;
  min-height: 52px;
  gap: 0.375rem;
}
.mobile-cta-bar a:hover { color: #ffffff; background: var(--color-accent-hover); }
body.has-mobile-bar { padding-bottom: 52px; }

/* ============================================
   UTILITY
   ============================================ */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-dark-primary); }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.list-clean { list-style: none; padding: 0; }
.highlight { color: var(--color-accent); }
.lead { font-size: 1.125rem; line-height: 1.65; }

/* ============================================
   DESKTOP BREAKPOINTS (768px+)
   ============================================ */
@media (min-width: 640px) {
  .hero-ctas { flex-direction: row; flex-wrap: wrap; }
  .trust-badges { flex-direction: row; flex-wrap: wrap; gap: 1.5rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .inline-cta-btns { flex-direction: row; justify-content: center; }
  .cta-btns { flex-direction: row; justify-content: center; }
  .form-row { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .service-area-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .section { padding: 5rem 1.25rem; }
  .mobile-cta-bar { display: none !important; }
  body.has-mobile-bar { padding-bottom: 0; }
  .nav-toggle { display: none; }
  .site-nav {
    display: flex !important;
    position: static;
    background: none;
    padding: 0;
    box-shadow: none;
    border-top: none;
    flex: 1;
    justify-content: center;
  }
  .site-nav > ul { flex-direction: row; align-items: center; }
  .site-nav a {
    padding: 0.5rem 0.7rem;
    border-bottom: none;
    font-size: 0.875rem;
    border-radius: 4px;
    color: #CBD5E1;
    font-weight: 400;
    transition: color 0.15s ease, background 0.15s ease;
  }
  .site-nav a:hover { background: rgba(255,255,255,0.08); color: var(--color-text-on-dark); }
  .site-nav a.active { color: var(--color-text-on-dark); }
  .nav-phone-mobile { display: none; }
  .header-phone {
    display: block;
    color: var(--color-accent);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.15s ease;
  }
  .header-phone:hover { color: var(--color-accent-hover); }
  .header-cta {
    display: inline-block;
    background: var(--color-accent);
    color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.15s ease;
  }
  .header-cta:hover { background: var(--color-accent-hover); color: #ffffff; }
  .hero { padding: 5.5rem 1.25rem 6rem; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .service-area-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile bar visibility */
@media (max-width: 767px) {
  .mobile-cta-bar { display: block; }
}

/* ============================================
   AUTHOR BIO (blog posts)
   ============================================ */
.author-bio {
  background: var(--color-bg-section);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  padding: 2rem 1.25rem;
  margin-top: 2rem;
}
.author-bio-inner { display: flex; align-items: flex-start; gap: 1.25rem; }
.author-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--color-dark-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-on-dark);
}
.author-bio-text { flex: 1; }
.author-bio-name { font-weight: 700; color: var(--color-dark-secondary); margin: 0 0 0.4rem; font-size: 0.95rem; }
.author-bio-desc { margin: 0; font-size: 0.9rem; color: var(--color-text-muted-light); line-height: 1.6; }

/* ─── Services dropdown nav ─────────────────────────────────────────────── */
.has-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.has-dropdown > .dropdown-parent-link { padding-right: 2px; }
.dropdown-arrow {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.1rem 0.25rem;
  display: flex;
  align-items: center;
  color: inherit;
  transition: transform 0.2s;
  line-height: 1;
}
.has-dropdown.is-open > .dropdown-arrow { transform: rotate(180deg); }
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(15, 52, 96, 0.14);
  min-width: 230px;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  z-index: 500;
  white-space: nowrap;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--color-bg-white);
}
.nav-dropdown li { margin: 0; padding: 0; }
.nav-dropdown a {
  display: block;
  padding: 0.55rem 1.2rem;
  color: var(--color-text-on-light);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown a:hover { background: var(--color-bg-section); color: var(--color-accent); }
.has-dropdown.is-open > .nav-dropdown { display: block; }

@media (max-width: 767px) {
  .has-dropdown { flex-direction: column; align-items: flex-start; width: 100%; }
  .has-dropdown > .dropdown-parent-link,
  .dropdown-arrow { display: inline-flex; }
  .has-dropdown > .dropdown-parent-link { flex: 1; }
  .dropdown-arrow { color: rgba(255,255,255,0.6); }
  .nav-dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 3px solid rgba(255,255,255,0.2);
    border-radius: 0;
    padding: 0.25rem 0;
    background: transparent;
    min-width: 0;
    width: 100%;
    margin-left: 1rem;
  }
  .nav-dropdown::before { display: none; }
  .nav-dropdown a { font-size: 0.875rem; padding: 0.4rem 0.8rem; color: #CBD5E1; }
  .nav-dropdown a:hover { background: rgba(255,255,255,0.06); color: var(--color-text-on-dark); }
}
