﻿/*
 * Precious Senior Care & Staffing — design system
 * Brand colours: logo blue #009EE3 and logo red #E6322A. Use neutral ink,
 * white and gray for readable text and surfaces; avoid additional brand hues.
 */
:root {
  --blue: #009EE3;       /* sampled from the blue in logo_nav.png */
  --blue-pale: #E8F7FC;  /* tint of the logo blue for quiet surfaces */
  --red: #E6322A;        /* sampled from the red in logo_nav.png */
  --red-button: #D52A23; /* white text contrast: 5.02:1 */
  --red-button-hover: #C6281D;
  --white: #FFFFFF;
  --bg: #F4F6F8;
  --text: #1F2937;
  --muted: #5b6b7b;      /* 4.6:1 on white, 4.5:1 on #F4F6F8 */
  --border: #d7dee6;
  --success: #1a7f4e;
  --success-bg: #e6f4ec;
  --danger: #a51f2d;
  --danger-bg: #fbe9eb;
  --warn-bg: #fbf3e2;
  --warn-text: #7a5b0d;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-1: 0 1px 3px rgba(31, 41, 55, .08), 0 1px 2px rgba(31, 41, 55, .06);
  --shadow-2: 0 4px 14px rgba(31, 41, 55, .12);
  --font: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --max-w: 1100px;
  --space-1: .25rem; --space-2: .5rem; --space-3: 1rem; --space-4: 1.5rem;
  --space-5: 2.5rem; --space-6: 4rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0; font-family: var(--font); color: var(--text);
  background: var(--white); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-3); }
main { min-height: 60vh; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--text); margin: 0 0 var(--space-3); font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 var(--space-3); }
.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--white); color: var(--text);
  padding: .5rem 1rem; z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------- utility bar */
.utility-bar { background: var(--blue); color: var(--text); font-size: .85rem; }
.utility-bar .container { display: flex; flex-wrap: wrap; gap: var(--space-3); padding: .4rem var(--space-3); }
.utility-bar a { color: var(--text); text-decoration: underline; }

/* --------------------------------------------------------------- header/nav */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--white);
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow-1);
}
.nav { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; padding: .6rem var(--space-3); max-width: var(--max-w); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand .brand-name { font-weight: 700; color: var(--text); line-height: 1.15; }
.brand .brand-name small { display: block; color: var(--muted); font-weight: 500; }
.nav-links { display: flex; gap: 1.1rem; align-items: center; margin-left: auto; flex-wrap: wrap; }
.nav-links a { text-decoration: none; font-weight: 600; color: var(--text); padding: .35rem .2rem; }
.nav-links > a.btn-accent { color: var(--white); padding: .75rem 1.1rem; }
.nav-links > a.btn-accent:hover, .nav-links > a.btn-accent:focus-visible { background: var(--blue); border-color: var(--blue); color: var(--white); }
.nav-links a[aria-current="page"] { color: var(--red); border-bottom: 2px solid var(--red); }
.nav-toggle {
  display: none; margin-left: auto; background: var(--blue); color: var(--text);
  border: 0; border-radius: var(--radius); padding: .55rem .9rem; font-weight: 600; cursor: pointer;
}
.nav-toggle[aria-expanded="true"] { background: var(--blue-pale); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-block; padding: .65rem 1.25rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .15s ease, box-shadow .15s ease, transform .08s ease;
  text-align: center; line-height: 1.35;
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--blue); color: var(--text); }
.btn-primary:hover { background: var(--blue-pale); color: var(--text); border-color: var(--blue); }
.btn-accent { background: var(--red-button); color: var(--white); }
.btn-accent:hover { background: var(--red-button-hover); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--text); border-color: var(--blue); }
.btn-secondary:hover { background: var(--blue-pale); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--blue-pale); }
.btn-sm { padding: .4rem .8rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* -------------------------------------------------------------------- hero */
.hero {
  background: var(--blue);
  color: var(--text); padding: var(--space-6) 0;
  border-top: 5px solid var(--red);
}
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--space-5); align-items: stretch; }
.hero h1, .hero h2 { color: var(--text); }
.hero p.lead { color: var(--text); }
.hero .container > img { display: block; width: 100%; height: 100%; min-height: clamp(20rem, 35vw, 34rem); object-fit: cover; border-radius: 0; box-shadow: none; }
.hero .btn-primary { background: var(--red-button); color: var(--white); }
.hero .btn-primary:hover { background: var(--red-button-hover); color: var(--white); }
.hero .btn-secondary { background: var(--white); border-color: var(--white); color: var(--text); }
.hero-tag { color: var(--blue); font-weight: 700; letter-spacing: .02em; margin: .5rem 0 0; }
.trust-points { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-4); }
.trust-points span { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.trust-points svg { flex: none; }

/* ---------------------------------------------------------------- sections */
.section { padding: var(--space-5) 0; }
.section-alt { background: var(--bg); }
.section-blue { background: var(--blue-pale); color: var(--text); }
.section-blue h2, .section-blue h3 { color: var(--text); }
.section-blue .lead { color: var(--muted); }
.section-blue a { color: var(--text); }
/* legacy class used in templates — keep it styled identically */
.section-navy { background: var(--blue-pale); color: var(--text); }
.section-navy h2, .section-navy h3 { color: var(--text); }
.section-navy a { color: var(--text); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--space-4); }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1); overflow: hidden; display: flex; flex-direction: column;
}
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card .card-body { padding: var(--space-3) var(--space-4) var(--space-4); display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card .card-body .btn { margin-top: auto; }
.card .price-tag { font-weight: 700; color: var(--text); }
.service-category-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 2rem; }
.service-category-filter { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .55rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); color: var(--text); font-weight: 600; text-decoration: none; }
.service-category-filter:hover { border-color: var(--blue); background: var(--blue-pale); color: var(--text); }
.service-category-filter.is-active { border-color: var(--blue); background: var(--blue); color: var(--text); }
.service-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: var(--space-4); }
.service-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 8px; background: var(--white); box-shadow: var(--shadow-1); }
.service-card-image, .service-card-image-placeholder { display: flex; width: 100%; aspect-ratio: 3 / 2; align-items: center; justify-content: center; object-fit: cover; background: var(--blue-pale); }
.service-card-image-placeholder { padding: var(--space-4); color: var(--muted); font-weight: 700; text-align: center; }
.service-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: var(--space-3) var(--space-4) var(--space-4); }
.service-card-category { margin: 0 0 .25rem; color: var(--muted); font-size: .82rem; font-weight: 700; }
.service-card-title { min-height: 2.5em; margin: 0 0 .5rem; font-size: 1.2rem; }
.service-card-description { display: -webkit-box; min-height: 4.8em; margin: 0 0 .75rem; overflow: hidden; color: var(--muted); line-clamp: 3; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.service-card-price { margin: auto 0 1rem; color: var(--text); font-weight: 800; }
.service-card-actions { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; }
.service-card-actions .btn { display: flex; min-height: 2.75rem; align-items: center; justify-content: center; padding: .55rem .5rem; font-size: .9rem; }
.service-empty-state { max-width: 42rem; margin: 2rem auto 0; padding: var(--space-5); border: 1px solid var(--border); border-radius: 8px; background: var(--bg); text-align: center; }
.service-empty-state h2 { font-size: 1.4rem; }
.service-empty-state p { color: var(--muted); }
@media (max-width: 900px) { .service-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .service-cards { grid-template-columns: minmax(0, 1fr); } .service-card-title { min-height: 0; } }
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-4); }
.step { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4); overflow: hidden; }
.step h3 { color: var(--red-button); }
.step .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; margin-bottom: .6rem; border-radius: 50%;
  background: var(--blue); color: var(--text); font-weight: 800;
}
.step .cms-block-image { width: calc(100% + var(--space-4) + var(--space-4)); max-width: none; height: 12rem; object-fit: cover; border: 0; border-radius: 0; box-shadow: none; margin: calc(0px - var(--space-4)) calc(0px - var(--space-4)) var(--space-3); }
.why-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4); box-shadow: var(--shadow-1); overflow: hidden; }
.why-card h3 { color: var(--text); }
.why-card .icon { color: var(--blue); font-size: 1.4rem; }
.why-card .cms-block-image { width: calc(100% + var(--space-4) + var(--space-4)); max-width: none; height: 13rem; object-fit: cover; border: 0; border-radius: 0; box-shadow: none; margin: calc(0px - var(--space-4)) calc(0px - var(--space-4)) var(--space-3); }
.section-heading-with-image { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .6fr); gap: var(--space-4); align-items: center; }
.why-intro { margin-bottom: var(--space-4); }
.cms-feature-image { width: 100%; max-height: 240px; object-fit: cover; border-radius: var(--radius-lg); }
.cms-block-image { display: block; width: 100%; max-height: 190px; object-fit: cover; border-radius: var(--radius); margin-bottom: var(--space-2); }
.cms-section-image { display: block; max-width: min(100%, 520px); max-height: 320px; object-fit: cover; border-radius: var(--radius-lg); margin: var(--space-3) auto; }

