/* ==========================================================================
   The Physio Path — Premium Home Physiotherapy
   Main stylesheet (hand written, no build tools required)
   ========================================================================== */

:root {
  --primary: #0069b3;
  --primary-dark: #004e86;
  --secondary: #009fe3;
  --accent: #00c896;
  --bg: #f8fafc;
  --dark: #1e293b;
  --muted: #5b6b80;
  --light-gray: #e2e8f0;
  --white: #ffffff;

  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  --gradient-soft: linear-gradient(180deg, #ffffff 0%, #f1f7fd 100%);

  --shadow-sm: 0 2px 8px rgba(30, 41, 59, 0.06);
  --shadow-md: 0 10px 30px rgba(30, 41, 59, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 105, 179, 0.14);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --container: 1200px;
  --header-h: 86px;

  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Reset ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--muted);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--primary); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--secondary); }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--dark);
  line-height: 1.22;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p { margin: 0 0 1rem; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--primary); color: #fff; padding: 12px 20px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* Layout ----------------------------------------------------------------- */
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: clamp(60px, 8vw, 110px) 0; }
.section--soft { background: var(--gradient-soft); }
.section--tint { background: #eef6fc; }
.text-center { text-align: center; }

.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section-head p { font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(0, 159, 227, .12);
  border-radius: 100px;
  padding: 7px 16px;
  margin-bottom: 18px;
}

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* Buttons ---------------------------------------------------------------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  padding: 15px 30px;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .28s ease, box-shadow .28s ease, background .28s ease, color .28s ease;
  text-align: center;
  justify-content: center;
}
.btn-primary { background: var(--gradient-primary); color: #fff; box-shadow: 0 12px 26px rgba(0, 105, 179, .28); }
.btn-primary:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 18px 36px rgba(0, 105, 179, .34); }
.btn-accent { background: var(--accent); color: #04352a; box-shadow: 0 12px 26px rgba(0, 200, 150, .3); }
.btn-accent:hover { color: #04352a; transform: translateY(-3px); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.btn-ghost { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.55); color: #fff; backdrop-filter: blur(8px); }
.btn-ghost:hover { background: #fff; color: var(--primary); transform: translateY(-3px); }
.btn-block { width: 100%; }

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple .6s linear;
  background: rgba(255, 255, 255, .45);
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

/* Header ----------------------------------------------------------------- */
.topbar {
  background: var(--dark);
  color: #cbd5e1;
  font-size: .84rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 0; flex-wrap: wrap; }
.topbar a { color: #e2e8f0; }
.topbar a:hover { color: var(--accent); }
.topbar ul { display: flex; gap: 22px; flex-wrap: wrap; }

.header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--light-gray);
  transition: box-shadow .3s ease, background .3s ease;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,.97); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 62px; width: auto; }
.brand span { display: none; }

.nav ul { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .95rem;
  color: var(--dark);
  padding: 10px 14px;
  border-radius: 100px;
  display: block;
}
.nav a:hover, .nav a.active { color: var(--primary); background: rgba(0, 159, 227, .1); }
.header-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--dark); border-radius: 2px; transition: .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); }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 0 clamp(70px, 9vw, 120px);
  background: radial-gradient(1200px 520px at 82% -10%, rgba(0, 159, 227, .16), transparent 60%), var(--gradient-soft);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 span { background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.12rem; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .95rem; font-weight: 500; }
.hero-points li { display: flex; align-items: center; gap: 8px; color: var(--dark); }
.hero-points svg { flex: none; }

