/* ═══════════════════════════════════════════════════════
   ATTORNEY MARKETING SOLUTIONS LLC
   Complete Design System — Mobile-First
   Version 2.0 — All overflow and button issues fixed
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=DM+Mono:wght@400;500&display=swap');

/* ── RESET ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

/* CRITICAL: prevent all horizontal overflow everywhere */
html, body { overflow-x: hidden; max-width: 100%; }

:root {
  --navy:     #0A1628;
  --navy2:    #0F1E36;
  --navy3:    #162844;
  --gold:     #C9920A;
  --gold2:    #E0A820;
  --gold3:    #F5D070;
  --cream:    #FAF8F3;
  --white:    #FFFFFF;
  --text:     #1A1A2E;
  --muted:    #6B7280;
  --lgray:    #F5F5F5;
  --bw:       rgba(255,255,255,0.07);
  --border:   rgba(201,146,10,0.2);
  --ff-d:     'Cormorant Garamond', Georgia, serif;
  --ff-b:     'DM Sans', system-ui, sans-serif;
  --ff-m:     'DM Mono', monospace;
  --ease:     cubic-bezier(0.4,0,0.2,1);
  --shadow:   0 12px 40px rgba(10,22,40,0.1);
  --radius:   4px;
}

body {
  font-family: var(--ff-b);
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

/* ── CONTAINER — prevents overflow ────────────────── */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
}

/* ── TYPOGRAPHY ────────────────────────────────────── */
.eyebrow {
  font-family: var(--ff-m);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
}

.gold-rule {
  width: 44px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold3));
  border-radius: 2px;
  margin: 0.9rem 0 1.4rem;
}
.gold-rule.center { margin-left: auto; margin-right: auto; }

/* ── BUTTONS — FULLY MOBILE FIXED ─────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-family: var(--ff-b);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: all 0.25s var(--ease);
  text-decoration: none;
  /* MOBILE FIX: allow text to wrap, prevent overflow */
  white-space: normal;
  text-align: center;
  word-break: break-word;
  max-width: 100%;
}
.btn-gold  { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold2); transform: translateY(-1px); box-shadow: 0 8px 28px rgba(201,146,10,0.3); }
.btn-ghost { background: transparent; color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.25); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold3); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid rgba(10,22,40,0.3); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-lg { padding: 15px 32px; font-size: 15px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-full { width: 100%; }
.arrow { display: inline-block; transition: transform 0.2s; flex-shrink: 0; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── NAVIGATION ────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  height: 68px;
  display: flex; align-items: center;
  padding: 0 clamp(1rem,5vw,3rem);
  background: rgba(10,22,40,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 0.5px solid var(--bw);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.3); }
.nav-inner {
  max-width: 1200px; width: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-family: var(--ff-d); font-size: 1.4rem; font-weight: 700; color: var(--white); letter-spacing: -0.01em; flex-shrink: 0; }
.nav-logo span { color: var(--gold2); }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.65); padding: 6px 12px; border-radius: 3px; transition: all 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold2); background: rgba(201,146,10,0.08); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-phone { font-size: 12px; font-family: var(--ff-m); }
.nav-phone a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.nav-phone a:hover { color: var(--gold2); }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; flex-direction: column; gap: 5px; }
.nav-hamburger span { display: block; width: 22px; height: 1.5px; background: rgba(255,255,255,0.8); transition: all 0.3s; }
.mobile-menu { display: none; position: fixed; top: 68px; left: 0; right: 0; background: rgba(10,22,40,0.98); border-bottom: 0.5px solid var(--bw); padding: 1.5rem clamp(1rem,5vw,3rem) 2rem; z-index: 199; }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 4px; margin-bottom: 1.5rem; }
.mobile-menu ul a { font-size: 15px; color: rgba(255,255,255,0.8); display: block; padding: 10px 0; border-bottom: 0.5px solid rgba(255,255,255,0.06); }

/* ── HERO ──────────────────────────────────────────── */
.hero { min-height: 100vh; background: var(--navy); display: flex; align-items: center; padding-top: 68px; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(201,146,10,0.04) 1px,transparent 1px),linear-gradient(90deg,rgba(201,146,10,0.04) 1px,transparent 1px); background-size: 64px 64px; pointer-events: none; }
.hero-glow { position: absolute; width: 600px; height: 600px; top: -150px; right: -150px; background: radial-gradient(circle,rgba(201,146,10,0.07) 0%,transparent 65%); pointer-events: none; border-radius: 50%; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 400px; gap: 4rem; align-items: center; padding: 4rem 0 5rem; width: 100%; }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; background: rgba(201,146,10,0.1); border: 0.5px solid rgba(201,146,10,0.28); padding: 6px 14px 6px 10px; border-radius: 100px; margin-bottom: 1.75rem; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold2); animation: pulse 2.2s ease-in-out infinite; flex-shrink: 0; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:0.4} }
.badge-text { font-family: var(--ff-m); font-size: 10.5px; letter-spacing: 0.18em; color: rgba(255,255,255,0.7); text-transform: uppercase; }
.hero-h1 { font-family: var(--ff-d); font-size: clamp(2.6rem,5vw,5rem); font-weight: 600; line-height: 1.06; letter-spacing: -0.015em; color: var(--white); margin-bottom: 1.5rem; }
.hero-h1 em { font-style: italic; color: var(--gold3); }
.hero-sub { font-size: clamp(1rem,2vw,1.1rem); color: rgba(255,255,255,0.62); max-width: 560px; margin-bottom: 2.25rem; line-height: 1.8; }