/* -------------------------------------------------------------- forms ----- */
.form-card, .panel {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1); padding: var(--space-4) var(--space-5); max-width: 760px; margin: 0 auto;
}
.field { margin-bottom: var(--space-3); }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; }
.field .helptext { font-size: .85rem; color: var(--muted); margin-top: .25rem; }
input, select, textarea {
  width: 100%; padding: .6rem .75rem; font: inherit; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--white);
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"], .error input { border-color: var(--danger); }
.field .error-text { color: var(--danger); font-weight: 600; font-size: .9rem; margin-top: .25rem; }
.field label input[type="checkbox"], .field label input[type="radio"] { width: auto; margin-right: .5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-3); }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-summary { background: var(--danger-bg); border: 1px solid var(--danger); color: var(--danger); border-radius: var(--radius); padding: .75rem 1rem; margin-bottom: var(--space-3); }
.honeypot { position: absolute; left: -9999px; top: auto; height: 1px; overflow: hidden; }
.quick-form { background: var(--white); color: var(--text); border-radius: var(--radius-lg); padding: var(--space-4); box-shadow: var(--shadow-2); }
.quick-form .field { margin-bottom: var(--space-2); }
.quick-form label { font-weight: 600; color: var(--text); }

.checkbox { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.checkbox input { width: auto; }

/* ---------------------------------------------------- booking summary box -- */
.booking-summary {
  margin: var(--space-4) 0; padding: var(--space-4);
  background: var(--blue-pale); border: 1px solid var(--blue);
  border-radius: var(--radius-lg);
}
.booking-summary h2 { color: var(--text); font-size: 1.15rem; margin-bottom: var(--space-2); }
.summary-rows { margin: 0 0 var(--space-2); }
.summary-row { display: flex; justify-content: space-between; gap: var(--space-3); padding: .35rem 0; border-bottom: 1px dashed var(--border); }
.summary-row dt { font-weight: 600; color: var(--muted); }
.summary-row dd { margin: 0; font-weight: 700; color: var(--text); text-align: right; }
.summary-note { font-size: .85rem; color: var(--muted); }
.policy-box {
  margin-top: var(--space-3); padding: var(--space-3);
  background: var(--white); border-left: 4px solid var(--red);
  border-radius: var(--radius);
}
.policy-box h3 { font-size: 1rem; color: var(--red); margin-bottom: .4rem; }
.policy-box p { margin: 0 0 .5rem; }
.cancel-box {
  margin-top: var(--space-4); padding: var(--space-4);
  background: var(--white); border: 1px solid var(--border);
  border-left: 4px solid var(--red); border-radius: var(--radius-lg); box-shadow: var(--shadow-1);
}
.cancel-box h2 { color: var(--text); font-size: 1.15rem; }

/* -------------------------------------------------------------- messages -- */
.messages { list-style: none; margin: 0; padding: 0; }
.messages li { padding: .75rem 1rem; border-radius: var(--radius); margin: var(--space-2) 0; font-weight: 500; }
.messages li.success { background: var(--success-bg); color: var(--success); border: 1px solid var(--success); }
.messages li.error, .messages li.danger { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger); }
.messages li.warning { background: var(--warn-bg); color: var(--warn-text); border: 1px solid #d9c07a; }

/* -------------------------------------------------------------- tables ---- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data th, table.data td { text-align: left; padding: .65rem .75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data th { background: var(--blue-pale); color: var(--text); }
table.data tr:hover td { background: #fafbfc; }
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.badge-pending { background: var(--warn-bg); color: var(--warn-text); }
.badge-confirmed { background: var(--success-bg); color: var(--success); }
.badge-completed { background: var(--blue-pale); color: var(--text); }
.badge-cancelled { background: var(--danger-bg); color: var(--danger); }
.badge-in_progress, .badge-in-quote { background: var(--blue-pale); color: var(--text); }
.badge-default { background: var(--bg); color: var(--muted); }
.badge-active { background: var(--success-bg); color: var(--success); }
.badge-inactive { background: var(--danger-bg); color: var(--danger); }
.badge-on_leave { background: var(--warn-bg); color: var(--warn-text); }
.badge-scheduled { background: var(--blue-pale); color: var(--text); }
.badge-approved { background: var(--success-bg); color: var(--success); }
.badge-declined { background: var(--danger-bg); color: var(--danger); }

/* -------------------------------------------------------------- accordion  */
details.faq { border: 1px solid var(--border); border-radius: var(--radius); padding: 0; background: var(--white); }
details.faq + details.faq { margin-top: .6rem; }
details.faq summary { cursor: pointer; font-weight: 600; padding: .9rem 1rem; color: var(--text); }
details.faq .faq-body { padding: 0 1rem 1rem; }

/* ----------------------------------------------------------------- footer */
.site-footer { background: var(--bg); color: var(--text); margin-top: var(--space-6); border-top: 4px solid var(--blue); }
.site-footer .container { padding: var(--space-5) var(--space-3); display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-4); }
.site-footer h3 { color: var(--text); font-size: .95rem; margin-bottom: .6rem; }
.site-footer a { color: var(--text); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.footer-bottom { background: var(--blue-pale); font-size: .85rem; }
.footer-bottom .container { padding: .75rem var(--space-3); display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: space-between; }

/* ------------------------------------------------------------- dashboards */
.dash-layout { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; background: var(--bg); }
.dash-side { background: var(--blue-pale); color: var(--text); padding: var(--space-4) var(--space-3); border-right: 3px solid var(--blue); }
.dash-side .brand img { height: 40px; }
.dash-side nav a { display: block; color: var(--text); text-decoration: none; padding: .45rem .6rem; border-radius: var(--radius); margin: .1rem 0; font-weight: 500; }
.dash-side nav a:hover, .dash-side nav a[aria-current="page"] { background: var(--blue); color: var(--text); }
.dash-side .side-heading { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: var(--space-3) 0 .3rem; }
.dash-main { padding: var(--space-4) var(--space-5); min-width: 0; }
.dash-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-4); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--space-3); }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-3); box-shadow: var(--shadow-1); }
.stat-card .stat-num { font-size: 1.8rem; font-weight: 800; color: var(--text); }
.stat-card .stat-label { color: var(--muted); font-weight: 600; font-size: .85rem; }
.dash-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4); margin-bottom: var(--space-4); box-shadow: var(--shadow-1); }
.inline-form { display: inline; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: .3rem .8rem; }
.kv dt { font-weight: 600; color: var(--muted); }
.kv dd { margin: 0; }
.day-list .day-heading { background: var(--blue-pale); color: var(--text); padding: .4rem .7rem; border-radius: .5rem; margin: var(--space-3) 0 .3rem; font-weight: 700; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero .container > img { height: clamp(16rem, 65vw, 25rem); min-height: 0; }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-side { position: sticky; top: 0; z-index: 40; }
  .dash-side nav { display: none; }
  .dash-side.nav-open nav { display: block; }
  .side-toggle { display: block; width: 100%; background: transparent; color: var(--text); border: 1px solid var(--blue); border-radius: var(--radius); padding: .5rem; font-weight: 600; cursor: pointer; margin-bottom: var(--space-2); }
  .form-grid { grid-template-columns: 1fr; }
}
@media (min-width: 901px) { .side-toggle { display: none; } }
@media (max-width: 720px) {
  .nav-links {
    display: none; width: 100%; flex-direction: column; align-items: flex-start;
    padding-top: var(--space-2); border-top: 1px solid var(--border); margin-top: var(--space-2);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-block; }
  .utility-bar .container { justify-content: center; }
  .site-footer .container { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .kv .wide { grid-column: auto; }
}
/* 1. The hero is the positioning parent */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

/* 2. Image fills the whole hero, behind everything */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 3. Dark overlay on top of the image so text is readable */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,.70) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.15) 100%);
}

