/* ============================================
   AI Search Marketing Agency, Design System
   Navy + Orange | Poppins
   Prototype / design reference for CMS build
   ============================================ */

:root {
  /* Brand */
  --navy-900: #0a1628;
  --navy-800: #0f2038;
  --navy-700: #16304f;
  --navy-600: #1e3f66;
  --navy-500: #2b5788;
  --orange-500: #ff7a1a;
  --orange-600: #e86a0c;
  --orange-400: #ff9448;
  --orange-100: #fff1e6;

  /* Neutrals */
  --white: #ffffff;
  --grey-050: #fafbfc;
  --grey-100: #f4f6f9;
  --grey-200: #e8edf3;
  --grey-300: #d6dde6;
  --grey-400: #a8b5c4;
  --grey-600: #5a6b7f;
  --grey-800: #2c3a4a;

  /* Semantic */
  --success: #1f9d55;
  --error: #d64545;

  /* Scale */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.06), 0 1px 2px rgba(10, 22, 40, 0.04);
  --shadow: 0 6px 24px rgba(10, 22, 40, 0.10);
  --shadow-lg: 0 18px 48px rgba(10, 22, 40, 0.16);
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--grey-800);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  color: var(--navy-900);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.05rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); margin-bottom: 16px; }
h3 { font-size: 1.18rem; margin-bottom: 8px; letter-spacing: -0.01em; }
p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }
a { color: var(--orange-600); }
strong { color: var(--navy-900); font-weight: 600; }

.lead-copy { font-size: 1.06rem; color: var(--grey-600); max-width: 720px; }
.section-intro { max-width: 720px; }

section { padding: 84px 0; }
.section-alt { background: var(--grey-100); }
.section-dark { background: var(--navy-900); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p, .section-dark li { color: var(--grey-300); }
.section-tight { padding: 56px 0; }

/* Accessibility */
:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--orange-500);
  color: var(--white);
  padding: 12px 20px;
  z-index: 999;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.eyebrow {
  display: inline-block;
  color: var(--orange-500);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(10, 22, 40, 0.98);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--white);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.logo em { color: var(--orange-500); font-style: normal; }
.logo-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--orange-500), var(--orange-600));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(255, 122, 26, 0.35);
}
.logo-mark svg { width: 19px; height: 19px; stroke: var(--white); }

.nav-links { display: flex; gap: 26px; align-items: center; list-style: none; flex-wrap: nowrap; }
.nav-links a {
  color: var(--grey-400);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--orange-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).active::after { transform: scaleX(1); }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
/* NOTE: must be written as `.nav-links a.nav-cta` (0,2,1), not `.nav-cta` (0,1,0).
   `.nav-links a` above is (0,1,1) and would otherwise win on specificity and
   force the horizontal padding to 0. Do not "simplify" this selector. */
.nav-links a.nav-cta {
  background: var(--orange-500);
  color: var(--white) !important;
  padding: 12px 30px;
  line-height: 1.35;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.nav-links a.nav-cta:hover {
  background: var(--orange-600);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 122, 26, 0.32);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 42px; height: 42px;
  padding: 10px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.28s var(--ease), opacity 0.2s;
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 460px at 12% -10%, rgba(255, 122, 26, 0.20), transparent 62%),
    radial-gradient(700px 420px at 92% 8%, rgba(43, 87, 136, 0.55), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
  padding: 104px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--white); margin-bottom: 20px; max-width: 17ch; }
.hero h1.wide { max-width: 24ch; }
.hero h1 em { color: var(--orange-500); font-style: normal; }
.hero p.lead {
  color: var(--grey-300);
  font-size: 1.14rem;
  max-width: 620px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note {
  color: var(--grey-400);
  font-size: 0.85rem;
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-note svg { width: 15px; height: 15px; stroke: var(--orange-500); flex: 0 0 15px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.hero-badges span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--grey-300);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 7px 15px;
  border-radius: 999px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.98rem;
  font-family: inherit;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn svg { width: 17px; height: 17px; flex: 0 0 17px; }
.btn-primary {
  background: var(--orange-500);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(255, 122, 26, 0.28);
}
.btn-primary:hover {
  background: var(--orange-600);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 122, 26, 0.36);
}
.btn-outline { border-color: var(--orange-500); color: var(--orange-500); background: transparent; }
.btn-outline:hover { background: var(--orange-500); color: var(--white); transform: translateY(-2px); }
.btn-ghost { color: var(--navy-900); border-color: var(--grey-300); background: var(--white); }
.btn-ghost:hover { border-color: var(--navy-900); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.93rem;
  text-decoration: none;
  color: var(--orange-600);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.22s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Cards / Grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 40px; align-items: start; }
.grid-2-wide { grid-template-columns: 1.15fr 0.85fr; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }

.card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s;
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--grey-300);
}
.card .icon {
  width: 46px; height: 46px;
  background: var(--orange-100);
  color: var(--orange-600);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card .icon svg {
  width: 22px; height: 22px;
  stroke: var(--orange-600);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card > a:not(.btn) { margin-top: 4px; display: inline-flex; }
.card-dark {
  background: linear-gradient(150deg, var(--navy-900), var(--navy-700));
  border-color: var(--navy-600);
}
.card-dark h3, .card-dark h4 { color: var(--white); }
.card-dark p, .card-dark li { color: var(--grey-300); }
.card-dark .checklist li strong { color: var(--white); }
.section-dark .card { background: var(--navy-800); border-color: var(--navy-600); }
.section-dark .card p { color: var(--grey-300); }
.card-highlight { border-color: var(--orange-500); border-width: 2px; }

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--navy-800);
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 40px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--grey-300);
  font-size: 0.87rem;
  font-weight: 500;
}
.trust-item svg { width: 17px; height: 17px; stroke: var(--orange-500); fill: none; stroke-width: 1.9; flex: 0 0 17px; }

