/* ============================================================
   Heal & Rise Physio Clinic — stylesheet
   Brand palette matches the clinic's existing product/brand mockups.
   ============================================================ */

:root {
  --ink: #0B2E36;
  --ink-soft: #4C6B72;
  --ink-faint: #7C979C;
  --ground: #EEF5F5;
  --surface: #FFFFFF;
  --surface-2: #E4EFEF;
  --border: #D2E2E1;
  --accent: #14707F;
  --accent-deep: #0B4C5C;
  --accent-light: #3BB6C7;
  --accent-ink: #FFFFFF;
  --accent-soft: #DCEEF0;
  --gold: #C6862B;
  --gold-soft: #FAEBD2;
  --whatsapp: #25D366;
  --shadow-sm: 0 1px 2px rgba(11, 46, 54, 0.06), 0 6px 16px -8px rgba(11, 46, 54, 0.18);
  --shadow-lg: 0 20px 50px -20px rgba(11, 46, 54, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --nav-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  text-wrap: balance;
}
h1 { font-size: clamp(30px, 5vw, 48px); }
h2 { font-size: clamp(24px, 3.4vw, 34px); }
h3 { font-size: 19px; }
p { margin: 0 0 14px; color: var(--ink-soft); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.section { padding: 76px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--surface); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-head { max-width: 640px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 17px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--accent-deep); color: #fff; padding: 10px 16px;
  border-radius: 8px; z-index: 1000; transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  padding: 13px 22px; border-radius: 12px; border: 1.5px solid transparent;
  text-decoration: none; line-height: 1.2; min-height: 48px; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}
.btn svg { display: inline-block; width: 18px; height: 18px; flex-shrink: 0; }
.btn span { white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; box-shadow: var(--shadow-sm); }
.btn-whatsapp:hover { background: #1fb457; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--accent-deep); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-outline-invert { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline-invert:hover { background: rgba(255,255,255,0.12); }
.btn-block { width: 100%; }
.btn:focus-visible { outline: 2.5px solid var(--accent-light); outline-offset: 2px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header / Nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.topbar .container { height: 100%; display: flex; align-items: center; gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 16px; color: var(--ink); letter-spacing: -0.01em; }
.brand-sub { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-top: 1px; }

.nav-links { display: flex; align-items: center; gap: 26px; margin: 0 auto; list-style: none; padding: 0; }
.nav-links a {
  text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--ink-soft);
  padding: 8px 2px; border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--accent-deep); border-color: var(--accent-light); }

.topbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.topbar-actions .btn { padding: 10px 16px; font-size: 13.5px; min-height: 40px; }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--border);
  border-radius: 9px; width: 42px; height: 42px; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

.mobile-panel {
  display: none;
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 190;
  background: var(--surface); overflow-y: auto;
  padding: 10px 20px 30px;
}
.mobile-panel.open { display: block; }
.mobile-panel ul { list-style: none; margin: 0; padding: 0; }
.mobile-panel li { border-bottom: 1px solid var(--border); }
.mobile-panel a {
  display: block; padding: 16px 4px; text-decoration: none; font-weight: 700;
  font-size: 16.5px; color: var(--ink);
}
.mobile-panel .cta-row { margin-top: 20px; flex-direction: column; }

/* ---------- Generic slide carousel ---------- */
.carousel-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  gap: 0; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 100%; scroll-snap-align: center; min-width: 0; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; padding: 14px 0; background: var(--surface); }
.carousel-dot {
  width: 8px; height: 8px; padding: 0; border-radius: 50%; border: none;
  background: var(--border); cursor: pointer; transition: background .15s ease, width .15s ease;
}
.carousel-dot.active { background: var(--accent); width: 22px; border-radius: 100px; }

/* ---------- Top slider (mobile only — see media query) ---------- */
.top-slider { display: none; }
.top-slider .carousel-slide img { width: 100%; height: auto; display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--accent-deep) 0%, var(--accent) 62%, var(--accent-light) 130%);
  color: #fff;
  padding: 64px 0 84px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: #fff;
  background: rgba(255,255,255,0.16); padding: 7px 15px; border-radius: 100px; margin-bottom: 20px;
}
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero-lede { color: rgba(255,255,255,0.9); font-size: 17.5px; max-width: 46ch; margin-bottom: 26px; }
.hero .cta-row { margin-bottom: 30px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-trust-item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,0.92); }
.hero-trust-item svg { width: 17px; height: 17px; color: #fff; flex-shrink: 0; }

.hero-art { position: relative; }
.hero-card {
  background: rgba(255,255,255,0.98); border-radius: 20px; padding: 26px;
  box-shadow: var(--shadow-lg); color: var(--ink);
}
.hero-card-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.hero-card-row:last-child { border-bottom: none; }
.hero-card-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-deep);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hero-card-icon svg { width: 22px; height: 22px; }
.hero-card-title { font-weight: 700; font-size: 14.5px; }
.hero-card-sub { font-size: 12.5px; color: var(--ink-faint); }

