/* ═══════════════════════════════════════════════
   MRC MEDICINE & REHAB CENTER — SHARED BASE CSS
   Import this in every page: <link rel="stylesheet" href="mrc-base.css">
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── TOKENS ── */
:root {
  --teal:        #0f766e;
  --teal-light:  #14b8a6;
  --teal-dark:   #0a5c57;
  --teal-ultra:  #042f2e;
  --gold:        #c9963a;
  --gold-light:  #f0c97a;
  --cream:       #faf7f2;
  --charcoal:    #111827;
  --slate:       #334155;
  --muted:       #64748b;
  --border:      #e2e8f0;
  --white:       #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Outfit', sans-serif;

  --radius-sm:   12px;
  --radius-md:   20px;
  --radius-lg:   32px;
  --radius-xl:   48px;

  --shadow-xs:   0 2px 8px rgba(15,118,110,.06);
  --shadow-sm:   0 4px 20px rgba(15,118,110,.10);
  --shadow-md:   0 12px 40px rgba(15,118,110,.14);
  --shadow-lg:   0 24px 64px rgba(15,118,110,.20);

  --ease:        cubic-bezier(.4,0,.2,1);
  --dur:         .38s;

  --max-w: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--charcoal);
  line-height: 1.7;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 99px; }

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 120px) 0; }

/* ── TYPOGRAPHY ── */
.display { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); background: rgba(15,118,110,.1);
  padding: 6px 18px; border-radius: 99px; margin-bottom: 20px;
}
.label-light { color: #7dd3ca; background: rgba(255,255,255,.15); }
h1 { font-size: clamp(2.6rem,6vw,4.4rem); }
h2 { font-size: clamp(2rem,4.5vw,3.2rem); }
h3 { font-size: clamp(1.3rem,2.5vw,1.8rem); }
.text-teal { color: var(--teal); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.italic { font-style: italic; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 99px;
  font-weight: 600; font-size: 1rem; transition: all var(--dur) var(--ease);
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(15,118,110,.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15,118,110,.45); }
.btn-outline {
  background: transparent; color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline:hover { background: var(--teal); color: white; }
.btn-ghost {
  background: rgba(255,255,255,.15); color: white;
  border: 1px solid rgba(255,255,255,.3);
}
.btn-ghost:hover { background: rgba(255,255,255,.25); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--charcoal); font-weight: 700;
}
.btn-lg { padding: 18px 44px; font-size: 1.1rem; }
.btn-sm { padding: 10px 22px; font-size: .9rem; }

/* ── CARDS ── */
.card {
  background: white; border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.card-glass {
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.6);
}

/* ── FORMS ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: .8rem; font-weight: 600;
  letter-spacing: .05em; margin-bottom: 8px; color: var(--slate);
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 15px 18px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: white;
  font-size: 1rem; color: var(--charcoal);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15,118,110,.12);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* ── TOP BAR ── */
.topbar {
  background: linear-gradient(90deg, var(--teal-ultra), var(--teal-dark));
  color: rgba(255,255,255,.9); padding: 10px 0; font-size: .82rem;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.topbar-item { display: flex; align-items: center; gap: 7px; }
.topbar-emergency { color: var(--gold-light); font-weight: 700; animation: pulse 2.2s infinite; }

/* ── NAV ── */
.main-nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15,118,110,.08);
  transition: box-shadow var(--dur) var(--ease);
}
.main-nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.nav-logo {
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 700;
  color: var(--teal-dark); letter-spacing: -.02em;
}
.nav-logo span { color: var(--gold); font-size: .95rem; font-weight: 400; letter-spacing: .06em; display: block; line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 20px; border-radius: 99px;
  font-weight: 500; font-size: .95rem;
  color: var(--slate); transition: all var(--dur) var(--ease);
}
.nav-links a:hover, .nav-links a.active { background: rgba(15,118,110,.09); color: var(--teal); }
.nav-cta { padding: 11px 26px !important; background: linear-gradient(135deg,var(--teal),var(--teal-light)) !important; color: white !important; box-shadow: 0 6px 20px rgba(15,118,110,.3); }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15,118,110,.4) !important; }

/* ── HAMBURGER ── */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.bar { width: 26px; height: 2.5px; background: var(--teal-dark); border-radius: 3px; transition: all .35s; }
.hamburger.open .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open .bar:nth-child(2) { opacity: 0; }
.hamburger.open .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── FOOTER ── */
.site-footer {
  background: var(--teal-ultra);
  color: rgba(255,255,255,.82);
  padding: 80px 0 36px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-logo { font-family: var(--font-display); font-size: 1.9rem; color: white; }
.footer-logo span { color: var(--gold); }
.footer-tagline { margin-top: 14px; font-size: .95rem; line-height: 1.6; opacity: .75; max-width: 260px; }
.footer-heading { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: rgba(255,255,255,.75); font-size: .95rem; transition: color var(--dur); }
.footer-links a:hover { color: var(--gold-light); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-size: .95rem; }
.footer-bottom {
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; font-size: .85rem; opacity: .55;
}
.footer-bottom a { color: var(--gold-light); }

/* ── STICKY MOBILE CTA ── */
.sticky-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  box-shadow: 0 -4px 24px rgba(0,0,0,.10);
}
.sticky-cta-inner { display: flex; gap: 10px; max-width: var(--max-w); margin: 0 auto; }
.sticky-cta-inner a, .sticky-cta-inner button {
  flex: 1; text-align: center; padding: 15px; border-radius: 99px;
  font-weight: 700; font-size: 1rem; transition: all .3s;
}
.cta-call { background: var(--gold); color: var(--charcoal); }
.cta-book { background: var(--teal); color: white; }

/* ── PAGE HERO (reusable interior banner) ── */
.page-hero {
  background: linear-gradient(135deg, var(--teal-ultra) 0%, var(--teal-dark) 100%);
  color: white; padding: clamp(80px,12vw,140px) 0;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: white; margin-bottom: 20px; }
.page-hero p { font-size: 1.15rem; opacity: .85; max-width: 600px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .85rem; opacity: .65; margin-bottom: 20px; }
.breadcrumb span { opacity: .5; }

/* ── ANIMATIONS ── */
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.55} }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
@keyframes fadeUp { from{opacity:0;transform:translateY(32px)} to{opacity:1;transform:translateY(0)} }
@keyframes shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── DIVIDERS ── */
.divider { height: 1px; background: var(--border); margin: 0; }
.divider-teal { background: linear-gradient(90deg, transparent, var(--teal), transparent); }

/* ── GRIDS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,72px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 28px; }

/* ── BADGE FLOAT ── */
.badge-float {
  position: absolute; background: white; border-radius: 16px;
  padding: 14px 20px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 14px;
  animation: float 4s ease-in-out infinite;
}
.badge-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0;
}

/* ── TRUST BAR ── */
.trust-bar { background: var(--teal-dark); padding: 26px 0; }
.trust-inner { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 40px; color: rgba(255,255,255,.88); font-size: .92rem; font-weight: 500; }
.trust-item { display: flex; align-items: center; gap: 8px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .nav-links {
    position: fixed; inset: 0; top: 0;
    background: white; flex-direction: column; justify-content: center;
    gap: 28px; font-size: 1.2rem;
    transform: translateX(100%); transition: transform .38s var(--ease);
    z-index: 999;
  }
  .nav-links.open { transform: translateX(0); }
  .hamburger { display: flex; z-index: 1000; position: relative; }
  .sticky-cta { display: block; }
}