/* MOBILE FIX: hero buttons wrap properly */
.hero-btns { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-btns .btn { flex-shrink: 0; }

.hero-proof { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.proof-avatars { display: flex; }
.proof-avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--navy); background: var(--navy3); margin-left: -8px; display: flex; align-items: center; justify-content: center; font-family: var(--ff-d); font-size: 11px; font-weight: 600; color: var(--gold3); flex-shrink: 0; }
.proof-avatar:first-child { margin-left: 0; }
.proof-text { font-size: 12.5px; color: rgba(255,255,255,0.5); line-height: 1.4; }
.proof-text strong { color: rgba(255,255,255,0.8); }

/* Hero card */
.hero-card { background: rgba(255,255,255,0.03); border: 0.5px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 1.75rem; position: relative; }
.hero-card::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background: linear-gradient(90deg,var(--gold),var(--gold3),transparent); border-radius:8px 8px 0 0; }
.card-label { font-family: var(--ff-m); font-size: 10px; letter-spacing: 0.18em; color: var(--gold); text-transform: uppercase; margin-bottom: 1.25rem; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; margin-bottom: 1.25rem; }
.stat-cell { background: var(--navy2); padding: 1rem; text-align: center; }
.stat-n { font-family: var(--ff-d); font-size: 1.9rem; font-weight: 700; color: var(--gold3); line-height: 1; margin-bottom: 4px; }
.stat-l { font-size: 10.5px; color: rgba(255,255,255,0.4); line-height: 1.3; }
.funnel-steps { display: flex; flex-direction: column; gap: 2px; }
.funnel-step { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: rgba(255,255,255,0.025); border-radius: 3px; font-size: 12px; color: rgba(255,255,255,0.6); border-left: 2px solid transparent; transition: all 0.2s; }
.funnel-step:hover { border-left-color: var(--gold); color: rgba(255,255,255,0.9); }
.funnel-num { font-family: var(--ff-m); font-size: 10px; color: var(--gold); min-width: 18px; flex-shrink: 0; }

/* ── TRUST BAR ─────────────────────────────────────── */
.trust-bar { background: var(--navy2); border-top: 0.5px solid var(--bw); border-bottom: 0.5px solid var(--bw); padding: 1rem clamp(1rem,5vw,3rem); }
.trust-bar-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: clamp(1rem,3vw,3rem); flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,0.5); }
.trust-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* ── SECTIONS ──────────────────────────────────────── */
.section { padding: clamp(4rem,8vh,6rem) 0; }
.section-dark { background: var(--navy); }
.section-navy2 { background: var(--navy2); }
.section-cream { background: var(--cream); }

.section-hd { margin-bottom: clamp(2rem,4vw,3.5rem); }
.section-hd.center { text-align: center; }
.section-hd.center .gold-rule { margin-left: auto; margin-right: auto; }
.section-hd h2 { font-family: var(--ff-d); font-size: clamp(1.8rem,3.5vw,3rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 1rem; }
.section-hd h2 em { font-style: italic; color: var(--gold2); }
.section-hd p { max-width: 580px; color: var(--muted); font-size: 1rem; }
.section-dark .section-hd h2, .section-navy2 .section-hd h2 { color: var(--white); }
.section-dark .section-hd p, .section-navy2 .section-hd p { color: rgba(255,255,255,0.55); }

/* ── STATS ROW ─────────────────────────────────────── */
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: rgba(255,255,255,0.06); border-radius: 6px; overflow: hidden; }
.stats-cell { background: var(--navy2); padding: 2rem 1.25rem; text-align: center; }
.stats-n { font-family: var(--ff-d); font-size: clamp(2.5rem,5vw,3.2rem); font-weight: 700; color: var(--gold3); line-height: 1; margin-bottom: 6px; }
.stats-l { font-size: 12px; color: rgba(255,255,255,0.45); }
.stats-src { font-size: 10px; color: rgba(255,255,255,0.25); margin-top: 4px; font-family: var(--ff-m); }

