/* ============================================================
   MediPain Center – styles.css
   Dr. Alireza Soltanzadeh | Kronik Ağrı Yönetimi
   ============================================================ */

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #0a3366;
  --primary-dark:  #071f42;
  --secondary:     #1d3261;
  --accent:        #00bde0;
  --accent-dim:    rgba(0, 189, 224, 0.12);
  --accent-glow:   rgba(0, 189, 224, 0.35);
  --text:          #18243a;
  --text-muted:    #5a6b82;
  --bg:            #ffffff;
  --bg-alt:        #f5f8fc;
  --border:        #e0e8f2;
  --radius:        18px;
  --radius-sm:     12px;
  --shadow-sm:     0 2px 14px rgba(10, 51, 102, 0.07);
  --shadow-md:     0 8px 32px rgba(10, 51, 102, 0.12);
  --shadow-lg:     0 20px 56px rgba(10, 51, 102, 0.16);
  --trans:         0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-head:     'Lora', Georgia, 'Times New Roman', serif;}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

/* --- Layout ------------------------------------------------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

/* --- Typography --------------------------------------------- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  padding: 5px 14px;
  background: var(--accent-dim);
  border-radius: 50px;
  border: 1px solid rgba(0, 189, 224, 0.22);
}

.section-header { text-align: center; margin-bottom: 60px; }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.75;
}

/* --- Buttons ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--trans);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 22px var(--accent-glow);
}

.btn-primary:hover {
  background: #00a8cc;
  border-color: #00a8cc;
  box-shadow: 0 6px 32px rgba(0, 189, 224, 0.52);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.36);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.65);
  transform: translateY(-2px);
}

/* CTA pulse ring */
@keyframes pulse-ring {
  0%   { box-shadow: 0 4px 22px var(--accent-glow), 0 0 0 0 rgba(0, 189, 224, 0.42); }
  65%  { box-shadow: 0 4px 22px var(--accent-glow), 0 0 0 18px rgba(0, 189, 224, 0); }
  100% { box-shadow: 0 4px 22px var(--accent-glow), 0 0 0 0   rgba(0, 189, 224, 0); }
}

.btn-pulse { animation: pulse-ring 2.6s ease-in-out infinite; }
.btn-pulse:hover { animation: none; }

/* --- Scroll Reveal ------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 18px 0;
  transition: all var(--trans);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand { display: flex; flex-direction: column; gap: 1px; }

.brand-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  transition: color var(--trans);
}

.brand-sub {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color var(--trans);
}

.navbar.scrolled .brand-name { color: var(--primary); }
.navbar.scrolled .brand-sub  { color: var(--text-muted); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  transition: all var(--trans);
}

.nav-links a:not(.nav-cta):hover {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.navbar.scrolled .nav-links a:not(.nav-cta) { color: var(--text-muted); }
.navbar.scrolled .nav-links a:not(.nav-cta):hover { background: var(--bg-alt); color: var(--primary); }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 10px 22px !important;
  font-weight: 600 !important;
  box-shadow: 0 3px 16px var(--accent-glow);
}

.nav-cta:hover { background: #00a8cc !important; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--trans);
}

.navbar.scrolled .nav-toggle span { background: var(--primary); }

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  padding-bottom: 0;
  background: linear-gradient(140deg, var(--primary) 0%, var(--secondary) 55%, #152c5e 100%);
  overflow: clip; /* clips orbs without trapping content in a scroll container */
}

/* Animated gradient orbs — Option C interactive touch */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.hero-orb--1 {
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(0, 189, 224, 0.28) 0%, transparent 68%);
  top: -18%;
  right: -8%;
  animation: orb-drift 14s ease-in-out infinite;
}

.hero-orb--2 {
  width: 38vw;
  height: 38vw;
  background: radial-gradient(circle, rgba(26, 90, 160, 0.38) 0%, transparent 68%);
  bottom: 8%;
  left: -6%;
  animation: orb-drift 18s ease-in-out infinite reverse;
}

