/* ===========================
   LEDGERPATH — style.css
   Palette: Deep Navy + Gold + Cream
   =========================== */

:root, [data-theme="light"] {
  --color-bg:             #F7F5EF;
  --color-surface:        #FFFFFF;
  --color-surface-2:      #F3F1EB;
  --color-surface-offset: #EAE7DF;
  --color-divider:        #DDD9CF;
  --color-border:         #D0CCBF;
  --color-text:           #1A1815;
  --color-text-muted:     #6B6860;
  --color-text-faint:     #B0ADA4;
  --color-text-inverse:   #F7F5EF;

  --color-primary:        #1B3A6B;
  --color-primary-hover:  #142D54;
  --color-primary-active: #0E1F3B;

  --color-gold:           #C8A84B;
  --color-gold-hover:     #B0913B;
  --color-gold-light:     #F5EDDA;

  --color-success:        #2E7D4E;

  --shadow-sm: 0 1px 3px rgba(26,24,21,0.07);
  --shadow-md: 0 4px 16px rgba(26,24,21,0.10);
  --shadow-lg: 0 12px 40px rgba(26,24,21,0.14);
  --shadow-xl: 0 24px 64px rgba(26,24,21,0.18);

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-body:    'Satoshi', 'Inter', sans-serif;

  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-hero: clamp(2.5rem,   1rem    + 4vw,    4.5rem);

  --space-1:  0.25rem;  --space-2:  0.5rem;   --space-3:  0.75rem;
  --space-4:  1rem;     --space-5:  1.25rem;  --space-6:  1.5rem;
  --space-8:  2rem;     --space-10: 2.5rem;   --space-12: 3rem;
  --space-16: 4rem;     --space-20: 5rem;     --space-24: 6rem;

  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --content-default: 1160px;
}

[data-theme="dark"] {
  --color-bg:             #141210;
  --color-surface:        #1C1A17;
  --color-surface-2:      #221F1B;
  --color-surface-offset: #2A2720;
  --color-divider:        #312E27;
  --color-border:         #3D3A32;
  --color-text:           #E8E4DC;
  --color-text-muted:     #8A867C;
  --color-text-faint:     #5A5750;
  --color-text-inverse:   #141210;
  --color-primary:        #4A7AC4;
  --color-primary-hover:  #3A65A8;
  --color-gold:           #D4B05A;
  --color-gold-light:     #2A2518;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.25);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #141210;
    --color-surface:        #1C1A17;
    --color-surface-2:      #221F1B;
    --color-surface-offset: #2A2720;
    --color-divider:        #312E27;
    --color-border:         #3D3A32;
    --color-text:           #E8E4DC;
    --color-text-muted:     #8A867C;
    --color-text-faint:     #5A5750;
    --color-text-inverse:   #141210;
    --color-primary:        #4A7AC4;
    --color-primary-hover:  #3A65A8;
    --color-gold:           #D4B05A;
    --color-gold-light:     #2A2518;
  }
}

/* BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); font-size: var(--text-base); color: var(--color-text); background: var(--color-bg); line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; }

.container { width: 100%; max-width: var(--content-default); margin-inline: auto; padding-inline: clamp(1rem, 5vw, 2.5rem); }
.hidden { display: none !important; }

/* BUTTONS */
.btn-primary {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--color-primary); color: #fff;
  padding: 0.75rem 1.75rem; border-radius: var(--radius-full);
  font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700;
  letter-spacing: 0.01em; transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(27,58,107,0.28); }