/* 4. Text sits on top of both */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 4rem 0;
}
.hero-copy {
  max-width: 640px;
}

/* 5. Make sure text is white */
.hero-tag,
.hero-title,
.hero-lead,
.hero-rotator-line,
.trust-points {
  color: #fff;
}
.hero-title {
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.trust-points {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin-top: 1.25rem;
  font-size: .95rem;
}

/* 6. Mobile */
@media (max-width: 700px) {
  .hero { min-height: 480px; }
  .hero-overlay { background: rgba(0,0,0,.55); }
}

.hero .hero-title,
.hero h1.hero-title,
.hero h2.hero-title {
  color: #ffffff !important;
  opacity: 1 !important;
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, .55);
}

.hero .hero-lead {
  color: #f1f5f9 !important;
  font-size: 1.15rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}

.hero .hero-tag {
  color: #ffd166 !important; /* warm accent, change to your brand colour */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================
   SERVICE DETAIL PAGE
   Responsive production layout
========================================== */

.service-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 2rem;
    align-items: start;
    width: 100%;
}

.service-grid > div {
    min-width: 0;
}

.service-grid aside {
    min-width: 0;
    position: relative;
}

.service-detail-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.service-grid h1 {
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.service-grid .panel {
    padding: 1.5rem;
    border-radius: 12px;
}

.service-grid .kv {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: .75rem;
}

.service-grid .kv dd {
    min-width: 0;
    overflow-wrap: anywhere;
}

.service-grid p,
.service-grid li {
    overflow-wrap: anywhere;
}

@media (max-width: 800px) {
    .service-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .service-grid aside {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .service-grid {
        gap: 1rem;
    }

    .service-grid .panel {
        padding: 1rem;
    }

    .service-grid .kv {
        grid-template-columns: 1fr;
        gap: .25rem;
    }
}
/* ================================================================
   ABOUT PAGE — professional editorial layout
   ================================================================ */

.about-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: linear-gradient(115deg, #e8f7fc 0%, #f7fbfd 65%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.about-hero-copy {
  max-width: 700px;
}

.about-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--red-button);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.about-hero h1 {
  max-width: 720px;
  margin-bottom: 1.25rem;
  font-size: clamp(2.5rem, 5.5vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.about-intro {
  max-width: 680px;
  margin-bottom: 1.8rem;
  color: #465568;
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  line-height: 1.8;
}

.about-hero-actions,
.about-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem;
}

.about-contact-card {
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: var(--white);
  border: 1px solid #dce7ed;
  border-top: 4px solid var(--blue);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 38px rgba(31, 41, 55, .09);
}

.about-card-label {
  display: block;
  margin-bottom: .9rem;
  color: var(--red-button);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.about-contact-card h2 {
  margin-bottom: .8rem;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  line-height: 1.25;
}

.about-contact-card > p {
  margin-bottom: 1.4rem;
  color: var(--muted);
  line-height: 1.7;
}

.about-contact-link {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .9rem 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
}

.about-contact-link:hover {
  color: var(--red-button);
}

.about-contact-icon {
  display: inline-flex;
  flex: 0 0 2.6rem;
  width: 2.6rem;
  height: 2.6rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--text);
  font-size: 1.15rem;
}

.about-contact-link small,
.about-contact-link strong {
  display: block;
}

.about-contact-link small,
.about-service-area small {
  margin-bottom: .15rem;
  color: var(--muted);
  font-size: .78rem;
}

.about-contact-link strong {
  overflow-wrap: anywhere;
  font-size: .96rem;
}

.about-service-area {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  margin-top: .8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.about-service-area strong {
  font-size: .95rem;
}

.about-content-section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: var(--white);
}

.about-content-layout {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.5fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
}

.about-content-heading {
  position: sticky;
  top: 115px;
}

.about-content-heading h2 {
  margin-bottom: .9rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.about-content-heading > p {
  color: var(--muted);
  line-height: 1.8;
}

.about-prose {
  min-width: 0;
  color: #435164;
  font-size: 1.04rem;
  line-height: 1.9;
}

.about-prose h3 {
  margin: 2.2rem 0 .8rem;
  padding-left: 1rem;
  border-left: 4px solid var(--blue);
  color: var(--text);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.35;
}

.about-prose h3:first-child {
  margin-top: 0;
}

.about-prose p {
  margin: 0 0 1.25rem;
  color: #526173;
  line-height: 1.9;
}

.about-prose strong,
.about-prose b {
  color: var(--text);
  font-weight: 750;
}

.about-bottom-cta {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--blue-pale);
  border-top: 1px solid #d5edf6;
}

.about-bottom-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.about-bottom-cta h2 {
  margin-bottom: .65rem;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}

.about-bottom-cta p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
}

.about-bottom-actions {
  flex: 0 0 auto;
}

@media (max-width: 800px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-contact-card {
    max-width: 560px;
  }

  .about-content-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-content-heading {
    position: static;
    max-width: 650px;
  }

  .about-bottom-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .about-hero {
    padding: 3rem 0;
  }

  .about-hero h1 {
    font-size: 2.45rem;
  }

  .about-hero-actions,
  .about-bottom-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .about-hero-actions .btn,
  .about-bottom-actions .btn {
    width: 100%;
  }

  .about-contact-card {
    padding: 1.3rem;
  }

  .about-content-section {
    padding: 3rem 0;
  }

  .about-prose {
    font-size: 1rem;
  }
}


/* =========================================================
   PUBLIC CUSTOMER REVIEWS
   Scoped styles: templates/reviews/list.html
   ========================================================= */

.public-reviews-page {
  background: #f5f8fb;
  color: #1f2937;
  min-height: 60vh;
  padding-bottom: 4.5rem;
}

.public-reviews-hero {
  background: linear-gradient(125deg, #073b59 0%, #006b9f 58%, #009ee3 100%);
  color: #ffffff;
  padding: 4.2rem 0 5.2rem;
  text-align: center;
}

.public-reviews-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.public-reviews-eyebrow {
  display: inline-block;
  color: #d9f3ff;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  margin-bottom: .8rem;
}

.public-reviews-hero h1 {
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 800;
}

.public-reviews-hero p {
  color: rgba(255,255,255,.91);
  font-size: 1.08rem;
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto;
}

.public-reviews-container {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.public-reviews-summary {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  max-width: 570px;
  margin: -2.4rem auto 3.5rem;
  padding: 1.5rem 2rem;
  background: #ffffff;
  border: 1px solid #e3eaf0;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(20, 50, 70, .12);
}

.public-reviews-summary-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 105px;
  padding-right: 1.6rem;
  border-right: 1px solid #e5eaf0;
}

.public-reviews-average {
  color: #123d59;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.public-reviews-out-of {
  color: #718096;
  font-size: .83rem;
  margin-top: .35rem;
}

.public-reviews-summary-details {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.public-reviews-summary-details strong {
  color: #243b4b;
  font-size: .98rem;
}

.public-reviews-summary-details > span:last-child {
  color: #718096;
  font-size: .84rem;
}

.public-reviews-stars,
.public-review-stars {
  color: #e5a400;
  letter-spacing: .12em;
  font-size: 1.22rem;
  line-height: 1.4;
}

.public-reviews-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 0 0 1.5rem;
}

.public-reviews-heading .public-reviews-eyebrow {
  color: #008ac5;
  margin-bottom: .35rem;
}

.public-reviews-heading h2 {
  color: #153b54;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.25;
  margin: 0 0 .45rem;
}

.public-reviews-heading p {
  color: #687b89;
  margin: 0;
  line-height: 1.6;
}

.public-reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}

.public-review-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.65rem;
  background: #ffffff;
  border: 1px solid #e4ebf0;
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(31, 55, 75, .055);
  transition: transform .2s ease, box-shadow .2s ease;
}