/* ---------- Stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.stat {
  padding: 26px 24px;
  border-left: 3px solid var(--orange-500);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.stat .num {
  display: block;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.stat p { font-size: 0.9rem; color: var(--grey-600); margin: 8px 0 0; }
.stat cite { display: block; font-size: 0.76rem; color: var(--grey-400); font-style: normal; margin-top: 8px; }

/* ---------- Steps ---------- */
.steps { margin-top: 40px; }
.step {
  display: flex; gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--grey-200);
}
.step:last-child { border-bottom: none; }
.step-num {
  flex: 0 0 46px; height: 46px;
  background: var(--navy-900); color: var(--orange-500);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.02rem;
}
.step h3 { margin-bottom: 4px; }
.step p { color: var(--grey-600); font-size: 0.95rem; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 16px 0 24px; }
.checklist:last-child { margin-bottom: 0; }
.checklist li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
  font-size: 0.96rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 16px; height: 16px;
  background: var(--orange-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- Comparison (old way / new way) ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.compare-col { border-radius: var(--radius); padding: 30px 28px; border: 1px solid var(--grey-200); background: var(--white); }
.compare-col h3 { margin-bottom: 18px; }
.compare-col ul { list-style: none; }
.compare-col li { padding-left: 28px; position: relative; margin-bottom: 12px; font-size: 0.95rem; }
.compare-col li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.compare-old { background: var(--grey-050); }
.compare-old li::before { content: "\00d7"; color: var(--grey-400); font-size: 1.2rem; line-height: 1.45; }
.compare-new { border-color: var(--orange-500); border-width: 2px; }
.compare-new li::before { content: "\2713"; color: var(--orange-500); }

/* ---------- Testimonial ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.quote {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.quote::before {
  content: "\201C";
  font-size: 3.4rem;
  line-height: 1;
  color: var(--orange-100);
  position: absolute;
  top: 14px; right: 20px;
  font-family: Georgia, serif;
}
.quote blockquote { margin: 0; }
.quote p { font-size: 0.96rem; color: var(--grey-800); position: relative; z-index: 1; }
.quote figcaption { margin-top: 16px; font-size: 0.85rem; color: var(--grey-600); }
.quote figcaption strong { display: block; color: var(--navy-900); }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq details[open] { border-color: var(--grey-300); box-shadow: var(--shadow-sm); }
.faq summary {
  font-weight: 600;
  color: var(--navy-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 18px;
  width: 18px; height: 18px;
  margin-top: 4px;
  background: var(--orange-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { margin-top: 12px; margin-bottom: 0; color: var(--grey-600); font-size: 0.95rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(255, 122, 26, 0.20), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--grey-300); max-width: 580px; margin: 0 auto 28px; }
.cta-band .hero-note { justify-content: center; color: var(--grey-400); margin: 18px auto 0; }

/* ---------- Forms ---------- */
.form-embed {
  background: var(--grey-100);
  border: 2px dashed var(--grey-300);
  border-radius: var(--radius);
  padding: 44px 32px;
  text-align: center;
  color: var(--grey-600);
}
.form-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
form.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy-900);
}
.field label .opt { font-weight: 400; color: var(--grey-400); }
.field .hint { font-size: 0.78rem; color: var(--grey-600); }
.contact-form input,
.contact-form textarea,
.contact-form select {
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--grey-800);
  padding: 13px 15px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-sm);
  width: 100%;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6b7f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 17px;
  padding-right: 42px;
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.18);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--grey-400); }
.field.has-error input,
.field.has-error textarea,
.field.has-error select { border-color: var(--error); }
.field.has-error input:focus,
.field.has-error textarea:focus { box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.16); }
.error-msg { font-size: 0.79rem; color: var(--error); font-weight: 500; display: none; }
.field.has-error .error-msg { display: block; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--grey-600);
  line-height: 1.5;
}
.form-consent input { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 3px; accent-color: var(--orange-500); }
.form-consent.has-error { color: var(--error); }
.form-consent.has-error input { outline: 2px solid var(--error); outline-offset: 2px; }

