/* CRM wizard theme — applies to all templates */
:root {
  --crm-theme-primary: #205662;
  --crm-theme-secondary: #bd975a;
  --crm-theme-primary-dark: #1a4750;
  --crm-theme-button: #205662;
  --crm-theme-button-hover: #1b4953;
  --crm-dark-surface: #163a43;
  --crm-theme-btn-radius: 8px;
  --crm-btn-solid-text: #ffffff;
  --crm-btn-outline-text: #2d2d2d;
  --crm-btn-outline-hover-bg: #8ba7ad;
  --crm-btn-outline-hover-text: #2d2d2d;
  --crm-text-on-light: #2d2d2d;
  --crm-text-on-dark: #ffffff;
  --crm-text-muted-on-light: #333333;
  --text-on-color-pink-light: #2d2d2d;
  --text-muted-on-color-pink-light: #333333;
  --text-on-color-pink: #2d2d2d;
  --text-muted-on-color-pink: #333333;
  --text-on-color-rose-pink: #2d2d2d;
  --text-muted-on-color-rose-pink: #333333;
  --text-on-color-surface-muted: #2d2d2d;
  --text-muted-on-color-surface-muted: #333333;
  --text-on-color-surface-tint: #2d2d2d;
  --text-muted-on-color-surface-tint: #333333;
  --text-on-color-surface-alt: #2d2d2d;
  --text-muted-on-color-surface-alt: #333333;
  --text-on-mkt-surface: #2d2d2d;
  --text-muted-on-mkt-surface: #333333;
  --text-on-mkt-surface-alt: #ffffff;
  --text-muted-on-mkt-surface-alt: rgba(255, 255, 255, 0.92);
  --text-on-brand-surface: #2d2d2d;
  --text-muted-on-brand-surface: #333333;
  --text-on-dark-purple: #ffffff;
  --text-muted-on-dark-purple: rgba(255, 255, 255, 0.92);
  --text-on-dark-purple-gray: #ffffff;
  --text-muted-on-dark-purple-gray: rgba(255, 255, 255, 0.92);
  --text-on-mkt-blue-dark: #ffffff;
  --text-muted-on-mkt-blue-dark: rgba(255, 255, 255, 0.92);
  --text-on-dark-blue: #ffffff;
  --text-muted-on-dark-blue: rgba(255, 255, 255, 0.92);
  --text-on-mkt-primary-dark: #ffffff;
  --text-muted-on-mkt-primary-dark: rgba(255, 255, 255, 0.92);
  --text-on-brand-dark: #ffffff;
  --text-muted-on-brand-dark: rgba(255, 255, 255, 0.92);
  --text-on-color-secondary: #ffffff;
  --text-muted-on-color-secondary: rgba(255, 255, 255, 0.92);
  --text-on-mkt-healow-blue: #ffffff;
  --text-muted-on-mkt-healow-blue: rgba(255, 255, 255, 0.92);
  --text-on-crm-dark-surface: #ffffff;
  --text-muted-on-crm-dark-surface: rgba(255, 255, 255, 0.92);
  --text-on-brand-teal: #ffffff;
  --text-muted-on-brand-teal: rgba(255, 255, 255, 0.92);
  --text-on-color-accent: #ffffff;
  --text-muted-on-color-accent: rgba(255, 255, 255, 0.92);
  --text-on-mkt-accent: #ffffff;
  --text-muted-on-mkt-accent: rgba(255, 255, 255, 0.92);
  --text-on-mkt-accent-dark: #ffffff;
  --text-muted-on-mkt-accent-dark: rgba(255, 255, 255, 0.92);
  --text-on-color-primary: #ffffff;
  --text-muted-on-color-primary: rgba(255, 255, 255, 0.92);
  --text-on-light-blue: #2d2d2d;
  --text-muted-on-light-blue: #333333;
  --text-on-teal: #ffffff;
  --text-muted-on-teal: rgba(255, 255, 255, 0.92);
  --text-on-hot-pink: #ffffff;
  --text-muted-on-hot-pink: rgba(255, 255, 255, 0.92);
  --text-on-orange: #ffffff;
  --text-muted-on-orange: rgba(255, 255, 255, 0.92);
  --text-on-color-app-button: #ffffff;
  --text-muted-on-color-app-button: rgba(255, 255, 255, 0.92);
  --text-on-color-pink-btn: #ffffff;
  --text-muted-on-color-pink-btn: rgba(255, 255, 255, 0.92);

  /* style1 */
  --color-primary: #205662;
  --color-primary-dark: #1a4750;
  --color-plum: #bd975a;
  --color-pink-btn: #205662;
  --color-accent-red: #bd975a;
  --color-rose-pink: #6e9199;

  /* style2 / healow marketing */
  --dark-purple: #163a43;
  --dark-purple-gray: #15373f;
  --light-purple: #205662;
  --pink: #6e9199;
  --hot-pink: #205662;
  --blue: #205662;
  --dark-blue: #163a43;
  --teal: #205662;
  --light-blue: #6e9199;
  --mkt-blue: #205662;
  --mkt-blue-dark: #163a43;
  --mkt-orange: #bd975a;
  --mkt-accent: #205662;
  --mkt-accent-dark: #1b4953;
  --mkt-link: #205662;
  --mkt-check: #205662;
  --mkt-surface: #ffffff;
  --mkt-surface-alt: #163a4312;
  --mkt-practice-code: #13343b;
  --mkt-tab-text: #495057;
  --mkt-bg-tab-inactive: #ececec;

  /* style3 classic healow */
  --color-secondary: #163a43;
  --color-accent: #205662;
  --color-surface-muted: #f4f7f8;
  --color-surface-tint: #94aeb4;
  --color-surface-alt: #f7f3eb;
  --color-faq-border: #c1d0d3;
  --color-faq-border-soft: #c9d6d9;
  --color-faq-border-light: #d2dde0;
  --color-faq-gradient-start: #d7e1e3;
  --color-chip-bg: #cedadc;
  --color-chip-border: #b8c9cd;
  --color-chip-text: #1a4750;
  --color-chip-hover: #9bb3b8;
  --color-text-shadow: #e9eeef;
  --color-insurance-muted: #96a6aa;
  --brand-heading: #1a4750;
  --brand-hero-accent: #205662;
  --brand-dark: #163a43;
  --brand-teal: #205662;
  --brand-surface: #f4f7f8;
  --brand-red: #bd975a;
  --brand-muted: #7f9398;
  --brand-highlight: #6e9199;
  --brand-lime: #aabfc3;
  --mkt-warm-accent: #bd975a;
  --hero-card-icon-bg: #205662;
  --social-icon-color: #205662;
  --footer-heading-color: #ffffff;

  /* bootstrap tokens */
  --bs-primary: #205662;
  --bs-primary-rgb: 32, 86, 98;
  --bs-link-color: #205662;
  --bs-link-hover-color: #1a4750;

  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', Georgia, 'Times New Roman', serif;
  --color-pink-border: #caac7b;
  --color-orange: #c29f67;
  --color-gray-dark: #2d2d2d;
  --color-gray: #6b6b6b;
  --color-gray-light: #9a9a9a;
  --mkt-orange-gold: #bf9a5f;
  --mkt-text: #333333;
  --mkt-text-muted: #555555;
  --color-secondary: #163a43;
  --brand-dark: #163a43;
  --brand-teal: #517b85;
  --brand-heading: #1a4750;
  --brand-hero-accent: #205662;
  --mkt-warm-accent: #bd975a;
  --hero-card-icon-bg: #205662;
  --social-icon-color: #205662;
  --footer-heading-color: #ffffff;
  --color-primary-darker: #163c45;
  --crm-theme-accent: #163c45;
  --mkt-healow-blue: #163a43;
  --color-code-highlight: #f6efe4;
  --color-text-light: #6b7280;
  --color-text: #333333;
  --color-border: #d7dde2;
  --color-nav-border: #cbd5db;
  --color-success: #2f7d32;
  --red: #205662;
  --color-text-on-light: #2d2d2d;
  --color-text-on-dark: #ffffff;
  --mkt-primary-dark: #163a43;
  --crm-text-muted-on-light: #333333;
}