.public-review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(31, 55, 75, .10);
}

.public-review-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  margin-bottom: 1.1rem;
}

.public-review-stars {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 2px;
  color: #e5a400;
  font-size: 1.25rem;
}

.public-review-stars .is-filled {
  color: #e5a400;
}

.public-review-stars .is-empty {
  color: #cbd5df;
}

.public-review-verified {
  display: inline-block;
  color: #087a58;
  background: #e8f6f0;
  border-radius: 30px;
  padding: .3rem .65rem;
  font-size: .72rem;
  font-weight: 700;
}

.public-review-card h3 {
  color: #173c55;
  font-size: 1.12rem;
  line-height: 1.45;
  margin: 0 0 .8rem;
  overflow-wrap: anywhere;
}

.public-review-comment {
  color: #4b5c69;
  font-size: .96rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
  min-width: 0;
  margin-bottom: 1.2rem;
}

.public-review-comment br {
  content: "";
  display: block;
  margin-bottom: .35rem;
}

.public-review-response {
  margin-top: auto;
  margin-bottom: 1.2rem;
  padding: 1rem 1.1rem;
  background: #eef8fc;
  border-left: 3px solid #009ee3;
  border-radius: 0 10px 10px 0;
  min-width: 0;
}

.public-review-response strong {
  display: block;
  color: #07577c;
  font-size: .85rem;
  margin-bottom: .4rem;
}

