/* =========================================================
   Magnus Diagnostics — Landing Pages (shared styles)
   Theme: ORANGE · BLACK · WHITE | mobile-first
   Used by: /index.html (chooser), /mala, /paravoor
   ========================================================= */

:root {
  --orange:      #f2691e;
  --orange-dark: #d4540c;
  --orange-deep: #b8470a;
  --orange-soft: #fff2e9;
  --orange-tint: #ffe6d5;

  --black:   #15110d;
  --ink:     #1c1814;
  --slate:   #5a534c;
  --slate-2: #7a7269;
  --white:   #ffffff;
  --bg:      #ffffff;
  --bg-warm: #fbf8f5;
  --line:    #ece5dd;

  --radius:   16px;
  --radius-lg:22px;
  --shadow-sm: 0 1px 3px rgba(21,17,13,.08);
  --shadow:    0 8px 24px rgba(21,17,13,.10);
  --shadow-lg: 0 18px 44px rgba(21,17,13,.18);
  --shadow-orange: 0 8px 22px rgba(242,105,30,.28);
  --maxw: 1080px;
  --sticky-h: 84px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
body.has-sticky { padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px)); }

img, svg { max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
h1, h2, h3 { line-height: 1.16; letter-spacing: -0.01em; color: var(--black); }
a { color: var(--orange-deep); }

/* Visible keyboard focus for accessibility */
a:focus-visible, button:focus-visible, .sheet-opt:focus-visible {
  outline: 3px solid var(--orange-deep);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ===================== HEADER ===================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 38px; width: auto; display: block; }
.brand-fallback { display: flex; flex-direction: column; line-height: 1; text-decoration: none; }
.brand-fallback strong { font-size: 1.25rem; font-weight: 800; letter-spacing: .12em; color: var(--black); }
.brand-fallback span { font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: var(--orange); font-weight: 700; margin-top: 3px; }
.header-call {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--orange-dark); color: #fff; text-decoration: none;
  font-weight: 700; font-size: .95rem; padding: 0 18px; min-height: 44px; border-radius: 999px;
  box-shadow: var(--shadow-orange);
}
.header-call:hover { background: var(--orange-dark); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 460px at 82% -8%, rgba(242,105,30,.16), transparent 60%),
    linear-gradient(180deg, var(--orange-soft) 0%, #fff 62%);
  padding: 34px 0 42px;
  overflow: hidden;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); color: var(--black);
  border: 1px solid var(--orange-tint); border-radius: 999px;
  font-size: .76rem; font-weight: 700; padding: 6px 12px;
  box-shadow: var(--shadow-sm);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.hero-eyebrow { display: inline-block; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; color: var(--orange-deep); margin-bottom: 12px; }
.hero-title { font-size: clamp(1.9rem, 7.6vw, 3.05rem); font-weight: 800; color: var(--black); margin-bottom: 14px; }
.hero-title span { color: var(--orange); }
.hero-sub { font-size: clamp(1rem, 4vw, 1.18rem); color: var(--slate); max-width: 620px; margin-bottom: 22px; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 22px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; font-size: .92rem; font-weight: 600; color: var(--ink); }
.hero-meta svg { flex: none; color: var(--orange); }

