/* ProRenovas - Physiotherapy & Postural Clinic Styling */
:root {
  --cobalt-main: #1E3A8A;
  --cobalt-dark: #172554;
  --crimson-accent: #BE123C;
  --crimson-light: #FFE4E6;
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --border-slate: #E2E8F0;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Work Sans', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); background: var(--bg-page); color: var(--text-dark); line-height: 1.6; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Top notification */
.rehab-top { background: var(--cobalt-dark); color: #E0E7FF; font-size: 0.8rem; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.rehab-top-flex { display: flex; justify-content: space-between; align-items: center; }

/* Header */
.rehab-header { background: #FFFFFF; border-bottom: 2px solid var(--cobalt-main); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(30,58,138,0.05); }
.header-row { display: flex; justify-content: space-between; align-items: center; height: 74px; }
.rehab-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-title-rh { font-family: var(--font-heading); font-size: 1.45rem; font-weight: 800; color: var(--cobalt-main); letter-spacing: -0.5px; }
.brand-title-rh span { color: var(--crimson-accent); }
.brand-sub-rh { font-size: 0.7rem; color: var(--text-muted); display: block; font-family: var(--font-body); }
.rehab-nav { display: flex; gap: 24px; list-style: none; align-items: center; }
.rehab-nav a { text-decoration: none; color: #334155; font-size: 0.92rem; font-weight: 600; transition: color 0.2s; }
.rehab-nav a:hover, .rehab-nav a.active { color: var(--crimson-accent); }
.btn-rehab { background: var(--crimson-accent); color: #FFFFFF; padding: 10px 22px; border-radius: 6px; font-weight: 600; font-size: 0.88rem; text-decoration: none; border: none; cursor: pointer; transition: background 0.2s; }
.btn-rehab:hover { background: #9F1239; }

/* Hero */
.rehab-hero { background: linear-gradient(135deg, #1E3A8A 0%, #172554 100%); color: #FFFFFF; padding: 64px 0; }
.hero-two-rh { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.rehab-badge { background: rgba(190,18,60,0.2); border: 1px solid var(--crimson-accent); color: #FDA4AF; padding: 4px 12px; border-radius: 4px; font-size: 0.8rem; font-weight: 700; display: inline-block; margin-bottom: 14px; }
.hero-h1-rh { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.hero-p-rh { color: #E0E7FF; font-size: 1.05rem; margin-bottom: 24px; line-height: 1.6; }
.hero-img-rh { width: 100%; height: 350px; object-fit: cover; border-radius: 10px; border: 2px solid #3B82F6; }

/* Grid & Cards */
.rehab-sec { padding: 60px 0; }
.rehab-title { text-align: center; max-width: 660px; margin: 0 auto 40px; }
.rehab-title h2 { font-family: var(--font-heading); font-size: 2rem; color: var(--cobalt-main); margin-bottom: 10px; }
.rehab-title p { color: var(--text-muted); font-size: 0.95rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.rehab-card { background: var(--bg-card); border-radius: 10px; border: 1px solid var(--border-slate); padding: 24px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.rehab-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 6px; margin-bottom: 16px; }
.rehab-card h3 { font-family: var(--font-heading); font-size: 1.25rem; color: var(--text-dark); margin-bottom: 8px; }
.rehab-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }

/* Interactive Screener */
.spine-box { background: #FFFFFF; border-radius: 12px; border: 2px solid #CBD5E1; padding: 34px; margin: 40px 0; box-shadow: 0 6px 20px rgba(30,58,138,0.05); }
.spine-box h3 { font-family: var(--font-heading); font-size: 1.45rem; color: var(--cobalt-main); margin-bottom: 6px; }
.spine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.spine-grp label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; color: #1E293B; }
.spine-grp select, .spine-grp input { width: 100%; padding: 11px 14px; border-radius: 6px; border: 1px solid #CBD5E1; font-family: inherit; font-size: 0.92rem; }
.spine-output { background: #EFF6FF; border-left: 4px solid var(--cobalt-main); padding: 18px; border-radius: 6px; margin-top: 20px; display: none; }

/* Footer */
.rehab-footer { background: var(--cobalt-dark); color: #94A3B8; padding: 50px 0 24px; font-size: 0.86rem; }
.rehab-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; margin-bottom: 30px; }
.rehab-foot-grid h4 { color: #FFFFFF; font-family: var(--font-heading); font-size: 1.05rem; margin-bottom: 14px; }
.rehab-foot-grid ul { list-style: none; }
.rehab-foot-grid ul li { margin-bottom: 8px; }
.rehab-foot-grid ul a { color: #94A3B8; text-decoration: none; }
.rehab-foot-grid ul a:hover { color: #FFFFFF; }
.rehab-copy { border-top: 1px solid #1E3A8A; padding-top: 20px; text-align: center; font-size: 0.78rem; }

/* Modal */
.modal-layer { position: fixed; inset: 0; background: rgba(0,0,0,0.65); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal-pane-rh { background: #FFFFFF; border-radius: 10px; max-width: 500px; width: 100%; padding: 30px; position: relative; }
.close-rh { position: absolute; top: 16px; right: 18px; font-size: 1.5rem; border: none; background: transparent; cursor: pointer; color: #64748B; }

/* Cookie */
.cookie-rh-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--cobalt-dark); color: #F8FAFC; padding: 12px 0; z-index: 999; font-size: 0.82rem; border-top: 2px solid var(--crimson-accent); }
.cookie-flex { display: flex; justify-content: space-between; align-items: center; }

@media (max-width: 768px) {
  .hero-two-rh, .grid-3, .grid-2, .rehab-foot-grid, .spine-grid { grid-template-columns: 1fr; }
  .rehab-nav { display: none; }
}
