:root {
  --dark-navy: #003B5C;
  --medium-blue: #005A8C;
  --bright-blue: #008CBE;
  --light-grey: #D5E3E8;
  --white: #FFFFFF;
  --off-white: #F8FAFB;
  --off-white-elevated: #FCFDFE;
  --primary-pale: #EEF3F6;
  --text-light: #5A7A8C;
  --success: #28A745;
  --error: #DC3545;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow: 0 4px 20px rgba(0, 59, 92, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 59, 92, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --header-height: 72px;
  --top-bar-height: 40px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-navy);
  background: var(--off-white);
  padding-bottom: 80px;
}

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

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

a:hover {
  color: var(--medium-blue);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow {
  max-width: 760px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  text-decoration: none;
  background: none;
}

.btn--primary {
  background: var(--bright-blue);
  color: var(--white);
  border-color: var(--bright-blue);
}

.btn--primary:hover {
  background: var(--medium-blue);
  border-color: var(--medium-blue);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--bright-blue);
}

.btn--small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

/* Top bar */
.top-bar {
  background: var(--dark-navy);
  color: var(--white);
  font-size: 0.8rem;
  position: relative;
  z-index: 1001;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--top-bar-height);
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 6px;
  padding-bottom: 6px;
}

.top-bar__tagline {
  display: none;
}

.top-bar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-wrap: wrap;
}

.top-bar__badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.top-bar__phone {
  color: var(--white);
  font-weight: 500;
  white-space: nowrap;
}

.top-bar__phone:hover {
  color: var(--light-grey);
}

.top-bar__phone--desktop {
  display: none;
}

/* Header */
.header {
  background: var(--off-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark-navy);
  text-decoration: none;
}

.logo__icon {
  font-size: 1.8rem;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-family: var(--font-heading);
  padding-bottom: 5px;
}

.logo__text strong {
  font-size: 1.1rem;
  font-weight: 700;
}

.logo__text span {
  font-size: 0.75rem;
  color: var(--bright-blue);
  font-weight: 500;
}

.logo--footer .logo__text strong,
.logo--footer .logo__text span {
  color: var(--white);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark-navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: none;
  position: fixed;
  top: calc(var(--top-bar-height) + var(--header-height));
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--off-white);
  flex-direction: column;
  padding: 24px;
  gap: 4px;
  overflow-y: auto;
  z-index: 999;
}

.nav.is-open {
  display: flex;
}

.nav a,
.nav button.nav__cta {
  color: var(--dark-navy);
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--light-grey);
  width: 100%;
  text-align: left;
}

.nav button.nav__cta {
  border: none;
  border-bottom: 1px solid var(--light-grey);
  border-radius: var(--radius-sm);
  margin-top: 16px;
  text-align: center;
  width: 100%;
}

.nav a:hover,
.nav a:focus {
  color: var(--bright-blue);
}

.nav__cta {
  margin-top: 16px;
  text-align: center;
  border: none !important;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark-navy) 0%, var(--medium-blue) 50%, var(--bright-blue) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 59, 92, 0.55);
}

.hero__inner {
  display: grid;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 60px 0;
}

.hero__content {
  padding: 0 20px;
  color: var(--white);
  max-width: 620px;
}

.hero__media {
  padding: 0 20px;
}

.image-slider {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.image-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.image-slider__slide--active {
  opacity: 1;
  z-index: 1;
}

.image-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-slider__controls {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  pointer-events: none;
}

.image-slider__button {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--dark-navy);
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s, background 0.2s;
}

.image-slider__button:hover,
.image-slider__button:focus {
  transform: scale(1.05);
  background: var(--white);
}

.image-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.image-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
}

.image-slider__dot--active {
  background: var(--bright-blue);
  border-color: var(--white);
}

.hero__eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
  margin-bottom: 12px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero__sub {
  font-size: 1.05rem;
  opacity: 0.95;
  max-width: 540px;
  margin-bottom: 28px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero__badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__badges li {
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  backdrop-filter: blur(4px);
}

/* Stats */
.stats {
  background: var(--dark-navy);
  color: var(--white);
  padding: 40px 0;
  margin-top: -1px;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}

.stat__value {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--bright-blue);
  margin-bottom: 4px;
}

