/* Meadowside Care Home — concept rebuild */

:root {
  --blue: #3f5aa6;
  --blue-dark: #2c427d;
  --blue-deep: #223666;
  --pink: #d63f81;
  --pink-dark: #b82d6b;
  --blue-pale: #eef1f9;
  --pink-pale: #fbeef4;
  --ink: #2a2e38;
  --ink-soft: #5a5f6b;
  --cream: #f8f7f4;
  --white: #ffffff;
  --line: #e6e5df;
  --radius: 12px;
  --shadow: 0 4px 30px rgba(34, 54, 102, 0.10);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body { font-family: var(--sans); color: var(--ink); background: var(--white); line-height: 1.7; font-size: 17px; font-weight: 400; }

img { max-width: 100%; display: block; }
a { color: var(--blue); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; }

/* ---------- header ---------- */

.topbar { background: var(--blue-deep); color: #cdd6ec; font-size: 14px; padding: 8px 0; }
.topbar .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.topbar a { color: #e7ecf7; text-decoration: none; }
.topbar a:hover { color: var(--white); }
.topbar .ic { color: var(--pink); }

header.site { background: var(--white); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
header.site .container { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 20px; }
.logo img { height: 46px; width: auto; }

nav.main { display: flex; align-items: center; gap: 24px; }
nav.main a { text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 600; }
nav.main a:hover, nav.main a.active { color: var(--pink-dark); }
nav.main a.active { border-bottom: 2px solid var(--pink); padding-bottom: 3px; }

.btn { display: inline-block; background: var(--pink); color: var(--white) !important; padding: 12px 24px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px; border: none; cursor: pointer; transition: background 0.15s; }
.btn:hover { background: var(--pink-dark); }
.btn.blue { background: var(--blue); }
.btn.blue:hover { background: var(--blue-dark); }
.btn.ghost { background: transparent; color: var(--white) !important; border: 1.5px solid rgba(255,255,255,0.85); }
.btn.ghost:hover { background: rgba(255,255,255,0.15); }
.btn.ghost-dark { background: transparent; color: var(--blue) !important; border: 1.5px solid var(--blue); }
.btn.ghost-dark:hover { background: var(--blue); color: var(--white) !important; }

.nav-toggle { display: none; background: none; border: none; font-size: 28px; cursor: pointer; color: var(--blue); }

/* ---------- hero ---------- */

.hero { position: relative; min-height: 540px; display: flex; align-items: center; color: var(--white); background-size: cover; background-position: center; }
.hero:before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(34,54,102,0.82) 0%, rgba(34,54,102,0.5) 55%, rgba(34,54,102,0.2) 100%); }
.hero .inner { position: relative; max-width: 620px; padding: 56px 0; }
.hero .kicker { color: #ffd0e4; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; font-size: 13px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 54px); margin-bottom: 18px; }
.hero p.lead { font-size: 20px; margin-bottom: 28px; color: #eef2fb; font-weight: 300; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* page hero */
.page-hero { position: relative; color: var(--white); background-size: cover; background-position: center; padding: 84px 0; }
.page-hero:before { content: ""; position: absolute; inset: 0; background: rgba(34,54,102,0.66); }
.page-hero .inner { position: relative; max-width: 720px; }
.page-hero .kicker { color: #ffd0e4; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; font-size: 13px; margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(34px, 4.5vw, 46px); margin-bottom: 10px; }
.page-hero p { font-size: 19px; color: #eef2fb; font-weight: 300; }

/* ---------- trust bar ---------- */

.trustbar { background: var(--blue-pale); padding: 20px 0; }
.trustbar .container { display: flex; justify-content: center; gap: 44px; flex-wrap: wrap; align-items: center; }
.trust { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--blue-deep); }
.trust svg { flex-shrink: 0; color: var(--pink); }

/* ---------- sections ---------- */

section.block { padding: 80px 0; }
section.block.cream { background: var(--cream); }
section.block.blue { background: var(--blue); color: #eef2fb; }
section.block.blue h2 { color: var(--white); }
section.block.blue .section-head p { color: #cdd6ec; }

.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin: 0 auto 44px; text-align: center; }
.kicker-line { color: var(--pink-dark); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 13px; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); font-size: 18px; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.split .photo.framed { position: relative; }
.split .photo.framed:before { content: ""; position: absolute; inset: -14px -14px 14px 14px; border: 2px solid var(--pink); border-radius: var(--radius); z-index: -1; }
.prose h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 16px; }
.prose p { margin-bottom: 16px; color: var(--ink-soft); font-size: 17px; }
.prose p strong { color: var(--ink); }
.prose .kicker-line { margin-bottom: 12px; }

/* feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); }
.card .icon { width: 56px; height: 56px; border-radius: 14px; background: var(--pink-pale); color: var(--pink-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15.5px; }

/* feature list (facilities) */
.facilities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; }
.facility { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.facility svg { flex-shrink: 0; color: var(--pink); margin-top: 4px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.stat .num { font-family: var(--serif); font-size: 34px; color: var(--pink-dark); font-weight: 700; }
.stat .label { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }

/* activities grid */
.acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.act { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.act h3 { font-size: 19px; margin-bottom: 8px; color: var(--blue-dark); }
.act p { color: var(--ink-soft); font-size: 15px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery img { width: 100%; height: 250px; object-fit: cover; border-radius: var(--radius); }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.quote .mark { font-family: var(--serif); font-size: 46px; color: var(--pink); line-height: 0.6; margin-bottom: 14px; }
.quote p { font-size: 17px; margin-bottom: 14px; font-style: italic; color: var(--ink); font-family: var(--serif); line-height: 1.5; }
.quote .who { font-weight: 700; font-size: 14px; color: var(--pink-dark); font-style: normal; }
.quote.cqc { background: var(--blue-pale); border-color: #d5ddf0; }

/* CTA band */
.cta-band { background-size: cover; background-position: center; position: relative; padding: 80px 0; text-align: center; color: var(--white); }
.cta-band:before { content: ""; position: absolute; inset: 0; background: rgba(34,54,102,0.82); }
.cta-band .inner { position: relative; max-width: 620px; margin: 0 auto; }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; color: var(--white); }
.cta-band p { color: #dce3f3; margin-bottom: 28px; font-size: 18px; }

/* with-side */
.with-side { display: grid; grid-template-columns: 1.5fr 1fr; gap: 52px; align-items: start; }
.side-card { background: var(--blue); color: #eef2fb; border-radius: var(--radius); padding: 32px; position: sticky; top: 96px; }
.side-card h3 { font-size: 24px; margin-bottom: 12px; color: var(--white); }
.side-card p { color: #cdd6ec; font-size: 15.5px; margin-bottom: 20px; }
.side-card .btn { width: 100%; text-align: center; margin-bottom: 12px; }

/* forms */
form.enquiry { display: grid; gap: 16px; }
form.enquiry .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.enquiry label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 6px; }
form.enquiry input, form.enquiry textarea, form.enquiry select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; font-size: 16px; background: var(--white); color: var(--ink); }
form.enquiry input:focus, form.enquiry textarea:focus, form.enquiry select:focus { outline: 2px solid var(--pink); border-color: var(--pink); }

/* ---------- footer ---------- */

footer.site { background: var(--blue-deep); color: #b8c2dd; padding: 56px 0 28px; }
footer.site .cols { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr; gap: 44px; margin-bottom: 38px; }
footer.site .logo-foot { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
footer.site .logo-foot img { height: 40px; }
footer.site h4 { color: var(--white); font-size: 18px; margin-bottom: 14px; font-family: var(--serif); }
footer.site a { color: #d3dbef; text-decoration: none; }
footer.site a:hover { color: var(--white); }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 9px; font-size: 15px; }
footer.site .badges { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
footer.site .badges span { background: rgba(255,255,255,0.1); border-radius: 6px; padding: 6px 10px; font-size: 12.5px; font-weight: 600; color: #eef2fb; }
footer.site .fine { border-top: 1px solid #35477a; padding-top: 20px; font-size: 13.5px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.demo-note { background: var(--pink-pale); border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-soft); text-align: center; padding: 11px 16px; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .split, .with-side { grid-template-columns: 1fr; gap: 40px; }
  .split .photo.framed:before { display: none; }
  .cards, .acts, .quotes { grid-template-columns: 1fr; }
  .facilities { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; }
  footer.site .cols { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .nav-toggle { display: block; }
  nav.main { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 22px 24px; gap: 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  nav.main.open { display: flex; }
  form.enquiry .row { grid-template-columns: 1fr; }
  section.block { padding: 54px 0; }
}