.hero-cta { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .hero-cta { grid-template-columns: repeat(3, 1fr); } }
.hero-note { margin-top: 16px; font-size: .9rem; color: var(--slate-2); font-weight: 600; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 58px; padding: 0 20px;
  font-size: 1.05rem; font-weight: 700; text-decoration: none;
  border-radius: 14px; border: 2px solid transparent; cursor: pointer;
  transition: transform .08s ease, filter .15s ease, background .15s ease;
  width: 100%;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { flex: none; }
/* Call = primary orange */
.btn-call { background: var(--orange); color: #fff; box-shadow: var(--shadow-orange); }
.btn-call:hover { background: var(--orange-dark); }
/* WhatsApp = black */
.btn-wa { background: var(--black); color: #fff; box-shadow: var(--shadow); }
.btn-wa:hover { background: #2a221b; }
/* Directions = white outline */
.btn-dir { background: var(--white); color: var(--black); border-color: var(--orange); box-shadow: var(--shadow-sm); }
.btn-dir:hover { background: var(--orange-soft); }

/* ===================== TRUST STRIP ===================== */
.trust-strip { background: var(--black); color: #fff; padding: 20px 0; }
.trust-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; align-items: center; gap: 11px; font-size: .92rem; font-weight: 600; color: #f4efe9; }
.trust-item svg { flex: none; color: var(--orange); }

/* ===================== SECTION HEAD ===================== */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 26px; }
.section-head h2 { font-size: clamp(1.5rem, 5.5vw, 2.1rem); color: var(--black); margin-bottom: 8px; font-weight: 800; }
.section-head p { color: var(--slate); font-size: 1.02rem; }

/* ===================== ADDRESS / HOURS CARD ===================== */
.locate { padding: 40px 0; background: var(--bg-warm); }
.locate-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow); display: grid; gap: 18px;
}
@media (min-width: 720px) { .locate-card { grid-template-columns: 1.3fr 1fr; align-items: center; } }
.locate-info h2 { font-size: 1.5rem; margin-bottom: 10px; }
.locate-row { display: flex; gap: 10px; color: var(--slate); font-size: .98rem; margin-bottom: 10px; }
.locate-row svg { flex: none; margin-top: 3px; color: var(--orange); }
.locate-row strong { color: var(--ink); font-weight: 700; }
.hours-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--orange-soft); color: var(--orange-deep);
  font-size: .82rem; font-weight: 800; padding: 7px 13px; border-radius: 999px;
}
.locate-cta { display: grid; gap: 10px; }

/* ===================== SERVICES ===================== */
.services { padding: 44px 0; background: var(--white); }
.service-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 940px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }
.service {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 22px 12px; background: var(--bg-warm); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .12s ease, box-shadow .12s ease;
}
.service:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.svc-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--orange-soft); color: var(--orange-dark); }
.svc-name { font-size: .9rem; font-weight: 700; color: var(--black); }
.services-note { text-align: center; margin-top: 20px; font-size: .84rem; color: var(--slate-2); max-width: 660px; margin-left: auto; margin-right: auto; }

/* ===================== HOW IT WORKS ===================== */
.how { padding: 44px 0; background: var(--bg-warm); }
.steps { list-style: none; display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; box-shadow: var(--shadow-sm); }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--orange); color: #fff; font-weight: 800; margin-bottom: 12px; }
.step h3 { font-size: 1.05rem; color: var(--black); margin-bottom: 5px; }
.step p { font-size: .9rem; color: var(--slate); }