.stat__label {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section--alt {
  background: var(--primary-pale);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section__header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 12px;
}

.section__header p {
  color: var(--medium-blue);
  font-size: 1.05rem;
}

.rating-badge {
  display: inline-block;
  background: var(--light-grey);
  color: var(--dark-navy);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 8px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  background: var(--off-white-elevated);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.service-card__tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--light-grey);
  color: var(--dark-navy);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.service-card__icon {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-pale);
  border-radius: 24px;
  margin-bottom: 20px;
  overflow: hidden;
}

.service-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0;
  line-height: 1.3;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.feature {
  text-align: center;
  padding: 24px;
}

.feature__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.feature h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Doctor */
.doctor-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
  background: var(--off-white-elevated);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  max-width: 900px;
  margin: 0 auto;
}

.doctor-card__photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  flex-shrink: 0;
  border: 3px solid var(--light-grey);
  box-shadow: var(--shadow);
  background: var(--primary-pale);
}

.doctor-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.doctor-card__info h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.doctor-card__title {
  color: var(--bright-blue);
  font-weight: 600;
  margin-bottom: 16px;
}

.doctor-card__info > p {
  color: var(--text-light);
  margin-bottom: 16px;
}

.doctor-card__quals {
  list-style: none;
  margin-bottom: 24px;
}

.doctor-card__quals li {
  padding: 6px 0 6px 24px;
  position: relative;
  color: var(--text-light);
  font-size: 0.95rem;
}

.doctor-card__quals li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* Achievements */
.achievements {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}

.achievements__viewport {
  overflow: hidden;
  flex: 1;
}

.achievements__track {
  display: flex;
  transition: transform 0.4s ease;
}

.achievement-card {
  flex: 0 0 100%;
  min-width: 0;
  background: var(--off-white-elevated);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 32px;
  text-align: center;
}

.achievement-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: var(--primary-pale);
  border-radius: 50%;
  font-size: 2rem;
  margin-bottom: 20px;
}

.achievement-card__value {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--bright-blue);
  margin-bottom: 8px;
}

.achievement-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark-navy);
  margin-bottom: 12px;
}

.achievement-card__desc {
  color: var(--text-light);
  font-size: 0.95rem;
  max-width: 420px;
  margin: 0 auto;
}

.achievements__arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--dark-navy);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.achievements__arrow:hover,
.achievements__arrow:focus {
  transform: scale(1.05);
  background: var(--bright-blue);
  color: var(--white);
}

.achievements__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.achievements__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--bright-blue);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.achievements__dot--active {
  background: var(--bright-blue);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  text-align: center;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--bright-blue);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 50%;
  margin-bottom: 16px;
}

.step h3 {
  font-family: var(--font-heading);
  margin-bottom: 8px;
}

.step p {
  color: var(--text-light);
  font-size: 0.95rem;
  max-width: 280px;
  margin: 0 auto;
}

/* Appointment form (modal) */
.appointment-form {
  padding: 0;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.required {
  color: var(--error);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--light-grey);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark-navy);
  background: var(--off-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--bright-blue);
  box-shadow: 0 0 0 3px rgba(0, 140, 190, 0.15);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--error);
}

.form-disclaimer {
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 12px;
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.testimonial {
  background: var(--off-white-elevated);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  padding: 28px;
}

.testimonial__stars {
  color: #f5a623;
  font-size: 1.1rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial p {
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial footer strong {
  display: block;
  color: var(--dark-navy);
}

.testimonial footer span {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--off-white-elevated);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--bright-blue);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 20px 18px;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.contact-info__item {
  margin-bottom: 24px;
}

.contact-info__item h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--medium-blue);
}

.contact-info__item ul {
  list-style: none;
  color: var(--text-light);
}

.contact-info__item li {
  padding: 4px 0;
}

