/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ===== Theme ===== */
:root {
  --bg: #f4f5fb;
  --bg-elevated: #ffffff;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-strong: #1d4ed8;
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5f5;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.25);
}

/* ===== Typography ===== */
body {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: radial-gradient(circle at top, #e5edff, #f4f5fb);
  color: var(--text-main);
}

h1,
h2,
h3 {
  font-family: "Manrope", system-ui, sans-serif;
  margin: 0 0 0.4em;
  color: var(--text-main);
}

/* ===== Layout ===== */
main {
  padding-top: 64px; /* space for fixed header on mobile */
}

/* ===== Header / Nav ===== */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 16px;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(244, 245, 251, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(circle at 25% 0%, #ffffff, #c7d2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.4);
}

.brand-mark-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 30% 0%,
    var(--accent-strong),
    #1d4ed8
  );
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.7);
}

.brand-text {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-main);
}

/* Mobile nav toggle */
.nav-toggle {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: #e5edff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease, transform 0.18s ease;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle:active {
  transform: scale(0.97);
}

/* nav open state (icon only) */
body.nav-open .nav-toggle {
  background: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.5);
}

body.nav-open .nav-toggle span {
  background: #ffffff;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}
body.nav-open .nav-toggle span:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Nav menu */
.site-nav {
  position: fixed;
  inset-inline: 0;
  top: 64px;
  padding: 12px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(248, 250, 252, 0.98);
  border-bottom: 1px solid rgba(148, 163, 184, 0.45);

  /* hidden by default */
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 30;
}

body.nav-open .site-nav {
  transform: translateY(0%);
  opacity: 1;
  pointer-events: auto;
}


.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

/* HOVER: nav links are clickable → keep hover */
.site-nav a:hover {
  background: rgba(226, 232, 240, 0.9);
  color: var(--text-main);
}

.site-nav a.active {
  background: #111827;
  color: #e5e7eb;
}

/* nav overlay (tap outside to close) */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 20;
}
body.nav-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* ===== Hero (Home) ===== */
.hero {
  padding: 28px 16px 40px;
}

.hero--home {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-content h1 {
  font-size: 2.2rem;
  letter-spacing: -0.02em;
}

.hero-sub {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #e0ecff;
  color: var(--accent-strong);
  border: 1px solid rgba(129, 140, 248, 0.6);
  margin-bottom: 10px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Buttons (clickable → hover effects OK) */
.btn {
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #ffffff;
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 22px 45px rgba(37, 99, 235, 0.6);
}

.btn-ghost {
  background: #e5edff;
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: #dbeafe;
  border-color: var(--accent-strong);
}

.btn-wide {
  width: 100%;
}

/* hero metrics (non-clickable → no hover) */
.hero-metrics {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.metric-card {
  flex: 1;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 0 0, #e0ecff, #ffffff);
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.32);
}

.metric-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.metric-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}

/* hero phone visual */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-mock {
  width: 240px;
  padding: 12px;
  border-radius: 28px;
  background: radial-gradient(circle at 20% 0%, #dbeafe, #eff6ff);
  border: 1px solid #bfdbfe;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}

/* subtle float animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

.phone-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--text-muted);
}

.dot--green {
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

.phone-card {
  padding: 12px;
  border-radius: 18px;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.8);
  color: #e5e7eb;
}

.phone-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.phone-status-text {
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 6px 0 10px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #111827;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #a3e635);
}

.phone-list {
  margin: 0;
  padding-left: 16px;
  font-size: 0.8rem;
  color: #e5e7eb;
}

.phone-pill {
  margin-top: 10px;
  font-size: 0.75rem;
  color: #e0f2fe;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
}

/* ===== Generic section ===== */
.section {
  padding: 40px 16px;
}

.section-header {
  max-width: 640px;
  margin: 0 auto 24px;
  text-align: left;
}

.section-header h2,
.section-header h1 {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* basic grid */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* feature tiles (info-only → no hover animation) */
.tile {
  padding: 16px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top left, #e5edff, #ffffff);
  position: relative;
  overflow: hidden;
}

.tile-icon {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

/* Diagnose section + symptom chips (clickable) */
.section--diagnose {
  background: radial-gradient(circle at top, #e0ecff, #f9fafb);
}

.symptom-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.symptom-chip {
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-main);
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    border-color 0.12s ease, background 0.12s ease;
}

.symptom-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(148, 163, 184, 0.35);
  border-color: var(--accent-strong);
  background: #eff6ff;
}

.symptom-chip.active {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.55);
}

.diagnose-result {
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-subtle);
  padding: 14px;
  background: #ffffff;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== Home CTA (fixed: no blue-on-blue) ===== */
.section--cta .cta-card {
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  background: #ffffff;
  color: var(--text-main);
  text-align: left;
  box-shadow: 0 20px 45px rgba(148, 163, 184, 0.4);
  border: 1px solid var(--border-strong);
}

.section--cta .cta-card h2 {
  margin-bottom: 6px;
}

.section--cta .cta-card p {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--text-muted);
}

/* ===== Services page ===== */
.section--page-hero .section-header {
  text-align: left;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-inline: 16px;
}

/* filter chips (clickable → hover ok) */
.filter-chip {
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 6px 12px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    border-color 0.12s ease, background 0.12s ease;
}

.filter-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(148, 163, 184, 0.35);
  border-color: var(--accent-strong);
}

.filter-chip.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: rgba(37, 99, 235, 0.6);
}