.btn-primary:active { transform: translateY(0); }
.btn-primary.btn-lg { padding: 1rem 2.25rem; font-size: var(--text-base); }
.btn-primary.btn-full { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: var(--space-2);
  border: 2px solid var(--color-primary); color: var(--color-primary);
  padding: 0.73rem 1.73rem; border-radius: var(--radius-full);
  font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700;
  transition: all var(--transition); white-space: nowrap; background: transparent;
}
.btn-ghost:hover { background: var(--color-primary); color: #fff; transform: translateY(-1px); }
.btn-ghost.btn-lg { padding: 0.98rem 2.23rem; font-size: var(--text-base); }

.btn-ghost-light {
  display: inline-flex; align-items: center; gap: var(--space-2);
  border: 2px solid rgba(255,255,255,0.5); color: #fff;
  padding: 0.98rem 2.23rem; border-radius: var(--radius-full);
  font-family: var(--font-display); font-size: var(--text-base); font-weight: 700;
  transition: all var(--transition); white-space: nowrap; background: transparent;
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

.btn-call {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--color-text-muted); font-size: var(--text-sm); font-weight: 500;
  transition: color var(--transition); white-space: nowrap;
}
.btn-call:hover { color: var(--color-primary); }

/* HEADER */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex; align-items: center; gap: var(--space-6);
  max-width: var(--content-default); margin-inline: auto;
  padding: var(--space-4) clamp(1rem, 5vw, 2.5rem);
}
.logo { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.logo-text { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: var(--color-primary); letter-spacing: -0.02em; }
.nav { display: flex; gap: var(--space-6); margin-left: auto; }
.nav a { font-size: var(--text-sm); font-weight: 500; color: var(--color-text-muted); transition: color var(--transition); }
.nav a:hover { color: var(--color-primary); }
.header-actions { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.theme-toggle { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); color: var(--color-text-muted); transition: all var(--transition); }
.theme-toggle:hover { background: var(--color-surface-offset); color: var(--color-text); }
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; width: 32px; padding: 4px; margin-left: auto; }
.mobile-menu-btn span { display: block; height: 2px; background: var(--color-text); border-radius: 2px; transition: all var(--transition); }
.mobile-nav { display: none; flex-direction: column; gap: var(--space-3); padding: var(--space-4) clamp(1rem, 5vw, 2.5rem) var(--space-6); border-top: 1px solid var(--color-divider); }
.mobile-nav a { font-size: var(--text-base); color: var(--color-text-muted); font-weight: 500; }
.mobile-nav .btn-primary { text-align: center; justify-content: center; margin-top: var(--space-2); }
.mobile-call { display: flex; align-items: center; gap: var(--space-2); }

/* HERO */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12);
  align-items: center; max-width: var(--content-default); margin-inline: auto;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 2.5rem);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--color-gold-light); color: var(--color-gold);
  border: 1px solid var(--color-gold); border-radius: var(--radius-full);
  padding: 0.35rem 1rem; font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: var(--space-5);
  width: fit-content; max-width: 100%; white-space: normal; line-height: 1.4;
}
.hero-heading {
  font-size: var(--text-hero); font-weight: 900; letter-spacing: -0.03em;
  line-height: 1.05; margin-bottom: var(--space-6); color: var(--color-text);
}
.gold { color: var(--color-gold); }
.hero-sub { font-size: var(--text-base); color: var(--color-text-muted); max-width: 52ch; margin-bottom: var(--space-8); line-height: 1.7; }
.hero-sub strong { color: var(--color-text); }
.hero-ctas { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-8); }
.hero-trust { display: flex; flex-direction: column; gap: var(--space-2); }
.trust-item { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); }
.hero-image { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xl); }
.hero-image img { width: 100%; object-fit: cover; aspect-ratio: 4/3; }
.hero-card {
  position: absolute; bottom: var(--space-6); left: var(--space-6);
  background: var(--color-surface); border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: var(--space-3);
  animation: float 3s ease-in-out infinite;
  transition: all 0.3s ease;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hero-card-icon { width: 40px; height: 40px; background: var(--color-gold-light); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.card-label { font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: 0.15rem; }
.card-value { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; color: var(--color-text); }
.card-up { color: var(--color-success); font-size: var(--text-sm); font-weight: 600; }

/* TRUST BAR */
.trust-bar { background: var(--color-primary); padding: var(--space-4) 0; }
.trust-bar-inner { max-width: var(--content-default); margin-inline: auto; padding-inline: clamp(1rem, 5vw, 2.5rem); display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.trust-label { font-size: var(--text-sm); color: rgba(255,255,255,0.65); font-weight: 500; white-space: nowrap; }
.trust-industries { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.trust-industries span { font-size: var(--text-sm); color: rgba(255,255,255,0.9); font-weight: 500; }
.dot { color: var(--color-gold); }

/* SECTION LABELS & HEADINGS */
.section-label {
  display: inline-block; font-size: var(--text-xs); font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-gold);
  margin-bottom: var(--space-4);
}
.section-label.light { color: var(--color-gold); }
.section-heading { font-size: var(--text-2xl); font-weight: 900; letter-spacing: -0.03em; color: var(--color-text); text-align: center; max-width: 18ch; margin-inline: auto; margin-bottom: var(--space-12); }
.section-heading-left { font-size: var(--text-2xl); font-weight: 900; letter-spacing: -0.03em; color: var(--color-text); max-width: 22ch; margin-bottom: var(--space-6); }

/* PAIN SECTION */
.pain-section { padding: clamp(3rem, 8vw, 6rem) 0; background: var(--color-surface-2); }
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-6); margin-bottom: var(--space-12); }
.pain-card { background: var(--color-surface); border-radius: var(--radius-lg); padding: var(--space-8) var(--space-6); border: 1px solid var(--color-border); transition: transform var(--transition), box-shadow var(--transition); }
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pain-icon { font-size: 2rem; margin-bottom: var(--space-4); }
.pain-card h3 { font-size: var(--text-lg); font-weight: 800; margin-bottom: var(--space-3); color: var(--color-text); }
.pain-card p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7; }
.pain-cta { text-align: center; }
.pain-cta-text { font-size: var(--text-lg); font-weight: 700; color: var(--color-text); margin-bottom: var(--space-6); font-family: var(--font-display); }

