/* CRM wizard theme — applies to all templates */
:root {
  --crm-theme-primary: #009baa;
  --crm-theme-secondary: #007fa3;
  --crm-theme-primary-dark: #007f8b;
  --crm-theme-button: #00818d;
  --crm-theme-button-hover: #006e78;
  --crm-dark-surface: #006974;
  --crm-theme-btn-radius: 8px;
  --crm-btn-solid-text: #ffffff;
  --crm-btn-outline-text: #2d2d2d;
  --crm-btn-outline-hover-bg: #7acbd3;
  --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-soft: #2d2d2d;
  --text-muted-on-color-surface-soft: #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: #2d2d2d;
  --text-muted-on-brand-teal: #333333;
  --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: #2d2d2d;
  --text-muted-on-color-primary: #333333;
  --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: #009baa;
  --color-primary-dark: #007f8b;
  --color-plum: #007fa3;
  --color-pink-btn: #00818d;
  --color-accent-red: #007fa3;
  --color-rose-pink: #59bec8;

  /* style2 / healow marketing */
  --dark-purple: #006974;
  --dark-purple-gray: #00636d;
  --light-purple: #009baa;
  --pink: #59bec8;
  --hot-pink: #00818d;
  --blue: #009baa;
  --dark-blue: #006974;
  --teal: #009baa;
  --light-blue: #59bec8;
  --mkt-blue: #009baa;
  --mkt-blue-dark: #006974;
  --mkt-orange: #007fa3;
  --mkt-accent: #00818d;
  --mkt-accent-dark: #006e78;
  --mkt-link: #009baa;
  --mkt-check: #009baa;
  --mkt-surface: #ffffff;
  --mkt-surface-alt: #00697412;
  --mkt-practice-code: #005d66;
  --mkt-tab-text: #495057;
  --mkt-bg-tab-inactive: #ececec;

  /* style3 classic healow */
  --color-secondary: #006974;
  --color-accent: #00818d;
  --color-surface-muted: #eef8fb;
  --color-surface-tint: #85d9e1;
  --color-surface-alt: #e0f0f4;
  --color-faq-border: #b8e3e7;
  --color-faq-border-soft: #c2e7eb;
  --color-faq-border-light: #ccebee;
  --color-faq-gradient-start: #d1edf0;
  --color-chip-bg: #c7e9ec;
  --color-chip-border: #addfe4;
  --color-chip-text: #007f8b;
  --color-chip-hover: #8cc6cc;
  --color-text-shadow: #e6f5f7;
  --color-insurance-muted: #8cbcc0;
  --brand-heading: #007f8b;
  --brand-hero-accent: #009baa;
  --brand-dark: #006974;
  --brand-teal: #00818d;
  --brand-surface: #eef8fb;
  --brand-red: #007fa3;
  --brand-muted: #73adb3;
  --brand-highlight: #59adb5;
  --brand-lime: #9ecfd4;
  --mkt-warm-accent: #59cbd7;
  --hero-card-icon-bg: #00818d;
  --social-icon-color: #00818d;
  --footer-heading-color: #ffffff;

  /* bootstrap tokens */
  --bs-primary: #009baa;
  --bs-primary-rgb: 0, 155, 170;
  --bs-link-color: #009baa;
  --bs-link-hover-color: #007f8b;

  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', Georgia, 'Times New Roman', serif;
  --color-pink-border: #3399b5;
  --color-orange: #1489aa;
  --color-gray-dark: #2d2d2d;
  --color-gray: #6b6b6b;
  --color-gray-light: #9a9a9a;
  --mkt-orange-gold: #0883a6;
  --mkt-text: #333333;
  --mkt-text-muted: #555555;
  --color-secondary: #006974;
  --brand-dark: #006974;
  --brand-teal: #38c1cf;
  --brand-heading: #00909e;
  --brand-hero-accent: #00afc1;
  --mkt-warm-accent: #59cbd7;
  --hero-card-icon-bg: #00818d;
  --social-icon-color: #00818d;
  --footer-heading-color: #ffffff;
  --crm-theme-accent: #006b85;
  --color-text: #2d2d2d;
  --color-border: #b7dde5;
  --color-surface-soft: #f4fcfd;
  --color-text-on-light: #2d2d2d;
  --color-text-on-dark: #ffffff;
  --mkt-primary-dark: #006974;
  --mkt-healow-blue: #006974;
  --red: #00818d;
  --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, #80d7e0 0%, #70d2dc 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 {
  background: var(--crm-theme-primary) !important;
}