.public-review-response p {
  color: #486271;
  font-size: .9rem;
  line-height: 1.7;
  margin: 0;
  overflow-wrap: anywhere;
}

.public-review-author {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-top: 1rem;
  border-top: 1px solid #edf1f4;
  margin-top: auto;
}

.public-review-avatar {
  display: flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  background: #087eae;
  font-size: 1.05rem;
  font-weight: 800;
}

.public-review-author div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: .15rem;
}

.public-review-author strong {
  color: #203d50;
  font-size: .91rem;
  overflow-wrap: anywhere;
}

.public-review-author div span {
  color: #82909b;
  font-size: .78rem;
}

.public-reviews-empty {
  max-width: 620px;
  margin: 1rem auto 0;
  padding: 3rem 2rem;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e4ebf0;
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(31, 55, 75, .05);
}

.public-reviews-empty-icon {
  color: #e5a400;
  font-size: 2.4rem;
  margin-bottom: .6rem;
}

.public-reviews-empty h3 {
  color: #173c55;
  margin: 0 0 .6rem;
}

.public-reviews-empty p {
  color: #687b89;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 450px;
}

@media (max-width: 760px) {
  .public-reviews-hero {
    padding: 3.2rem 0 4.5rem;
  }

  .public-reviews-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .public-reviews-summary {
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 480px) {
  .public-reviews-hero {
    padding: 2.7rem 0 4rem;
  }

  .public-reviews-hero p {
    font-size: .96rem;
  }

  .public-reviews-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .public-reviews-summary {
    gap: 1rem;
    padding: 1.2rem 1rem;
    margin-top: -2rem;
  }

  .public-reviews-summary-score {
    min-width: 85px;
    padding-right: 1rem;
  }

  .public-reviews-average {
    font-size: 2.5rem;
  }

  .public-reviews-summary-details strong {
    font-size: .88rem;
  }

  .public-reviews-summary-details > span:last-child {
    font-size: .76rem;
  }

  .public-review-card {
    padding: 1.2rem;
  }

  .public-review-card-top {
    align-items: flex-start;
  }
}

/* ==========================================================
   HOMEPAGE REDESIGN — Precious Senior Care & Staffing
   All rules scoped to .home-page
   ========================================================== */

.home-page {
  overflow: hidden;
  background: #fff;
}

.home-page .home-hero {
  position: relative;
  display: flex;
  min-height: 590px;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #102b46;
  color: #fff;
}

.home-page .home-hero-image,
.home-page .home-hero-overlay {
  position: absolute;
  inset: 0;
}

.home-page .home-hero-image {
  z-index: -2;
}

.home-page .home-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-page .home-hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 29, 52, .94) 0%, rgba(9, 43, 72, .82) 48%, rgba(9, 43, 72, .28) 100%),
    linear-gradient(0deg, rgba(5, 24, 43, .25), transparent 55%);
}

