@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400;1,8..60,600&display=swap');

:root {
  /* Default Palette (Preserved 100%) */
  --bg-main: #f9f9ff;
  --bg-secondary: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.85);
  --text-main: #111c2c;
  --text-muted: #4e5765;
  --heading-color: #00385d;
  --accent-color: #00385d;
  --accent-hover: #1a4f7a;
  --secondary-color: #2a6a47;
  --mint-accent: #aff2c5;
  --mint-hover: #9eeab7;
  --btn-text: #ffffff;
  --footer-bg: #e7eeff;
  --footer-text: #42474e;
  --card-bg: #ffffff;
  --card-border: #2a6a47;
  --hero-overlay: 0.15;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 56, 93, 0.08);
  --glass-shadow: 0 24px 48px -12px rgba(0, 56, 93, 0.08), 0 0 1px 1px rgba(0, 56, 93, 0.04);
}

/* Theme 1: Light Warm */
body.theme-light-warm {
  --bg-main: #f9f9ff;
  --bg-secondary: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.88);
  --text-main: #111c2c;
  --text-muted: #4e5765;
  --heading-color: #00385d;
  --accent-color: #00385d;
  --accent-hover: #1a4f7a;
  --secondary-color: #2a6a47;
  --btn-text: #ffffff;
  --footer-bg: #e7eeff;
  --card-bg: #ffffff;
  --card-border: #2a6a47;
  --hero-overlay: 0.15;
}

/* Theme 2: Dark Navy Minimalist */
body.theme-dark-navy {
  --bg-main: #0A192F;
  --bg-secondary: #112240;
  --bg-header: rgba(10, 25, 47, 0.9);
  --text-main: #CCD6F6;
  --text-muted: #8892B0;
  --heading-color: #E6F1FF;
  --accent-color: #64FFDA;
  --accent-hover: #52e0c0;
  --btn-text: #0A192F;
  --footer-bg: #020c1b;
  --card-bg: #112240;
  --card-border: #64FFDA;
  --hero-overlay: 0.3;
}

/* Theme 3: Monochromatic Blue */
body.theme-monochrome-blue {
  --bg-main: #F0F4F8;
  --bg-secondary: #FFFFFF;
  --bg-header: rgba(255, 255, 255, 0.9);
  --text-main: #2D3748;
  --text-muted: #4A5568;
  --heading-color: #1A365D;
  --accent-color: #3182CE;
  --accent-hover: #2b6cb0;
  --btn-text: #FFFFFF;
  --footer-bg: #2A4365;
  --card-bg: #FFFFFF;
  --card-border: #3182CE;
  --hero-overlay: 0.1;
}

/* Theme 4: Classic Light */
body.theme-classic-light {
  --bg-main: #FFFFFF;
  --bg-secondary: #F7FAFC;
  --bg-header: rgba(247, 250, 252, 0.9);
  --text-main: #2D3748;
  --text-muted: #4A5568;
  --heading-color: #2B6CB0;
  --accent-color: #DD6B20;
  --accent-hover: #c05621;
  --btn-text: #FFFFFF;
  --footer-bg: #2B6CB0;
  --card-bg: #FFFFFF;
  --card-border: #DD6B20;
  --hero-overlay: 0.1;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, .serif {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--heading-color);
  letter-spacing: -0.025em;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Flashy & Sleek Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--accent-color);
  color: var(--btn-text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 16px 36px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 25px -5px rgba(0, 56, 93, 0.25);
  overflow: hidden;
  z-index: 1;
}

/* Shimmer Sheen on Button */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.btn:hover::before {
  transform: translateX(250%);
}

.btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 32px -6px rgba(0, 56, 93, 0.35);
}

.btn:active {
  transform: translateY(-1px) scale(0.99);
}

/* CTA buttons on blue backgrounds (Hero & CTA sections) */
.hero .btn,
.cta-section .btn {
  background: var(--mint-accent);
  color: #002110;
  font-weight: 800;
  box-shadow: 0 12px 30px -4px rgba(175, 242, 197, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
}

.hero .btn:hover,
.cta-section .btn:hover {
  background: var(--mint-hover);
  color: #002110;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 20px 40px -4px rgba(175, 242, 197, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

/* Floating Frosted Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-header);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0, 56, 93, 0.06);
  padding: 14px 0;
  transition: all 0.35s ease;
  box-shadow: 0 4px 30px -4px rgba(0, 56, 93, 0.05);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: translateY(-1px);
}

.logo img.logo-icon {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 56, 93, 0.12));
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-text-string {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--heading-color);
  letter-spacing: -0.03em;
  line-height: 1.15;
  white-space: nowrap;
}

.logo-subtitle {
  font-family: 'Plus Jakarta Sans', 'Manrope', -apple-system, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  line-height: 1.2;
  margin-top: 1px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.contact-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 8px 16px;
  border-radius: 9999px;
  transition: all 0.25s ease;
}

.contact-link:hover {
  color: var(--heading-color);
  background: rgba(0, 56, 93, 0.04);
}

.header .btn {
  padding: 12px 28px;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}

/* Hero Section (No Blue Tint, Clean Neutral Scrim) */
.hero {
  position: relative;
  background-color: #0f172a;
  color: #FFFFFF;
  padding: 140px 0 150px;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.25) 75%, rgba(15, 23, 42, 0.05) 100%),
    url('hero_chiropractic.png') right center / cover no-repeat;
  opacity: 1;
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 760px;
}

