/* Rehab Health Center — main stylesheet */
:root {
  --cobalt: #1E40AF;
  --cobalt-2: #2563EB;
  --lime: #84CC16;
  --lime-dark: #65A30D;
  --soft: #F4F7FD;
  --cream: #F1F9E4;
  --text: #3E4756;
  --muted: #6E7785;
  --line: #E3E7EE;
}
html, body { overflow-x: hidden; }
body { font-family: "Inter", Arial, sans-serif; color: var(--text); line-height: 1.75; background: #fff; }
h1, h2, h3, h4, h5 { font-family: "Montserrat", Arial, sans-serif; color: var(--cobalt); font-weight: 800; }
a { color: var(--cobalt-2); text-decoration: none; }
a:hover { color: var(--lime-dark); }
img { max-width: 100%; }

/* Buttons */
.btn { border-radius: 10px; font-weight: 600; padding: .72rem 1.6rem; }
.btn-sm { padding: .45rem 1.1rem; font-size: .9rem; }
.btn-lg { padding: .9rem 2rem; }
.btn-lime { background: var(--lime); color: #0F1F4D; border: 2px solid var(--lime); }
.btn-lime:hover, .btn-lime:focus { background: var(--lime-dark); border-color: var(--lime-dark); color: #fff; }
.btn-cobalt { background: var(--cobalt); color: #fff; border: 2px solid var(--cobalt); }
.btn-cobalt:hover { background: var(--cobalt-2); border-color: var(--cobalt-2); color: #fff; }
.btn-outline-cobalt { border: 2px solid var(--cobalt); color: var(--cobalt); background: transparent; }
.btn-outline-cobalt:hover { background: var(--cobalt); color: #fff; }
.btn-outline-light { border-width: 2px; }

/* Header */
.site-header { background: #fff; position: sticky; top: 0; z-index: 1000; border-bottom: 3px solid var(--lime); }
.site-header .navbar { padding: .85rem 0; }
.navbar-brand { padding: 0; margin: 0; display: flex; align-items: center; }
.navbar-brand img { height: 46px; width: auto; display: block; }
.site-header .nav-link { color: var(--cobalt); font-weight: 600; padding: .5rem .9rem !important; }
.site-header .nav-link.active, .site-header .nav-link:hover { color: var(--lime-dark); }
.navbar-toggler { border: 0; font-size: 1.9rem; color: var(--cobalt); padding: 0; }
.navbar-toggler:focus { box-shadow: none; }

/* Common */
.section { padding: 90px 0; }
.soft { background: var(--soft); }
.cobalt { background: var(--cobalt); }
.label { display: inline-flex; align-items: center; gap: .45rem; font-family: "Montserrat", sans-serif; font-weight: 800; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lime-dark); margin-bottom: .7rem; }
.label::before { content: "\F5D5"; font-family: "bootstrap-icons"; font-size: 1rem; letter-spacing: 0; }
.label.light { color: var(--lime); background: none; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.18; margin-bottom: 1rem; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.sec-head.left { text-align: left; margin: 0 0 1.6rem; }
.sec-head p { color: var(--muted); margin: 0; }
.img-main { width: 100%; border-radius: 18px; object-fit: cover; aspect-ratio: 4 / 3; display: block; }
.check-list { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .6rem; font-weight: 500; }
.check-list i { color: var(--lime-dark); font-size: 1.05rem; line-height: 1.75; }

/* Hero (split) */
.hero { background: linear-gradient(135deg, var(--soft) 0%, #fff 55%, var(--cream) 100%); padding: 80px 0 110px; overflow: hidden; }
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.5rem); line-height: 1.1; margin-bottom: 1.2rem; }
.hero h1 span { color: var(--lime-dark); }
.hero p { font-size: 1.08rem; color: var(--muted); margin-bottom: 2rem; max-width: 560px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-photo { position: relative; padding: 0 0 24px 24px; }
.hero-photo::before { content: ""; position: absolute; left: 0; bottom: 0; width: 75%; height: 80%; background: var(--lime); border-radius: 24px; transform: skewY(-4deg); }
.hero-photo img { position: relative; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 24px; display: block; box-shadow: 0 24px 50px rgba(30,64,175,.18); }
.hero-badge { position: absolute; right: -10px; top: 30px; display: flex; gap: .8rem; align-items: center; background: #fff; padding: .9rem 1.2rem; border-radius: 14px; box-shadow: 0 14px 34px rgba(30,64,175,.18); }
.hero-badge i { width: 44px; height: 44px; border-radius: 12px; background: var(--cobalt); color: var(--lime); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.hero-badge strong { display: block; color: var(--cobalt); }
.hero-badge span { font-size: .86rem; color: var(--muted); }

/* Recovery journey */
.journey { margin-top: -60px; position: relative; z-index: 2; }
.journey-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: var(--cobalt); color: rgba(255,255,255,.82); border-radius: 18px; padding: 1.6rem 1.4rem; position: relative; }
.step:nth-child(even) { background: var(--cobalt-2); }
.step i { width: 50px; height: 50px; border-radius: 50%; background: var(--lime); color: #0F1F4D; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: .8rem; }
.step h4 { color: #fff; font-size: 1.2rem; margin-bottom: .2rem; }
.step p { margin: 0; font-size: .92rem; }
.step:not(:last-child)::after { content: "\F138"; font-family: "bootstrap-icons"; position: absolute; right: -16px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--cobalt); display: flex; align-items: center; justify-content: center; font-size: .9rem; z-index: 3; box-shadow: 0 4px 10px rgba(0,0,0,.12); }

/* About */
.about-imgs { position: relative; padding: 0 0 60px 0; }
.about-imgs .a1 { width: 82%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; display: block; }
.about-imgs .a2 { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px; border: 8px solid #fff; box-shadow: 0 18px 38px rgba(30,64,175,.18); }
.value-box { background: #fff; border-radius: 18px; padding: 2.2rem 1.8rem; height: 100%; text-align: center; border-top: 4px solid var(--lime); }
.value-box i { font-size: 2rem; color: var(--cobalt); }
.value-box h4 { margin: .8rem 0 .5rem; }
.value-box p { margin: 0; color: var(--muted); }

/* Why */
.why { background: var(--cream); }
.why-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; display: block; }
.why-card { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border-radius: 16px; padding: 1.5rem; height: 100%; transition: transform .25s, box-shadow .25s; }
.why-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(30,64,175,.1); }
.why-card span { flex: 0 0 50px; width: 50px; height: 50px; border-radius: 50%; background: var(--cobalt); color: var(--lime); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.why-card h4 { font-size: 1.1rem; margin: 0 0 .3rem; }
.why-card p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.6; }

/* Services */
.svc-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.svc-card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(30,64,175,.12); }
.svc-img { position: relative; }
.svc-img img { width: 100%; height: 215px; object-fit: cover; display: block; }
.svc-icon { position: absolute; right: 1.2rem; bottom: -26px; width: 54px; height: 54px; border-radius: 50%; background: var(--lime); color: var(--cobalt); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; border: 4px solid #fff; }
.svc-body { padding: 1.6rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; align-items: flex-start; }
.svc-body h3 { font-size: 1.3rem; margin: 0 0 .5rem; padding-right: 3rem; }
.svc-body p { color: var(--muted); font-size: .95rem; flex: 1; }

/* Testimonials */
.cobalt .sec-head h2 { color: #fff; }
.cobalt .label { color: var(--lime); }
.quote-card { background: var(--cobalt-2); border-radius: 18px; padding: 2rem; height: 100%; color: rgba(255,255,255,.85); border-left: 4px solid var(--lime); }
.quote-card i { font-size: 2.4rem; color: var(--lime); line-height: 1; }
.quote-card p { margin: .6rem 0 1.2rem; }
.quote-card h5 { margin: 0; color: #fff; font-size: 1.05rem; }

/* Blog */
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.post-img img { width: 100%; height: 225px; object-fit: cover; display: block; }
.post-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; align-items: flex-start; }
.tag { background: var(--cream); color: var(--lime-dark); font-weight: 700; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 6px; }
.post-body h3 { font-size: 1.3rem; margin: .8rem 0 .5rem; line-height: 1.3; }
.post-body h3 a { color: var(--cobalt); }
.post-body h3 a:hover { color: var(--lime-dark); }
.post-body p { color: var(--muted); flex: 1; }
.read-more { font-weight: 700; }

/* FAQ */
.accordion-item { border: 1px solid var(--line); border-radius: 14px !important; margin-bottom: .8rem; overflow: hidden; }
.accordion-button { font-family: "Montserrat", sans-serif; font-weight: 700; color: var(--cobalt); font-size: 1.05rem; padding: 1.1rem 1.3rem; }
.accordion-button:not(.collapsed) { background: var(--cream); color: var(--cobalt); box-shadow: none; }
.accordion-button:focus { box-shadow: none; }
.accordion-body { color: var(--muted); }

/* CTA */
.cta { padding: 90px 0; background: #fff; }
.cta-box { background: var(--cobalt) url('../img/blog-stretching.jpg') right center / 40% auto no-repeat; border-radius: 22px; padding: 3rem 3.2rem; color: rgba(255,255,255,.88); position: relative; overflow: hidden; }
.cta-box::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--cobalt) 55%, rgba(30,64,175,.3) 100%); }
.cta-box > * { position: relative; }
.cta-box h2 { color: #fff; margin-bottom: .4rem; }
.cta-box p { margin: 0; }

/* Page banner */
.page-banner { background: var(--cobalt); padding: 64px 0; color: rgba(255,255,255,.82); border-bottom: 5px solid var(--lime); }
.page-banner h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .4rem; }
.page-banner p { margin: 0; max-width: 640px; }
.crumbs { font-weight: 600; font-size: .92rem; }
.crumbs a { color: var(--lime); }

/* Article */
.article h2 { font-size: 1.6rem; margin-top: 1.8rem; }
.article blockquote { background: var(--cream); border-left: 4px solid var(--lime); border-radius: 10px; padding: 1.1rem 1.4rem; font-style: italic; color: var(--cobalt); }
.article .note { background: var(--soft); border-radius: 10px; padding: 1rem 1.2rem; font-size: .92rem; }
.legal { max-width: 860px; margin: 0 auto; }
.side-box { background: var(--soft); border-radius: 18px; padding: 1.6rem; margin-bottom: 1.5rem; }
.side-posts { list-style: none; padding: 0; margin: 0; }
.side-posts li { margin-bottom: 1rem; }
.side-posts a { display: flex; gap: .8rem; align-items: center; font-weight: 600; color: var(--cobalt); line-height: 1.4; }
.side-posts img { width: 76px; height: 60px; object-fit: cover; border-radius: 10px; flex: 0 0 76px; }
.side-box.dark { background: var(--cobalt); color: rgba(255,255,255,.82); }
.side-box.dark h5 { color: #fff; }

/* Contact & forms */
.info-card { display: flex; gap: 1rem; align-items: flex-start; background: var(--soft); border-radius: 18px; padding: 1.7rem 1.5rem; height: 100%; }
.info-card i { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; background: var(--cobalt); color: var(--lime); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.info-card h4 { font-size: 1.1rem; margin: 0 0 .2rem; }
.info-card p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 2.4rem; height: 100%; box-shadow: 0 12px 30px rgba(30,64,175,.06); }
.form-label { font-weight: 600; font-size: .9rem; color: var(--cobalt); margin-bottom: .3rem; }
.form-control, .form-select { border-radius: 10px; padding: .75rem 1rem; border-color: var(--line); background-color: var(--soft); }
.form-control:focus, .form-select:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(132,204,22,.2); background-color: #fff; }
.form-control.is-invalid, .form-select.is-invalid { border-color: #C2453D; background-image: none; padding-right: 1rem; }
.form-check-input.is-invalid { border-color: #C2453D; }
.form-check-input:checked { background-color: var(--cobalt); border-color: var(--cobalt); }
.form-msg { margin-top: .9rem; font-weight: 600; font-size: .95rem; }
.form-msg.ok { color: #2E7D4F; }
.form-msg.err { color: #C2453D; }
.map { border-radius: 18px; overflow: hidden; height: 100%; min-height: 420px; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* Newsletter */
.news-box { max-width: 1000px; margin: 0 auto; background: var(--soft); border-radius: 22px; overflow: hidden; }
.news-box img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.news-form { padding: 3rem; }

/* Footer */
.site-footer { background: #0F1F4D; color: rgba(255,255,255,.7); padding: 70px 0 0; border-top: 5px solid var(--lime); }
.foot-logo { display: inline-block; margin-bottom: 1rem; }
.foot-logo img { height: 44px; width: auto; display: block; }
.site-footer h5 { color: #fff; font-size: 1.1rem; margin-bottom: 1rem; }
.site-footer p { margin: 0; }
.site-footer .small-note { margin-bottom: .8rem; font-size: .92rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a:not(.btn):not(.foot-logo) { color: rgba(255,255,255,.76); overflow-wrap: anywhere; }
.site-footer a:not(.btn):not(.foot-logo):hover { color: var(--lime); }
.foot-form .form-control { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #fff; }
.foot-form .form-control::placeholder { color: rgba(255,255,255,.5); }
.foot-form .btn { border-radius: 0 10px 10px 0; padding: .6rem 1rem; }
.foot-form .form-msg.ok { color: #9FE0B8; }
.foot-form .form-msg.err { color: #F2A19B; }
.foot-unsub { display: inline-block; margin-top: .7rem; font-size: .88rem; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding: 1.4rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; font-size: .9rem; }
.footer-bottom .sep { margin: 0 .6rem; opacity: .5; }

@media (max-width: 991px) {
  .site-header .navbar-collapse { padding: 1rem 0 .5rem; }
  .site-header .nav-link { padding: .5rem 0 !important; }
  .site-header .btn-lime { margin-top: .5rem; }
  .section, .cta { padding: 66px 0; }
  .journey-row { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .hero-badge { right: 10px; }
  .crumbs { margin-top: 1rem; }
  .cta-box { background-image: none; }
}
@media (max-width: 575px) {
  .navbar-brand img { height: 38px; }
  .journey { margin-top: -40px; }
  .journey-row { grid-template-columns: 1fr; }
  .hero-badge { position: relative; top: auto; right: auto; margin-top: 1rem; padding: .7rem .9rem; display: inline-flex; }
  .about-imgs { padding-bottom: 40px; }
  .cta-box, .form-card, .news-form { padding: 1.8rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
