/* Blubell Healthcare Group — site styles */

:root {
  --navy: #28386C;        /* from the bluebell logo */
  --navy-deep: #1C2850;
  --bluebell: #6E7BC4;    /* decorative only */
  --meadow: #2D6A4F;      /* calls to action */
  --meadow-dark: #22543E;
  --mist: #EEF1F8;
  --mist-line: #D5DBEA;
  --paper: #FFFFFF;
  --ink: #1F2433;
  --ink-soft: #485066;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", "Segoe UI", Verdana, Arial, sans-serif;

  --wrap: 76rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --arch: 50% 50% 0.75rem 0.75rem / 20% 20% 0.75rem 0.75rem; /* window arch, echoing Selly Park's convent windows */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.1875rem;   /* 19px — comfortable for older readers */
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--bluebell); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; max-width: 38em; }
.lead { font-size: 1.3125rem; color: var(--ink-soft); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--navy); color: #fff; padding: 0.75rem 1rem; border-radius: 6px;
}
.skip:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; padding: 0.75rem 1.5rem;
  font: 700 1.0625rem/1.2 var(--sans);
  border-radius: 0.5rem; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
}
.btn-go { background: var(--meadow); color: #fff; }
.btn-go:hover { background: var(--meadow-dark); }
.btn-quiet { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-quiet:hover { background: var(--mist); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- Top bar ---------- */
.callbar { background: var(--navy-deep); color: #fff; font-size: 1rem; }
.callbar .wrap {
  display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center;
  gap: 0.25rem 2rem; padding-top: 0.5rem; padding-bottom: 0.5rem;
}
.callbar span { opacity: 0.85; }
.callbar a { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.callbar a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--mist-line); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5.75rem; }
.brand img { width: 12.5rem; }

.nav-toggle {
  display: none;
  font: 700 1rem var(--sans); color: var(--navy);
  background: var(--mist); border: 2px solid var(--navy); border-radius: 0.5rem;
  min-height: 3rem; padding: 0.5rem 1rem; cursor: pointer;
}

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.1rem; }
.main-nav a {
  display: block; padding: 0.6rem 0.6rem; border-radius: 0.375rem; white-space: nowrap;
  font-size: 1.0625rem; color: var(--ink); text-decoration: none;
}
.main-nav a:hover { background: var(--mist); color: var(--navy); }
.main-nav a[aria-current="page"] { color: var(--navy); font-weight: 700; box-shadow: inset 0 -3px 0 var(--bluebell); border-radius: 0; }
.main-nav .nav-visit { margin-left: 0.5rem; }
.main-nav .nav-visit a { background: var(--meadow); color: #fff; font-weight: 700; padding: 0.7rem 1.1rem; border-radius: 0.5rem; }
.main-nav .nav-visit a:hover { background: var(--meadow-dark); }

@media (max-width: 77rem) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--mist-line); box-shadow: 0 12px 24px rgba(28, 40, 80, 0.08); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 0.5rem var(--gutter) 1.25rem; }
  .main-nav a { padding: 0.9rem 0.5rem; font-size: 1.1875rem; border-bottom: 1px solid var(--mist); border-radius: 0; }
  .main-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--bluebell); padding-left: 1rem; }
  .main-nav .nav-visit { margin: 1rem 0 0; }
  .main-nav .nav-visit a { text-align: center; border: 0; }
}
@media (max-width: 30rem) {
  .brand img { width: 10rem; }
  .callbar .wrap { justify-content: flex-start; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-mist { background: var(--mist); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }

/* ---------- Home hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 13em; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 60% center; border-radius: var(--arch); }
.hero-photo::before {
  /* a single bluebell-coloured arch line behind the photo — the one decorative flourish */
  content: ""; position: absolute; inset: -0.9rem -0.9rem 1.5rem 0.9rem;
  border: 2px solid var(--bluebell); border-bottom: 0; border-radius: var(--arch); z-index: -1;
}
@media (max-width: 52rem) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo { margin-right: 0.9rem; }
}

/* ---------- Homes ---------- */
.homes { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 5vw, 4rem); }
.home-panel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--arch); margin-bottom: 1.5rem; }
.home-panel h3 { font-size: 1.75rem; margin-bottom: 0.35rem; }
.home-panel address { font-style: normal; color: var(--ink-soft); margin-bottom: 0.75rem; }
.home-panel .phone { font-size: 1.375rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.home-panel .phone:hover { text-decoration: underline; }
.home-panel .btn-row { margin-top: 1.25rem; }
@media (max-width: 46rem) { .homes { grid-template-columns: 1fr; } }

/* ---------- Steps (a genuine sequence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--navy); padding-top: 1.25rem; }
.steps li::before {
  content: "Step " counter(step);
  display: block; font-weight: 700; color: var(--meadow); margin-bottom: 0.4rem; font-size: 1rem;
}
.steps h3 { font-size: 1.375rem; }
.steps p { color: var(--ink-soft); }
@media (max-width: 52rem) { .steps { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Care types ---------- */
.care-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--mist-line); }
.care-list li { display: grid; grid-template-columns: minmax(10rem, 16rem) 1fr; gap: 0.5rem 2.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--mist-line); }
.care-list h3 { font-size: 1.375rem; margin: 0; }
.care-list p { margin: 0; color: var(--ink-soft); }
.video-embed { margin: 1.25rem 0 0; max-width: 40rem; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--navy-deep); border-radius: 0.75rem; overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed figcaption { font-size: 1rem; color: var(--ink-soft); margin-top: 0.5rem; }
@media (max-width: 40rem) { .care-list li { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split img { width: 100%; border-radius: 0.75rem; aspect-ratio: 16 / 10; object-fit: cover; }
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; } }