/* ===================== FINAL CTA ===================== */
.final-cta {
  padding: 50px 0; text-align: center; color: #fff;
  background: linear-gradient(155deg, var(--orange) 0%, var(--orange-deep) 100%);
}
.final-cta h2 { color: #fff; font-size: clamp(1.5rem, 5.5vw, 2.15rem); margin-bottom: 8px; }
.final-cta p { opacity: .96; margin-bottom: 24px; font-size: 1.05rem; }
.final-cta .hero-cta { max-width: 720px; margin: 0 auto; }
.final-cta .btn-call { background: var(--black); box-shadow: var(--shadow); }
.final-cta .btn-call:hover { background: #2a221b; }
.final-cta .btn-wa { background: #fff; color: var(--black); }
.final-cta .btn-dir { background: transparent; color: #fff; border-color: #fff; }
.final-cta .btn-dir:hover { background: rgba(255,255,255,.14); }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--black); color: #cabfb4; padding: 32px 0; text-align: center; }
.site-footer .brand-fallback { align-items: center; margin-bottom: 12px; }
.site-footer .brand-fallback strong { color: #fff; }
.foot-brand { font-size: 1.05rem; color: #fff; margin-bottom: 10px; }
.foot-line { font-size: .95rem; margin-bottom: 6px; }
.foot-line a { display: inline-block; padding: 6px 4px; color: #ffae7a; font-weight: 700; text-decoration: none; }
.foot-legal { font-size: .8rem; color: #978c80; max-width: 600px; margin: 14px auto 0; }
.foot-other { font-size: .85rem; margin-top: 10px; }
.foot-other a { color: #e9ddd1; }

/* ===================== STICKY BAR ===================== */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(21,17,13,.14);
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom, 0px));
}
.sticky-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: var(--maxw); margin: 0 auto; }
.sbtn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 60px; border: 2px solid transparent; border-radius: 13px; cursor: pointer; text-decoration: none;
  font-weight: 700; font-size: .82rem; box-shadow: var(--shadow-sm);
  transition: transform .08s ease, filter .15s ease;
}
.sbtn:active { transform: translateY(1px) scale(.99); }
.sbtn-call { background: var(--orange); color: #fff; }
.sbtn-wa { background: var(--black); color: #fff; }
.sbtn-dir { background: var(--white); color: var(--black); border-color: var(--orange); }

@media (min-width: 760px) {
  .sticky-inner { gap: 12px; }
  .sbtn { flex-direction: row; gap: 9px; font-size: .98rem; min-height: 54px; }
}

/* ===================== CHOOSER (root index) ===================== */
.chooser { min-height: 100vh; display: flex; flex-direction: column; }
.chooser-main {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px 18px;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(242,105,30,.14), transparent 60%),
    linear-gradient(180deg, var(--orange-soft) 0%, #fff 60%);
}
.chooser-logo { height: 52px; width: auto; margin-bottom: 26px; }
.chooser-main h1 { font-size: clamp(1.7rem, 6.5vw, 2.6rem); margin-bottom: 10px; }
.chooser-main p { color: var(--slate); font-size: 1.08rem; max-width: 520px; margin-bottom: 32px; }
.chooser-cards { display: grid; grid-template-columns: 1fr; gap: 16px; width: 100%; max-width: 760px; }
@media (min-width: 700px) { .chooser-cards { grid-template-columns: repeat(2, 1fr); } }
.chooser-card {
  display: block; text-decoration: none; text-align: left;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.chooser-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--orange); }
.chooser-card .cc-eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-deep); }
.chooser-card h2 { font-size: 1.5rem; margin: 6px 0; color: var(--black); }
.chooser-card .cc-area { color: var(--slate); font-size: .95rem; margin-bottom: 16px; }
.chooser-card .cc-services { color: var(--slate); font-size: .92rem; margin-bottom: 18px; }
.chooser-card .cc-go { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--orange-deep); }
.chooser-card:hover .cc-go { gap: 12px; }
.chooser-foot { text-align: center; padding: 20px; color: var(--slate-2); font-size: .85rem; background: var(--white); border-top: 1px solid var(--line); }
.chooser-foot a { color: var(--orange-deep); font-weight: 700; text-decoration: none; }

/* ===================== CENTRE CARDS (root landing) ===================== */
.centres { padding: 28px 0 44px; }
.centre-cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 880px) { .centre-cards { grid-template-columns: repeat(2, 1fr); } }
.centre-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.centre-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.centre-top h3 { font-size: 1.4rem; color: var(--black); font-weight: 800; }
.centre-area { color: var(--orange-deep); font-weight: 700; font-size: .9rem; margin-top: 2px; }
.centre-addr { display: flex; gap: 8px; color: var(--slate); font-size: .94rem; margin-bottom: 12px; }
.centre-addr svg { flex: none; margin-top: 3px; color: var(--orange); }
.centre-phone-display {
  display: flex; align-items: center; gap: 9px; margin-bottom: 14px;
  background: var(--orange-soft); border: 1px solid var(--orange-tint); border-radius: 12px;
  padding: 11px 14px; color: var(--black);
}
.centre-phone-display svg { flex: none; color: var(--orange-dark); }
.centre-phone-display .cpd-label { font-size: .76rem; font-weight: 700; color: var(--slate); text-transform: uppercase; letter-spacing: .06em; }
.centre-phone-display a { display: inline-block; padding: 4px 0; font-size: 1.18rem; font-weight: 800; color: var(--black); text-decoration: none; letter-spacing: .01em; }
.centre-services { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.centre-services li { font-size: .8rem; font-weight: 700; color: var(--orange-deep); background: var(--orange-soft); padding: 6px 11px; border-radius: 8px; }
.centre-cta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: auto; }
.centre-cta .btn { min-height: 52px; font-size: .92rem; padding: 0 6px; border-radius: 12px; }
.centre-cta .btn svg { width: 18px; height: 18px; }
.centre-more { text-align: center; margin-top: 12px; }
.centre-more a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 6px 14px; font-weight: 800; color: var(--orange-deep); text-decoration: none; font-size: .95rem; }
.centre-more a:hover { gap: 11px; }