/* SERVICES */
.services-section {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 600px;
}
.services-image-col img { width: 100%; height: 100%; object-fit: cover; }
.services-content-col { padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 6vw, 5rem); background: var(--color-surface); display: flex; flex-direction: column; justify-content: center; }
.services-intro { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-6); line-height: 1.7; }
.services-list { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-8); }
.service-item {
  display: flex; align-items: flex-start; gap: var(--space-4); padding: var(--space-4);
  border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
  cursor: pointer; transition: all var(--transition);
}
.service-item:hover { border-color: var(--color-primary); background: var(--color-bg); }
.service-item.selected { border-color: var(--color-primary); background: color-mix(in srgb, var(--color-primary) 6%, transparent); }
.service-check {
  width: 24px; height: 24px; flex-shrink: 0; border-radius: var(--radius-sm);
  border: 2px solid var(--color-border); display: flex; align-items: center; justify-content: center;
  color: transparent; transition: all var(--transition); margin-top: 2px;
}
.service-item.selected .service-check { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.service-text strong { display: block; font-size: var(--text-sm); font-weight: 700; color: var(--color-text); margin-bottom: 0.2rem; }
.service-text span { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.6; }
.service-quote-btn { align-self: flex-start; }

/* HOW IT WORKS */
.how-section { padding: clamp(3rem, 8vw, 6rem) 0; background: var(--color-bg); }
.steps-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: var(--space-4); align-items: start; }
.step-card { background: var(--color-surface); border-radius: var(--radius-lg); padding: var(--space-8) var(--space-6); border: 1px solid var(--color-border); }
.step-number { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; color: var(--color-gold); opacity: 0.4; margin-bottom: var(--space-4); line-height: 1; }
.step-card h3 { font-size: var(--text-lg); font-weight: 800; margin-bottom: var(--space-3); color: var(--color-text); }
.step-card p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7; margin-bottom: var(--space-4); }
.step-link { font-size: var(--text-sm); font-weight: 700; color: var(--color-primary); }
.step-link:hover { text-decoration: underline; }
.step-arrow { font-size: var(--text-xl); color: var(--color-gold); opacity: 0.5; padding-top: var(--space-8); align-self: start; }

/* WHY US */
.why-section { display: grid; grid-template-columns: 1fr 1fr; }
.why-image-col img { width: 100%; height: 100%; object-fit: cover; }
.why-content-col { padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 6vw, 5rem); background: var(--color-surface-2); display: flex; flex-direction: column; justify-content: center; }
.why-list { display: flex; flex-direction: column; gap: var(--space-6); margin-bottom: var(--space-8); }
.why-item { display: flex; gap: var(--space-4); align-items: flex-start; }
.why-icon { width: 44px; height: 44px; background: var(--color-gold-light); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.why-item strong { display: block; font-size: var(--text-base); font-weight: 800; color: var(--color-text); margin-bottom: var(--space-1); }
.why-item p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7; margin: 0; }