.hero-orb--3 {
  width: 26vw;
  height: 26vw;
  background: radial-gradient(circle, rgba(0, 189, 224, 0.14) 0%, transparent 68%);
  top: 40%;
  left: 40%;
  animation: orb-drift 22s ease-in-out 4s infinite;
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(3%, 6%) scale(1.06); }
  66%       { transform: translate(-2%, -4%) scale(0.96); }
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Particle elements injected by JS */
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 189, 224, 0.2);
  animation: particle-float linear infinite;
}

@keyframes particle-float {
  0%   { transform: translateY(0) scale(1);   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-100vh) scale(0.6); opacity: 0; }
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 72px;
  align-items: center;
  padding-bottom: 80px;
}

.hero-label {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding: 6px 16px;
  background: rgba(0, 189, 224, 0.1);
  border: 1px solid rgba(0, 189, 224, 0.28);
  border-radius: 50px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
  display: block;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 490px;
  line-height: 1.78;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-item strong {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.trust-item span {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.58);
}

.trust-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

/* Doctor Photo */
.hero-photo { position: relative; }

.photo-frame {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 189, 224, 0.25);
  border-radius: 24px;
  overflow: visible;
  aspect-ratio: 3 / 4;
  max-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* When real doctor photo is added — it goes here */
.doctor-photo-img {
  width: 100%;
  height: 105%;
  object-fit: cover;
  border-radius: 24px;
  image-rendering: auto;
}

.photo-placeholder {
  text-align: center;
  padding: 2rem;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.doctor-icon {
  width: 150px;
  height: 220px;
  opacity: 0.75;
}

.placeholder-name {
  font-family: var(--font-head);
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
  margin-top: 1.25rem;
  line-height: 1.3;
}

.placeholder-hint {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
}

.photo-badge {
  position: absolute;
  bottom: 24px;
  right: -18px;
  background: var(--accent);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 20px rgba(0, 189, 224, 0.45);
  white-space: nowrap;
  z-index: 4;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;   /* below hero content (z-index 2), above raw gradient */
  line-height: 0;
  pointer-events: none;
}

.hero-wave svg {
  width: 100%;
  height: 72px;
  display: block;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 72px;
  align-items: start;
}

.about-text .section-label { margin-bottom: 0.6rem; }
.about-text .section-title { text-align: left; margin-bottom: 1.5rem; }

.about-lead {
  font-family: var(--font-head);
  font-size: 1.22rem;
  color: var(--primary);
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.82;
  margin-bottom: 1rem;
}

.about-text p strong {
  color: var(--primary);
  font-weight: 600;
}

.about-credentials {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cred-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: all var(--trans);
}

.cred-card:hover {
  border-color: rgba(0, 189, 224, 0.4);
  box-shadow: var(--shadow-md);
  transform: translateX(5px);
}

.cred-icon { width: 46px; height: 46px; flex-shrink: 0; }
.cred-icon svg { width: 100%; height: 100%; }

.cred-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cred-text strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
}

.cred-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   CONDITIONS — 3D Tilt Cards (Interactive Touch)
   ============================================================ */
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

/* Row 1: cards 1–3, each span 2 of 6 cols */
.cond-card { grid-column: span 2; }

/* Row 2: cards 4–5 centered (cols 2–3 and 4–5, 1-col gap each side) */
.cond-card:nth-child(4) { grid-column: 2 / span 2; }
.cond-card:nth-child(5) { grid-column: 4 / span 2; }

.cond-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px 30px;
  cursor: default;
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow var(--trans), border-color var(--trans);
  overflow: hidden;
}

/* Top accent line */
.cond-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--trans);
}

.cond-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(0, 189, 224, 0.2); }
.cond-card:hover::before { opacity: 1; }