.hero h1 {
  color: #FFFFFF;
  font-size: 4.4rem;
  line-height: 1.06;
  font-weight: 700;
  margin-bottom: 24px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  letter-spacing: -0.035em;
}

.hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.45rem;
  font-weight: 300;
  line-height: 1.55;
  margin-bottom: 46px;
  max-width: 640px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* Social Proof Section */
.social-proof {
  padding: 130px 0 110px;
  background-color: var(--bg-main);
  position: relative;
}

.section-header {
  margin-bottom: 72px;
  text-align: center;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(42, 106, 71, 0.08);
  color: var(--secondary-color);
  padding: 7px 18px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
  border: 1px solid rgba(42, 106, 71, 0.16);
  box-shadow: 0 2px 8px rgba(42, 106, 71, 0.05);
}

.section-header h2 {
  font-size: 3.2rem;
  line-height: 1.12;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 400;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 36px;
  margin-bottom: 72px;
}

.testimonial-card {
  position: relative;
  background: var(--card-bg);
  padding: 46px 38px 38px;
  border-radius: 24px;
  box-shadow: 0 20px 45px -12px rgba(0, 56, 93, 0.07), 0 0 1px 1px rgba(0, 56, 93, 0.04);
  border: 1px solid rgba(0, 56, 93, 0.06);
  border-top: 4px solid var(--card-border);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px -15px rgba(0, 56, 93, 0.14), 0 0 1px 1px rgba(0, 56, 93, 0.08);
}

.stars {
  display: inline-flex;
  gap: 4px;
  color: #f59e0b; /* Golden star glow */
  font-size: 1.3rem;
  margin-bottom: 22px;
}

.stars .material-symbols-outlined {
  font-size: 24px;
  filter: drop-shadow(0 1px 3px rgba(245, 158, 11, 0.35));
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-main);
  flex-grow: 1;
  margin-bottom: 28px;
  position: relative;
}

.testimonial-author {
  font-weight: 700;
  font-size: 1rem;
  color: var(--heading-color);
  margin-bottom: 16px;
}

.review-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--heading-color);
  background: rgba(0, 56, 93, 0.05);
  padding: 8px 18px;
  border-radius: 9999px;
  text-decoration: none;
  width: fit-content;
  transition: all 0.25s ease;
  border: 1px solid rgba(0, 56, 93, 0.06);
}

.review-link:hover {
  background: var(--heading-color);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -2px rgba(0, 56, 93, 0.2);
}

/* Association Feature Card */
.association {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
  padding: 42px 48px;
  background: var(--card-bg);
  border-radius: 24px;
  border: 1px solid rgba(0, 56, 93, 0.08);
  box-shadow: 0 16px 36px -12px rgba(0, 56, 93, 0.06), 0 0 1px 1px rgba(0, 56, 93, 0.04);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.association:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -12px rgba(0, 56, 93, 0.12);
}

.association img {
  height: 110px;
  width: auto;
  transition: transform 0.35s ease;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.08));
}

.association a:hover img {
  transform: scale(1.05);
}

.association p {
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading-color);
  letter-spacing: -0.01em;
}

/* Certainty Section */
.certainty {
  padding: 130px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(0, 56, 93, 0.06);
  border-bottom: 1px solid rgba(0, 56, 93, 0.06);
  position: relative;
}

.certainty-content {
  display: flex;
  align-items: center;
  gap: 88px;
}

.certainty-text {
  flex: 1.1;
}

.certainty-text h2 {
  font-size: 3.4rem;
  line-height: 1.12;
  margin-bottom: 24px;
}