.hero-media { position: relative; }
.hero-media img.hero-photo {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  width: 100%;
}
.floating-badge {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow-md);
  border-radius: 16px;
  padding: 12px 16px;
  font-family: var(--font-head);
  font-size: .86rem;
  font-weight: 600;
  color: var(--dark);
  animation: floaty 5s ease-in-out infinite;
}
.floating-badge i {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff; font-style: normal; font-size: .9rem;
}
.fb-1 { top: 6%; left: -18px; }
.fb-2 { top: 34%; right: -20px; animation-delay: .8s; }
.fb-3 { bottom: 18%; left: -26px; animation-delay: 1.6s; }
.fb-4 { bottom: -14px; right: 8%; animation-delay: 2.4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Page hero -------------------------------------------------------------- */
.page-hero {
  padding: clamp(52px, 7vw, 92px) 0;
  background: radial-gradient(900px 420px at 15% 0%, rgba(0,200,150,.16), transparent 60%), var(--gradient-primary);
  color: #fff;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: rgba(255,255,255,.9); max-width: 680px; margin-inline: auto; }
.breadcrumb { display: flex; justify-content: center; gap: 10px; font-size: .88rem; color: rgba(255,255,255,.8); margin-top: 16px; }
.breadcrumb a { color: #fff; }

/* Cards ------------------------------------------------------------------ */
.card {
  background: #fff;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease;
  height: 100%;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(0, 159, 227, .4); }
.card h3 { margin-bottom: .45em; }
.card p { font-size: .95rem; margin-bottom: 0; }

.icon-badge {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: rgba(0, 159, 227, .12);
  color: var(--primary);
  margin-bottom: 18px;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.card:hover .icon-badge { background: var(--gradient-primary); color: #fff; transform: rotate(-6deg) scale(1.05); }
.icon-badge svg { width: 26px; height: 26px; }

.service-card { display: flex; flex-direction: column; }
.service-card .learn {
  margin-top: 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  display: inline-flex; align-items: center; gap: 7px;
  align-self: flex-start;
}
.service-card .learn::after { content: "→"; transition: transform .25s ease; }
.service-card:hover .learn::after { transform: translateX(5px); }

/* Steps ------------------------------------------------------------------ */
.steps { position: relative; display: grid; gap: 22px; }
.step {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 22px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.step:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.step-num {
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gradient-primary);
  color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.25rem;
  box-shadow: 0 10px 22px rgba(0, 105, 179, .3);
}
.step h3 { margin-bottom: .3em; }
.step p { margin: 0; font-size: .95rem; }

/* Benefits list ---------------------------------------------------------- */
.check-list { display: grid; gap: 14px; }
.check-list li { display: flex; gap: 13px; align-items: flex-start; color: var(--dark); font-weight: 500; }
.check-list li::before {
  content: "✓";
  flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0, 200, 150, .16); color: #018a67;
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
  margin-top: 3px;
}


/* Testimonials ----------------------------------------------------------- */
.slider { position: relative; overflow: hidden; }
.slider-track { display: flex; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.slide { min-width: 100%; padding: 6px; }
.testimonial {
  background: #fff; border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg); padding: 38px;
  box-shadow: var(--shadow-md);
  max-width: 820px; margin-inline: auto;
}
.stars { color: #f6b100; letter-spacing: 3px; font-size: 1.05rem; }
.testimonial blockquote { margin: 14px 0 22px; font-size: 1.08rem; color: var(--dark); font-style: italic; }
.t-person { display: flex; align-items: center; gap: 14px; }
.t-person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.t-person strong { font-family: var(--font-head); color: var(--dark); display: block; }
.t-person small { color: var(--muted); }
.slider-nav { display: flex; justify-content: center; gap: 12px; margin-top: 26px; align-items: center; }
.slider-nav button {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--light-gray); background: #fff; color: var(--primary);
  cursor: pointer; font-size: 1.1rem; transition: .25s ease;
}
.slider-nav button:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.dots { display: flex; gap: 8px; }
.dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: none; background: var(--light-gray); }
.dots button.active { background: var(--primary); width: 26px; border-radius: 100px; }

/* Stats ------------------------------------------------------------------ */
.stats { background: var(--gradient-primary); color: #fff; }
.stats .stat { text-align: center; padding: 12px; }
.stats .num { font-family: var(--font-head); font-size: clamp(2.1rem, 4.4vw, 3rem); font-weight: 700; line-height: 1; }
.stats .label { color: rgba(255,255,255,.86); font-size: .95rem; margin-top: 10px; }

/* FAQ -------------------------------------------------------------------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--light-gray); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--dark);
  padding: 20px 56px 20px 22px; position: relative;
}
.faq-q::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--primary); transition: transform .3s ease;
}
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 22px 20px; margin: 0; font-size: .96rem; }

/* Forms ------------------------------------------------------------------ */
.form-card {
  background: #fff; border: 1px solid var(--light-gray); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-size: .88rem; font-weight: 600; color: var(--dark); }
.field .req { color: #d64545; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: .96rem; color: var(--dark);
  padding: 13px 15px; border: 1.5px solid var(--light-gray); border-radius: 12px;
  background: #fbfdff; transition: border-color .25s ease, box-shadow .25s ease;
  width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--secondary); box-shadow: 0 0 0 4px rgba(0, 159, 227, .14);
}
.field .error { color: #d64545; font-size: .82rem; min-height: 1em; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #d64545; }
.form-note { font-size: .86rem; margin-top: 16px; }
.alert { border-radius: 12px; padding: 14px 18px; margin-bottom: 22px; font-size: .95rem; }
.alert-error { background: #fdecec; color: #a02525; border: 1px solid #f6c9c9; }

/* Info tiles ------------------------------------------------------------- */
.info-tile { display: flex; gap: 16px; align-items: flex-start; }
.info-tile .icon-badge { margin-bottom: 0; width: 50px; height: 50px; }
.info-tile h3 { font-size: 1.05rem; margin-bottom: .2em; }
.info-tile p, .info-tile a { font-size: .95rem; margin: 0; }


/* CTA band --------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, #003f70 0%, var(--primary) 55%, var(--secondary) 100%);
  color: #fff; border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 58px);
  display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { color: rgba(255,255,255,.9); margin: 0; max-width: 620px; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Footer ----------------------------------------------------------------- */
.footer { background: var(--dark); color: #a9b6c7; padding: 70px 0 0; margin-top: 0; }
.footer h4 { color: #fff; font-family: var(--font-head); font-size: 1.02rem; margin-bottom: 18px; }
.footer a { color: #a9b6c7; font-size: .94rem; }
.footer a:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid ul { display: grid; gap: 10px; }
.footer-logo { background: #fff; border-radius: 16px; padding: 10px 14px; display: inline-block; margin-bottom: 18px; }
.footer-logo img { height: 62px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff;
  transition: .28s ease;
}
.social a:hover { background: var(--accent); color: #04352a; transform: translateY(-3px); }
.hours-list li { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; border-bottom: 1px dashed rgba(255,255,255,.12); padding-bottom: 8px; }
.footer-bottom {
  margin-top: 54px; border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .88rem;
}
.footer-bottom ul { display: flex; gap: 20px; flex-wrap: wrap; }

/* Floating actions ------------------------------------------------------- */
.floaters { position: fixed; right: 18px; bottom: 18px; z-index: 300; display: grid; gap: 12px; }
.floaters a, .floaters button {
  width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 12px 26px rgba(30,41,59,.24);
  transition: transform .28s ease, opacity .28s ease;
}
.floaters a:hover, .floaters button:hover { transform: translateY(-4px) scale(1.05); color: #fff; }
.f-whatsapp { background: #25d366; }
.f-call { background: var(--primary); }
.f-top { background: var(--dark); opacity: 0; pointer-events: none; }
.f-top.show { opacity: 1; pointer-events: auto; }
.floaters svg { width: 24px; height: 24px; }

/* Reveal animation ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 620px; margin-inline: auto; }
  .fb-1, .fb-3 { left: 8px; }
  .fb-2 { right: 8px; }
  .nav-toggle { display: flex; }
  .header-cta .btn { display: none; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--light-gray);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav.open { max-height: 640px; overflow-y: auto; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 14px 20px 22px; }
  .nav a { padding: 13px 14px; border-radius: 12px; }
  .nav .btn { margin-top: 10px; }
  .nav .mobile-cta { display: flex; }
}
@media (min-width: 981px) { .nav .mobile-cta { display: none; } }
@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar ul { gap: 14px; }
  .topbar .container { justify-content: center; text-align: center; }
  .brand img { height: 50px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .testimonial { padding: 26px 22px; }
  .step { grid-template-columns: 1fr; }
  .cta-band { text-align: center; justify-content: center; }
  .cta-band .actions { justify-content: center; width: 100%; }
  .floaters { right: 12px; bottom: 12px; }
}