/* ── PROBLEM SECTION ───────────────────────────────── */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.p-stat-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
.p-stat { background: var(--white); border: 0.5px solid rgba(0,0,0,0.07); border-radius: 6px; padding: 1.25rem; border-top: 2px solid var(--gold); }
.p-stat-n { font-family: var(--ff-d); font-size: 2.2rem; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 4px; }
.p-stat-l { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.compare-table { background: var(--navy); border-radius: 8px; overflow: hidden; border: 0.5px solid var(--border); }
.compare-head { display: grid; grid-template-columns: 1fr 1fr; background: var(--navy3); }
.compare-head-cell { padding: 0.75rem 1rem; font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.compare-head-cell.bad { color: rgba(255,255,255,0.35); }
.compare-head-cell.good { color: var(--gold); border-left: 0.5px solid var(--border); }
.compare-row { display: grid; grid-template-columns: 1fr 1fr; border-top: 0.5px solid rgba(255,255,255,0.05); }
.compare-cell { padding: 0.85rem 1rem; font-size: 13px; line-height: 1.4; }
.compare-cell.bad { color: rgba(255,255,255,0.45); }
.compare-cell.good { color: rgba(255,255,255,0.88); border-left: 0.5px solid rgba(201,146,10,0.15); background: rgba(201,146,10,0.04); }

/* ── OFFER CARD ────────────────────────────────────── */
.offer-wrapper { max-width: 740px; margin: 0 auto; }
.offer-name { font-family: var(--ff-d); font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 600; color: var(--white); text-align: center; margin-bottom: 4px; }
.offer-tagline { text-align: center; font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 2rem; }
.offer-card { background: rgba(255,255,255,0.025); border: 0.5px solid var(--border); border-radius: 6px; position: relative; overflow: hidden; }
.offer-card::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background: linear-gradient(90deg,var(--gold),var(--gold3),var(--gold)); }
.offer-point { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.75rem; border-bottom: 0.5px solid rgba(255,255,255,0.05); }
.offer-point:last-of-type { border-bottom: none; }
.offer-check { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: rgba(201,146,10,0.14); border: 0.5px solid var(--gold); display: flex; align-items: center; justify-content: center; color: var(--gold2); font-size: 12px; margin-top: 2px; }
.offer-point-title { font-weight: 600; color: var(--white); margin-bottom: 4px; font-size: 14.5px; }
.offer-point-desc { font-size: 13px; color: rgba(255,255,255,0.52); line-height: 1.65; }
.offer-cta-wrap { padding: 1.5rem 1.75rem; background: rgba(201,146,10,0.05); }
.offer-note { text-align: center; font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 0.6rem; }

/* ── PAIN GRID ─────────────────────────────────────── */
.pain-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.25rem; }
.pain-card { background: var(--white); border: 0.5px solid rgba(0,0,0,0.07); border-radius: 6px; padding: 1.5rem; display: flex; gap: 1rem; align-items: flex-start; transition: all 0.25s; }
.pain-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pain-icon { width: 40px; height: 40px; flex-shrink: 0; background: rgba(201,146,10,0.08); border: 0.5px solid var(--border); border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.pain-card h3 { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 5px; line-height: 1.3; }
.pain-card p { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── STEPS ─────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.step-card { background: var(--white); border: 0.5px solid rgba(0,0,0,0.07); border-radius: 6px; padding: 1.75rem; transition: all 0.25s var(--ease); position: relative; overflow: hidden; }
.step-card::after { content:''; position:absolute; bottom:0; left:0; right:0; height:2px; background:var(--gold); transform:scaleX(0); transform-origin:left; transition:transform 0.3s; }
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step-card:hover::after { transform: scaleX(1); }
.step-n { font-family: var(--ff-d); font-size: 4rem; font-weight: 700; color: rgba(201,146,10,0.1); line-height: 1; margin-bottom: 0.5rem; }
.step-card h3 { font-family: var(--ff-d); font-size: 1.25rem; font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; }
.step-card p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* ── SERVICES ──────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.service-card { background: rgba(255,255,255,0.03); border: 0.5px solid var(--bw); border-radius: 6px; padding: 1.5rem; transition: all 0.25s; }
.service-card:hover { background: rgba(255,255,255,0.055); border-color: rgba(201,146,10,0.3); transform: translateY(-2px); }
.service-icon { width: 42px; height: 42px; background: rgba(201,146,10,0.1); border: 0.5px solid var(--border); border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 17px; margin-bottom: 1rem; }
.service-tag { font-family: var(--ff-m); font-size: 9.5px; letter-spacing: 0.12em; color: var(--gold); text-transform: uppercase; margin-bottom: 0.5rem; display: block; }
.service-card h3 { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 0.5rem; line-height: 1.3; }
.service-card p { font-size: 12.5px; color: rgba(255,255,255,0.48); line-height: 1.65; }

/* ── PRICING — MOBILE FIX ──────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.price-card { background: var(--white); border: 0.5px solid rgba(0,0,0,0.08); border-radius: 8px; padding: 2rem; position: relative; transition: all 0.25s; }
.price-card:hover { box-shadow: 0 16px 56px rgba(10,22,40,0.1); transform: translateY(-3px); }
.price-card.featured { background: var(--navy); border: 1.5px solid var(--gold); }
.price-badge { position: absolute; top: 0; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--navy); font-family: var(--ff-m); font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 16px; border-radius: 0 0 6px 6px; white-space: nowrap; z-index: 1; }
.price-name { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.price-amount { font-family: var(--ff-d); font-size: 2.6rem; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.price-card:not(.featured) .price-amount { color: var(--navy); }
.price-card.featured .price-amount { color: var(--gold3); }
.price-period { font-size: 12px; color: var(--muted); margin-bottom: 1.25rem; }
.price-card.featured .price-period { color: rgba(255,255,255,0.5); }
.price-divider { height: 0.5px; background: rgba(0,0,0,0.08); margin: 1rem 0; }
.price-card.featured .price-divider { background: rgba(255,255,255,0.1); }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.5rem; }
.price-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
.price-card:not(.featured) .price-features li { color: var(--text); }
.price-card.featured .price-features li { color: rgba(255,255,255,0.8); }
.pf-check { width: 15px; height: 15px; flex-shrink: 0; background: rgba(201,146,10,0.14); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 9px; margin-top: 3px; }
.pricing-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 1.25rem; }
.pricing-note a { color: var(--gold); border-bottom: 0.5px solid var(--gold); }

/* ── TESTIMONIALS ──────────────────────────────────── */
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.testi-card { background: rgba(255,255,255,0.025); border: 0.5px solid var(--bw); border-left: 2.5px solid var(--gold); border-radius: 6px; padding: 1.5rem; transition: all 0.25s; }
.testi-card:hover { background: rgba(255,255,255,0.045); transform: translateY(-2px); }
.testi-stars { color: var(--gold2); font-size: 13px; letter-spacing: 2px; margin-bottom: 0.75rem; }
.testi-text { font-style: italic; font-size: 14px; color: rgba(255,255,255,0.72); line-height: 1.78; margin-bottom: 1.25rem; font-family: var(--ff-d); }
.testi-author { font-size: 13px; font-weight: 600; color: var(--white); }
.testi-firm { font-size: 11px; color: var(--gold); margin-top: 2px; }

/* ── BLOG ──────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.blog-card { background: var(--white); border: 0.5px solid rgba(0,0,0,0.07); border-radius: 6px; overflow: hidden; transition: all 0.25s; display: block; }
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.blog-thumb { height: 150px; background: var(--navy3); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.blog-content { padding: 1.25rem; }
.blog-cat { font-family: var(--ff-m); font-size: 9.5px; letter-spacing: 0.16em; color: var(--gold); text-transform: uppercase; margin-bottom: 0.5rem; display: block; }
.blog-card h3 { font-family: var(--ff-d); font-size: 1.15rem; font-weight: 600; color: var(--navy); line-height: 1.25; margin-bottom: 0.5rem; }
.blog-card p { font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 0.75rem; }
.blog-meta { font-size: 11px; color: rgba(0,0,0,0.35); font-family: var(--ff-m); }

/* ── AI DEMO SECTION ───────────────────────────────── */
.demo-section { background: var(--navy); padding: clamp(4rem,8vh,6rem) 0; }
.demo-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.demo-features { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin: 1.5rem 0 2rem; }
.demo-feature { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,0.75); }
.demo-check { width: 20px; height: 20px; flex-shrink: 0; background: rgba(201,146,10,0.15); border: 0.5px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 10px; }
.demo-widget { background: rgba(255,255,255,0.03); border: 0.5px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 2rem; position: relative; }
.demo-widget::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background: linear-gradient(90deg,var(--gold),var(--gold3),transparent); border-radius:8px 8px 0 0; }
.demo-form { display: flex; flex-direction: column; gap: 1rem; }
.demo-field { display: flex; flex-direction: column; gap: 5px; }
.demo-field label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.5); letter-spacing: 0.08em; text-transform: uppercase; }
.demo-field input { padding: 11px 14px; background: rgba(255,255,255,0.06); border: 0.5px solid rgba(255,255,255,0.15); border-radius: 3px; font-family: var(--ff-b); font-size: 14px; color: var(--white); transition: all 0.2s; }
.demo-field input:focus { outline: none; border-color: var(--gold); background: rgba(201,146,10,0.05); }
.demo-field input::placeholder { color: rgba(255,255,255,0.3); }
.demo-disclaimer { font-size: 11px; color: rgba(255,255,255,0.3); line-height: 1.5; margin-top: 0.25rem; }