.certainty-text p {
  font-size: 1.4rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

.certainty-image {
  flex: 1;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 70px -18px rgba(0, 56, 93, 0.22);
  border: 1px solid rgba(0, 56, 93, 0.08);
}

.certainty-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.certainty-image:hover img {
  transform: scale(1.04);
}

/* Doctor Section */
.doctor {
  padding: 130px 0;
  background-color: var(--bg-main);
  position: relative;
}

.doctor-wrapper {
  display: flex;
  align-items: stretch;
  background: var(--card-bg);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 28px 70px -20px rgba(0, 56, 93, 0.12), 0 0 1px 1px rgba(0, 56, 93, 0.04);
  border: 1px solid rgba(0, 56, 93, 0.06);
}

.doctor-image {
  flex: 0 0 46%;
  position: relative;
  min-height: 500px;
}

.doctor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-info {
  flex: 1;
  padding: 80px 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.doctor-info h2 {
  font-size: 3rem;
  line-height: 1.12;
  margin-bottom: 26px;
}

.doctor-info p {
  color: var(--text-muted);
  margin-bottom: 22px;
  font-size: 1.14rem;
  line-height: 1.8;
}

.doctor-info p:last-child {
  margin-bottom: 0;
}

/* CTA Section */
.cta-section {
  position: relative;
  padding: 150px 0;
  background: linear-gradient(145deg, #00223a 0%, #00385d 60%, #004d80 100%);
  text-align: center;
  color: #FFFFFF;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 450px;
  background: radial-gradient(ellipse, rgba(175, 242, 197, 0.22) 0%, rgba(42, 106, 71, 0.06) 50%, transparent 75%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}

.cta-section .container {
  position: relative;
  z-index: 2;
  max-width: 840px;
}

.cta-section h2 {
  color: #FFFFFF;
  font-size: 3.8rem;
  line-height: 1.08;
  margin-bottom: 22px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.03em;
}

.cta-section p {
  font-size: 1.45rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 300;
  margin-bottom: 50px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 100px 0 45px;
  font-size: 0.95rem;
  border-top: 1px solid rgba(0, 56, 93, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: 56px;
  margin-bottom: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.footer-col h4 {
  color: var(--heading-color);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.footer-col p {
  line-height: 1.75;
  color: var(--text-muted);
}

.footer-col a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-block;
}

.footer-col a:hover {
  color: var(--heading-color);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(0, 56, 93, 0.1);
  padding-top: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Floating Sticky Mobile Action Bar */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 14px 24px;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12);
  border-top: 1px solid rgba(0, 56, 93, 0.08);
  z-index: 999;
}

.mobile-sticky-cta .btn {
  width: 100%;
  padding: 16px 28px;
  font-size: 1rem;
}

.mobile-only-title {
  display: none;
}

/* Utilities */
.highlight-green {
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
}

.highlight-green::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 100%;
  height: 8px;
  background: rgba(42, 106, 71, 0.18);
  border-radius: 4px;
  z-index: -1;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3.6rem; }
  .certainty-content { gap: 48px; }
  .certainty-text h2 { font-size: 2.8rem; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 36px; }
}

@media (max-width: 992px) {
  .mobile-only-title {
    display: block;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
  }
  .desktop-only-title {
    display: none;
  }
  .hero { padding: 110px 0 120px; }
  .hero h1 { font-size: 3.2rem; }
  .certainty-content {
    flex-direction: column;
    text-align: center;
  }
  .certainty-text h2 { font-size: 2.8rem; }
  .certainty-image { width: 100%; max-width: 600px; margin: 0 auto; }
  .doctor-wrapper { flex-direction: column; }
  .doctor-image { width: 100%; height: 440px; min-height: auto; }
  .doctor-info { padding: 52px 40px; text-align: center; }
}

@media (max-width: 768px) {
  .header { padding: 12px 0; }
  .header-content {
    flex-direction: row;
    justify-content: space-between;
  }
  .nav-links {
    gap: 16px;
  }
  .nav-links .contact-link {
    display: none;
  }
  .header .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
  .hero {
    padding: 80px 0 90px;
    text-align: center;
  }
  .hero-container {
    align-items: center;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.18rem;
  }
  .section-header h2, .cta-section h2 {
    font-size: 2.3rem;
  }
  .certainty-text h2 {
    font-size: 2.3rem;
  }
  .doctor-info h2 {
    font-size: 2.1rem;
  }
  .btn {
    width: 100%;
    padding: 16px 24px;
  }
  .logo img.logo-icon {
    height: 44px;
  }
  .logo-text-string {
    font-size: 1.25rem;
  }
  .logo-subtitle {
    font-size: 0.62rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .footer-col {
    text-align: center;
    align-items: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }
  .mobile-sticky-cta {
    display: block;
  }
  body {
    padding-bottom: 76px;
  }
}
