/* -------------------------------------------------------------------------- */
/* JIM MCKEE LIFE INSURANCE - EQUINE THEMED DESIGN SYSTEM                   */
/* -------------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,400&family=Inter:wght@400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  /* Common System Variables */
  --font-serif-estate: 'Cormorant Garamond', Georgia, serif;
  --font-serif-bluegrass: 'Cinzel', serif;
  --font-sans-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans-bluegrass: 'Outfit', sans-serif;
  
  --font-scale: 1; /* Accessibility multiplier */
  --transition-speed: 0.3s;
  --border-radius: 8px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-elevated: 0 20px 40px rgba(0, 0, 0, 0.14);
}

/* -------------------------------------------------------------------------- */
/* THEME 1: THE ESTATE HERITAGE (Deep Navy & Saddle Leather)                */
/* -------------------------------------------------------------------------- */
[data-theme="option1"] {
  --color-primary: #0F1F38;        /* Deep Royal Navy */
  --color-primary-light: #1A3154;  /* Lighter Navy */
  --color-accent: #8C532B;         /* Rich Saddle Leather */
  --color-accent-hover: #734220;   /* Darker Leather */
  --color-gold: #D4AF37;           /* Aged Antique Gold */
  --color-gold-light: #F4E7BF;     /* Soft Gold Tint */
  --color-bg-main: #FAF7F2;        /* Warm Cream */
  --color-bg-surface: #FFFFFF;     /* Pure White Card */
  --color-bg-alt: #F2ECE1;         /* Warm Sand Surface */
  --color-text-dark: #1A202C;      /* Deep Slate Charcoal */
  --color-text-muted: #4A5568;     /* Muted Grey */
  --color-text-light: #F7FAFC;     /* Off White */
  --color-border: #E2D9CC;         /* Leather Cream Border */
  --color-badge-bg: #EFE6D8;       /* Badge Fill */
  --font-heading: var(--font-serif-estate);
  --font-body: var(--font-sans-body);
  --hero-overlay: linear-gradient(135deg, rgba(15, 31, 56, 0.92) 0%, rgba(15, 31, 56, 0.75) 60%, rgba(140, 83, 43, 0.4) 100%);
  --accent-stitch: 2px dashed #8C532B;
}

/* -------------------------------------------------------------------------- */
/* THEME 2: THE BLUEGRASS HORIZON (Bluegrass Green & Sunlit Amber)          */
/* -------------------------------------------------------------------------- */
[data-theme="option2"] {
  --color-primary: #1B3B2B;        /* Deep Kentucky Forest Green */
  --color-primary-light: #2A543F;  /* Lighter Bluegrass Green */
  --color-accent: #C89B3C;         /* Sunlit Amber / Brass Gold */
  --color-accent-hover: #AA802A;   /* Darker Amber */
  --color-gold: #D4AF37;           /* Antique Gold Accent */
  --color-gold-light: #F7EFCF;     /* Light Amber Soft */
  --color-bg-main: #F4F1EA;        /* Soft Bluegrass Linen */
  --color-bg-surface: #FFFFFF;     /* White Card */
  --color-bg-alt: #EAE4D8;         /* Earth Linen Surface */
  --color-text-dark: #1C241F;      /* Dark Timber Slate */
  --color-text-muted: #48564E;     /* Forest Slate Muted */
  --color-text-light: #F9F8F6;     /* Bright Linen White */
  --color-border: #D8D1C4;         /* Linen Border */
  --color-badge-bg: #E5DFD1;       /* Badge Background */
  --font-heading: var(--font-serif-bluegrass);
  --font-body: var(--font-sans-bluegrass);
  --hero-overlay: linear-gradient(135deg, rgba(27, 59, 43, 0.92) 0%, rgba(27, 59, 43, 0.72) 65%, rgba(200, 155, 60, 0.35) 100%);
  --accent-stitch: 2px solid #C89B3C;
}

/* -------------------------------------------------------------------------- */
/* BASE RESETS & TYPOGRAPHY                                                   */
/* -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: calc(16px * var(--font-scale));
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-main);
  color: var(--color-text-dark);
  line-height: 1.65;
  transition: background-color var(--transition-speed), color var(--transition-speed);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

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

/* -------------------------------------------------------------------------- */
/* DEMO OPTION SELECTOR BAR (TOP FLOATING CONTROLLER)                        */
/* -------------------------------------------------------------------------- */
.demo-switcher-bar {
  background-color: #111827;
  color: #F9FAFB;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  border-bottom: 2px solid #374151;
}

.demo-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #F3F4F6;
}