/* ---------- Call band ---------- */
.callband { background: var(--navy); color: #fff; }
.callband h2 { color: #fff; }
.callband p { color: #DCE1F0; }
.callband-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 2rem 3rem; align-items: start; }
.callband .who { font-family: var(--serif); font-size: 1.375rem; margin: 0 0 0.25rem; color: #fff; }
.callband .num { font-size: 1.75rem; font-weight: 700; color: #fff; text-decoration: none; display: inline-block; margin-bottom: 0.25rem; }
.callband .num:hover { text-decoration: underline; }
.callband a { color: #fff; }
@media (max-width: 52rem) { .callband-grid { grid-template-columns: 1fr; } }

/* ---------- Inner page heading ---------- */
.page-head { background: var(--mist); padding: clamp(2.5rem, 6vw, 4rem) 0; border-bottom: 1px solid var(--mist-line); }
.page-head h1 { margin-bottom: 0.4rem; }
.page-head p { margin: 0; }
.crumbs { font-size: 1rem; margin-bottom: 0.75rem; }
.crumbs a { color: var(--ink-soft); }

/* ---------- Single home page ---------- */
.home-layout { display: grid; grid-template-columns: 1fr 21rem; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.home-layout .photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--arch); margin-bottom: 2rem; }
.facts { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.facts li { padding: 0.7rem 0 0.7rem 1.75rem; border-bottom: 1px solid var(--mist-line); position: relative; }
.facts li::before { content: ""; position: absolute; left: 0.25rem; top: 1.2rem; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--bluebell); }
.info-box { background: var(--mist); border-radius: 0.75rem; padding: 1.75rem; position: sticky; top: 1.5rem; }
.info-box h2 { font-size: 1.5rem; }
.info-box dl { margin: 0 0 1.5rem; }
.info-box dt { font-weight: 700; font-size: 1rem; color: var(--ink-soft); margin-top: 1rem; }
.info-box dd { margin: 0.15rem 0 0; }
.info-box .num { font-size: 1.5rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.info-box .btn { width: 100%; }
.info-box .btn + .btn { margin-top: 0.75rem; }
@media (max-width: 56rem) {
  .home-layout { grid-template-columns: 1fr; }
  .info-box { position: static; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.contact-home { padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--mist-line); }
.contact-home:last-child { border-bottom: 0; margin-bottom: 0; }
.contact-home address { font-style: normal; }
.contact-home .num { font-size: 1.5rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.form { background: var(--mist); border-radius: 0.75rem; padding: clamp(1.5rem, 4vw, 2.25rem); }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.field .hint { display: block; font-size: 1rem; color: var(--ink-soft); margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 0.75rem 0.9rem; min-height: 3.25rem;
  border: 2px solid #8C95AD; border-radius: 0.5rem; background: #fff;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid var(--bluebell); outline-offset: 1px; }
.form-note { font-size: 1rem; color: var(--ink-soft); margin-top: 1rem; }
.form-error { color: #9B1C1C; font-weight: 700; display: none; }
.form-error.show { display: block; }
@media (max-width: 52rem) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Prose pages ---------- */
.prose { max-width: 42rem; }
.prose h2 { margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.tags { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tags li { background: var(--mist); border: 1px solid var(--mist-line); border-radius: 999px; padding: 0.35rem 1rem; }
.notice { border-left: 4px solid var(--bluebell); background: var(--mist); padding: 1.25rem 1.5rem; border-radius: 0 0.5rem 0.5rem 0; margin: 2rem 0; }
.notice p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #DCE1F0; padding: 3.5rem 0 2rem; font-size: 1.0625rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 0.9fr; gap: 2rem 2.5rem; }
.footer-grid h2 { font-size: 1.1875rem; color: #fff; font-family: var(--sans); font-weight: 700; margin-bottom: 0.6rem; }
.footer-grid address { font-style: normal; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.4rem; }
.site-footer .logo { width: 11rem; margin-bottom: 1rem; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.18); margin-top: 2.5rem; padding-top: 1.5rem; font-size: 1rem; }
@media (max-width: 60rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 34rem) { .footer-grid { grid-template-columns: 1fr; } }

@media print {
  .callbar, .nav-toggle, .main-nav, .btn-row, .form { display: none !important; }
  body { font-size: 12pt; }
}