html, body {
  font-family: var(--font-body) !important;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading) !important;
}

.btn,
button,
input[type="button"],
input[type="submit"],
a.btn,
[class*="btn-"] {
  border-radius: var(--crm-theme-btn-radius) !important;
  font-weight: 600 !important;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}

/* Universal solid primary CTA buttons */
.btn-primary,
.btn-header,
.btn-appointment,
.btn-hero-primary,
.btn-hero-card,
.btn-cta-primary,
.btn-schedule,
.btn-portal,
.btn-marketing-primary,
.btn-marketing-accent,
.portal-button,
.btn-modal-custom,
.qa-custom-btn,
.card.stores-cta .btn,
.card.portal-cta .portal-button,
.bg-primary {
  background-color: var(--crm-theme-button) !important;
  border: 1px solid var(--crm-theme-button) !important;
  color: var(--crm-btn-solid-text) !important;
}

.btn-primary:hover,
.btn-header:hover,
.btn-appointment:hover,
.btn-hero-primary:hover,
.btn-hero-card:hover,
.btn-cta-primary:hover,
.btn-schedule:hover,
.btn-portal:hover,
.btn-marketing-primary:hover,
.btn-marketing-accent:hover,
.portal-button:hover,
.btn-modal-custom:hover,
.qa-custom-btn:hover,
.card.stores-cta .btn:hover,
.card.portal-cta .portal-button:hover {
  background-color: var(--crm-theme-button-hover) !important;
  border-color: var(--crm-theme-button-hover) !important;
  color: var(--crm-btn-solid-text) !important;
}