.home-page .home-hero-inner {
  width: 100%;
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.home-page .home-hero-copy {
  max-width: 760px;
}

.home-page .home-eyebrow,
.home-page .home-section-kicker {
  display: inline-block;
  margin: 0 0 .8rem;
  color: var(--red-button);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.home-page .home-hero .home-eyebrow {
  color: #8edcff;
}

.home-page .home-hero h2 {
  max-width: 760px;
  margin: 0 0 1.25rem;
  color: #fff;
  font-size: clamp(2.6rem, 5.6vw, 4.7rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -.045em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .25);
}

.home-page .home-hero-lead {
  max-width: 660px;
  margin-bottom: 1.2rem;
  color: #edf6fc;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.8;
}

.home-page .home-hero-rotator {
  margin: 0 0 1.6rem;
  color: #d6eaf7;
  font-size: 1rem;
  font-weight: 600;
}

.home-page .home-rotator {
  color: #8edcff;
  font-weight: 800;
}

.home-page .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-bottom: 2rem;
}

.home-page .home-hero-actions .btn,
.home-page .home-final-cta-actions .btn {
  min-width: 155px;
  padding: .85rem 1.35rem;
}

.home-page .home-btn-light {
  border: 1px solid rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.home-page .home-btn-light:hover {
  border-color: #fff;
  background: #fff;
  color: #17324d;
}

.home-page .home-trust-points {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.4rem;
  max-width: 800px;
}

.home-page .home-trust-points span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #f2f8fc;
  font-size: .88rem;
  font-weight: 600;
}

.home-page .home-trust-points i {
  display: inline-flex;
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 1.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: .8rem;
  font-style: normal;
  font-weight: 900;
}

/* Booking panel */
.home-page .home-booking-section {
  position: relative;
  z-index: 2;
  padding: 4rem 0;
  background: linear-gradient(115deg, #e8f7fc 0%, #f7fbfd 65%, #fff 100%);
  border-bottom: 1px solid #dceaf0;
}

.home-page .home-booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .88fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.home-page .home-booking-copy {
  max-width: 570px;
}

.home-page .home-booking-copy h2,
.home-page .home-section-heading h2,
.home-page .home-centered-heading h2 {
  margin-bottom: .9rem;
  color: #17324d;
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.035em;
}

.home-page .home-booking-copy > p {
  color: #526477;
  font-size: 1.08rem;
  line-height: 1.85;
}

.home-page .home-booking-note {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: 1.5rem;
  color: #344b60;
  font-size: .94rem;
  font-weight: 600;
}

.home-page .home-note-icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #d7f0fa;
  color: #087eae;
  font-weight: 900;
}

.home-page .home-booking-form {
  min-width: 0;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid #dce7ed;
  border-top: 4px solid var(--blue);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(23, 50, 77, .13);
}

.home-page .home-form-heading {
  margin-bottom: 1.2rem;
}

.home-page .home-form-heading h3 {
  margin: 0;
  color: #17324d;
  font-size: 1.35rem;
}

.home-page .home-booking-form .field {
  margin-bottom: .9rem;
}

.home-page .home-booking-form label {
  color: #344b60;
  font-size: .9rem;
  font-weight: 700;
}

.home-page .home-booking-form input,
.home-page .home-booking-form select {
  min-height: 47px;
  border-color: #d4e0e8;
  border-radius: 8px;
  background: #fbfdfe;
}

.home-page .home-booking-form input:focus,
.home-page .home-booking-form select:focus {
  border-color: var(--blue);
  outline: 2px solid rgba(0, 158, 227, .15);
}

.home-page .home-form-help {
  margin: .8rem 0 0;
  color: #657588;
  font-size: .82rem;
  line-height: 1.6;
}

/* Common section structure */
.home-page .home-section {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}

.home-page .home-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, .55fr);
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.4rem;
}

.home-page .home-section-heading > div {
  min-width: 0;
}

.home-page .home-section-heading p,
.home-page .home-centered-heading > p {
  max-width: 720px;
  margin: 0;
  color: #5b6b7b;
  font-size: 1.04rem;
  line-height: 1.8;
}

.home-page .home-section-heading > img {
  display: block;
  width: 100%;
  max-height: 220px;
  border-radius: 14px;
  object-fit: cover;
}

.home-page .home-centered-heading {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.home-page .home-centered-heading .home-section-kicker {
  margin-bottom: .65rem;
}

.home-page .home-centered-heading > p {
  margin-right: auto;
  margin-left: auto;
}

.home-page .home-services {
  background: #fff;
}

.home-page .home-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.35rem;
}

.home-page .home-service-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e0e8ee;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(31, 55, 78, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.home-page .home-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(31, 55, 78, .12);
}

.home-page .home-service-image {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e8f7fc;
}

.home-page .home-service-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.home-page .home-service-card:hover .home-service-image img {
  transform: scale(1.035);
}

.home-page .home-service-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.35rem;
}

.home-page .home-service-body h3 {
  margin-bottom: .55rem;
  color: #17324d;
  font-size: 1.2rem;
  line-height: 1.35;
}

.home-page .home-service-description {
  flex: 1;
  margin-bottom: 1rem;
  color: #5b6b7b;
  font-size: .94rem;
  line-height: 1.7;
}