#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: #00697412 !important;
  background-color: #00697412 !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: #005d66 !important;
}

.practice-code-right .code,
.practice-code .code,
.practice-code-bg .code {
  border-color: #005d66 !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: #2d2d2d !important;
}

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

#quick-action .btn i {
  color: #2d2d2d !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: #00818d !important; background: #ffffff !important }
.main-footer .social-icons a { color: #00818d !important; background: #ffffff !important }
footer .social-icons a { color: #00818d !important; background: #ffffff !important }
#footer .social-icons a:hover { color: #ffffff !important; background: #009baa !important }
.main-footer .social-icons a:hover { color: #ffffff !important; background: #009baa !important }
footer .social-icons a:hover { color: #ffffff !important; background: #009baa !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: #00818d !important }
.hero-card-icon.red { color: #ffffff !important; background: #00818d !important }
.hero-card-icon.orange { color: #ffffff !important; background: #00818d !important }
.hero-card-icon.purple { color: #ffffff !important; background: #00818d !important }
.hero-card-icon.teal { color: #ffffff !important; background: #00818d !important }
.hero-card-icon i { color: #ffffff !important; background: #00818d !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: #2d2d2d !important }
#faqs .nav-tabs .nav-link.active { color: #2d2d2d !important }
.services-tabs a.nav-link.active { color: #2d2d2d !important }
.card.stores-cta .card-body { color: #2d2d2d !important }
.card.stores-cta .card-body p { color: #2d2d2d !important }
.highlight-bx { color: #2d2d2d !important }
.highlight-bx p { color: #2d2d2d !important }
.portal-24-7-icon { color: #2d2d2d !important }
.portal-24-7-icon .material-icons { color: #2d2d2d !important }
.healow-steps-header { color: #2d2d2d !important }
.healow-step-number { color: #2d2d2d !important }
#quick-action .btn:hover { color: #2d2d2d !important }
#quick-action .btn:focus { color: #2d2d2d !important }
#quick-action .btn:active { color: #2d2d2d !important }
#quick-action .btn:hover i { color: #2d2d2d !important }
#quick-action .btn:focus i { color: #2d2d2d !important }
#quick-action .btn:active i { color: #2d2d2d !important }
#quick-action .btn { color: #2d2d2d !important }
#quick-action .btn i { color: #2d2d2d !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: #005d66 !important }
.practice-code .code { color: #005d66 !important }
.practice-code-bg .code { color: #005d66 !important }
.ai-practice-code { color: #005d66 !important }
span.code.ai-practice-code { color: #005d66 !important }
strong.ai-practice-code { color: #005d66 !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: #009baa !important }
#patient-portal a:not(.btn):not(.nav-link) { color: #009baa !important }
.hero-section a:not(.btn):not(.nav-link) { color: #009baa !important }
.service-link { color: #009baa !important }
.portal-link { color: #009baa !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: #2d2d2d !important }
.serve-chip { color: #2d2d2d !important }
.serve-chip:hover { color: #2d2d2d !important }

/* ===== Pittsburgh Endocrinology visual refresh ===== */
:root {
  --crm-theme-primary: #12315f !important;
  --crm-theme-secondary: #21487f !important;
  --crm-theme-primary-dark: #0d2447 !important;
  --crm-theme-button: #12315f !important;
  --crm-theme-button-hover: #0d2447 !important;
  --color-primary: #12315f !important;
  --color-primary-dark: #0d2447 !important;
  --color-secondary: #21487f !important;
  --color-accent: #2d5ea3 !important;
  --color-plum: #12315f !important;
  --color-pink-btn: #12315f !important;
  --color-pink: #e8eef8 !important;
  --color-pink-light: #eef3fb !important;
  --color-rose-pink: #d7e3f5 !important;
  --color-surface-soft: #f7f4ee !important;
  --color-surface-muted: #edf2fa !important;
  --color-border: #d6dfec !important;
  --color-text: #1f2b3d !important;
  --color-gray-dark: #1f2b3d !important;
  --color-gray: #465a78 !important;
  --color-gray-light: #7589a8 !important;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif !important;
  --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
  --mkt-primary: #12315f !important;
  --mkt-primary-dark: #0d2447 !important;
  --mkt-accent: #21487f !important;
  --mkt-accent-dark: #163766 !important;
  --mkt-link: #12315f !important;
}

body {
  background: #f7f9fc !important;
  color: #1f2b3d !important;
}

.top-contact-bar {
  background: #0d2447;
  color: #e9eef7;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-contact-items {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.top-contact-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.1rem;
}

.top-contact-address {
  text-align: left;
}

.top-contact-item {
  color: #e9eef7;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.top-contact-item:hover {
  color: #ffffff;
  opacity: 1;
}

/* Safari iOS auto-links phone numbers as blue <a> tags — keep them readable */
a[x-apple-data-detectors],
a[href^="tel"]:not(.btn),
a[href^="sms"],
a[href^="fax"] {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  text-decoration: none !important;
}

a.btn[href^="tel"],
.btn-header,
.btn-cta-primary,
.btn-header:visited,
.btn-cta-primary:visited {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.top-contact-bar a,
.top-contact-bar a[href^="tel"],
.top-contact-bar a[href^="fax"],
.top-contact-item,
.top-contact-item:visited {
  color: #e9eef7 !important;
  -webkit-text-fill-color: #e9eef7 !important;
}

.top-contact-bar a:hover,
.top-contact-item:hover {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

#telehealth a,
#telehealth a[href^="tel"],
#insurance a,
#insurance a[href^="tel"],
#footer a,
#footer a[href^="tel"],
#footer a[href^="fax"] {
  color: #edf3fb !important;
  -webkit-text-fill-color: #edf3fb !important;
}

#new-patients a[href^="tel"],
#new-patients a[href^="fax"],
#location a[href^="tel"],
#location a[href^="fax"],
#patient-portal a[href^="tel"] {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

.header {
  border-bottom: 1px solid rgba(18, 49, 95, 0.08);
  box-shadow: 0 8px 24px rgba(13, 36, 71, 0.08);
}

.navbar {
  padding: 0.8rem 0 !important;
}

.navbar-brand {
  padding-top: 0.15rem !important;
  padding-bottom: 0.15rem !important;
}

.navbar-brand-text {
  margin-left: 0.7rem;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #12315f;
  white-space: nowrap;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #12315f !important;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #0d2447 !important;
}

.btn-header,
.btn-hero-primary,
.btn-cta-primary {
  background: linear-gradient(135deg, #12315f, #21487f) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 10px 24px rgba(18, 49, 95, 0.24) !important;
}

.btn-header:hover,
.btn-hero-primary:hover,
.btn-cta-primary:hover {
  background: linear-gradient(135deg, #0d2447, #12315f) !important;
}

.hero-section {
  background: radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 35%),
    linear-gradient(145deg, #edf2fa 0%, #f7f4ee 48%, #e6eef9 100%) !important;
  padding-top: 4.5rem;
  padding-bottom: 5.5rem;
}

.hero-section::before,
.hero-section::after {
  opacity: 0.22 !important;
}

.hero-separator-wrap {
  max-width: 1200px;
  margin: -2px auto 0;
  padding: 0 1.5rem;
  line-height: 0;
}

.hero-separator-line {
  display: block;
  width: min(360px, 72vw);
  height: 5px;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #12315f 0%, #2d5ea3 50%, #12315f 100%);
  box-shadow: none;
}

.hero-image-wrapper {
  background: #ffffff;
  border: 1px solid #d6dfec;
  border-radius: 28px;
  box-shadow: 0 22px 42px rgba(18, 49, 95, 0.14);
  padding: 1rem;
}

.section-title,
.hero-title,
.cta-title,
.footer-brand {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
  letter-spacing: -0.01em;
}

.section-title,
.cta-title,
.healow-steps-title,
#new-patients h2,
#about .section-title,
#conditions .section-title,
#patient-tools h4 {
  display: block;
  text-align: center;
  color: #12315f !important;
}

#telehealth h2,
#insurance h2 {
  display: block;
  text-align: center;
}

#about .section-desc,
#conditions .section-desc,
#telehealth .section-desc,
#telehealth p,
#new-patients .section-desc,
#insurance .section-desc,
.cta-desc,
.footer-desc,
.footer-contact-info,
.copyright {
  display: block;
  text-align: center;
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

.section-desc,
.hero-desc,
.service-desc,
.footer-desc {
  color: #3f5472 !important;
}

.services-section,
.specialists-section,
.insurance-section {
  padding-top: 4.2rem !important;
  padding-bottom: 4.2rem !important;
}

#about,
#conditions,
#dr-vaghasia,
#new-patients,
#location,
#insurance {
  position: relative;
}

#about {
  background: #ffffff !important;
}

#about .container,
#conditions .container,
#dr-vaghasia .container,
#new-patients .container,
#location .container,
#insurance .container {
  background: #ffffff00;
  border: 1px solid #d6dfec;
  border-radius: 24px;
  padding: 2.25rem;
  box-shadow: 0 14px 30px rgba(18, 49, 95, 0.08);
}

#about .container {
  background: #f7f4ee !important;
}

#new-patients {
  background: #ffffff !important;
}

#new-patients,
#new-patients h2,
#new-patients p,
#new-patients li,
#new-patients a {
  color: #1f2b3d !important;
}

#insurance {
  background: linear-gradient(140deg, #12315f 0%, #21487f 100%) !important;
}

#insurance,
#insurance h2,
#insurance p,
#insurance li,
#insurance a {
  color: #edf3fb !important;
}

#new-patients .container,
#insurance .container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

#dr-vaghasia .specialist-img-wrapper {
  max-width: 420px;
  margin: 0;
}

#dr-vaghasia .specialist-img {
  filter: none !important;
  -webkit-filter: none !important;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 16px;
}

.service-card {
  border-radius: 18px !important;
  border: 1px solid #dce5f1 !important;
  box-shadow: 0 10px 24px rgba(18, 49, 95, 0.08) !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(18, 49, 95, 0.14) !important;
}

#telehealth {
  background: linear-gradient(140deg, #12315f 0%, #21487f 100%) !important;
}

#telehealth .section-desc,
#telehealth p,
#telehealth li,
#telehealth h2,
#telehealth h3 {
  color: #edf3fb !important;
}

.cta-box {
  border: 1px solid #d6dfec;
  box-shadow: 0 20px 40px rgba(18, 49, 95, 0.1);
}

#footer.footer,
footer#footer {
  background: #12315f !important;
  border-top: none !important;
}

#footer .footer-brand {
  width: 100%;
  justify-content: center;
}

#footer .footer-contact-info {
  text-align: center !important;
}

.footer-desc,
.footer-links a,
.copyright,
.footer-legal a,
#footer p,
#footer li,
#footer a {
  color: rgba(237, 243, 251, 0.92) !important;
}

.footer-heading,
.footer-brand,
#footer .logo-text {
  color: #ffffff !important;
}

@media (max-width: 991px) {
  .top-contact-bar {
    text-align: center;
  }

  .top-contact-items {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.65rem 0;
    font-size: 0.8rem;
    text-align: center;
  }

  .top-contact-address {
    text-align: center;
    width: 100%;
    justify-content: center;
  }

  .top-contact-right {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem 0.9rem;
  }

  .top-contact-item {
    justify-content: center;
    text-align: center;
  }

  .navbar-brand-text {
    font-size: 0.86rem;
    letter-spacing: 0.05em;
  }

  #about .container,
  #conditions .container,
  #dr-vaghasia .container,
  #new-patients .container,
  #location .container,
  #insurance .container {
    padding: 1.35rem;
    border-radius: 16px;
  }

  #dr-vaghasia .specialist-img-wrapper {
    max-width: 320px;
    margin-bottom: 0.75rem;
  }
}

/* ===== Alignment, overflow, and responsive layout ===== */
html {
  scroll-padding-top: 148px;
}

main section[id],
#contact {
  scroll-margin-top: 148px;
}

.navbar .container {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.navbar-brand {
  min-width: 0;
  max-width: min(100%, 28rem);
}

.navbar-brand img {
  max-height: 60px;
  width: auto;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.navbar-brand-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar-collapse {
  align-items: center;
}

.header-actions {
  flex-shrink: 0;
  align-items: center;
}

.header-actions .btn {
  white-space: nowrap;
  text-align: center;
}

.top-contact-item {
  min-width: 0;
}

#home .hero-label,
#home .hero-title,
#home .hero-desc,
#home .hero-buttons,
#home p {
  text-align: left !important;
}

#home .hero-desc,
#home p {
  max-width: 38rem;
  margin-left: 0;
  margin-right: 0;
}

#home .hero-buttons {
  justify-content: flex-start;
}

#home .hero-title {
  color: #12315f !important;
}

.hero-image-wrapper,
.hero-img {
  width: 100%;
}

.hero-img {
  height: auto;
  object-fit: cover;
  aspect-ratio: 1448 / 1086;
}

#about .service-card,
#conditions .service-card,
.service-card h3,
.service-card p,
.service-card li,
.service-title,
.service-desc,
.service-list {
  text-align: left !important;
}

#conditions .service-list li {
  color: #3f5472 !important;
}

#dr-vaghasia .doctor-profile-row {
  align-items: flex-start !important;
}

#dr-vaghasia .specialist-img-wrapper {
  max-width: 420px;
  margin: 0;
}

#dr-vaghasia .doctor-profile-copy,
#dr-vaghasia .doctor-profile-copy .section-title,
#dr-vaghasia .doctor-profile-copy .section-desc,
#dr-vaghasia .doctor-profile-copy p {
  text-align: left !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#dr-vaghasia .doctor-profile-copy .section-title {
  margin-bottom: 0.35rem;
}

#dr-vaghasia .doctor-profile-subtitle {
  font-weight: 600;
  color: #21487f !important;
  margin-bottom: 1.25rem !important;
}

#location h2,
#location .section-desc,
#location p,
#location h3,
#location .office-address {
  text-align: left !important;
  max-width: none !important;
  margin-left: 0 !important;
  font-style: normal;
}

#location iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 16px;
  background: #edf2fa;
}

#patient-portal h4,
#patient-portal p,
#patient-portal h6,
#healow-app h4,
#healow-app > .container > .row > .col-md-7 > p,
.step-block p,
.practice-code-left p {
  text-align: left !important;
}

#patient-tools {
  margin-left: auto;
  margin-right: auto;
}

#p-tools.nav-tabs {
  flex-wrap: wrap;
  gap: 0.35rem 0;
  border-bottom: 1px solid var(--mkt-border, #d6dfec);
}

#p-tools .nav-link {
  white-space: nowrap;
}

.cta-box p,
.cta-desc {
  text-align: center !important;
}

#telehealth .container,
#new-patients .container,
#insurance .container {
  max-width: 920px;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-brand-text {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    margin-left: 0.45rem;
  }

  .nav-link {
    padding: 0.45rem 0.55rem !important;
    font-size: 0.88rem;
  }

  .nav-separator {
    margin: 0 0.2rem;
  }

  .btn-header {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.82rem;
  }

  .header-actions {
    gap: 0.45rem;
  }
}