.contact-info__directions {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  border: 1px solid var(--light-grey);
  background: var(--light-grey);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

/* Footer */
.footer {
  background: var(--dark-navy);
  color: var(--white);
  padding: 48px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer__brand p {
  margin-top: 12px;
  opacity: 0.85;
  font-size: 0.95rem;
}

.footer__links h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer__links ul {
  list-style: none;
}

.footer__links li {
  margin-bottom: 8px;
}

.footer__links a,
.footer__links span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.footer__links a:hover {
  color: var(--light-grey);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 900;
}

.floating-cta__book {
  flex: 1;
  background: var(--bright-blue);
  color: var(--white);
  text-align: center;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
}

.floating-cta__book:hover {
  background: var(--medium-blue);
  color: var(--white);
}

.floating-cta__call {
  width: 52px;
  height: 52px;
  background: var(--dark-navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}

/* Desktop call modal */
.phone-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 59, 92, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.phone-modal.is-visible {
  opacity: 1;
  visibility: visible;
}

.phone-modal__box {
  background: var(--off-white-elevated);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  max-width: 360px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.phone-modal__box h3 {
  font-family: var(--font-heading);
  margin-bottom: 12px;
}

.phone-modal__number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bright-blue);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.phone-modal__close {
  background: var(--light-grey);
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  color: var(--dark-navy);
}

/* Appointment modal */
.appointment-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.appointment-modal.is-visible {
  opacity: 1;
  visibility: visible;
}

.appointment-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 59, 92, 0.55);
}

.appointment-modal__panel {
  position: relative;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--off-white-elevated);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 24px 20px 32px;
  box-shadow: var(--shadow-lg);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.appointment-modal.is-visible .appointment-modal__panel {
  transform: translateY(0);
}

.appointment-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--primary-pale);
  color: var(--dark-navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

.appointment-modal__close:hover {
  background: var(--light-grey);
}

.appointment-modal__header {
  padding-right: 48px;
  margin-bottom: 24px;
}

.appointment-modal__header h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--dark-navy);
}

.appointment-modal__header p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.appointment-modal__hours {
  font-size: 0.85rem !important;
  color: var(--medium-blue) !important;
}

.btn--outline-dark {
  background: transparent;
  color: var(--bright-blue);
  border-color: var(--bright-blue);
  margin-top: 12px;
}

.btn--outline-dark:hover {
  background: var(--bright-blue);
  color: var(--white);
}

.contact-info__book {
  display: inline-flex;
}

.footer__book-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  text-align: left;
}

.footer__book-link:hover {
  color: var(--light-grey);
}

@media (min-width: 768px) {
  .appointment-modal {
    align-items: center;
    padding: 20px;
  }

  .appointment-modal__panel {
    max-width: 520px;
    max-height: 90vh;
    border-radius: var(--radius);
    transform: translateY(16px) scale(0.98);
  }

  .appointment-modal.is-visible .appointment-modal__panel {
    transform: translateY(0) scale(1);
  }
}

/* Tablet+ */
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .testimonials {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }

  .top-bar__tagline {
    display: block;
  }

  .hero__inner {
    grid-template-columns: 1fr 1fr;
  }

  .top-bar__phone--mobile {
    display: none;
  }

  .top-bar__phone--desktop {
    display: inline;
  }

  .nav-toggle {
    display: none;
  }

  .nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 0;
    background: none;
    overflow: visible;
    gap: 4px;
  }

  .nav a,
  .nav button.nav__cta {
    width: auto;
    white-space: nowrap;
    text-align: center;
    padding: 8px 10px;
    border: none;
    font-size: 0.9rem;
  }

  .nav button.nav__cta {
    border-bottom: none;
    margin-top: 0;
    padding: 8px 16px;
  }

  .nav__cta {
    margin-left: 8px;
  }

  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .doctor-card {
    flex-direction: row;
    align-items: flex-start;
  }

  .doctor-card__photo {
    margin: 0;
  }

  .testimonials {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }

  .floating-cta {
    display: none;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* logos */
#firstLogo
{
  height: 50px; 
  width: auto;
  padding-top: 2px;
}

/* chatbot */

#chat-btn-wrapper {
  position: fixed;
  bottom: 80px;
  right: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  z-index: 900;
}