.demo-title span.badge {
  background: #D4AF37;
  color: #111827;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.demo-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-btn {
  background: #1F2937;
  color: #E5E7EB;
  border: 1px solid #4B5563;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.theme-btn:hover {
  background: #374151;
  color: #FFFFFF;
  border-color: #9CA3AF;
}

.theme-btn.active {
  background: var(--color-accent, #8C532B);
  color: #FFFFFF;
  border-color: var(--color-gold, #D4AF37);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.accessibility-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  border-left: 1px solid #374151;
  padding-left: 12px;
}

.text-size-btn {
  background: #1F2937;
  color: #D1D5DB;
  border: 1px solid #4B5563;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.text-size-btn:hover, .text-size-btn.active {
  background: #D4AF37;
  color: #111827;
  border-color: #D4AF37;
}

/* -------------------------------------------------------------------------- */
/* MAIN HEADER & NAVIGATION                                                  */
/* -------------------------------------------------------------------------- */
.top-notice-bar {
  background: var(--color-primary);
  color: var(--color-text-light);
  padding: 8px 20px;
  font-size: 0.88rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.top-notice-bar a {
  color: var(--color-gold);
  font-weight: 600;
  text-decoration: underline;
}

/* -------------------------------------------------------------------------- */
/* LUXURY EXECUTIVE SITE HEADER                                               */
/* -------------------------------------------------------------------------- */
.site-header {
  background-color: #0F1F38; /* Deep Royal Navy */
  border-bottom: 3px solid #D4AF37; /* Antique Gold Trim */
  padding: 14px 32px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none !important;
  flex-shrink: 0;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: rgba(212, 175, 55, 0.15);
  color: #D4AF37;
  border: 2px solid #D4AF37;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  flex-shrink: 0;
}

.brand-text h1 {
  font-family: var(--font-serif-estate);
  font-size: 1.65rem;
  line-height: 1.05;
  color: #FFFFFF;
  margin: 0;
  white-space: nowrap !important;
  letter-spacing: 0.02em;
}

.brand-text p {
  font-family: var(--font-sans-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #D4AF37;
  font-weight: 700;
  margin: 0;
  white-space: nowrap !important;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-links li {
  white-space: nowrap !important;
  display: inline-flex !important;
  flex-shrink: 0 !important;
}

.nav-links a {
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  border-radius: 20px;
  white-space: nowrap !important;
  display: inline-block !important;
  line-height: 1;
  transition: all 0.25s ease;
  text-decoration: none !important;
  background: transparent;
  border: 1px solid transparent;
}

.nav-links a:hover {
  background: rgba(212, 175, 55, 0.18);
  color: #D4AF37 !important;
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.phone-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;
  background: #D4AF37 !important; /* Gold */
  border: 1px solid #D4AF37 !important;
  padding: 10px 22px !important;
  border-radius: 30px !important;
  text-decoration: none !important;
  color: #0F1F38 !important; /* Navy */
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  min-width: max-content !important;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4) !important;
  transition: all 0.25s ease !important;
}

.phone-cta:hover {
  background: #F4E7BF !important;
  color: #0F1F38 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6) !important;
}

.phone-cta svg {
  fill: #0F1F38 !important;
  width: 18px;
  height: 18px;
}

.phone-cta:hover {
  background: var(--color-primary);
  color: var(--color-gold);
  border-color: var(--color-primary);
}

.phone-cta svg {
  fill: currentColor;
  width: 18px;
  height: 18px;
}

/* -------------------------------------------------------------------------- */
/* HERO SECTION                                                               */
/* -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center center;
  color: var(--color-text-light);
  padding: 90px 24px;
  min-height: 580px;
  display: flex;
  align-items: center;
  border-bottom: 4px solid var(--color-accent);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--hero-overlay);
  z-index: 1;
}

.hero-container {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--color-gold);
  color: var(--color-gold-light);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.1rem;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #E2E8F0;
  margin-bottom: 32px;
  max-width: 640px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.25 ease;
  border: 2px solid transparent;
  text-decoration: none !important;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #FFFFFF;
  border-color: var(--color-accent);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.hero-card-box {
  background: var(--color-bg-surface);
  color: var(--color-text-dark);
  padding: 30px;
  border-radius: 12px;
  border-top: 5px solid var(--color-gold);
  box-shadow: var(--shadow-elevated);
}

.hero-card-box h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.hero-card-box p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

/* -------------------------------------------------------------------------- */
/* SECTION LAYOUTS & CONTAINERS                                              */
/* -------------------------------------------------------------------------- */
.section {
  padding: 80px 24px;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px auto;
}

.section-tag {
  color: var(--color-accent);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.4rem;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.section-description {
  font-size: 1.15rem;
  color: var(--color-text-muted);
}

/* -------------------------------------------------------------------------- */
/* TWO MAIN PILLARS SECTION                                                   */
/* -------------------------------------------------------------------------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.pillar-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 40px 32px;
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Scroll Offset for Sticky Header */
#mortgage-protection,
#income-replacement,
#living-benefits,
#calculator,
#testimonials,
#about-jim,
#faq {
  scroll-margin-top: 110px;
}

/* Card 1: Mortgage Protection (Deep Royal Navy & Gold Pop) */
#mortgage-protection {
  background: #FFFFFF !important;
  border: 2px solid #D4AF37 !important;
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.18) !important;
}

#mortgage-protection::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #D4AF37 0%, #F4E7BF 50%, #D4AF37 100%);
  border-radius: 14px 14px 0 0;
}

#mortgage-protection .pillar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.15);
  color: #0F1F38;
  border: 1px solid #D4AF37;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  width: fit-content;
}