/* ── CALENDAR EMBED ────────────────────────────────── */
.calendar-section { background: var(--cream); padding: clamp(4rem,8vh,6rem) 0; }
.calendar-embed-wrap { max-width: 900px; margin: 0 auto; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); border: 0.5px solid rgba(0,0,0,0.08); }
.calendar-embed-wrap iframe { width: 100%; display: block; }

/* ── CTA BAND ──────────────────────────────────────── */
.cta-band { background: var(--navy); padding: clamp(4rem,8vh,6rem) 0; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content:''; position:absolute; inset:0; background: radial-gradient(ellipse 70% 50% at 50% 100%,rgba(201,146,10,0.07) 0%,transparent 70%); pointer-events:none; }
.cta-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta-band h2 { font-family: var(--ff-d); font-size: clamp(1.8rem,4vw,3rem); font-weight: 600; color: var(--white); line-height: 1.1; margin-bottom: 1rem; }
.cta-band h2 em { font-style: italic; color: var(--gold3); }
.cta-band p { color: rgba(255,255,255,0.55); font-size: 1rem; margin-bottom: 2rem; }
.cta-row { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.cta-note { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 0.75rem; }

/* ── PAGE HERO ─────────────────────────────────────── */
.page-hero { background: var(--navy); padding: 120px clamp(1rem,5vw,3rem) 72px; position: relative; overflow: hidden; }
.page-hero::after { content:''; position:absolute; bottom:0; left:0; right:0; height:1px; background: linear-gradient(90deg,transparent,var(--gold),transparent); }
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.page-hero h1 { font-family: var(--ff-d); font-size: clamp(2.2rem,5vw,4rem); font-weight: 600; color: var(--white); line-height: 1.1; margin-bottom: 1rem; }
.page-hero h1 em { font-style: italic; color: var(--gold3); }
.page-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.6); max-width: 600px; }