#chat-tooltip {
  max-width: 250px;
  background: rgba(255, 255, 255, 0.96);
  color: #003b5c;
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: left;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

#chat-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

#chat-tooltip.fadeout {
  opacity: 0;
  transform: translateY(8px);
}

#chat-btn {
  width: 52px;
  height: 52px;
  background: #185FA5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

#chat-popup {
  display: none;
  flex-direction: column;
  position: fixed;
  bottom: 140px;
  right: 24px;
  width: 320px;

  /* 
    Max height calculation:
    - 100vh = full screen height
    - 88px  = space below popup (above chat button)
    - 70px  = your navbar height
    - 16px  = breathing room gap below navbar
    Total subtracted: 174px
  */
  max-height: calc(100vh - 88px - 70px - 16px);

  background: white;
  border-radius: 16px;
  border: 0.5px solid #ddd;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  z-index: 900;        /* same as button, both below navbar */
  overflow: hidden;
  font-family: sans-serif;
}

#chat-header {
  background: #185FA5;
  color: white;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;      /* header never shrinks */
}

#chat-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

#chat-avatar {
  font-size: 20px;
}

#chat-name {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

#chat-status {
  font-size: 11px;
  opacity: 0.8;
  margin: 0;
}

#chat-close {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}

#chat-window {
  flex: 1;             /* takes all available space between header and input */
  overflow-y: auto;    /* scroll appears only when content overflows */
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f9f9f9;

  /* smooth scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

#chat-window::-webkit-scrollbar {
  width: 4px;
}

#chat-window::-webkit-scrollbar-track {
  background: transparent;
}

#chat-window::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.chat-msg {
  max-width: 80%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-line;
  word-wrap: break-word;
}

.bot {
  background: white;
  color: #111;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  border: 0.5px solid #eee;
}

.user {
  background: #185FA5;
  color: white;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

#chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px 0;
  background: #f9f9f9;
  flex-shrink: 0;
}

.chip {
  padding: 5px 11px;
  border-radius: 20px;
  border: 0.5px solid #ccc;
  background: white;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
}

.chip:hover {
  background: #f0f0f0;
}

#chat-input-row {
  display: flex;
  gap: 7px;
  padding: 10px 12px;
  background: white;
  border-top: 0.5px solid #eee;
  flex-shrink: 0;      /* input row never shrinks */
}

#chat-input {
  flex: 1;
  padding: 8px 11px;
  border-radius: 8px;
  border: 0.5px solid #ccc;
  font-size: 13px;
  outline: none;
}

#chat-send {
  padding: 8px 14px;
  background: #185FA5;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}

#chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== TREATMENT ARTICLE PAGE COMPONENTS =====
   Long-form educational treatment page (e.g. dental-implant.html).
   Different anatomy from the homepage; same brand tokens.
   All values reuse existing custom properties — no new colors or fonts. */

/* Reading column — narrower + more relaxed line-height for long-form reading */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Inner content block — vertical rhythm now comes from the .section band it sits in */
.article-section {
  padding: 0;
}

.article-section > h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 700;
  color: var(--dark-navy);
  text-align: left;
  line-height: 1.3;
  margin-bottom: 16px;
}

.article-section > p,
.article-section > ul:not([class]) li {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.article-section > p:last-child {
  margin-bottom: 0;
}

.article-section a {
  color: var(--bright-blue);
  font-weight: 600;
}

.article-lead {
  font-size: 1.1rem !important;
  color: var(--dark-navy) !important;
}

.section--flush-top {
  padding-top: 0;
}

/* Left-aligned heading for full-width bands (testimonials etc.) */
.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 24px;
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0 4px;
  font-size: 0.85rem;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: '/';
  color: var(--light-grey);
}

.breadcrumb a {
  color: var(--medium-blue);
  font-weight: 500;
}

.breadcrumb [aria-current="page"] {
  color: var(--text-light);
}

/* Compact article hero (not the homepage gradient hero) */
.article-hero {
  background: var(--primary-pale);
  border-bottom: 1px solid var(--light-grey);
}

.article-hero__inner {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 36px 20px 44px;
}