#mortgage-protection .pillar-icon {
  width: 64px;
  height: 64px;
  background: #0F1F38;
  color: #D4AF37;
  border: 2px solid #D4AF37;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 15px rgba(15, 31, 56, 0.25);
  margin-bottom: 20px;
}

#mortgage-protection h3 {
  font-family: var(--font-serif-estate);
  font-size: 2.1rem;
  color: #0F1F38;
  margin-bottom: 10px;
}

#mortgage-protection .btn {
  background: #D4AF37 !important;
  color: #0F1F38 !important;
  border: 1px solid #D4AF37 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35) !important;
}

#mortgage-protection .btn:hover {
  background: #F4E7BF !important;
  color: #0F1F38 !important;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5) !important;
}


/* Card 2: Income Replacement (Executive Saddle Leather & Gold Pop) */
#income-replacement {
  background: #FFFFFF !important;
  border: 2px solid #8C532B !important;
  box-shadow: 0 12px 35px rgba(140, 83, 43, 0.18) !important;
}

#income-replacement::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #8C532B 0%, #D4AF37 50%, #8C532B 100%);
  border-radius: 14px 14px 0 0;
}

#income-replacement .pillar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(140, 83, 43, 0.12);
  color: #8C532B;
  border: 1px solid #8C532B;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  width: fit-content;
}

#income-replacement .pillar-icon {
  width: 64px;
  height: 64px;
  background: #8C532B;
  color: #FAF7F2;
  border: 2px solid #D4AF37;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 15px rgba(140, 83, 43, 0.25);
  margin-bottom: 20px;
}

#income-replacement h3 {
  font-family: var(--font-serif-estate);
  font-size: 2.1rem;
  color: #8C532B;
  margin-bottom: 10px;
}

#income-replacement .btn {
  background: #8C532B !important;
  color: #FFFFFF !important;
  border: 1px solid #8C532B !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 15px rgba(140, 83, 43, 0.35) !important;
}

#income-replacement .btn:hover {
  background: #734220 !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 20px rgba(140, 83, 43, 0.5) !important;
}

.pillar-card ul {
  list-style: none;
  margin: 20px 0 28px 0;
}

.pillar-card ul li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--color-text-muted);
}

.pillar-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 800;
}

.pillar-card .btn {
  margin-top: auto;
}

/* -------------------------------------------------------------------------- */
/* INTERACTIVE CALCULATOR SECTION                                            */
/* -------------------------------------------------------------------------- */
.calc-wrapper {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
}

.calc-tabs {
  display: flex;
  background: var(--color-primary);
  border-bottom: 2px solid var(--color-gold);
}

.calc-tab-btn {
  flex: 1;
  padding: 18px 24px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.calc-tab-btn.active {
  background: var(--color-bg-surface);
  color: var(--color-primary);
  box-shadow: 0 -4px 0 var(--color-gold) inset;
}

.calc-content {
  padding: 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.form-control, select.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  font-size: 1.05rem;
  font-family: var(--font-body);
  background: var(--color-bg-main);
  color: var(--color-text-dark);
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #FFFFFF;
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

input[type="range"].form-range {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.slider-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-accent);
  min-width: 110px;
  text-align: right;
}

.slider-val-input {
  width: 155px !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: var(--color-accent) !important;
  text-align: right !important;
  padding: 8px 12px !important;
  border: 2px solid var(--color-border) !important;
  border-radius: 8px !important;
  background: #FFFFFF !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0;
}

.slider-val-input:focus {
  border-color: var(--color-gold) !important;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3) !important;
  outline: none !important;
}

.calc-result-box {
  background: var(--color-badge-bg);
  border: 2px solid var(--color-border);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.result-label {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--color-text-muted);
}

.result-value {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 10px 0;
  line-height: 1;
}

.result-estimate {
  font-size: 1.2rem;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 20px;
}