/* ===================== CENTRE PICKER SHEET ===================== */
.sheet-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(21,17,13,.55); backdrop-filter: blur(2px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade .15s ease;
}
.sheet-overlay[hidden] { display: none; }
@media (min-width: 640px) { .sheet-overlay { align-items: center; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  background: var(--white); width: 100%; max-width: 480px;
  border-radius: 22px 22px 0 0; padding: 20px 18px calc(24px + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--shadow-lg); animation: slideup .22s ease;
}
@media (min-width: 640px) { .sheet { border-radius: 22px; } }
@keyframes slideup { from { transform: translateY(30px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sheet-head h2 { font-size: 1.25rem; color: var(--black); }
.sheet-close { display: grid; place-items: center; background: var(--bg-warm); border: 1px solid var(--line); width: 44px; height: 44px; border-radius: 50%; font-size: 1.5rem; line-height: 1; color: var(--ink); cursor: pointer; }
.sheet-options { display: grid; gap: 12px; }
.sheet-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  text-decoration: none; padding: 16px 18px; border-radius: 14px;
  background: var(--orange-soft); border: 1px solid var(--orange-tint); color: var(--black);
  min-height: 64px; transition: transform .08s ease, border-color .12s ease;
}
.sheet-opt:active { transform: translateY(1px) scale(.99); }
.sheet-opt:hover { border-color: var(--orange); }
.sheet-opt .so-name { font-weight: 800; font-size: 1.05rem; }
.sheet-opt .so-area { font-size: .85rem; color: var(--slate); font-weight: 600; }
.sheet-opt .so-go { font-weight: 800; color: var(--orange-deep); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* =========================================================
   MOBILE TUNING (phones) — tighten vertical rhythm so the
   value prop + CTAs / centre cards are reachable fast, and
   keep comfortable tap targets. Most ad traffic is mobile.
   ========================================================= */
@media (max-width: 560px) {
  .container { padding: 0 16px; }

  /* Compact hero so CTAs / first centre card come up quickly */
  .hero { padding: 18px 0 22px; }
  .hero-badges { gap: 6px; margin-bottom: 12px; }
  .pill { font-size: .74rem; padding: 6px 11px; }
  .hero-eyebrow { font-size: .74rem; margin-bottom: 8px; }
  .hero-title { font-size: clamp(1.7rem, 7.4vw, 2.2rem); margin-bottom: 10px; }
  .hero-sub { font-size: 1rem; margin-bottom: 16px; }
  .hero-meta { gap: 6px 14px; margin-bottom: 16px; }
  .hero-cta { gap: 10px; }
  .hero-note { margin-top: 12px; }

  /* Bring centre cards up sooner on the root landing page */
  .centres { padding: 6px 0 32px; }
  .centre-card { padding: 18px; }
  .centre-top h3 { font-size: 1.3rem; }

  /* Section rhythm */
  .services, .how, .locate { padding: 30px 0; }
  .final-cta { padding: 36px 0; }
  .trust-strip { padding: 18px 0; }
  .section-head { margin-bottom: 20px; }

  /* Keep buttons big and thumb-friendly */
  .btn { min-height: 54px; font-size: 1rem; }
  .centre-cta { gap: 8px; }
  .centre-cta .btn { min-height: 54px; }
}

/* Extra-small phones (~320px): keep the 3 card buttons readable */
@media (max-width: 360px) {
  .centre-cta { gap: 7px; }
  .centre-cta .btn { font-size: .8rem; padding: 0 4px; gap: 6px; }
  .centre-cta .btn svg { width: 17px; height: 17px; }
  .centre-phone-display a { font-size: 1.1rem; }
  .hero-title { font-size: 1.62rem; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