.article-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bright-blue);
  margin-bottom: 12px;
}

.article-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 700;
  color: var(--dark-navy);
  line-height: 1.15;
  margin-bottom: 14px;
}

.article-hero__subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 48ch;
}

.article-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.article-hero__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Why-it-matters concern list — card grid (error accent on icons only) */
.concern-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.concern-list__item {
  position: relative;
  padding: 22px 20px 20px 54px;
  background: var(--off-white-elevated);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text-light);
  line-height: 1.7;
}

.concern-list__item::before {
  content: '!';
  position: absolute;
  left: 18px;
  top: 22px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(220, 53, 69, 0.12);
  color: var(--error);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
}

.concern-list__item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--dark-navy);
}

/* Inline stat callout (single pull-quote stat, not a full band) */
.stat-callout {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  background: var(--primary-pale);
  border-left: 4px solid var(--bright-blue);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  margin: 8px 0;
}

.stat-callout__value {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--bright-blue);
  line-height: 1;
}

.stat-callout__text {
  flex: 1;
  min-width: 220px;
  color: var(--dark-navy);
  font-size: 1rem;
  line-height: 1.5;
}

/* Comparison table */
.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--light-grey);
}

.pros-cons-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 480px;
}

.pros-cons-table thead th {
  background: var(--dark-navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: left;
  padding: 14px 16px;
}

.pros-cons-table tbody th,
.pros-cons-table th[scope="row"] {
  background: var(--primary-pale);
  color: var(--dark-navy);
  font-family: var(--font-body);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.pros-cons-table td,
.pros-cons-table th {
  padding: 14px 16px;
  border-top: 1px solid var(--light-grey);
  vertical-align: top;
  color: var(--text-light);
  line-height: 1.6;
}

.pros-cons-table__recommended {
  border-left: 3px solid var(--bright-blue);
  background: rgba(0, 140, 190, 0.04);
}

.pros-cons-table thead .pros-cons-table__recommended {
  background: var(--medium-blue);
}

/* Benefits checklist — card grid */
.benefit-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.benefit-list__item {
  position: relative;
  padding: 22px 20px 20px 54px;
  background: var(--off-white-elevated);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text-light);
  line-height: 1.7;
}

.benefit-list__item::before {
  content: '✓';
  position: absolute;
  left: 18px;
  top: 20px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(40, 167, 69, 0.12);
  color: var(--success);
  font-weight: 700;
  font-size: 1rem;
}

.benefit-list__item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--dark-navy);
}

/* Procedure walkthrough — stacked stages with numbered badge */
.procedure-stage {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--light-grey);
}

.procedure-stage:first-of-type {
  border-top: none;
  padding-top: 4px;
}

.procedure-stage__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--bright-blue);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.procedure-stage__body h3 {
  font-family: var(--font-heading);
  color: var(--dark-navy);
  font-size: 1.2rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.procedure-stage__body p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

.procedure-stage__body p:last-child {
  margin-bottom: 0;
}

/* Aftercare list — calmer bright-blue dot markers */
.aftercare-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.aftercare-list__item {
  position: relative;
  padding: 12px 18px 12px 44px;
  background: var(--off-white-elevated);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  line-height: 1.7;
}

.aftercare-list__item::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bright-blue);
}

.aftercare-list__item strong {
  color: var(--dark-navy);
}

/* Cost card — dark contrast block on the otherwise light page */
.cost-card {
  background: var(--dark-navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  max-width: 760px;
  margin: 0 auto;
}

.cost-card h2 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  margin-bottom: 10px;
}

.cost-card__price {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  margin: 6px 0 12px;
}

.cost-card__price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--light-grey);
}

.cost-card p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 16px;
}

.cost-card__note {
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

.cost-card .btn {
  margin-top: 4px;
}

/* Reviewed-by credibility badge */
.reviewed-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-pale);
  border: 1px solid var(--light-grey);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.4;
}

.reviewed-badge__icon {
  color: var(--success);
  font-weight: 700;
}

.reviewed-badge strong {
  color: var(--dark-navy);
  font-weight: 600;
}