/* -------------------------------------------------------------------------- */
/* ABOUT JIM MCKEE / TRUST STORY SECTION                                     */
/* -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image-wrapper img {
  border-radius: 12px;
  box-shadow: var(--shadow-elevated);
  border: 4px solid var(--color-bg-surface);
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--color-primary);
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.experience-badge .years {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.experience-badge .lbl {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
}

.about-content h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.signature-block {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 20px;
}

.signature-text {
  font-family: var(--font-serif-estate);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--color-accent);
}

/* -------------------------------------------------------------------------- */
/* TESTIMONIALS / HORSESHOE REVIEWS                                          */
/* -------------------------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.quote-mark {
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--color-gold);
  opacity: 0.4;
  position: absolute;
  top: 10px;
  right: 20px;
}

.testimonial-text {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-text-dark);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-info strong {
  display: block;
  font-size: 1rem;
  color: var(--color-primary);
}

.author-info span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* -------------------------------------------------------------------------- */
/* FAQ ACCORDION                                                              */
/* -------------------------------------------------------------------------- */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  font-size: 1.4rem;
  transition: transform 0.3s ease;
  color: var(--color-accent);
}

.faq-answer {
  padding: 0 24px 20px 24px;
  display: none;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* -------------------------------------------------------------------------- */
/* FOOTER                                                                     */
/* -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 60px 24px 30px 24px;
  border-top: 4px solid var(--color-gold);
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h2 {
  color: #FFFFFF;
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.footer-links h4 {
  color: var(--color-gold);
  font-size: 1.1rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

/* -------------------------------------------------------------------------- */
/* SIDE BY SIDE COMPARISON VIEW LAYOUT                                        */
/* -------------------------------------------------------------------------- */
body.side-by-side-mode .demo-switcher-bar {
  position: sticky;
}

body.side-by-side-mode #app-root {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #374151;
}

body.side-by-side-mode .site-wrapper {
  max-height: 90vh;
  overflow-y: auto;
}

/* -------------------------------------------------------------------------- */
/* MOBILE HAMBURGER MENU & DRAWER                                            */
/* -------------------------------------------------------------------------- */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1.5px solid #D4AF37;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 38px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-menu-btn:hover {
  background: rgba(212, 175, 55, 0.15);
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: #D4AF37;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Nav Drawer Container */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background-color: #0F1F38;
  border-left: 3px solid #D4AF37;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease;
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

/* Backdrop */
.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.mobile-drawer-close {
  background: transparent;
  border: none;
  color: #D4AF37;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 8px;
}

.mobile-nav-links {
  list-style: none;
  margin: 0;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}

.mobile-nav-links li {
  width: 100%;
}

.mobile-nav-item {
  display: block;
  padding: 16px 24px;
  color: #FFFFFF !important;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav-item:hover, .mobile-nav-item:focus {
  background: rgba(212, 175, 55, 0.15);
  color: #D4AF37 !important;
  padding-left: 28px;
}

/* -------------------------------------------------------------------------- */
/* RESPONSIVE ADJUSTMENTS                                                     */
/* -------------------------------------------------------------------------- */

/* Laptop Nav link scaling */
@media (max-width: 1350px) {
  .nav-links {
    gap: 4px !important;
  }
  .nav-links a {
    font-size: 0.8rem !important;
    padding: 6px 10px !important;
  }
  .phone-cta {
    padding: 8px 16px !important;
    font-size: 0.95rem !important;
  }
}

/* Switch to Hamburger Menu at 1150px so header links never overflow */
@media (max-width: 1150px) {
  .header-nav {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
  }
  .hero-container {
    grid-template-columns: 1fr;
  }
  .calc-content {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 12px 16px;
  }
  .brand-text h1 {
    font-size: 1.35rem;
  }
  .brand-text p {
    font-size: 0.68rem;
  }
  .phone-cta {
    font-size: 0.88rem !important;
    padding: 8px 14px !important;
  }
  .hero-title {
    font-size: 2.0rem;
  }
  .section-title {
    font-size: 1.7rem;
  }
  .calc-tabs {
    flex-direction: column !important;
    gap: 6px !important;
  }
  .calc-tab-btn {
    width: 100% !important;
    justify-content: center !important;
    font-size: 0.95rem !important;
    padding: 12px 14px !important;
    border-radius: 8px !important;
    text-align: center !important;
  }
  .slider-container {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .slider-val-input {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    font-size: 1.15rem !important;
    padding: 10px !important;
  }
  .calc-result-box {
    padding: 24px 20px !important;
    text-align: center !important;
  }
  .calc-result-box .result-value {
    font-size: 2.2rem !important;
  }
}