/* TESTIMONIALS */
.testimonials-section { padding: clamp(3rem, 8vw, 6rem) 0; background: var(--color-bg); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-6); }
.testimonial-card { background: var(--color-surface); border-radius: var(--radius-lg); padding: var(--space-8) var(--space-6); border: 1px solid var(--color-border); display: flex; flex-direction: column; gap: var(--space-4); transition: transform var(--transition), box-shadow var(--transition); }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stars { color: var(--color-gold); font-size: var(--text-lg); letter-spacing: 2px; }
.testimonial-card > p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.75; font-style: italic; flex: 1; }
.testimonial-card > p::before { content: '"'; }
.testimonial-card > p::after { content: '"'; }
.testimonial-author { display: flex; align-items: center; gap: var(--space-3); }
.author-avatar { width: 40px; height: 40px; background: var(--color-primary); color: #fff; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; font-size: var(--text-xs); font-weight: 800; flex-shrink: 0; }
.testimonial-author strong { display: block; font-size: var(--text-sm); font-weight: 700; }
.testimonial-author span { font-size: var(--text-xs); color: var(--color-text-muted); }

/* FORM SECTION */
.form-section { position: relative; overflow: hidden; padding: clamp(4rem, 10vw, 8rem) 0; }
.form-bg { position: absolute; inset: 0; z-index: 0; }
.form-bg img { width: 100%; height: 100%; object-fit: cover; }
.form-bg::after { content: ''; position: absolute; inset: 0; background: rgba(14, 26, 52, 0.88); }
.form-container { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.form-headline { color: #fff; }
.form-headline .section-heading { color: #fff; text-align: left; margin-inline: 0; max-width: 20ch; margin-bottom: var(--space-6); }
.form-sub { font-size: var(--text-sm); color: rgba(255,255,255,0.7); line-height: 1.75; max-width: 40ch; }
.form-sub strong { color: #fff; }

/* FORM CARD */
.form-card { background: var(--color-surface); border-radius: var(--radius-xl); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-xl); }
.form-progress { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-6); }
.progress-bar { flex: 1; height: 6px; background: var(--color-surface-offset); border-radius: var(--radius-full); overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--color-primary), var(--color-gold)); border-radius: var(--radius-full); transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1); width: 33.3%; }
.progress-text { font-size: var(--text-xs); color: var(--color-text-muted); font-weight: 600; white-space: nowrap; }
.step-title { font-size: var(--text-lg); font-weight: 800; color: var(--color-text); margin-bottom: var(--space-5); }
.step-sub { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: -var(--space-3); margin-bottom: var(--space-5); }

.form-group { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.form-group label { font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }
.req { color: var(--color-gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md); background: var(--color-bg);
  color: var(--color-text); font-size: var(--text-sm); transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none; appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%236B6860' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent); }
input.error, select.error { border-color: #C0392B; }
textarea { resize: vertical; min-height: 80px; }

/* SERVICE CHECKBOXES */
.service-checkboxes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.service-checkbox-item { display: flex; align-items: center; gap: var(--space-3); padding: 0.75rem 1rem; border: 1.5px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition); }
.service-checkbox-item:hover { border-color: var(--color-primary); }
.service-checkbox-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--color-primary); cursor: pointer; flex-shrink: 0; }
.service-checkbox-item:has(input:checked) { border-color: var(--color-primary); background: color-mix(in srgb, var(--color-primary) 6%, transparent); }
.checkbox-label { font-size: var(--text-sm); font-weight: 500; color: var(--color-text); }

/* FORM NAV */
.form-nav { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-top: var(--space-4); }
.btn-submit { width: 100%; justify-content: center; gap: var(--space-2); padding: 1rem 2rem; font-size: var(--text-base); }

/* QUOTE SUMMARY */
.quote-summary { background: var(--color-gold-light); border: 1.5px solid var(--color-gold); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); margin-bottom: var(--space-5); }
.quote-summary-title { font-size: var(--text-sm); font-weight: 800; color: var(--color-primary); margin-bottom: var(--space-3); text-transform: uppercase; letter-spacing: 0.05em; }
.summary-row { display: flex; justify-content: space-between; font-size: var(--text-xs); color: var(--color-text-muted); padding: var(--space-1) 0; border-bottom: 1px solid var(--color-divider); }
.summary-row:last-child { border-bottom: none; }
.summary-row span:last-child { font-weight: 600; color: var(--color-text); }

/* FORM CONSENT */
.form-consent { display: flex; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-5); font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.6; }
.form-consent input { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; accent-color: var(--color-primary); }

/* SUCCESS */
.success-state { text-align: center; padding: var(--space-8) var(--space-4); }
.success-icon { width: 72px; height: 72px; background: color-mix(in srgb, var(--color-primary) 10%, transparent); border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-6); }
.success-state h3 { font-size: var(--text-xl); font-weight: 900; color: var(--color-text); margin-bottom: var(--space-4); }
.success-state p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.75; margin-bottom: var(--space-4); max-width: 40ch; margin-inline: auto; }
.success-sub { font-size: var(--text-xs) !important; }