.hero-watermark {
  position: absolute; right: -8%; top: -12%; width: 60%; opacity: 0.14; pointer-events: none;
}

/* ---------- Credential strip ---------- */
.cred-strip { background: var(--surface); border-bottom: 1px solid var(--border); padding: 22px 0; }
.cred-strip .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; }
.cred-item { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }
.cred-item svg { width: 19px; height: 19px; color: var(--accent); flex-shrink: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; }
.doctor-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.doctor-avatar {
  width: 84px; height: 84px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(160deg, var(--accent-light), var(--accent-deep));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 26px;
  margin-bottom: 16px;
}
.doctor-name { font-size: 19px; margin-bottom: 4px; }
.doctor-role { color: var(--accent); font-weight: 700; font-size: 13.5px; margin-bottom: 16px; }
.doctor-creds { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.doctor-creds li { display: flex; gap: 9px; font-size: 13.5px; color: var(--ink-soft); font-weight: 600; }
.doctor-creds svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; margin-top: 1px; }

.about-copy .section-head { margin-bottom: 20px; }
.about-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.about-points li { display: flex; gap: 11px; font-size: 15px; font-weight: 600; color: var(--ink); }
.about-points svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.service-icon {
  width: 50px; height: 50px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-deep);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.service-icon svg { width: 25px; height: 25px; }
.service-card h3 { margin-bottom: 12px; }
.service-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.service-list li { display: flex; gap: 9px; font-size: 14px; color: var(--ink-soft); }
.service-list svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }

/* ---------- Techniques ---------- */
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tech-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 22px 16px; text-align: center;
}
.tech-icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
}
.tech-icon svg { width: 26px; height: 26px; }
.tech-card h3 { font-size: 15px; margin-bottom: 0; }

/* ---------- Why choose us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-card { text-align: left; }
.why-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2); color: var(--accent-deep);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.why-icon svg { width: 23px; height: 23px; }
.why-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.why-card p { font-size: 14px; margin-bottom: 0; }

/* ---------- Home visit banner ---------- */
.banner {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  border-radius: 22px; color: #fff; padding: 44px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.banner-copy { max-width: 560px; }
.banner h2 { color: #fff; margin-bottom: 10px; }
.banner p { color: rgba(255,255,255,0.88); margin-bottom: 0; font-size: 15.5px; }
.banner .cta-row { flex-shrink: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: stretch; }
.contact-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.contact-info-list { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-info-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-icon {
  width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-deep);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-icon svg { width: 21px; height: 21px; }
.contact-info-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); margin-bottom: 3px; }
.contact-info-value { font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; }
.contact-info-value a { text-decoration: none; color: var(--ink); }
.contact-info-value a:hover { color: var(--accent-deep); }

.map-wrap {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.map-wrap--tall { aspect-ratio: auto; min-height: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--accent-deep); color: rgba(255,255,255,0.85); padding: 52px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; text-decoration: none; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: var(--accent-light); }
.footer-col h4 { color: #fff; font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { text-decoration: none; color: rgba(255,255,255,0.78); font-size: 14.5px; }
.footer-col a:hover { color: #fff; }
.footer-desc { font-size: 14.5px; color: rgba(255,255,255,0.75); max-width: 40ch; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
}
.footer-social svg { width: 18px; height: 18px; color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,0.65);
}

/* ---------- Sticky mobile call bar ---------- */
.mobile-cta-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 210;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
  box-shadow: 0 -6px 20px -10px rgba(11,46,54,0.25);
}
.mobile-cta-bar .btn { flex: 1; font-size: 14px; padding: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links, .topbar-actions { display: none; }
  .nav-toggle { display: flex; }
  .top-slider { display: block; }
  .hero { display: none; }
  #about { display: none; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .map-wrap--tall { aspect-ratio: 16 / 10; min-height: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 68px; }
}

@media (max-width: 620px) {
  .section { padding: 52px 0; }
  .service-grid, .tech-grid, .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .banner { flex-direction: column; align-items: flex-start; padding: 30px 24px; }
  .banner .cta-row { width: 100%; }
  .banner .btn { flex: 1; }
  .hero { padding: 40px 0 60px; }
  .cred-strip .container { gap: 12px 20px; }
  .cta-row .btn { flex: 1 1 auto; }
}