.home-page .home-service-price {
  margin: 0 0 1rem;
  color: #17324d;
  font-weight: 800;
}

.home-page .home-card-actions {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  margin-top: auto;
}

.home-page .home-card-actions .btn {
  display: flex;
  min-width: 0;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  padding: .55rem .4rem;
  font-size: .85rem;
}

.home-page .home-section-footer {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.home-page .home-empty-state {
  grid-column: 1 / -1;
  padding: 2rem;
  border: 1px dashed #cbdbe5;
  border-radius: 12px;
  background: #f7fbfd;
  text-align: center;
}

/* Why families choose us */
.home-page .home-why {
  background: #f4f8fb;
}

.home-page .home-why-image {
  display: block;
  width: min(100%, 760px);
  max-height: 340px;
  margin: 0 auto 2rem;
  border-radius: 16px;
  object-fit: cover;
}

.home-page .home-why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.home-page .home-why-card {
  display: flex;
  min-width: 0;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid #e0e8ee;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(31, 55, 78, .045);
}

.home-page .home-why-card > img {
  display: block;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border-radius: 10px;
  object-fit: cover;
}

.home-page .home-why-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e8f7fc;
  color: var(--red-button);
  font-size: 1.2rem;
}

.home-page .home-why-card h3 {
  margin-bottom: .45rem;
  color: #17324d;
  font-size: 1.08rem;
}

.home-page .home-why-card p {
  margin: 0;
  color: #5b6b7b;
  font-size: .91rem;
  line-height: 1.7;
}

/* How it works */
.home-page .home-process {
  background: linear-gradient(115deg, #e8f7fc 0%, #f7fbfd 65%, #fff 100%);
}

.home-page .home-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.home-page .home-process-card {
  min-width: 0;
  padding: 1.6rem;
  border: 1px solid #dce7ed;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 55, 78, .055);
}

.home-page .home-process-card > img {
  display: block;
  width: calc(100% + 3.2rem);
  max-width: none;
  height: 160px;
  margin: -1.6rem -1.6rem 1.25rem;
  border-radius: 14px 14px 0 0;
  object-fit: cover;
}

.home-page .home-process-number {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: #e5f5fb;
  color: #087eae;
  font-size: 1.1rem;
  font-weight: 800;
}

.home-page .home-process-card h3 {
  margin-bottom: .6rem;
  color: #17324d;
  font-size: 1.15rem;
}

.home-page .home-process-card p {
  margin: 0;
  color: #5b6b7b;
  line-height: 1.75;
}

/* Trust and statistics */
.home-page .home-trust {
  background: #fff;
}

.home-page .home-trust-image {
  display: block;
  width: min(100%, 600px);
  max-height: 300px;
  margin: 0 auto 2rem;
  border-radius: 15px;
  object-fit: cover;
}

.home-page .home-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.home-page .home-stat-card {
  display: flex;
  min-height: 125px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.4rem;
  border: 1px solid #dce7ed;
  border-top: 3px solid var(--blue);
  border-radius: 12px;
  background: #f8fbfd;
  text-align: center;
}

.home-page .home-stat-card strong {
  color: #17324d;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
}

.home-page .home-stat-card span {
  margin-top: .5rem;
  color: #5b6b7b;
  font-size: .9rem;
  font-weight: 600;
}

.home-page .home-trust-copy {
  max-width: 800px;
  margin: 0 auto;
  color: #526477;
  font-size: 1.05rem;
  line-height: 1.85;
  text-align: center;
}

/* Reviews */
.home-page .home-reviews {
  background: #f4f8fb;
}

.home-page .home-rating-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin: -1rem 0 2rem;
  color: #526477;
}

.home-page .home-stars,
.home-page .home-review-stars {
  color: #e6a400;
  letter-spacing: .12em;
}

.home-page .home-stars {
  font-size: 1.35rem;
}

.home-page .home-rating-summary strong {
  color: #17324d;
  font-size: 1.2rem;
}

.home-page .home-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.home-page .home-review-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid #e0e8ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(31, 55, 78, .055);
}

.home-page .home-review-stars {
  margin-bottom: .8rem;
  font-size: 1.05rem;
}

.home-page .home-review-stars .home-star-empty {
  color: #cbd5df;
}

.home-page .home-review-card h3 {
  margin-bottom: .65rem;
  color: #17324d;
  font-size: 1.1rem;
}

.home-page .home-review-comment {
  flex: 1;
  margin-bottom: 1.1rem;
  color: #526477;
  font-size: .94rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.home-page .home-review-author {
  margin: 0;
  padding-top: .85rem;
  border-top: 1px solid #e8edf1;
  color: #17324d;
  font-size: .9rem;
  font-weight: 700;
}

.home-page .home-centered-text,
.home-page .home-muted {
  color: #647588;
  line-height: 1.8;
}

/* Final call to action */
.home-page .home-final-cta {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: linear-gradient(115deg, #102d4b 0%, #075d8c 100%);
  color: #fff;
}

.home-page .home-final-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .42fr);
  align-items: center;
  gap: 1.5rem 3rem;
}

.home-page .home-final-cta .home-section-kicker {
  color: #8edcff;
}

.home-page .home-final-cta h2 {
  margin-bottom: .8rem;
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  font-weight: 800;
  line-height: 1.2;
}

.home-page .home-final-cta p {
  max-width: 650px;
  margin: 0;
  color: #e5f0f7;
  font-size: 1.03rem;
  line-height: 1.8;
}

.home-page .home-final-cta-inner > img {
  display: block;
  width: 100%;
  max-height: 190px;
  border: 3px solid rgba(255, 255, 255, .2);
  border-radius: 13px;
  object-fit: cover;
}