/* Error banner, shown when form-handler.php bounces back with ?error=1 */
.form-error {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  background: rgba(214, 69, 69, 0.07);
  border: 1px solid rgba(214, 69, 69, 0.35);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 22px;
  font-size: 0.88rem;
  color: var(--grey-800);
  line-height: 1.5;
}
.form-error[hidden] { display: none; }
.form-error svg {
  width: 18px; height: 18px; flex: 0 0 18px;
  margin-top: 2px;
  stroke: var(--error); fill: none;
  stroke-width: 2; stroke-linecap: round;
}
.form-error a { color: var(--error); font-weight: 600; }

.form-success {
  display: none;
  text-align: center;
  padding: 40px 24px;
}
.form-success.show { display: block; }
.form-success .tick {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(31, 157, 85, 0.12);
  display: flex; align-items: center; justify-content: center;
}
.form-success .tick svg { width: 27px; height: 27px; stroke: var(--success); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
form.submitted { display: none; }

.form-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--grey-200);
}
.form-trust span {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.79rem; color: var(--grey-600);
}
.form-trust svg { width: 14px; height: 14px; stroke: var(--success); fill: none; stroke-width: 2.2; flex: 0 0 14px; }

/* ---------- Contact methods ---------- */
.contact-methods { display: grid; gap: 14px; margin-top: 24px; }
.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  background: var(--white);
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.contact-method:hover { border-color: var(--orange-500); transform: translateX(3px); }
.contact-method .icon {
  width: 40px; height: 40px; flex: 0 0 40px;
  background: var(--orange-100);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.contact-method .icon svg { width: 19px; height: 19px; stroke: var(--orange-600); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.contact-method strong { display: block; font-size: 0.93rem; color: var(--navy-900); }
.contact-method span { font-size: 0.85rem; color: var(--grey-600); }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: rgba(10, 22, 40, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform 0.35s var(--ease);
}
.mobile-cta.visible { transform: translateY(0); }
.mobile-cta .btn { width: 100%; justify-content: center; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: 0.82rem;
  color: var(--grey-400);
  margin-bottom: 18px;
}
.breadcrumbs a { color: var(--grey-300); text-decoration: none; }
.breadcrumbs a:hover { color: var(--orange-500); }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.6; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: var(--grey-400);
  padding: 64px 0 28px;
  font-size: 0.89rem;
}
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.1fr; gap: 40px; margin-bottom: 44px; }
.site-footer h4 { color: var(--white); font-size: 0.97rem; margin-bottom: 16px; }
.site-footer .logo { margin-bottom: 14px; }
.site-footer p { color: var(--grey-400); line-height: 1.6; }
.site-footer a { color: var(--grey-400); text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--orange-500); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact svg { width: 15px; height: 15px; stroke: var(--orange-500); fill: none; stroke-width: 1.9; flex: 0 0 15px; margin-top: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.83rem;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(700px 340px at 8% -20%, rgba(255, 122, 26, 0.16), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
  padding: 62px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 40% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 40% 20%, #000 0%, transparent 75%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; max-width: 20ch; }
.page-hero p { color: var(--grey-300); font-size: 1.06rem; max-width: 660px; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
/* Collapse to the hamburger while there is still room to spare.
   Desktop bar needs ~924px with the full label; this leaves ~100px of slack. */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy-900);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
  .nav-links li:last-child { border-bottom: none; margin-top: 14px; }
  .nav-links a { display: block; padding: 13px 0; font-size: 1rem; white-space: normal; }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-links a.nav-cta { text-align: center; padding: 15px 24px; }
  .nav-toggle { display: block; }
  .mobile-cta { display: block; }
  .site-footer { padding-bottom: 96px; }
}

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .grid-3, .grid-2, .grid-2-wide, .compare, .stat-row { grid-template-columns: 1fr; }
  .grid-2 { gap: 28px; }
  section { padding: 60px 0; }
  .hero { padding: 72px 0 68px; }
  .hero h1, .hero h1.wide, .page-hero h1 { max-width: none; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-band { padding: 44px 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .grid-4 { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
  .step { gap: 16px; }
  .container, .container-narrow { padding: 0 18px; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-cta, .cta-band, .site-footer { display: none; }
  body { color: #000; }
}