/* Closing CTA band */
.closing-cta {
  background: var(--primary-pale);
  border-radius: var(--radius);
  text-align: center;
  padding: 48px 24px;
  max-width: 760px;
  margin: 0 auto;
}

.closing-cta h2 {
  font-family: var(--font-heading);
  color: var(--dark-navy);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 12px;
}

.closing-cta p {
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.closing-cta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Uniform button size across the hero and closing CTA groups */
.article-hero__cta .btn,
.closing-cta__actions .btn {
  min-width: 230px;
  max-width: 100%;
}

/* Image + text split rows (what-is-it, aftercare) */
.media-text {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}

/* Prevent grid children from overflowing their track on small screens */
.media-text__media,
.media-text__body {
  min-width: 0;
}

.media-text__media img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.media-text__body > p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.media-text__body > p:last-child {
  margin-bottom: 0;
}

/* Procedure video embed placeholder */
.procedure-video {
  margin: 4px 0 28px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--dark-navy);
  aspect-ratio: 16 / 9;
}

.procedure-video video,
.procedure-video iframe,
.procedure-video__player {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover;
}

.procedure-video__caption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
}

@media (min-width: 640px) {
  .concern-list,
  .benefit-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .article-hero__inner {
    grid-template-columns: 3fr 2fr;
    padding: 52px 20px 60px;
  }

  .media-text {
    grid-template-columns: 1fr 1fr;
    gap: 44px;
  }

  /* Image sits further to the left with a wider gap before the text */
  .media-text--spaced {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
    align-items: start;
  }

  .media-text--reverse .media-text__media {
    order: 2;
  }
}

/* Mobile only (phones): in image/video sections show the heading first,
   then the image/video, then the text content / buttons.
   Tablet and laptop layouts (>=768px) are left unchanged. */
@media (max-width: 767.98px) {
  /* Article hero: eyebrow + title, then image, then subtitle + buttons */
  .article-hero__inner {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .article-hero__content {
    display: contents;
  }

  .article-hero__eyebrow {
    order: 1;
  }

  .article-hero__title {
    order: 2;
  }

  .article-hero__media {
    order: 3;
    margin-bottom: 24px;
  }

  .article-hero__subtitle {
    order: 4;
  }

  .article-hero__cta {
    order: 5;
  }

  /* Media + text rows (what-is-it, aftercare): heading, then image, then text */
  .media-text {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .media-text__body {
    display: contents;
  }

  .media-text .section-heading {
    order: 1;
  }

  .media-text__media {
    order: 2;
    margin-bottom: 20px;
  }

  .media-text__body > * {
    order: 3;
  }
}

/* ——— Promotional pop-up (random image on page load) ——— */
.promo-popup {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.7);;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.promo-popup.is-visible {
  opacity: 1;
  visibility: visible;
}

.promo-popup__box {
  position: relative;
  width: 100%;
  max-width: 460px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.promo-popup.is-visible .promo-popup__box {
  transform: scale(1);
}

.promo-popup__link {
  display: block;
}

.promo-popup__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.promo-popup__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--off-white-elevated);
  color: var(--dark-navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: background 0.2s ease, transform 0.2s ease;
}

.promo-popup__close:hover {
  background: var(--primary-pale);
  transform: scale(1.05);
}

@media (max-width: 767.98px) {
  .promo-popup {
    padding: 20px;
  }

  .promo-popup__box {
    max-width: 340px;
  }

  .promo-popup__close {
    top: -10px;
    right: -10px;
  }
}

/* ——— WhatsApp floating widget (sits above the AI chat widget) ——— */
#whatsapp-btn-wrapper {
  position: fixed;
  bottom: 142px;
  right: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  z-index: 900;
}

#whatsapp-tooltip {
  max-width: 250px;
  background: rgba(255, 255, 255, 0.96);
  color: #003b5c;
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: left;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

#whatsapp-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

#whatsapp-tooltip.fadeout {
  opacity: 0;
  transform: translateY(8px);
}

#whatsapp-btn {
  width: 52px;
  height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, transform 0.2s ease;
}

#whatsapp-btn:hover {
  background: #1ebe5d;
  transform: scale(1.05);
}