/* BOTTOM CTA */
.bottom-cta { background: var(--color-primary); padding: clamp(3rem, 6vw, 5rem) 0; }
.bottom-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap; }
.bottom-cta h2 { font-size: var(--text-xl); font-weight: 900; color: #fff; margin-bottom: var(--space-2); }
.bottom-cta p { font-size: var(--text-base); color: rgba(255,255,255,0.7); }
.bottom-cta-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; flex-shrink: 0; }

/* FOOTER */
.footer { background: var(--color-text); padding: clamp(3rem, 6vw, 5rem) 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { font-size: var(--text-sm); color: rgba(255,255,255,0.55); margin-top: var(--space-4); line-height: 1.7; max-width: 32ch; }
.footer-contact { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-5); }
.footer-contact a { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-contact a:hover { color: var(--color-gold); }
.footer-col h4 { font-size: var(--text-sm); font-weight: 800; color: rgba(255,255,255,0.85); margin-bottom: var(--space-4); text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-2); }
.footer-col a { font-size: var(--text-sm); color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-col a:hover { color: var(--color-gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); }
.footer-bottom-inner { padding-block: var(--space-5); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-3); }
.footer-bottom p { font-size: var(--text-xs); color: rgba(255,255,255,0.3); }
.footer-seo-tags { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.footer-seo-tags span { font-size: var(--text-xs); color: rgba(255,255,255,0.2); }

/* Floating call button removed */

/* SCROLL ANIMATIONS */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: none; }



/* ===========================
   MOBILE OVERHAUL — v2
   Fix: form overflow, padding,
   overflow-x, speed
   =========================== */

/* Global overflow guard */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
*, *::before, *::after {
  box-sizing: border-box;
  min-width: 0;
}

/* Ensure all containers never overflow */
.container,
.form-container,
.form-card,
.form-step,
.form-group,
.form-row,
.service-checkboxes,
input, select, textarea {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Tablet 1024px */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero-image { order: -1; }
  .hero-heading { font-size: clamp(2rem, 6vw, 3.5rem); }

  .services-section { grid-template-columns: 1fr; }
  .services-image-col { display: none; }
  .services-content-col { padding: 2.5rem 1.25rem; }

  .why-section { grid-template-columns: 1fr; }
  .why-image-col { order: -1; max-height: 320px; overflow: hidden; }
  .why-content-col { padding: 2.5rem 1.25rem; }

  .form-container { grid-template-columns: 1fr; gap: 2rem; }
  .form-headline { text-align: center; }
  .form-headline .section-heading { margin-inline: auto; text-align: center; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
}

/* Mobile 768px */
@media (max-width: 768px) {
  /* Header */
  .nav { display: none; }
  .header-actions .btn-call,
  .header-actions .btn-primary,
  .theme-toggle { display: none; }
  .mobile-menu-btn { display: flex; }
  .header-inner { padding: 0.875rem 1rem; }

  /* Hero */
  .hero {
    padding: 1.5rem 1rem 2.5rem;
    gap: 1.5rem;
  }
  .hero-heading { font-size: clamp(1.9rem, 8vw, 2.75rem); letter-spacing: -0.025em; }
  .hero-sub { font-size: 0.95rem; }
  .hero-ctas { flex-direction: column; gap: 0.75rem; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost { width: 100%; justify-content: center; text-align: center; }
  .hero-trust { gap: 0.5rem; }
  .hero-card { left: auto; right: 0.75rem; top: 0.75rem; bottom: auto; padding: 0.65rem 0.875rem; }
  .card-value { font-size: 1.1rem; }

  /* Trust bar */
  .trust-bar-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

  /* Pain */
  .pain-section { padding: 2.5rem 0; }
  .pain-grid { grid-template-columns: 1fr; gap: 1rem; }

  /* How it works */
  .how-section { padding: 2.5rem 0; }
  .steps-grid { grid-template-columns: 1fr; gap: 1rem; }
  .step-arrow { display: none; }

  /* Why section */
  .why-image-col { max-height: 260px; }

  /* Testimonials */
  .testimonials-section { padding: 2.5rem 0; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 1rem; }

  /* FORM SECTION — main fix */
  .form-section { padding: 2.5rem 0; }
  .form-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-inline: 1rem;
    width: 100%;
    overflow: hidden;
  }
  .form-headline { padding-inline: 0; }
  .form-headline .section-heading { font-size: clamp(1.6rem, 6vw, 2.25rem); }

  /* Form card — prevent any overflow */
  .form-card {
    padding: 1.25rem 1rem;
    width: 100%;
    overflow: hidden;
    border-radius: 0.875rem;
  }
  .step-title { font-size: 1.05rem; }

  /* All form rows collapse to single column */
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 0;
    width: 100%;
  }

  /* Inputs full width, no overflow */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    width: 100%;
    max-width: 100%;
    font-size: 16px; /* prevent iOS zoom */
    padding: 0.7rem 0.875rem;
  }
  select {
    padding-right: 2.25rem;
    background-position: right 0.75rem center;
  }

  /* Service checkboxes — single column */
  .service-checkboxes {
    grid-template-columns: 1fr !important;
    gap: 0.5rem;
    width: 100%;
  }
  .service-checkbox-item { padding: 0.65rem 0.875rem; }
  .checkbox-label { font-size: 0.875rem; }

  /* Form nav */
  .form-nav {
    flex-direction: column-reverse;
    gap: 0.75rem;
    margin-top: 1rem;
  }
  .form-nav .btn-primary,
  .form-nav .btn-ghost {
    width: 100%;
    justify-content: center;
  }
  .btn-submit { width: 100%; justify-content: center; }

  /* Quote summary */
  .quote-summary { padding: 0.875rem; }

  /* Bottom CTA */
  .bottom-cta { padding: 2.5rem 0; }
  .bottom-cta-inner { flex-direction: column; text-align: center; gap: 1.5rem; }
  .bottom-cta h2 { font-size: 1.5rem; }
  .bottom-cta-actions {
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
  }
  .bottom-cta-actions a { width: 100%; justify-content: center; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: 0.5rem; }
  .footer-seo-tags { justify-content: center; }

  /* Float button */
}