/* Featured cards */
.cond-featured {
  background: linear-gradient(138deg, var(--primary) 0%, var(--secondary) 100%);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.cond-featured::before { opacity: 1; background: var(--accent); height: 3px; }
.cond-featured:hover { box-shadow: var(--shadow-lg); }

.cond-tag {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 189, 224, 0.14);
  border: 1px solid rgba(0, 189, 224, 0.25);
  padding: 4px 11px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.cond-icon { width: 52px; height: 52px; margin-bottom: 18px; }
.cond-icon svg { width: 100%; height: 100%; }

.cond-card h3 {
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.cond-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Featured text colors */
.cond-featured h3 { color: #fff; }
.cond-featured p  { color: rgba(255, 255, 255, 0.72); }

/* Override icon strokes on featured cards */
.cond-featured .cond-icon svg path,
.cond-featured .cond-icon svg ellipse,
.cond-featured .cond-icon svg line,
.cond-featured .cond-icon svg circle,
.cond-featured .cond-icon svg polygon {
  stroke: #00bde0;
}

/* ============================================================
   PHILOSOPHY
   ============================================================ */
.philosophy {
  background: var(--primary);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.philosophy-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 100% at 90% 50%, rgba(0, 189, 224, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(0, 100, 180, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.philosophy-inner {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: start;
}

.philosophy-quote {
  font-family: var(--font-head);
  font-size: 9rem;
  line-height: 0.75;
  color: rgba(0, 189, 224, 0.22);
  font-style: italic;
  user-select: none;
  pointer-events: none;
  margin-top: 0.2rem;
}

.philosophy-content .section-label { color: var(--accent); }
.philosophy-content .section-title { color: #fff; text-align: left; }

.philosophy-lead {
  font-family: var(--font-head);
  font-size: 1.18rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.72;
  margin-bottom: 1.25rem;
}

.philosophy-body {
  color: rgba(255, 255, 255, 0.68);
  font-size: 1rem;
  line-height: 1.82;
  margin-bottom: 2.25rem;
}

.philosophy-pillars {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}

.pillar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.pillar-icon { width: 28px; height: 28px; flex-shrink: 0; }
.pillar-icon svg { width: 100%; height: 100%; }

/* ============================================================
   CLINIC INFO
   ============================================================ */
.clinic-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 52px;
  align-items: start;
}

.clinic-info { display: flex; flex-direction: column; }

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.info-card:first-child { border-top: 1px solid var(--border); }

.info-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.info-icon svg { width: 22px; height: 22px; }

.info-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.info-text strong {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 2px;
}

.info-text span {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.info-text em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 2px;
}

.hours {
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  font-family: var(--font-head);
  line-height: 1.2 !important;
  margin-top: 2px;
}

.phone-link {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--primary);
  transition: color var(--trans);
}

.phone-link:hover { color: var(--accent); }

.clinic-cta { margin-top: 1.5rem; width: 100%; justify-content: center; }

.map-wrap {
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.72);
  padding-top: 72px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 0.86rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.52);
  margin-bottom: 12px;
}

.footer-website {
  font-size: 0.84rem;
  color: var(--accent);
  transition: opacity var(--trans);
}

.footer-website:hover { opacity: 0.75; }

.footer-nav h4,
.footer-contact-block h4,
.footer-social-block h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 18px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.68);
  transition: color var(--trans);
}

.footer-nav a:hover { color: var(--accent); }

.footer-contact-block p {
  font-size: 0.86rem;
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer-contact-block a {
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  transition: opacity var(--trans);
}

.footer-contact-block a:hover { opacity: 0.8; }

.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.86rem;
  font-weight: 500;
  transition: all var(--trans);
}

.social-links a:hover {
  background: rgba(0, 189, 224, 0.12);
  border-color: rgba(0, 189, 224, 0.35);
  color: var(--accent);
  transform: translateX(4px);
}

.social-links svg { width: 18px; height: 18px; flex-shrink: 0; }

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.28);
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
@keyframes wa-pulse {
  0%, 100% {
    box-shadow: 0 4px 22px rgba(37, 211, 102, 0.55),
                0 0 0 0 rgba(37, 211, 102, 0.45);
  }
  60% {
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.65),
                0 0 0 14px rgba(37, 211, 102, 0);
  }
}

.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 800;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 22px rgba(37, 211, 102, 0.55);
  animation: wa-pulse 3s ease-in-out infinite;
  transition: transform var(--trans), background var(--trans);
}

.wa-float:hover {
  background: #1eb356;
  transform: scale(1.1) translateY(-4px);
  animation: none;
  box-shadow: 0 8px 36px rgba(37, 211, 102, 0.65);
}

.wa-float svg { width: 32px; height: 32px; }

