/* ============================================================
   HEALTH PLUS — SHARED COMPONENTS
   Light clinical-luxury aesthetic (Premier Arts Dental inspired)
   ============================================================ */

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  border-radius: var(--btn-radius);
  position: relative;
  overflow: hidden;
  transition: background 0.25s ease, transform 0.2s ease,
              box-shadow 0.25s ease, color 0.2s ease,
              border-color 0.2s ease;
  white-space: nowrap;
  min-height: 48px;
  user-select: none;
  -webkit-user-select: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Primary — teal */
.btn-primary {
  background: var(--teal);
  color: #FFFFFF;
  border: none;
}

.btn-primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 6px 20px rgba(45,191,186,0.3);
  color: #FFFFFF;
}

/* Outline — navy border */
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: #FFFFFF;
  border-color: var(--navy);
}

/* WhatsApp */
.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  border: none;
  padding: 13px 24px;
}

.btn-whatsapp:hover {
  background: #1DA851;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}

/* Small variant */
.btn-sm {
  padding: 10px 20px;
  font-size: 13px;
  min-height: 40px;
}

/* ── Eyebrow Label ───────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.eyebrow::before,
.eyebrow::after {
  content: '';
  display: block;
  height: 1.5px;
  width: 20px;
  background: var(--teal);
  opacity: 0.6;
  flex-shrink: 0;
}

.eyebrow::after {
  display: none;
}

/* ── Section Wrapper ─────────────────────────────────────── */
.section {
  padding: var(--section-pad-y) var(--section-pad-x);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-full {
  padding: var(--section-pad-y) var(--section-pad-x);
  width: 100%;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ── Section Heading ─────────────────────────────────────── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 48px;
}

/* ── Card Base ───────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border-radius: var(--card-radius);
  border: 1px solid var(--border-light);
  transition: transform var(--duration-base) var(--ease-smooth),
              box-shadow var(--duration-base) var(--ease-smooth),
              border-color var(--duration-base) var(--ease-smooth);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--blue-mid);
}

/* ── Dividers ────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-mid), transparent);
  margin: 0 auto;
  max-width: 200px;
  opacity: 0.8;
}

.divider-full {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-mid), transparent);
  width: 100%;
}

/* ── Wave Background Divider ─────────────────────────────── */
.wave-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
  z-index: 1;
}

.wave-bg svg {
  display: block;
  width: 100%;
}

.wave-bg-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
  z-index: 1;
  transform: scaleY(-1);
}

.wave-bg-top svg {
  display: block;
  width: 100%;
}

/* ── Stat Block ──────────────────────────────────────────── */
.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  color: var(--navy);
  line-height: 1;
  display: block;
}

.stat-label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
  display: block;
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 16px;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--duration-fast) var(--ease-smooth);
}

.breadcrumb a:hover {
  color: var(--teal);
}

.breadcrumb-sep {
  color: var(--border-mid);
  opacity: 0.8;
}

.breadcrumb-current {
  color: var(--navy);
}

/* ── Category Tag ────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-light);
  border: 1px solid rgba(45,191,186,0.25);
  padding: 4px 10px;
  border-radius: 20px;
}

/* ── Pull Quote ──────────────────────────────────────────── */
.pull-quote {
  border-left: 3px solid var(--teal);
  padding: 12px 20px;
  margin: 24px 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  font-style: italic;
  color: var(--navy);
}

/* ── Stars ───────────────────────────────────────────────── */
.stars {
  display: flex;
  gap: 4px;
  color: #F5A623;
}

.star-icon {
  width: 16px;
  height: 16px;
  fill: #F5A623;
}

/* ── Map Pin Icon ────────────────────────────────────────── */
.icon-map-pin {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.5;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ── Section Page Hero (shared across inner pages) ───────── */
.page-hero {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: calc(var(--nav-height) + 60px) var(--section-pad-x) clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;
  background: var(--blue-pale);
}

/* Abstract wave decoration on page heroes */
.page-hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(45,191,186,0.1) 0%, rgba(27,79,138,0.05) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.page-hero-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-hero .section-title {
  color: var(--navy);
}

.page-hero .eyebrow {
  color: var(--teal);
}

/* ── Nav Logo Image ──────────────────────────────────────── */
.nav-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

/* ── Floating CTAs ───────────────────────────────────────── */
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

@keyframes call-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(45,191,186,0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(45,191,186,0); }
  100% { box-shadow: 0 0 0 0 rgba(45,191,186,0); }
}

.float-cta-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.wa-float,
.call-float {
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  color: white;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: transform var(--duration-fast) var(--ease-spring),
              box-shadow var(--duration-fast) var(--ease-smooth);
  white-space: nowrap;
}

.wa-float {
  background: #25D366;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  animation: wa-pulse 2s ease infinite 1s;
}

.call-float {
  background: var(--teal);
  box-shadow: 0 4px 20px rgba(45,191,186,0.3);
  animation: call-pulse 2s ease infinite;
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(37,211,102,0.45);
  color: white;
}

.call-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(45,191,186,0.4);
  color: white;
}

.wa-float svg,
.call-float svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Mobile: full-width double bar */
@media (max-width: 767px) {
  .float-cta-wrap {
    bottom: 0;
    right: 0;
    left: 0;
    flex-direction: row;
    gap: 0;
    box-shadow: 0 -2px 16px rgba(27,79,138,0.12);
  }

  .wa-float,
  .call-float {
    flex: 1;
    border-radius: 0;
    justify-content: center;
    padding: 14px 8px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
    font-size: 12px;
    animation: none;
    box-shadow: none;
    gap: 8px;
  }
}

/* ── Accordion ───────────────────────────────────────────── */
.accordion-item {
  border-bottom: 1px solid var(--border-light);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  transition: color var(--duration-fast) var(--ease-smooth);
  gap: 16px;
}

.accordion-trigger:hover {
  color: var(--teal);
}

.accordion-icon {
  width: 22px;
  height: 22px;
  border: 1px solid var(--border-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--duration-base) var(--ease-smooth),
              border-color var(--duration-base) var(--ease-smooth),
              background var(--duration-base) var(--ease-smooth);
}

.accordion-icon svg {
  width: 10px;
  height: 10px;
  stroke: var(--text-secondary);
  transition: transform var(--duration-base) var(--ease-smooth),
              stroke var(--duration-base) var(--ease-smooth);
}

.accordion-item.is-open .accordion-icon {
  background: var(--teal);
  border-color: var(--teal);
  transform: rotate(45deg);
}

.accordion-item.is-open .accordion-icon svg {
  stroke: white;
}

.accordion-item.is-open .accordion-trigger {
  color: var(--teal);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-out);
}

.accordion-item.is-open .accordion-body {
  max-height: 300px;
}

.accordion-content {
  padding-bottom: 20px;
  font-size: 15px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ── Button Ripple ───────────────────────────────────────── */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  width: 100px;
  height: 100px;
  margin-top: -50px;
  margin-left: -50px;
  transform: scale(0);
  animation: ripple-anim 0.55s ease-out forwards;
  pointer-events: none;
}

@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* ── Nav Scrolled State ──────────────────────────────────── */
#site-nav-inner.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(27,79,138,0.1);
}

/* ── Loader Sub Text ─────────────────────────────────────── */
.loader-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.loader-sub.show { opacity: 1; }

.loader-tooth-cross {
  stroke: var(--teal);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 0.4s ease 1s;
}

.loader-tooth-cross.show { opacity: 1; }