.home-page .home-final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  grid-column: 1 / -1;
}

/* FAQs */
.home-page .home-faq {
  background: #fff;
}

.home-page .home-faq-container {
  max-width: 850px;
}

.home-page .home-faq-item {
  overflow: hidden;
  border: 1px solid #dce6ed;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(31, 55, 78, .035);
}

.home-page .home-faq-item + .home-faq-item {
  margin-top: .75rem;
}

.home-page .home-faq-item summary {
  position: relative;
  padding: 1.1rem 3rem 1.1rem 1.2rem;
  color: #17324d;
  font-weight: 700;
  line-height: 1.5;
}

.home-page .home-faq-item[open] summary {
  color: #087eae;
  border-bottom: 1px solid #e7edf2;
}

.home-page .home-faq-item .faq-body {
  padding: 1rem 1.2rem 1.2rem;
  color: #526477;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.home-page .home-faq-item .faq-body p:last-child {
  margin-bottom: 0;
}

/* Responsive homepage */
@media (max-width: 1000px) {
  .home-page .home-service-grid,
  .home-page .home-why-grid,
  .home-page .home-process-grid,
  .home-page .home-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .home-booking-layout {
    gap: 2rem;
  }
}

@media (max-width: 760px) {
  .home-page .home-hero {
    min-height: 540px;
  }

  .home-page .home-hero-overlay {
    background: linear-gradient(90deg, rgba(7, 29, 52, .91), rgba(9, 43, 72, .65));
  }

  .home-page .home-booking-layout,
  .home-page .home-section-heading {
    grid-template-columns: 1fr;
  }

  .home-page .home-booking-form {
    width: 100%;
  }

  .home-page .home-section-heading > img {
    max-height: 260px;
  }

  .home-page .home-final-cta-inner {
    grid-template-columns: 1fr;
  }

  .home-page .home-final-cta-inner > img {
    max-width: 480px;
  }
}

@media (max-width: 560px) {
  .home-page .home-hero {
    min-height: 0;
  }

  .home-page .home-hero-inner {
    padding-top: 3.6rem;
    padding-bottom: 3.5rem;
  }

  .home-page .home-hero h2 {
    font-size: clamp(2.25rem, 10vw, 3.1rem);
  }

  .home-page .home-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-page .home-hero-actions .btn {
    width: 100%;
  }

  .home-page .home-trust-points {
    flex-direction: column;
    gap: .7rem;
  }

  .home-page .home-booking-section {
    padding: 3rem 0;
  }

  .home-page .home-service-grid,
  .home-page .home-why-grid,
  .home-page .home-process-grid,
  .home-page .home-review-grid {
    grid-template-columns: 1fr;
  }

  .home-page .home-card-actions {
    grid-template-columns: 1fr 1fr;
  }

  .home-page .home-why-card {
    padding: 1.2rem;
  }

  .home-page .home-final-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-page .home-final-cta-actions .btn {
    width: 100%;
  }

  .home-page .home-rating-summary {
    gap: .35rem;
    font-size: .9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-service-card,
  .home-page .home-service-image img {
    transition: none;
  }
}

/* ==========================================================
   HEADER BRAND TAGLINE AND MOBILE HAMBURGER
   ========================================================== */

.brand {
  min-width: 0;
}

.brand .brand-name {
  min-width: 0;
}

.brand .brand-name small {
  color: var(--blue);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .015em;
  margin-top: .2rem;
  max-width: 330px;
}

/* Hamburger button: hidden on desktop */
.site-header .nav-toggle {
  width: 46px;
  height: 42px;
  padding: 9px 10px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle-bars {
  width: 23px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle-bars span {
  display: block;
  width: 23px;
  height: 2.5px;
  border-radius: 3px;
  background: #fff;
  transition: transform .25s ease, opacity .2s ease;
}

/* Transform three bars into an X when expanded */
.site-header .nav-toggle[aria-expanded="true"] {
  background: var(--red-button);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child {
  transform: translateY(7.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child {
  transform: translateY(-7.75px) rotate(-45deg);
}

/* More prominent homepage catalogue link */
.home-page .home-all-services-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .85rem 1.5rem;
  border: 2px solid var(--blue);
  border-radius: 9px;
  color: var(--blue);
  background: #fff;
  font-weight: 750;
  box-shadow: 0 5px 16px rgba(9, 44, 76, .09);
  transition: background .2s ease, color .2s ease,
              transform .2s ease, box-shadow .2s ease;
}

.home-page .home-all-services-btn:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(9, 44, 76, .16);
}

.home-page .home-all-services-btn span {
  font-size: 1.2rem;
  transition: transform .2s ease;
}

.home-page .home-all-services-btn:hover span {
  transform: translateX(4px);
}

/* Mobile header */
@media (max-width: 760px) {
  .site-header .nav {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .site-header .brand {
    flex: 1 1 auto;
    max-width: calc(100% - 60px);
    gap: .45rem;
  }

  .site-header .brand img {
    height: 42px;
    max-width: 65px;
    object-fit: contain;
  }

  .site-header .brand .brand-name {
    font-size: .88rem;
  }

  .site-header .brand .brand-name small {
    font-size: .65rem;
    max-width: 250px;
  }

  .site-header .nav-toggle {
    display: inline-flex;
    flex: 0 0 46px;
    margin-left: auto;
  }

  .site-header .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: .35rem;
  }

  .site-header .nav-links a {
    width: 100%;
    padding: .7rem .55rem;
  }

  .site-header .nav-links a.btn-accent {
    text-align: center;
    margin-top: .35rem;
  }

  .site-header .nav-links form {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle-bars span,
  .home-page .home-all-services-btn,
  .home-page .home-all-services-btn span {
    transition: none;
  }
}