/* ── CONTACT FORM ──────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 380px; gap: 4rem; align-items: start; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 5px; letter-spacing: 0.06em; text-transform: uppercase; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; border: 0.5px solid rgba(0,0,0,0.15); border-radius: var(--radius); font-family: var(--ff-b); font-size: 14px; background: var(--white); color: var(--text); transition: all 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,146,10,0.08); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); }
.form-check input { width: auto; margin-top: 3px; accent-color: var(--gold); }
.contact-info-card { background: var(--navy); border-radius: 8px; padding: 2rem; }
.contact-info-card h3 { font-family: var(--ff-d); font-size: 1.4rem; font-weight: 600; color: var(--white); margin-bottom: 1.5rem; }
.contact-info-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 1rem; font-size: 13.5px; color: rgba(255,255,255,0.6); line-height: 1.5; }
.contact-info-item a { color: rgba(255,255,255,0.8); transition: color 0.2s; }
.contact-info-item a:hover { color: var(--gold2); }
.ci-icon { width: 32px; height: 32px; flex-shrink: 0; background: rgba(201,146,10,0.1); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 14px; }

/* ── LEGAL PAGES ───────────────────────────────────── */
.legal-body { max-width: 820px; margin: 0 auto; padding: 60px clamp(1rem,5vw,3rem) 80px; }
.legal-meta { background: var(--lgray); border-radius: 6px; padding: 1.25rem 1.5rem; margin-bottom: 2rem; font-size: 13px; color: var(--muted); }
.legal-meta strong { color: var(--navy); }
.legal-body h2 { font-family: var(--ff-d); font-size: 1.5rem; font-weight: 600; color: var(--navy); margin: 2.5rem 0 0.75rem; padding-bottom: 0.5rem; border-bottom: 0.5px solid rgba(0,0,0,0.08); }
.legal-body p { margin-bottom: 1rem; color: var(--muted); line-height: 1.8; font-size: 15px; }
.legal-body ul { margin: 0.75rem 0 1.25rem 1.5rem; }
.legal-body ul li { color: var(--muted); font-size: 15px; line-height: 1.8; margin-bottom: 0.4rem; }

/* ── FOOTER ────────────────────────────────────────── */
.footer { background: var(--navy2); padding: 4rem 0 2rem; border-top: 0.5px solid var(--bw); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 2.5rem; margin-bottom: 3.5rem; }
.footer-logo { font-family: var(--ff-d); font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: 0.5rem; }
.footer-logo span { color: var(--gold2); }
.footer-tagline { font-size: 11px; color: rgba(255,255,255,0.35); margin-bottom: 1rem; font-family: var(--ff-m); letter-spacing: 0.04em; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.75; max-width: 280px; }
.footer-col h4 { font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col ul a { font-size: 13px; color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--gold2); }
.footer-contact-item { display: flex; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 0.4rem; line-height: 1.4; }
.footer-contact-item a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-contact-item a:hover { color: var(--gold2); }
.footer-bottom { padding-top: 2rem; border-top: 0.5px solid var(--bw); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-size: 11.5px; color: rgba(255,255,255,0.28); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 11.5px; color: rgba(255,255,255,0.28); transition: color 0.2s; }
.footer-legal a:hover { color: var(--gold); }