.section--services-list {
  padding-top: 18px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* service cards (info only; no hover transforms) */
.service-card {
  padding: 16px 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 22px rgba(148, 163, 184, 0.18);
  position: relative;
  overflow: hidden;
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.service-header h2 {
  font-size: 1.05rem;
}

.service-price {
  font-size: 0.9rem;
  color: var(--accent-strong);
  font-weight: 600;
}

.service-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.service-list {
  margin: 10px 0 10px;
  padding-left: 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.service-link {
  font-size: 0.86rem;
  text-decoration: none;
  color: var(--accent-strong);
}

/* ===== Booking page ===== */
.section--booking {
  padding-top: 10px;
}

.booking-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.booking-form,
.booking-summary {
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 18px 16px 20px;
  box-shadow: 0 12px 24px rgba(148, 163, 184, 0.18);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

input,
textarea,
select {
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--text-main);
  padding: 9px 10px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.4);
}

.booking-summary h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.summary-line {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.summary-line span {
  color: var(--text-main);
  font-weight: 500;
}

.summary-note {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.summary-badge {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e0ecff;
  font-size: 0.8rem;
}

/* ===== Footer ===== */
.site-footer {
  padding: 24px 16px 30px;
  border-top: 1px solid #cbd5e1;
  background: #f8fafc;
  margin-top: 30px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
}

.footer-brand {
  margin-bottom: 12px;
}

.footer-logo {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-sub {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--accent-strong);
}

.footer-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ===== Scroll reveal (for sections/cards) ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Larger screens ===== */
@media (min-width: 768px) {
  .site-nav {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    flex-direction: row;
    background: transparent;
    border-bottom: none;
    padding: 0;
    gap: 16px;
  }

  .nav-overlay {
    display: none;
  }

  .nav-toggle {
    display: none;
  }
}

  .site-nav {
    position: static;
    transform: none;
    flex-direction: row;
    background: transparent;
    border-bottom: none;
    padding: 0;
    gap: 16px;
  }

  .site-nav a {
    font-size: 0.88rem;
    padding-inline: 12px;
  }

  .nav-overlay {
    display: none;
  }

  .hero--home {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }

  .hero {
    padding: 40px 32px 50px;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .section {
    padding-inline: 32px;
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .booking-layout {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  }

  .section--cta .cta-card {
    max-width: 640px;
    margin-inline: auto;
  }

  .hero-visual {
    justify-content: flex-end;
  }
/* === Layout reset / stabilization === */

/* make content centered and narrow enough on mobile */
main {
  max-width: 960px;
  margin: 0 auto;
}

/* generic section spacing – avoids weird stacking */
.section {
  padding: 32px 16px;
}

/* hero tweaks so it doesn’t blow up on small screens */
.hero {
  padding: 32px 16px 40px;
}

/* force full-width stacking on mobile for any grid-ish layouts */
@media (max-width: 767px) {
  .hero.hero--home {
    flex-direction: column;
  }

  .booking-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .services-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