@media (max-width: 991px) {
  html,
  main section[id],
  #contact {
    scroll-padding-top: 128px;
    scroll-margin-top: 128px;
  }

  .navbar .container {
    flex-wrap: wrap;
  }

  #home .hero-label {
    display: table;
    margin-left: auto;
    margin-right: auto;
  }

  #home .hero-title,
  #home .hero-desc,
  #home .hero-buttons,
  #home p {
    text-align: center !important;
  }

  #home .hero-desc,
  #home p {
    margin-left: auto;
    margin-right: auto;
  }

  #home .hero-buttons {
    justify-content: center;
  }

  #dr-vaghasia .doctor-profile-copy,
  #dr-vaghasia .doctor-profile-copy .section-title,
  #dr-vaghasia .doctor-profile-copy .section-desc,
  #dr-vaghasia .doctor-profile-copy p {
    text-align: center !important;
  }

  #dr-vaghasia .specialist-img-wrapper {
    max-width: 320px;
    margin: 0 auto 0.75rem;
  }

  #location h2,
  #location .section-desc,
  #location p,
  #location h3,
  #location .office-address {
    text-align: center !important;
  }

  #patient-portal h4,
  #healow-app h4 {
    text-align: center !important;
  }
}

@media (max-width: 767px) {
  html,
  main section[id],
  #contact {
    scroll-padding-top: 118px;
    scroll-margin-top: 118px;
  }

  .top-contact-item {
    white-space: normal;
  }

  .cta-box {
    padding: 2.25rem 1.15rem;
    border-radius: 20px;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  #location iframe {
    height: 280px;
  }

  .practice-code-left {
    border-radius: 8px 8px 0 0 !important;
    justify-content: center !important;
  }

  .practice-code-left p {
    text-align: center !important;
    padding-left: 0;
  }

  .practice-code-right {
    border-left: 2px solid var(--mkt-primary-dark, #0d2447);
    border-top: none;
    border-radius: 0 0 8px 8px !important;
  }

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 575px) {
  .navbar-brand-text {
    font-size: 1.5rem;
    letter-spacing: 0.03em;
    white-space: normal;
    line-height: 1.2;
    max-width: 14.5rem;
  }

  .hero-section {
    padding-top: 2.5rem;
    padding-bottom: 2.75rem;
  }

  .hero-title {
    font-size: 1.6rem !important;
  }

  .hero-section .container,
  .services-section .container,
  .specialists-section .container,
  .insurance-section .container,
  .testimonials-section .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  #about .container,
  #conditions .container,
  #dr-vaghasia .container,
  #location .container {
    padding: 1.5rem 1.2rem !important;
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    width: auto;
    max-width: none;
  }

  .service-card {
    padding: 1.35rem;
  }

  .top-contact-bar .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
