/* INSYNC Physiotherapy — static stylesheet */

:root {
  --bg: #fbfaf7;
  --card: #ffffff;
  --fg: #1b2420;
  --muted: #63706a;
  --border: #e4e5e0;
  --primary: #1f4d3a;
  --primary-fg: #f4f8f5;
  --accent: #e8f1e9;
  --accent-fg: #1f4d3a;
  --brand-soft: #e3efe6;
  --brand-accent: #4f9b6f;
  --shadow-soft: 0 1px 2px rgba(24, 42, 33, 0.04), 0 8px 24px rgba(24, 42, 33, 0.05);
  --shadow-card: 0 18px 48px rgba(24, 42, 33, 0.12);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.5rem; }

p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

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

.muted { color: var(--muted); }
.lead { font-size: 1.125rem; color: var(--muted); line-height: 1.7; }
.eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand-accent);
  font-weight: 600;
}
.italic-accent { font-style: italic; color: var(--primary); }
.max-2 { max-width: 46rem; }
.max-3 { max-width: 56rem; }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3.5rem; }
.section { padding: 3.5rem 0; }
.section-lg { padding: 5rem 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.btn:hover { opacity: 0.9; }
.btn-primary { background: var(--primary); color: var(--primary-fg); box-shadow: var(--shadow-soft); }
.btn-ghost { background: var(--card); color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { background: var(--accent); opacity: 1; }
.btn-light { background: var(--bg); color: var(--fg); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.3); color: var(--primary-fg); }
.btn-sm { padding: 0.55rem 1.1rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo { display: flex; align-items: center; gap: 0.6rem; }
.logo img { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; }
.logo-name { font-family: Fraunces, serif; font-size: 1.15rem; font-weight: 600; line-height: 1.1; }
.logo-sub { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a { font-size: 0.875rem; font-weight: 500; color: rgba(27, 36, 32, 0.8); }
.main-nav a:hover, .main-nav a.active { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  color: var(--fg);
}
.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--bg); }
.mobile-nav.open { display: block; }
.mobile-nav ul { padding: 0.75rem 0; }
.mobile-nav a { display: block; padding: 0.55rem 0; font-size: 0.9rem; font-weight: 500; }

/* Hero */
.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0 4.5rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 500;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; max-width: 28rem; margin-top: 3rem; }
.stats dt { font-family: Fraunces, serif; font-size: 1.5rem; }
.stats dd { margin: 0.25rem 0 0; font-size: 0.75rem; color: var(--muted); }

.hero-media { position: relative; }
.hero-media img { border-radius: 24px; box-shadow: var(--shadow-card); aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.hero-media::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 28px;
  background: var(--brand-soft);
  transform: rotate(2deg);
  z-index: -1;
}
.hero-badge {
  position: absolute;
  left: -12px;
  bottom: -22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0.9rem;
  box-shadow: var(--shadow-soft);
  max-width: 230px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-badge .icon { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: var(--primary); }
.hero-badge strong { font-size: 0.78rem; }
.hero-badge span.small { font-size: 0.7rem; color: var(--muted); }

/* Cards & grids */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}
.card-lg { border-radius: 24px; padding: 2rem; }
.card h3 { font-size: 1.05rem; font-family: Inter, sans-serif; font-weight: 600; }
.card p { margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted); }
.icon-box {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--brand-soft); color: var(--primary);
  display: grid; place-items: center; margin-bottom: 1rem;
}

.service-card { transition: transform 0.2s ease, border-color 0.2s ease; }
.service-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.service-card .row { display: flex; align-items: flex-start; justify-content: space-between; }
.service-card .num { font-size: 0.75rem; color: var(--muted); font-family: ui-monospace, monospace; }
.service-card h2, .service-card h3 { font-family: Fraunces, serif; font-size: 1.25rem; margin-top: 1.1rem; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.25rem; }
.link-arrow { color: var(--primary); font-weight: 500; font-size: 0.875rem; }
.link-arrow:hover { text-decoration: underline; }

/* Split sections */
.split { display: grid; gap: 3.5rem; align-items: center; }
.split-3-2 { display: grid; gap: 3rem; }

.profile-frame { border-radius: 24px; background: linear-gradient(140deg, var(--brand-soft), var(--accent)); padding: 4px; aspect-ratio: 4/5; }
.profile-inner { background: var(--card); border-radius: 20px; height: 100%; padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; }
.doctor-photo { width: 100%; aspect-ratio: 4/3; border-radius: 16px; background: var(--brand-soft) url("/images/image3.png") center / cover no-repeat; }
.cred-list li { display: flex; gap: 0.6rem; margin-top: 0.85rem; font-size: 0.9rem; color: rgba(27, 36, 32, 0.85); }
.cred-list li::before { content: ""; margin-top: 0.55rem; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-accent); }

.contact-lines a, .contact-lines div { display: flex; gap: 0.75rem; align-items: center; margin-top: 0.6rem; font-size: 0.9rem; }
.contact-lines .ic { width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--brand-soft); display: grid; place-items: center; }
.contact-lines a:hover { color: var(--primary); }

/* Testimonials */
.stars { color: #d99b12; letter-spacing: 2px; margin-bottom: 0.9rem; }
figure.quote { margin: 0; }
figure.quote blockquote { margin: 0; font-size: 0.95rem; line-height: 1.7; color: rgba(27, 36, 32, 0.88); }
figure.quote figcaption { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
figure.quote .who { font-weight: 600; }
figure.quote .where { font-size: 0.75rem; color: var(--muted); margin-top: 0.15rem; }

/* CTA */
.cta {
  border-radius: 28px;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 4rem 2rem;
  text-align: center;
}
.cta p { margin: 1rem auto 0; max-width: 34rem; color: rgba(244, 248, 245, 0.85); }

/* Footer */
.site-footer { margin-top: 5rem; border-top: 1px solid var(--border); background: rgba(232, 241, 233, 0.35); }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 2fr 1fr 1fr; padding: 3.5rem 0; }
.site-footer h4 { font-family: Inter, sans-serif; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.85rem; }
.site-footer li, .site-footer p { font-size: 0.875rem; color: var(--muted); }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; padding-top: 1.15rem; padding-bottom: 1.15rem; font-size: 0.75rem; color: var(--muted); }

/* Floating actions */
.floating { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: flex; flex-direction: column; gap: 0.5rem; }
.floating a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-soft); transition: transform 0.2s ease; }
.floating a:hover { transform: scale(1.06); }
.fab-wa { background: #25d366; color: #fff; }
.fab-call { background: var(--primary); color: var(--primary-fg); }

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 861px) {
  .hero-grid, .split { grid-template-columns: 1fr 1fr; }
  .split-3-2 { grid-template-columns: 3fr 2fr; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badge { left: 8px; }
  .header-actions .btn { display: none; }
}

h1 + .lead, h1 + p.lead { margin-top: 1.25rem; }
.contact-lines .ic { color: var(--primary); }