/* Override Bootstrap text-dark on solid brand buttons */
.btn-primary.text-dark,
.btn-header.text-dark,
.btn-hero-card.text-dark,
.btn-cta-primary.text-dark,
.portal-button.text-dark,
a.btn.text-dark[class*="btn-"] {
  color: var(--crm-btn-solid-text) !important;
}

/* Universal outline / secondary buttons */
.btn-patient-login,
.btn-cta-outline,
.btn-outline-primary {
  background-color: #ffffff !important;
  color: var(--crm-btn-outline-text) !important;
  border: 1px solid var(--crm-theme-primary) !important;
}

.btn-patient-login:hover,
.btn-cta-outline:hover,
.btn-outline-primary:hover {
  background-color: var(--crm-btn-outline-hover-bg) !important;
  color: var(--crm-btn-outline-hover-text) !important;
  border-color: var(--crm-theme-primary) !important;
}

/* Section backgrounds derived from brand */
.hero-section {
  background: linear-gradient(135deg, #90abb1 0%, #82a0a7 100%) !important;
}

.hero-label {
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--crm-theme-primary-dark) !important;
}

.hero-title,
.hero-title-accent {
  color: var(--crm-theme-primary-dark) !important;
}

.hero-desc {
  color: var(--color-gray, #6b6b6b) !important;
}

/* Dark band sections — always readable white text */
.insurance-section,
.section-dark,
.bg-dark-purple {
  background-color: var(--crm-dark-surface) !important;
  color: var(--crm-btn-solid-text) !important;
}

.insurance-section p,
.insurance-section li,
.insurance-title,
.insurance-section .insurance-list li {
  color: rgba(255, 255, 255, 0.92) !important;
}

/* Service / care cards — dark gradient so white titles stay readable */
.care-card-overlay.pink,
.care-card-overlay.hot-pink,
.care-card-overlay.purple {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 55%) !important;
}