.wa-tooltip {
  position: absolute;
  right: 72px;
  background: rgba(15, 28, 50, 0.88);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: all var(--trans);
  backdrop-filter: blur(8px);
}

.wa-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: rgba(15, 28, 50, 0.88);
}

.wa-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 1024px) {
  .container { padding-left: 24px; padding-right: 24px; }
  .section { padding: 80px 0; }

  .hero-container {
    grid-template-columns: 1fr 340px;
    gap: 48px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .about-credentials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* Conditions: 2+2+1 on tablet */
  .conditions-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .cond-card           { grid-column: span 2; }
  .cond-card:nth-child(4) { grid-column: span 2; }
  .cond-card:nth-child(5) { grid-column: 2 / span 2; }

  .philosophy-inner {
    grid-template-columns: 80px 1fr;
    gap: 24px;
  }

  .philosophy-quote { font-size: 7rem; }

  .clinic-grid { grid-template-columns: 1fr; }
  .map-wrap { height: 340px; }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-header { margin-bottom: 44px; }

  /* Mobile nav */
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 1000;
  }

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

  .nav-links a {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 12px 28px !important;
    width: 100%;
    text-align: center;
  }

  .nav-links a:not(.nav-cta):hover { background: rgba(255,255,255,0.1) !important; }
  .nav-cta { margin-top: 8px !important; }

  /* Hero: top-align + clip. Padding-bottom (100px) ensures trust bar
     sits well above the wave inside the hero's own height, so clip
     won't cut it. Orbs are contained, no horizontal scroll. */
  .hero {
    align-items: flex-start;
    overflow: clip;
  }

  /* Hero stacked */
  .hero-container {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
    padding-top: 24px;
    padding-bottom: 100px; /* clear the wave */
  }

  .hero-photo {
    order: -1;
    max-width: 260px;
    margin: 0 auto;
  }

  .photo-frame { max-height: 300px; }
  .photo-badge { right: -10px; bottom: 16px; }

  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }

  /* Trust bar: 3-column grid, each item in its own cell */
  .hero-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    position: relative;
    z-index: 10; /* paint above the wave regardless of stacking quirks */
  }

  .trust-divider { display: none; }

  .trust-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    padding: 10px 10px 12px;
    align-items: center;
    text-align: center;
  }

  .trust-item strong { font-size: 0.82rem; }
  .trust-item span   { font-size: 0.68rem; }

  /* Conditions: single column */
  .conditions-grid { grid-template-columns: 1fr; }
  .cond-card,
  .cond-card:nth-child(4),
  .cond-card:nth-child(5) { grid-column: 1 / -1; }

  /* Philosophy */
  .philosophy-inner { grid-template-columns: 1fr; }
  .philosophy-quote { display: none; }

  /* Credentials: single col */
  .about-credentials { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }

  /* WhatsApp */
  .wa-float { bottom: 20px; right: 20px; width: 54px; height: 54px; }
  .wa-float svg { width: 28px; height: 28px; }
}

@media (max-width: 480px) {
  .container { padding-left: 16px; padding-right: 16px; }

  .hero-title { font-size: 2.2rem; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn { justify-content: center; }

  .philosophy-pillars { gap: 18px; }

  .btn { padding: 13px 22px; font-size: 0.9rem; }
}

/* ============================================================
   APPOINTMENT FORM SECTION
   ============================================================ */

.appt-section {
  background: linear-gradient(148deg, #071f42 0%, var(--primary) 50%, var(--secondary) 100%);
  position: relative;
  overflow: hidden;
}

.appt-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 80% at 100% 20%, rgba(0,189,224,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 0% 80%,  rgba(0,100,180,0.09) 0%, transparent 55%);
  pointer-events: none;
}

.appt-container {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 72px;
  align-items: center;
}

/* Left column */
.appt-text .section-label { margin-bottom: 0.75rem; }
.appt-text .section-title { text-align: left; margin-bottom: 1.2rem; }

.appt-lead {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.78;
  margin-bottom: 2rem;
}

.appt-info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.appt-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}

.appt-info-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Form card */
.appt-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(0,189,224,0.18);
  border-radius: var(--radius);
  padding: 44px 40px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Form layout */