/* Small phones 480px */
@media (max-width: 480px) {
  .hero-heading { font-size: clamp(1.75rem, 9vw, 2.25rem); }
  .hero-badge { font-size: 0.65rem; padding: 0.3rem 0.75rem; }
  .hero-card { left: auto; right: 0.5rem; top: 0.5rem; bottom: auto; }
  .card-label { font-size: 0.65rem; }
  .card-value { font-size: 1rem; }

  .section-heading { font-size: clamp(1.5rem, 7vw, 2rem); }
  .section-heading-left { font-size: clamp(1.5rem, 7vw, 2rem); }

  .pain-card { padding: 1.25rem 1rem; }
  .form-card { padding: 1rem 0.875rem; border-radius: 0.75rem; }

  /* Services list tighter */
  .service-item { padding: 0.75rem; gap: 0.625rem; }
  .service-text strong { font-size: 0.875rem; }
  .service-text span { font-size: 0.75rem; }

  .trust-industries { gap: 0.5rem; }
  .trust-industries .dot { display: none; }
  .trust-industries span { background: rgba(255,255,255,0.12); padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.75rem; }
}

/* ===========================
   SOCIAL LINKS
   =========================== */

/* Footer social icons */
.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
  align-items: center;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
  flex-shrink: 0;
}
.social-link:hover {
  background: var(--color-gold);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* Thank-you success social follow section */
.success-social {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
}
.success-social-label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}
.success-social-btns {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
}
.social-follow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  transition: all var(--transition);
  text-decoration: none;
}
.social-follow-btn.fb {
  background: #1877F2;
  color: #fff;
}
.social-follow-btn.fb:hover {
  background: #1464d3;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(24,119,242,0.35);
}
.social-follow-btn.ig {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
}
.social-follow-btn.ig:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(220,39,67,0.35);
}
.social-follow-btn.tw {
  background: #000;
  color: #fff;
}
.social-follow-btn.tw:hover {
  background: #222;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.success-call-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  padding: var(--space-3) var(--space-4);
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-full);
  transition: all var(--transition);
  text-align: center;
}
.success-call-link:hover {
  border-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 5%, transparent);
}

/* Preferred contact note in form section */
.form-contact-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--color-gold-light);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.form-contact-note strong { color: var(--color-text); }

@media (max-width: 480px) {
  .footer-social { gap: var(--space-2); }
  .social-follow-btn { font-size: 0.875rem; padding: 0.8rem 1.25rem; }
}