/* ── UTILITIES ─────────────────────────────────────── */
.center-cta { text-align: center; margin-top: 2.5rem; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; } .delay-3 { transition-delay: 0.3s; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE FIRST — ALL OVERFLOW FIXED
══════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-card { max-width: 540px; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .testi-grid { grid-template-columns: repeat(2,1fr); }
  .steps-grid { grid-template-columns: repeat(2,1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .demo-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  /* Nav */
  .nav-links, .nav-phone, .nav-right .btn { display: none; }
  .nav-hamburger { display: flex; }

  /* Grids all go single column */
  .services-grid, .testi-grid, .steps-grid, .pain-grid, .blog-grid { grid-template-columns: 1fr; }

  /* Problem */
  .problem-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .p-stat-pair { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-desc { max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Buttons on mobile */
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn { width: 100%; }
  .cta-row { flex-direction: column; align-items: stretch; max-width: 340px; margin-left: auto; margin-right: auto; }
  .cta-row .btn { width: 100%; }
}

@media (max-width: 480px) {
  .hero-h1 { font-size: 2.2rem; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .pricing-grid { max-width: 100%; }
  .offer-point { flex-direction: column; gap: 0.75rem; }
  .compare-cell { font-size: 12px; padding: 0.7rem 0.75rem; }
  .p-stat-pair { grid-template-columns: 1fr; }
}

/* ═══ PATCH: Additional mobile and bug fixes ═══ */

/* About page force single column on mobile */
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .founder-photo-wrap { max-width: 280px; margin: 0 auto; }
}

/* Hamburger closes on scroll — handled in JS */
/* Nav phone hidden until number added */
.nav-phone { display: none; }

/* Favicon meta handled in head */

/* Inbound call demo widget */
.call-demo-section { background: var(--navy); padding: clamp(4rem,8vh,6rem) 0; }
.call-demo-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.call-demo-box { background: rgba(255,255,255,0.03); border: 0.5px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 2rem; position: relative; text-align: center; }
.call-demo-box::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background: linear-gradient(90deg,var(--gold),var(--gold3),transparent); border-radius:8px 8px 0 0; }
.call-pulse { width: 80px; height: 80px; border-radius: 50%; background: rgba(201,146,10,0.15); border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 2rem; position: relative; }
.call-pulse::before { content:''; position:absolute; width:100%; height:100%; border-radius:50%; border:2px solid var(--gold); animation: callring 2s ease-out infinite; }
.call-pulse::after { content:''; position:absolute; width:100%; height:100%; border-radius:50%; border:2px solid var(--gold); animation: callring 2s ease-out 0.5s infinite; }
@keyframes callring { 0%{transform:scale(1);opacity:0.8} 100%{transform:scale(1.8);opacity:0} }
.call-number { font-family: var(--ff-m); font-size: 1.4rem; color: var(--gold3); letter-spacing: 0.08em; margin-bottom: 0.5rem; font-weight: 500; }
.call-status { font-size: 12px; color: rgba(255,255,255,0.4); font-family: var(--ff-m); letter-spacing: 0.12em; text-transform: uppercase; }
@media (max-width: 768px) {
  .call-demo-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Pricing model — new layout */
.price-split { font-size: 11px; color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.06); border-radius: 3px; padding: 4px 10px; display: inline-block; margin-top: 6px; font-family: var(--ff-m); }
.price-card:not(.featured) .price-split { color: var(--muted); background: rgba(0,0,0,0.05); }
.adspend-note { background: rgba(201,146,10,0.06); border: 0.5px solid var(--border); border-radius: 6px; padding: 1.25rem 1.5rem; margin-top: 2rem; }
.adspend-note h4 { font-size: 13px; font-weight: 600; color: var(--gold); margin-bottom: 0.4rem; }
.adspend-note p { font-size: 13px; color: var(--muted); line-height: 1.65; margin: 0; }

/* ═══════════════════════════════════════════════════════
   FAQ ACCORDION — complete missing styles
   Questions visible in navy, answers in muted grey,
   chevron animates on open, smooth reveal
═══════════════════════════════════════════════════════ */
.faq-section { background: var(--cream); padding: clamp(4rem,8vh,6rem) 0; }
.faq-list    { max-width: 780px; margin: 0 auto; }

.faq-item {
  border-bottom: 0.5px solid rgba(0,0,0,0.1);
}
/* Question button — visible, readable, clickable */
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.25rem 0;
  font-family: var(--ff-b);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);          /* navy text — NOT gold */
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  line-height: 1.4;
  -webkit-appearance: none;
}
.faq-q:hover { color: var(--gold); }

/* Chevron arrow */
.faq-chevron {
  font-size: 11px;
  color: var(--gold);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
  display: inline-block;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

/* Answer — hidden by default, revealed on .open */
.faq-a {
  display: none;
  font-size: 14px;
  color: var(--muted);         /* readable grey */
  line-height: 1.8;
  padding-bottom: 1.25rem;
}
.faq-item.open .faq-a {
  display: block;
}

/* Dark-background FAQ variant (used on automations page) */
.faq-item.dk { border-bottom-color: rgba(255,255,255,0.08); }
.faq-item.dk .faq-q  { color: rgba(255,255,255,0.88); }
.faq-item.dk .faq-q:hover { color: var(--gold2); }
.faq-item.dk .faq-a  { color: rgba(255,255,255,0.55); }

/* display-lg / display-md helpers used in FAQ headings */
.display-lg {
  font-family: var(--ff-d);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.display-md {
  font-family: var(--ff-d);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* ═══════════════════════════════════════════════════════
   PRICING GRID MOBILE — stack cards on small screens
   The inline style="grid-template-columns:repeat(3,1fr)"
   is overridden here with a more specific selector + !important
═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Target the pricing grid whether it uses class or inline style */
  .pricing-grid,
  div.pricing-grid,
  .section .container .pricing-grid {
    grid-template-columns: 1fr !important;
    max-width: 480px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
@media (max-width: 540px) {
  .pricing-grid,
  div.pricing-grid,
  .section .container .pricing-grid {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
  }
  /* Price card numbers stay readable */
  .price-amount-new { font-size: 2.4rem !important; }
  .price-features-new li { font-size: 13px !important; }
}
/* ── CALL DEMO MOBILE FIX ──────────────────────────
   Stack columns, prevent number overflow, constrain box
   Inserted once — works on all screen sizes ≤768px
──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .call-demo-inner {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .call-demo-inner > * {
    min-width: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  .call-demo-box {
    max-width: 100% !important;
    overflow: hidden !important;
    padding: 1.5rem 1.25rem !important;
    box-sizing: border-box !important;
  }
  .call-number {
    font-size: clamp(0.85rem, 4vw, 1.1rem) !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    letter-spacing: 0.02em !important;
  }
  .call-demo-box .btn {
    font-size: 14px !important;
    padding: 13px 16px !important;
    white-space: normal !important;
    word-break: break-word !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .call-pulse {
    width: 64px !important;
    height: 64px !important;
    font-size: 1.5rem !important;
  }
}

/* Fixing The Form From Overflowing on Mobile On Contact Us Page */

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Fixing the Get in Touch Box for Mobile*/
.ci-value a {
  word-break: break-word;
}
.contact-info-card {
  max-width: 100%;
  overflow-wrap: break-word;
}
.contact-info-item {
  min-width: 0;
}
.contact-info-item div {
  min-width: 0;
}
@media (max-width: 768px) {
  .contact-info-card {
    padding: 1.5rem;
  }
}
/* ═══════════════════════════════════════════════════════
   MISSING COMPONENT CSS — appended once, no duplicates
   Covers: new pricing cards, info-note, auto-price-table,
   automation cards, contact upgrades, mobile active link
═══════════════════════════════════════════════════════ */

/* ── NEW PRICING CARD COMPONENTS ─────────────────── */
.price-accent-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold3));
}
.price-card.featured .price-body { padding: 2rem; }
.price-amount-new {
  font-family: var(--ff-m);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 2px;
  color: var(--navy);
}
.price-card.featured .price-amount-new { color: var(--gold3); }
.price-period-new {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.price-card.featured .price-period-new { color: rgba(255,255,255,0.5); }
.price-mgmt-badge {
  display: inline-block;
  font-family: var(--ff-m);
  font-size: 10.5px;
  background: rgba(201,146,10,0.1);
  color: var(--gold);
  border-radius: 3px;
  padding: 3px 10px;
  margin-bottom: 1.5rem;
}
.price-card.featured .price-mgmt-badge {
  background: rgba(201,146,10,0.15);
  color: var(--gold3);
}
.price-divider-new {
  height: 0.5px;
  background: rgba(0,0,0,0.07);
  margin: 1.25rem 0;
}
.price-card.featured .price-divider-new { background: rgba(255,255,255,0.1); }
.price-features-new {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}
.price-features-new li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--text);
}
.price-card.featured .price-features-new li { color: rgba(255,255,255,0.82); }
.pf-check-new {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: rgba(201,146,10,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 9px;
  margin-top: 2px;
}
/* "Most Popular" badge — legible on mobile */


/* ── INFO NOTE BOXES ──────────────────────────────── */
.info-note {
  background: rgba(201,146,10,0.06);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  margin-top: 1.75rem;
}
.info-note h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.info-note p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* ── AUTOMATION PRICE TABLE ───────────────────────── */
.auto-price-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
}
.auto-price-table thead th {
  padding: 0.9rem 1rem;
  font-family: var(--ff-m);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.auto-price-table tbody td {
  padding: 0.9rem 1rem;
  border-top: 0.5px solid rgba(255,255,255,0.06);
  border-right: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
}
.auto-price-table thead th:nth-child(1) { background: var(--navy3); color: rgba(255,255,255,0.5); text-align: left; }
.auto-price-table tbody td:nth-child(1) { background: var(--navy2); color: rgba(255,255,255,0.88); font-weight: 600; text-align: left; }
.auto-price-table thead th:nth-child(2) { background: rgba(26,122,69,0.4); color: #5dffb0; text-align: center; }
.auto-price-table tbody td:nth-child(2) { background: rgba(26,122,69,0.1); text-align: center; }
.apt-price { font-family: var(--ff-m); font-size: 15px; font-weight: 700; color: #5dffb0; }
.auto-price-table thead th:nth-child(3) { background: rgba(201,146,10,0.3); color: var(--gold3); text-align: center; }
.auto-price-table tbody td:nth-child(3) { background: rgba(201,146,10,0.08); text-align: center; }
.apt-mgmt { font-family: var(--ff-m); font-size: 15px; font-weight: 700; color: var(--gold2); }
.auto-price-table thead th:nth-child(4) { background: rgba(10,22,40,0.9); color: var(--gold3); text-align: center; }
.auto-price-table tbody td:nth-child(4) { background: rgba(10,22,40,0.6); text-align: center; }
.apt-roi { font-family: var(--ff-m); font-size: 13px; font-weight: 600; color: var(--gold3); }
.auto-price-table tbody tr:last-child td { border-top: 1px solid rgba(201,146,10,0.3) !important; }

/* ── AUTOMATION CARDS (light bg) ─────────────────── */
.auto-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.75rem; }
.auto-card {
  background: var(--white);
  border: 0.5px solid rgba(0,0,0,0.07);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.25s var(--ease);
}
.auto-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.auto-accent { height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold3)); }
.auto-body { padding: 2rem; }
.auto-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201,146,10,0.08);
  border: 0.5px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 1rem;
  font-family: var(--ff-m);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}