.care-card-content h3 {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.text-primary,
.navbar-brand,
a.nav-link:hover,
.service-link,
.portal-link {
  color: var(--crm-theme-primary) !important;
}

a {
  color: var(--crm-theme-primary);
}

a:hover {
  color: var(--crm-theme-primary-dark);
}

.service-icon i,
.care-card-icon,
[class*="accent"] {
  color: var(--crm-theme-primary);
}

/* Style 3 — header, footer, sections tied to global palette */
.main-logo {
  
}

#footer,
.medicbuilding {
  background: var(--crm-dark-surface) !important;
  color: var(--crm-btn-solid-text) !important;
}

#footer .footer-link li a,
#footer .footer-link li a:visited,
.footer-link li a,
.footer-link li a:visited {
  color: var(--crm-btn-solid-text) !important;
}

#testimonials {
  background: var(--color-surface-muted) !important;
}

/*
 * Patient-tools + FAQ iframe hosts load healow CDN pages with black text.
 * Always keep these panels translucent-light (brand dark @ ~7% opacity).
 */
#patient-tools .patient-tools-tab #p-tools-Content,
#patient-tools #p-tools-Content,
#patient-tools .tab-pane,
#patient-tools .patient-tools-iframe-wrap,
#faqs .faq-iframe-wrapper,
#faqs .tab-content {
  background: #163a4312 !important;
  background-color: #163a4312 !important;
  color: #2d2d2d !important;
}

/* Practice unique code — always darkened primary on the white code panel */
.practice-code-right .code,
.practice-code .code,
.practice-code-bg .code,
.ai-practice-code,
span.code.ai-practice-code,
strong.ai-practice-code {
  color: #13343b !important;
}

.practice-code-right .code,
.practice-code .code,
.practice-code-bg .code {
  border-color: #13343b !important;
}

#meet-doctor {
  background: var(--color-surface-alt) !important;
}

.specialities-bx {
  background: var(--color-surface-tint) !important;
}

.card.stores-cta .card-body {
  background: var(--brand-teal) !important;
}

.services-tabs a.nav-link.active,
.nav-tabs .nav-link.active,
#faqs .nav-tabs .nav-link.active {
  background-color: var(--brand-teal) !important;
  border-color: var(--brand-teal) !important;
  color: #ffffff !important;
}

#quick-action .btn {
  background-color: var(--color-primary) !important;
  border-color: var(--color-surface) !important;
  color: #ffffff !important;
}

#quick-action .btn i {
  color: #ffffff !important;
}

div#insurance-providers h5 {
  color: #ffffff !important;
}

.practice-name {
  color: var(--brand-teal) !important;
}

.hero-card-icon.red,
.hero-card-icon.orange,
.hero-card-icon.purple,
.hero-card-icon.teal,
.hero-card-icon {
  background: var(--hero-card-icon-bg) !important;
  color: var(--crm-btn-solid-text) !important;
}

#footer h4,
#footer h3,
#footer h2,
.main-footer h4,
.footer-heading {
  color: var(--footer-heading-color) !important;
}

#footer .social-icons a,
.main-footer .social-icons a {
  color: var(--social-icon-color) !important;
  background: #ffffff !important;
}

#footer .social-icons a:hover,
.main-footer .social-icons a:hover {
  color: #ffffff !important;
  background: var(--crm-theme-primary) !important;
}