.appt-form { display: flex; flex-direction: column; gap: 22px; }

.appt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* Field */
.appt-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.appt-field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.req { color: var(--accent); }

/* Input wrapper (icon + input) */
.appt-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.appt-field-icon {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: rgba(255,255,255,0.35);
  pointer-events: none;
  flex-shrink: 0;
}

.appt-input-wrap input,
.appt-input-wrap select {
  width: 100%;
  padding: 13px 16px 13px 42px;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
}

.appt-input-wrap input::placeholder { color: rgba(255,255,255,0.3); }

/* Date input color fix */
.appt-input-wrap input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7) sepia(1) saturate(3) hue-rotate(160deg);
  cursor: pointer;
  opacity: 0.6;
}

.appt-input-wrap input:focus,
.appt-input-wrap select:focus {
  border-color: var(--accent);
  background: rgba(0,189,224,0.07);
  box-shadow: 0 0 0 3px rgba(0,189,224,0.15);
}

.appt-input-wrap input:focus ~ .appt-field-icon,
.appt-input-wrap select:focus ~ .appt-field-icon { color: var(--accent); }

/* Select chevron */
.appt-select-wrap { position: relative; }

.appt-chevron {
  position: absolute;
  right: 14px;
  width: 16px;
  height: 16px;
  color: rgba(255,255,255,0.4);
  pointer-events: none;
}

.appt-select-wrap select { padding-right: 38px; }
.appt-select-wrap select option { background: var(--primary); color: #fff; }

/* Validation error state */
.appt-field.has-error .appt-input-wrap input,
.appt-field.has-error .appt-input-wrap select {
  border-color: #ff6b7a;
  box-shadow: 0 0 0 3px rgba(255,107,122,0.15);
}

.appt-error {
  font-size: 0.74rem;
  color: #ff8a95;
  display: none;
}

.appt-field.has-error .appt-error { display: block; }

/* Submit button */
.appt-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--trans);
  box-shadow: 0 4px 22px rgba(37,211,102,0.4);
  margin-top: 4px;
}

.appt-submit:hover {
  background: #1eb356;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,211,102,0.55);
}

.appt-submit:active { transform: translateY(0); }

.appt-note {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
  text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .appt-container { grid-template-columns: 1fr; gap: 48px; }
  .appt-text .section-title { text-align: center; }
  .appt-text .section-label { display: block; text-align: center; }
  .appt-lead { text-align: center; }
  .appt-info-list { align-items: center; }
  .appt-card { padding: 36px 32px; }
}

@media (max-width: 600px) {
  .appt-row { grid-template-columns: 1fr; }
  .appt-card { padding: 28px 20px; }
}

/* ============================================================
   BODY MAP SECTION
   ============================================================ */

/* --- Section shell ----------------------------------------- */
.bm-section {
  background: linear-gradient(140deg, var(--primary) 0%, var(--secondary) 55%, #152c5e 100%);
  position: relative;
  overflow: hidden;
}

.bm-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 15% 60%, rgba(0,189,224,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 85% 30%, rgba(0,100,180,0.1) 0%, transparent 60%);
  pointer-events: none;
}

/* --- Desktop two-column layout ----------------------------- */
.bm-desktop {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: center;
}

/* --- SVG figure -------------------------------------------- */
.bm-figure-wrap {
  display: flex;
  justify-content: center;
}

.bm-svg {
  width: 100%;
  max-width: 280px;
  height: auto;
  cursor: default;
  filter: drop-shadow(0 0 40px rgba(0,189,224,0.08));
}

/* Body part fills */
.bm-part {
  fill: rgba(255,255,255,0.07);
  stroke: rgba(0,189,224,0.28);
  stroke-width: 1.2;
  transition: fill 0.35s ease, stroke 0.35s ease;
}

/* Active body region */
.bm-part.bm-active {
  fill: rgba(0,189,224,0.13);
  stroke: rgba(0,189,224,0.65);
  stroke-width: 1.5;
}

/* Spine vertebrae */
.bm-spine ellipse {
  fill: rgba(0,189,224,0.2);
  stroke: rgba(0,189,224,0.4);
  stroke-width: 0.8;
}