.auto-card h3 {
  font-family: var(--ff-d);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}
.auto-body > p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.auto-detail {
  background: rgba(10,22,40,0.04);
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.auto-detail strong { color: var(--text); }
.savings-strip {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  background: rgba(0,0,0,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.savings-cell { background: var(--white); padding: 0.9rem; text-align: center; }
.savings-n {
  font-family: var(--ff-m);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 3px;
}
.savings-l { font-size: 10.5px; color: var(--muted); line-height: 1.3; }

/* ── AUTOMATION CARDS (dark bg) ──────────────────── */
.auto-card-dark {
  background: rgba(255,255,255,0.025);
  border: 0.5px solid var(--bw);
  border-radius: 8px;
  padding: 2rem;
  border-top: 3px solid var(--gold);
  transition: all 0.25s;
}
.auto-card-dark:hover { background: rgba(255,255,255,0.04); transform: translateY(-2px); }
.auto-card-dark h3 {
  font-family: var(--ff-d);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.auto-card-dark > p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.dark-savings-strip {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.dark-savings-cell { background: var(--navy3); padding: 0.9rem; text-align: center; }
.dark-savings-n {
  font-family: var(--ff-m);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold3);
  line-height: 1;
  margin-bottom: 3px;
}
.dark-savings-l { font-size: 10.5px; color: rgba(255,255,255,0.4); line-height: 1.3; }

/* ── CI LABEL / VALUE (contact info card) ─────────── */
.ci-label {
  font-family: var(--ff-m);
  font-size: 9px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 3px;
  display: block;
}
.ci-value { font-size: 13.5px; color: rgba(255,255,255,0.82); }
.ci-value a { color: rgba(255,255,255,0.9); transition: color 0.2s; }
.ci-value a:hover { color: var(--gold2); }

/* ── CONTACT GRID MOBILE — no right-side overflow ── */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }
}
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .contact-grid > * {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }
}

/* ── MOBILE ACTIVE LINK IN HAMBURGER MENU ─────────── */
.mobile-menu ul a.active {
  color: var(--gold2) !important;
  border-left: 3px solid var(--gold);
  padding-left: 0.75rem;
}
.mobile-menu .btn {
  font-family: var(--ff-b) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}

/* ── AUTOMATION GRID MOBILE ───────────────────────── */
@media (max-width: 768px) {
  .auto-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .savings-strip { grid-template-columns: repeat(3,1fr); }
  .dark-savings-strip { grid-template-columns: repeat(3,1fr); }
  .auto-price-table thead th:nth-child(2),
  .auto-price-table tbody td:nth-child(2) { display: none; }
}

/* ── PAGE HERO inner pages ────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 126px clamp(1rem,5vw,3rem) 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(201,146,10,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,146,10,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--ff-d);
  font-size: clamp(2.2rem,5vw,4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.page-hero h1 em { font-style: italic; color: var(--gold3); }
.page-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  line-height: 1.78;
}

/* ═══════════════════════════════════════════════════════════
   PATCH SET — fixes applied once, no duplicates

   1. faq-wrap alias  (HTML uses .faq-wrap, CSS only had .faq-list)
   2. dark-section    (index.html FAQ wrapper uses this class)
   3. center-cta btn  (two buttons breathe on mobile)
   4. auto-card-dark  (overflow on mobile — margin guard)
   5. tablet rules    (768px – 1024px) for auto-grid, pricing
═══════════════════════════════════════════════════════════ */

/* 1 ── FAQ WRAP ALIAS ────────────────────────────────────
   .faq-list is styled but every HTML page uses .faq-wrap.
   This alias makes them identical. */
.faq-wrap {
  max-width: 780px;
  margin: 0 auto;
}

/* 2 ── DARK-SECTION BACKGROUND ──────────────────────────
   index.html FAQ sits in <section class="section section-dark dark-section">
   Ensure the background is navy and text rules cascade correctly. */
.dark-section { background: var(--navy); }
.dark-section .faq-item { border-bottom-color: rgba(255,255,255,0.08); }
.dark-section .faq-q    { color: rgba(255,255,255,0.88); }
.dark-section .faq-q:hover { color: var(--gold2); }
.dark-section .faq-a    { color: rgba(255,255,255,0.55); }
.dark-section .faq-chevron { color: var(--gold2); }

/* 3 ── CENTER-CTA BUTTONS — breathing room on mobile ────
   On the home page "See Full Service Details" and "See Automations"
   are side-by-side. On small screens they need to stack cleanly. */
.center-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; margin-top: 3rem; }
.center-cta .btn { flex-shrink: 0; }