/* WCAG 2.1 AA — section text/background pairs */
.services-section { color: #2d2d2d !important }
.service-card { color: #2d2d2d !important }
.service-card h3 { color: #2d2d2d !important }
.service-card p { color: #2d2d2d !important }
.testimonials-section { color: #2d2d2d !important }
.testimonial-card { color: #2d2d2d !important }
#testimonials { color: #2d2d2d !important }
#testimonials p { color: #2d2d2d !important }
#meet-doctor { color: #2d2d2d !important }
#meet-doctor h4 { color: #2d2d2d !important }
#meet-doctor p { color: #2d2d2d !important }
.specialities-bx { color: #2d2d2d !important }
#patient-portal { color: #2d2d2d !important }
#patient-portal p { color: #2d2d2d !important }
#patient-tools { color: #2d2d2d !important }
#faqs .tab-content { color: #2d2d2d !important }
.serve-card { color: #2d2d2d !important }
.serve-card p { color: #2d2d2d !important }
#imp-notice { color: #2d2d2d !important }
#imp-notice small { color: #2d2d2d !important }
.section-desc { color: #2d2d2d !important }
.bx-highlight { color: #2d2d2d !important }
.hero-section .section-title { color: #2d2d2d !important }
.hero-desc { color: #2d2d2d !important }
.services-section .section-title { color: #2d2d2d !important }
.insurance-section { color: #ffffff !important }
.insurance-section h2 { color: #ffffff !important }
.insurance-section h3 { color: #ffffff !important }
.insurance-title { color: #ffffff !important }
.section-dark { color: #ffffff !important }
.bg-dark-purple { color: #ffffff !important }
#footer { color: #ffffff !important }
#footer p { color: #ffffff !important }
#footer h2 { color: #ffffff !important }
#footer h3 { color: #ffffff !important }
#footer h4 { color: #ffffff !important }
#footer h5 { color: #ffffff !important }
#footer li { color: #ffffff !important }
.main-footer { color: #ffffff !important }
.main-footer h4 { color: #ffffff !important }
.main-footer h3 { color: #ffffff !important }
.main-footer p { color: #ffffff !important }
.footer-heading { color: #ffffff !important }
.footer-desc { color: #ffffff !important }
.footer-logo .logo-text { color: #ffffff !important }
.medicbuilding { color: #ffffff !important }
.local-panel { color: #ffffff !important }
.local-panel h4 { color: #ffffff !important }
.local-panel h3 { color: #ffffff !important }
.local-panel p { color: #ffffff !important }
.local-panel td { color: #ffffff !important }
.local-panel th { color: #ffffff !important }
.footer-section { color: #ffffff !important }
.site-footer { color: #ffffff !important }
.insurance-section p { color: rgba(255, 255, 255, 0.92) !important }
.insurance-section li { color: rgba(255, 255, 255, 0.92) !important }
.insurance-section .insurance-list li { color: rgba(255, 255, 255, 0.92) !important }
#footer .text-muted { color: rgba(255, 255, 255, 0.92) !important }
.local-panel .text-muted { color: rgba(255, 255, 255, 0.92) !important }
#footer a { color: #ffffff !important }
#footer .footer-link li a { color: #ffffff !important }
.footer-link li a { color: #ffffff !important }
.footer-link li a:visited { color: #ffffff !important }
.main-footer ul li a { color: #ffffff !important }
.footer-links a { color: #ffffff !important }
.footer-links a:visited { color: #ffffff !important }
.insurance-section a { color: #ffffff !important }
.local-panel a { color: #ffffff !important }
#footer .social-icons a { color: #205662 !important; background: #ffffff !important }
.main-footer .social-icons a { color: #205662 !important; background: #ffffff !important }
footer .social-icons a { color: #205662 !important; background: #ffffff !important }
#footer .social-icons a:hover { color: #ffffff !important; background: #205662 !important }
.main-footer .social-icons a:hover { color: #ffffff !important; background: #205662 !important }
footer .social-icons a:hover { color: #ffffff !important; background: #205662 !important }
.contact-list li i { color: #ffffff !important }
#footer .contact-list i { color: #ffffff !important }
.main-footer .contact-list i { color: #ffffff !important }
.hero-card-icon { color: #ffffff !important; background: #205662 !important }
.hero-card-icon.red { color: #ffffff !important; background: #205662 !important }
.hero-card-icon.orange { color: #ffffff !important; background: #205662 !important }
.hero-card-icon.purple { color: #ffffff !important; background: #205662 !important }
.hero-card-icon.teal { color: #ffffff !important; background: #205662 !important }
.hero-card-icon i { color: #ffffff !important; background: #205662 !important }
#footer a:hover { color: #ffffff !important; opacity: 0.88 }
.footer-link li a:hover { color: #ffffff !important; opacity: 0.88 }
.insurance-section a:hover { color: #ffffff !important; opacity: 0.88 }
.local-panel a:hover { color: #ffffff !important; opacity: 0.88 }
.top-bar { color: #ffffff !important }
.top-bar a { color: #ffffff !important }
.top-bar span { color: #ffffff !important }
.navbar-dark { color: #ffffff !important }
.navbar-dark .nav-link { color: #ffffff !important }
.navbar-dark .navbar-brand { color: #ffffff !important }
#primary-nav { color: #ffffff !important }
#primary-nav .nav-link { color: #ffffff !important }
#primary-nav .navbar-brand { color: #ffffff !important }
.hero-overlay { color: #ffffff !important }
.hero-content { color: #ffffff !important }
.hero-content h1 { color: #ffffff !important }
.hero-content p { color: #ffffff !important }
.hero-subtitle { color: #ffffff !important }
.nav-tabs .nav-link.active { color: #ffffff !important }
#faqs .nav-tabs .nav-link.active { color: #ffffff !important }
.services-tabs a.nav-link.active { color: #ffffff !important }
.card.stores-cta .card-body { color: #ffffff !important }
.card.stores-cta .card-body p { color: #ffffff !important }
.highlight-bx { color: #ffffff !important }
.highlight-bx p { color: #ffffff !important }
.portal-24-7-icon { color: #ffffff !important }
.portal-24-7-icon .material-icons { color: #ffffff !important }
.healow-steps-header { color: #ffffff !important }
.healow-step-number { color: #ffffff !important }
#quick-action .btn:hover { color: #ffffff !important }
#quick-action .btn:focus { color: #ffffff !important }
#quick-action .btn:active { color: #ffffff !important }
#quick-action .btn:hover i { color: #ffffff !important }
#quick-action .btn:focus i { color: #ffffff !important }
#quick-action .btn:active i { color: #ffffff !important }
#quick-action .btn { color: #ffffff !important }
#quick-action .btn i { color: #ffffff !important }
.portal-button-wrap .portal-button { color: #ffffff !important }
.btn-marketing-primary { color: #ffffff !important }
.btn-marketing-accent { color: #ffffff !important }
.healow-download-btn { color: #ffffff !important }
.marketing-cta-band { color: #ffffff !important }
#patient-tools .nav-tabs .nav-link.active { color: #ffffff !important }
#patient-tools .nav-tabs .nav-link.active i { color: #ffffff !important }
#patient-tools .nav-tabs .nav-link { color: #2d2d2d !important }
#faqs .nav-tabs .nav-link:not(.active) { color: #2d2d2d !important }
.practice-code-right .code { color: #13343b !important }
.practice-code .code { color: #13343b !important }
.practice-code-bg .code { color: #13343b !important }
.ai-practice-code { color: #13343b !important }
span.code.ai-practice-code { color: #13343b !important }
strong.ai-practice-code { color: #13343b !important }
.section-title { color: #2d2d2d !important }
.hero-title { color: #2d2d2d !important }
.service-card h3 { color: #2d2d2d !important }
.testimonial-card .testimonial-name { color: #2d2d2d !important }
.services-section a:not(.btn):not(.nav-link) { color: #205662 !important }
#patient-portal a:not(.btn):not(.nav-link) { color: #205662 !important }
.hero-section a:not(.btn):not(.nav-link) { color: #205662 !important }
.service-link { color: #205662 !important }
.portal-link { color: #205662 !important }
div#insurance-providers h5 { color: #ffffff !important }
#local-meet-doctors .material-icons { color: #ffffff !important }
#local-socials a ion-icon { color: #ffffff !important }
#local-socials a i.fa-brands { color: #ffffff !important }
.practice-name { color: #ffffff !important }
.serve-chip { color: #2d2d2d !important }
.serve-chip:hover { color: #2d2d2d !important }

/* ============================================
   Modern UX Refresh (non-structural overrides)
   ============================================ */
body {
  background: #f6f8fb !important;
  color: #1f2937 !important;
}

.container {
  max-width: 1180px;
}

.top-bar {
  font-size: 12.5px !important;
  letter-spacing: 0.1px;
}

.main-nav {
  backdrop-filter: saturate(140%) blur(6px);
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06) !important;
}

.main-nav .nav-link {
  font-weight: 600 !important;
  font-size: 0.95rem;
  border-radius: 10px;
  padding: 0.55rem 0.85rem !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav .nav-link:hover,
.main-nav .nav-link:focus-visible,
.main-nav .nav-link.active {
  background: rgba(32, 86, 98, 0.1);
  color: var(--crm-theme-primary) !important;
}

.btn-login,
.btn-cta,
.btn-hero-card,
.btn-appointment,
.btn.btn-login,
a.btn-login {
  border-radius: 999px !important;
  padding: 0.62rem 1.15rem !important;
  font-weight: 600 !important;
  box-shadow: 0 8px 16px rgba(32, 86, 98, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-login:hover,
.btn-cta:hover,
.btn-hero-card:hover,
.btn-appointment:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(32, 86, 98, 0.2);
  color: var(--dark-purple-gray) !important;
}

.hero {
  min-height: auto !important;
}

.hero-content {
  padding: 100px 0 120px !important;
}

.hero-line {
  text-wrap: balance;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.25);
}

.hero-desc {
  max-width: 760px;
  font-size: 1.08rem;
  line-height: 1.75;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-cards {
  margin-top: -70px !important;
}

.hero-card,
.care-card,
.testimonial-card,
.cta-content,
.portal-features,
.main-footer .footer-content {
  border-radius: 16px !important;
}

.hero-card,
.care-card,
.testimonial-card,
.insurance-section .row.align-items-start,
.cta-content {
  background: #ffffff !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08) !important;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.hero-card {
  height: 100%;
  padding: 1.25rem 1.1rem !important;
}

.hero-card h3,
.care-card h3 {
  font-size: 1.12rem !important;
  line-height: 1.35;
}

.comprehensive-care,
.insurance-section,
.testimonials,
#patient-portal,
#healow-app,
#healow-steps,
#patient-tools,
#faqs,
#cta {
  padding-top: 72px !important;
  padding-bottom: 72px !important;
}

.section-title {
  font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.5rem) !important;
  line-height: 1.2;
  margin-bottom: 0.85rem !important;
}

.section-desc,
.insurance-note,
.testimonial-quote,
.contact-list li,
.main-footer p {
  color: #4b5563 !important;
}

.care-card {
  min-height: 220px;
  overflow: hidden;
}

.care-card-content {
  position: relative;
  z-index: 2;
  padding: 1.15rem 1rem !important;
}

.care-card-overlay {
  opacity: 0.14 !important;
}

.insurance-section {
  background: linear-gradient(180deg, #204f5a 0%, #163a43 100%) !important;
}

.insurance-section .insurance-title,
.insurance-section p,
.insurance-section li,
.insurance-section a {
  color: #f8fafc !important;
}

.testimonial-card {
  padding: 1.5rem !important;
}

.provider-photo {
  border-radius: 18px !important;
}

.main-footer {
  background: linear-gradient(180deg, #173d47 0%, #102d34 100%) !important;
}

.main-footer .footer-content {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.social-icons a {
  border-radius: 999px !important;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 991.98px) {
  .hero-content {
    padding: 80px 0 90px !important;
  }

  .hero-cards {
    margin-top: -35px !important;
  }

  .comprehensive-care,
  .insurance-section,
  .testimonials,
  #patient-portal,
  #healow-app,
  #healow-steps,
  #patient-tools,
  #faqs,
  #cta {
    padding-top: 52px !important;
    padding-bottom: 52px !important;
  }
}

@media (max-width: 767.98px) {
  .top-bar .text-end {
    text-align: left !important;
    margin-top: 4px;
  }

  .nav-buttons {
    margin-top: 12px;
  }

  .hero-line {
    font-size: 2rem !important;
  }

  .hero-desc {
    font-size: 1rem;
  }
}

/* ============================================
   Contrast Fix Patch
   ============================================ */
/* Default readable text on light surfaces */
body,
p,
li,
span,
.small,
.section-desc,
.testimonial-quote,
.hero-card p,
.care-card p,
.care-card-content p,
.contact-list li,
#services p,
#testimonials p,
#patient-portal p,
#healow-app p,
#healow-steps p,
#patient-tools p,
#faqs p,
#cta p {
  color: #1f2937 !important;
}

h1, h2, h3, h4, h5, h6,
.section-title,
.insurance-title,
.hero-title,
.hero-line,
.care-card h3,
.testimonial-card h3 {
  color: #111827 !important;
}

/* Keep hero text readable over image */
#home .hero-line,
#home .hero-desc {
  color: #ffffff !important;
}

/* Keep dark sections readable */
#insurance,
#insurance p,
#insurance li,
#insurance h2,
#insurance a,
#cta,
#cta h2,
#cta p,
#cta .btn-cta,
#footer,
#footer p,
#footer li,
#footer h2,
#footer h3,
#footer h4,
#footer a,
#footer i {
  color: #f8fafc !important;
}

/* Footer icon contrast */
#footer .social-icons a,
.main-footer .social-icons a {
  background: #ffffff !important;
  color: #205662 !important;
}

/* Visit and Practice Information section card theme fix */
#insurance .row.align-items-start {
  background: #102d3400 !important;
}

#insurance .insurance-title,
#insurance p,
#insurance li,
#insurance a {
  color: #ffffff !important;
}

/* Services section structure polish */
#services .section-title {
  color: var(--crm-theme-primary) !important;
  text-shadow: none !important;
}

#services .care-card {
  min-height: 170px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#services .care-card-content {
  width: 100%;
  text-align: center;
  padding: 1rem 0.9rem !important;
}

#services .care-card h3 {
  color: var(--crm-theme-primary) !important;
  text-shadow: none !important;
  margin-bottom: 0.6rem;
}

#services .care-card p {
  margin-bottom: 0;
}

/* Link contrast on light backgrounds */
a,
#services a,
#testimonials a,
#patient-portal a,
#healow-app a,
#patient-tools a,
#faqs a {
  color: #205662;
}

a:hover,
a:focus-visible {
  color: #1a4750;
}

/* ============================================
   Critical Contrast Corrections
   ============================================ */
/* Insurance info card must not be transparent */
#insurance .row.align-items-start {
  background: var(--crm-theme-primary) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

/* CTA readability fix (text was blending on white card) */
#cta .cta-content {
  background: var(--crm-theme-primary) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

#cta h2,
#cta p,
#cta .btn-cta {
  color: #ffffff !important;
}

/* Footer social icons visibility fix */
#footer .social-icons a,
.main-footer .social-icons a {
  background: #ffffff !important;
  color: var(--crm-theme-primary) !important;
}

#footer .social-icons a i,
.main-footer .social-icons a i {
  color: inherit !important;
}

/* Remove panel background/border behind Visit and Practice Information */
#insurance .row.align-items-start {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Practice description should use full row width */
#practice-description .section-title {
  color: var(--crm-theme-primary) !important;
}

#practice-description .section-desc {
  max-width: 100% !important;
}

/* Global heading alignment */
h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.insurance-title,
.hero-title {
  text-align: center !important;
}

/* Services section theme background */
#services {
  background: var(--crm-theme-primary) !important;
}

#services .section-title {
  color: #ffffff !important;
}

#services .section-desc {
  color: #e5e7eb !important;
}

#services .care-card h3,
#services .care-card p {
  color: var(--crm-theme-primary) !important;
}

/* Practice FAQs section theme background */
#practice-faqs {
  background: var(--crm-theme-primary) !important;
}

#practice-faqs .section-title,
#practice-faqs .provider-name,
#practice-faqs .testimonial-quote,
#practice-faqs p,
#practice-faqs h3 {
  color: #ffffff !important;
}