/* --- Hotspot dots ------------------------------------------ */
.bm-hotspot {
  cursor: pointer;
  outline: none;
}

.bm-hotspot:focus-visible .bm-hs-ring {
  stroke: #fff;
  stroke-width: 2;
}

.bm-hs-pulse {
  fill: none;
  stroke: #00bde0;
  stroke-width: 1;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation: bm-hs-pulse 2.6s ease-out infinite;
}

.bm-hs-ring {
  fill: none;
  stroke: #00bde0;
  stroke-width: 1.5;
  opacity: 0.45;
  transition: opacity 0.25s ease, r 0.25s ease;
}

.bm-hs-dot {
  fill: #00bde0;
  opacity: 0.85;
  transition: opacity 0.25s ease, r 0.25s ease;
}

.bm-hotspot:hover .bm-hs-dot,
.bm-hotspot.bm-active .bm-hs-dot {
  opacity: 1;
}

.bm-hotspot.bm-active .bm-hs-ring {
  opacity: 0.8;
}

.bm-hotspot.bm-active .bm-hs-pulse {
  animation-duration: 1.8s;
  opacity: 0; /* animation handles opacity */
}

@keyframes bm-hs-pulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  80%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Stagger pulse per hotspot */
.bm-hotspot:nth-child(2) .bm-hs-pulse { animation-delay: 0.6s; }
.bm-hotspot:nth-child(3) .bm-hs-pulse { animation-delay: 1.2s; }
.bm-hotspot:nth-child(4) .bm-hs-pulse { animation-delay: 1.8s; }

/* --- Info panel -------------------------------------------- */
.bm-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(0,189,224,0.2);
  border-radius: var(--radius);
  padding: 44px 40px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bm-panel-idle {
  text-align: center;
  color: rgba(255,255,255,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.bm-idle-icon {
  width: 64px;
  height: 64px;
  opacity: 0.6;
}

.bm-panel-idle p {
  font-size: 0.92rem;
  line-height: 1.6;
}

.bm-panel-content {
  display: none;
  animation: bm-panel-in 0.4s cubic-bezier(0.4,0,0.2,1);
}

.bm-panel-content.visible {
  display: block;
}

@keyframes bm-panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bm-panel-region-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0,189,224,0.1);
  border: 1px solid rgba(0,189,224,0.22);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.bm-panel-title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.9rem;
}

.bm-panel-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.bm-cond-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 2rem;
}

.bm-cond-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.bm-cond-item:hover {
  background: rgba(0,189,224,0.1);
  border-color: rgba(0,189,224,0.28);
}

.bm-cond-item.priority {
  border-left: 3px solid var(--accent);
}

.bm-cond-check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--accent);
}

.bm-cond-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
}

.bm-cond-text span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

.bm-panel-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background: var(--accent);
  color: #fff;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--trans);
  box-shadow: 0 4px 20px var(--accent-glow);
  align-self: flex-start;
}

.bm-panel-cta:hover {
  background: #00a8cc;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0,189,224,0.5);
}

/* --- Mobile layout (hidden on desktop) --------------------- */
.bm-mobile { display: none; }

.bm-mobile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.bm-mc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 16px;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s ease;
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-align: center;
}

.bm-mc:hover {
  background: rgba(0,189,224,0.1);
  border-color: rgba(0,189,224,0.35);
  color: #fff;
}

.bm-mc.bm-active {
  background: rgba(0,189,224,0.15);
  border-color: var(--accent);
  color: #fff;
}

.bm-mc-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bm-mc-icon svg {
  width: 100%;
  height: 100%;
}

.bm-mc.bm-active .bm-mc-icon { color: var(--accent); }

/* Mobile conditions drawer */
.bm-mobile-drawer {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(0,189,224,0.2);
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1),
              padding   0.45s cubic-bezier(0.4,0,0.2,1);
}

.bm-mobile-drawer.open {
  max-height: 600px;
  padding: 28px 24px;
}

.bm-mobile-drawer .bm-panel-title { font-size: 1.5rem; }

/* ── Responsive: switch layouts at 768px ───────────────── */
@media (max-width: 768px) {
  .bm-desktop { display: none; }
  .bm-mobile  { display: block; }
}