@media (max-width: 600px) {
  .center-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }
  .center-cta .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* 4 ── AUTO-CARD-DARK MOBILE OVERFLOW ───────────────────
   "Best for small firms" and "Best for multi-state firms"
   overflow the right edge on mobile. Constrain with padding
   and ensure the card never exceeds its container. */
@media (max-width: 768px) {
  .auto-card-dark {
    padding: 1.5rem 1.25rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .auto-card-dark h3 { font-size: 1.15rem; }
  .auto-card-dark > p { font-size: 13px; }
  .dark-savings-strip {
    grid-template-columns: repeat(3,1fr);
    gap: 1px;
  }
  .dark-savings-n { font-size: 1rem; }
  .dark-savings-l { font-size: 10px; }
  /* Ensure the auto-grid wrapper doesn't overflow */
  .auto-grid {
    padding: 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }
}

/* 5 ── TABLET (769px – 1024px) ──────────────────────────
   At tablet width things partially break — auto-grid needs
   to stay 2 columns but with tighter spacing, pricing grid
   should stay stacked (already handled at 900px), and the
   auto-price-table needs its column hidden rule relaxed. */

@media (min-width: 769px) and (max-width: 1024px) {

  /* Auto cards: 2-col but tighter on tablet */
  .auto-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .auto-card-dark { padding: 1.75rem; }
  .savings-n { font-size: 1.15rem; }

  /* Pricing grid: stacked looks better on tablet too */
  .pricing-grid,
  div.pricing-grid,
  .section .container .pricing-grid {
    grid-template-columns: 1fr !important;
    max-width: 520px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Auto price table: show all columns on tablet */
  .auto-price-table thead th:nth-child(2),
  .auto-price-table tbody td:nth-child(2) {
    display: table-cell !important;
  }

  /* FAQ stays full-width on tablet */
  .faq-wrap, .faq-list { max-width: 100%; }

  /* Pain grid: 2 columns on tablet */
  .pain-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem;
  }

  /* info-note: full-width readable on tablet */
  .info-note { padding: 1.25rem 1.5rem; }

  /* Steps grid: 2 columns on tablet */
  .steps-grid { grid-template-columns: repeat(2, 1fr); }

  /* Services grid: 2 columns on tablet */
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* Call demo: stack on tablet */
  .call-demo-inner {
    grid-template-columns: 1fr !important;
    gap: 2.5rem;
  }
  .call-demo-box { max-width: 540px; margin: 0 auto; }

  /* Contact grid: stack on tablet */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  /* Center CTA buttons: stay side-by-side on tablet */
  .center-cta {
    flex-direction: row;
    align-items: center;
  }
}

/* 6 ── PRICING TABLE TABLET ─────────────────────────────
   On tablet the auto-price-table min-width:560px may cause
   horizontal overflow. The wrapper already has overflow-x:auto
   so this just makes it look tighter. */
@media (max-width: 1024px) {
  .auto-price-table { font-size: 13px; }
  .apt-price, .apt-mgmt { font-size: 13.5px; }
}

