/* ==========================================================================
   Greenacres Care Home Caistor — site stylesheet
   Linen & forest: warm linen base, deep forest green, honey gold (the logo's
   sun) and soft sage panels. Fraunces for headings, DM Sans for text.
   ========================================================================== */

:root {
    --linen: #F8F4EC;
    --linen-2: #F1E9DA;
    --paper: #FFFDF8;
    --sage-50: #F0F4ED;
    --sage-100: #E4ECE0;
    --sage-200: #D0DECB;
    --sage-600: #4F7A55;
    --forest: #1F3B34;
    --forest-2: #2B4C43;
    --forest-ink: #15302A;
    --honey: #E8B647;
    --honey-100: #F8ECCB;
    --honey-700: #8F6510;
    --ink: #1E2A27;
    --muted: #5A6763;
    --line: rgba(31, 59, 52, 0.13);
    --line-light: rgba(255, 255, 255, 0.16);

    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --r-sm: 12px;
    --r: 20px;
    --r-lg: 32px;
    --arch: 999px 999px var(--r) var(--r);

    --shadow-sm: 0 1px 2px rgba(21, 48, 42, 0.05), 0 6px 18px -10px rgba(21, 48, 42, 0.18);
    --shadow: 0 2px 4px rgba(21, 48, 42, 0.04), 0 22px 48px -24px rgba(21, 48, 42, 0.32);

    --container: 1200px;
    --gutter: clamp(20px, 4vw, 40px);
    --section: clamp(76px, 9vw, 128px);
    --topbar-h: 40px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--linen);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.015em;
    color: var(--forest-ink);
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.25; }

.accent { font-style: italic; color: var(--sage-600); }
.on-dark .accent { color: var(--honey); }

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

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin: 0 auto;
    padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }

/* Rounded colour panels that sit inset from the page edge */
.panel {
    margin-inline: clamp(10px, 1.6vw, 24px);
    border-radius: clamp(24px, 3vw, 40px);
}
.panel-sage { background: var(--sage-100); }
.panel-honey { background: var(--honey-100); }
.panel-forest { background: var(--forest); color: #E6EDE5; }
.panel-linen { background: var(--linen-2); }
.rounded { border-radius: clamp(24px, 3vw, 40px); }

.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark p { color: rgba(236, 242, 235, 0.82); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sage-600);
}
.eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--honey);
}
.on-dark .eyebrow { color: var(--honey); }
.eyebrow.center { justify-content: center; }

.lead { font-size: clamp(1.08rem, 1.4vw, 1.22rem); color: var(--muted); }
.muted { color: var(--muted); }

.section-head { max-width: 760px; margin-bottom: clamp(44px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 + p { margin-top: 20px; }

.section-head.split {
    max-width: none;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(24px, 5vw, 80px);
    align-items: end;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font: 600 1rem/1.2 var(--sans);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn i { font-size: 0.9em; }

.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-2); box-shadow: 0 12px 24px -12px rgba(21, 48, 42, 0.6); }

.btn-honey { background: var(--honey); color: var(--forest-ink); }
.btn-honey:hover { background: #F0C463; box-shadow: 0 12px 24px -12px rgba(143, 101, 16, 0.6); }

.btn-outline { border-color: rgba(31, 59, 52, 0.28); color: var(--forest); }
.btn-outline:hover { background: var(--forest); border-color: var(--forest); color: #fff; }

.btn-outline-light { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--forest); }

.btn-sm { padding: 11px 22px; font-size: 0.95rem; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--forest);
    text-decoration: none;
}
.link-arrow i { transition: transform 0.3s var(--ease); }
.link-arrow:hover i { transform: translateX(5px); }

/* --- Header -------------------------------------------------------------- */
site-header {
    display: block;
    position: sticky;
    top: calc(-1 * var(--topbar-h));
    z-index: 100;
}

.topbar {
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    background: var(--forest-ink);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.84rem;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    white-space: nowrap;
}
.topbar i { margin-right: 8px; color: var(--honey); }
.topbar a { text-decoration: none; }
.topbar a:hover { color: #fff; }

.site-nav {
    position: relative;
    background: rgba(248, 244, 236, 0.9);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
body.is-scrolled .site-nav {
    border-bottom-color: var(--line);
    box-shadow: 0 10px 30px -20px rgba(21, 48, 42, 0.35);
}
.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 104px;
    transition: height 0.3s ease;
}
body.is-scrolled .site-nav .container { height: 80px; }

.brand img {
    height: 80px;
    width: auto;
    transition: height 0.3s ease;
}
body.is-scrolled .brand img { height: 62px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
    position: relative;
    display: block;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 500;
    color: var(--forest);
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.nav-links a:hover { background: var(--sage-100); }
.nav-links a.active { font-weight: 600; }
.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 5px;
    height: 5px;
    margin-left: -2.5px;
    border-radius: 50%;
    background: var(--honey);
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--forest);
    font-size: 1.1rem;
    cursor: pointer;
}

@media (max-width: 1080px) {
    site-header { top: 0; }
    .topbar { display: none; }
    .site-nav .container { height: 76px; }
    .brand img { height: 58px; }
    body.is-scrolled .brand img { height: 54px; }
    body.is-scrolled .site-nav .container { height: 70px; }
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px var(--gutter) 24px;
        background: var(--linen);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 40px -24px rgba(21, 48, 42, 0.35);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.25s var(--ease), visibility 0.25s;
    }
    .nav-open .nav-links { opacity: 1; visibility: visible; transform: none; }
    .nav-links a { padding: 14px 18px; font-size: 1.1rem; border-radius: var(--r-sm); }
    .nav-links a.active { background: var(--sage-100); }
    .nav-links a.active::after { display: none; }
}
@media (max-width: 520px) {
    .nav-actions .btn { display: none; }
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
    position: relative;
    padding-block: clamp(28px, 4vw, 56px) clamp(80px, 9vw, 120px);
    overflow: hidden;
}
.hero::before {
    /* soft sage wash behind the photo side */
    content: '';
    position: absolute;
    top: -10%;
    right: -12%;
    width: 62%;
    height: 120%;
    background: radial-gradient(closest-side, var(--sage-100) 0%, rgba(228, 236, 224, 0) 100%);
    pointer-events: none;
}
.hero .container {
    position: relative;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}
.hero h1 { font-size: clamp(2.5rem, 4.4vw, 4rem); }
.hero .lead { max-width: 36rem; margin-top: 28px; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}

.hero-trust {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 0;
    margin-top: 52px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}
.hero-trust > div { padding-right: 32px; margin-right: 32px; border-right: 1px solid var(--line); }
.hero-trust > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-trust strong {
    display: block;
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1.1;
    color: var(--forest-ink);
}
.hero-trust span { font-size: 0.88rem; color: var(--muted); }

.hero-media {
    position: relative;
    aspect-ratio: 4 / 5;
    max-width: 540px;
    width: 100%;
    justify-self: end;
}
.hero-media .arch {
    position: absolute;
    inset: 0 0 0 14%;
    border-radius: 999px 999px var(--r-lg) var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.hero-media .arch img { width: 100%; height: 100%; object-fit: cover; }

.hero-media .orb {
    position: absolute;
    left: 0;
    bottom: 9%;
    width: 40%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid var(--linen);
    box-shadow: var(--shadow);
}
.hero-media .orb img { width: 100%; height: 100%; object-fit: cover; }

/* the logo's sun */
.sun {
    position: absolute;
    top: 3%;
    right: -3%;
    width: 18%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 32%, #F7D877 0%, var(--honey) 60%, #DDA431 100%);
    box-shadow: 0 0 0 10px rgba(232, 182, 71, 0.16), 0 0 0 22px rgba(232, 182, 71, 0.08);
    animation: float 7s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.rating-chip {
    position: absolute;
    right: -6%;
    bottom: 16%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px 14px 14px;
    background: var(--paper);
    border-radius: 18px;
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: transform 0.3s var(--ease);
}
.rating-chip:hover { transform: translateY(-3px); }
.rating-chip svg { flex: 0 0 auto; }
.rating-chip strong {
    display: block;
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.1;
    color: var(--forest-ink);
}
.rating-chip strong i { font-size: 0.6rem; color: #3F8B4E; vertical-align: middle; margin-left: 6px; }
.rating-chip span { font-size: 0.8rem; color: var(--muted); }

/* Inner page hero shares the same language, a little shorter */
.hero--page h1 { font-size: clamp(2.3rem, 4vw, 3.5rem); }
.hero--page .hero-media { aspect-ratio: 5 / 5.4; max-width: 500px; }

/* --- Intro statement + care types --------------------------------------- */
.statement {
    max-width: 30ch;
    margin: 0 auto;
    font-family: var(--serif);
    font-size: clamp(1.7rem, 3.2vw, 2.6rem);
    line-height: 1.28;
    text-align: center;
    color: var(--forest-ink);
}

.care-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 2.4vw, 32px);
    margin-top: clamp(52px, 6vw, 76px);
}
.care-card {
    padding: 12px 12px 30px;
    background: var(--paper);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}
.care-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.care-card .media {
    aspect-ratio: 1 / 1.05;
    border-radius: 999px 999px var(--r) var(--r);
    overflow: hidden;
    background: var(--sage-100);
}
.care-card .media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}
.care-card:hover .media img { transform: scale(1.05); }
.care-card h3 { margin: 26px 18px 10px; }
.care-card p { margin: 0 18px; color: var(--muted); font-size: 0.98rem; }

/* --- Split layouts ------------------------------------------------------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
}
.split h2 + p, .split .lead { margin-top: 24px; }
.split .btn, .split .link-arrow { margin-top: 32px; }

.duo { position: relative; aspect-ratio: 1 / 0.92; }
.duo .a {
    position: absolute;
    left: 0;
    top: 0;
    width: 74%;
    height: 86%;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.duo .b {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 46%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 10px solid var(--sage-100);
    box-shadow: var(--shadow);
}
.duo img { width: 100%; height: 100%; object-fit: cover; }
.duo .sun { top: -5%; right: 18%; width: 13%; }

/* --- What we offer ------------------------------------------------------- */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.offer-item {
    padding: clamp(26px, 3vw, 40px) clamp(20px, 2.4vw, 32px);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background-color 0.3s ease;
}
.offer-item:hover { background: var(--paper); }
.offer-item .icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 50%;
    background: var(--honey-100);
    color: var(--forest);
    font-size: 1.25rem;
    transition: background-color 0.3s ease, transform 0.4s var(--ease);
}
.offer-item:hover .icon { background: var(--honey); transform: rotate(-8deg); }
.offer-item h3 {
    font-family: var(--sans);
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--forest-ink);
}

/* --- Facilities (forest panel + gallery) -------------------------------- */
.facility-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 28px;
    margin-top: 32px;
}
.facility-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #EEF3ED;
}
.facility-list i {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(232, 182, 71, 0.18);
    color: var(--honey);
    font-size: 0.7rem;
}

.gallery {
    position: relative;
    aspect-ratio: 4 / 3.4;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--forest-2);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}
.gallery .slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.9s ease, transform 6s ease;
}
.gallery .slide.active { opacity: 1; transform: scale(1); }
.gallery .slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery .slide figcaption {
    position: absolute;
    left: 20px;
    bottom: 20px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(21, 48, 42, 0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
}
.gallery-controls {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.94);
    box-shadow: var(--shadow-sm);
}
.gallery-controls button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--forest);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.gallery-controls button:hover { background: var(--forest-2); }
.gallery-count {
    min-width: 54px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--forest);
    font-variant-numeric: tabular-nums;
}

/* --- Steps --------------------------------------------------------------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(24px, 3vw, 40px);
    counter-reset: step;
}
.step {
    position: relative;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}
.step::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--honey);
}
.step-number {
    display: block;
    margin-bottom: 18px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 2.8rem;
    line-height: 1;
    color: var(--sage-600);
}
.step h3 { margin-bottom: 14px; font-size: 1.3rem; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* --- CQC rating ---------------------------------------------------------- */
.cqc {
    display: grid;
    grid-template-columns: 1.4fr auto;
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
    padding: clamp(40px, 5vw, 64px);
    border-radius: clamp(24px, 3vw, 40px);
}
.cqc h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.cqc h2 em { font-style: italic; color: var(--sage-600); }
.cqc p { margin-top: 18px; color: var(--muted); max-width: 52ch; }

.cqc-badge {
    display: block;
    width: 250px;
    padding: 22px;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: #1d1d1d;
    transition: transform 0.3s var(--ease);
}
.cqc-badge:hover { transform: translateY(-4px) rotate(-1deg); }
.cqc-badge-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cqc-badge-title strong { display: block; font-size: 0.95rem; color: #4b1e65; line-height: 1.1; }
.cqc-badge-title span { font-size: 0.82rem; color: #4b1e65; }
.cqc-badge-name { font-size: 0.85rem; }
.cqc-badge-label { margin-top: 10px; font-size: 0.78rem; font-weight: 700; }
.cqc-badge-rating { display: flex; align-items: center; gap: 8px; font-size: 1.6rem; font-weight: 700; }
.cqc-green-dot { width: 13px; height: 13px; border-radius: 50%; background: #3F8B4E; }
.cqc-badge-date { font-size: 0.78rem; color: #666; }
.cqc-badge-link {
    display: inline-block;
    margin-top: 14px;
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #4b1e65;
}

/* --- Testimonials -------------------------------------------------------- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 2.4vw, 32px);
}
.testimonial {
    position: relative;
    margin: 0;
    display: flex;
    flex-direction: column;
    padding: clamp(28px, 3vw, 40px);
    background: var(--paper);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}
.testimonial:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.testimonial .quote-mark {
    font-family: var(--serif);
    font-size: 4.4rem;
    line-height: 0.6;
    height: 30px;
    color: var(--honey);
}
.stars { margin-top: 18px; color: var(--honey); letter-spacing: 3px; font-size: 0.85rem; }
.testimonial blockquote {
    flex: 1;
    margin: 14px 0 28px;
    font-family: var(--serif);
    font-size: 1.14rem;
    line-height: 1.55;
    color: var(--forest-ink);
}
.testimonial figcaption {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}
.testimonial figcaption img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 3px var(--honey-100);
}
.testimonial figcaption strong { display: block; color: var(--forest-ink); }
.testimonial figcaption span { font-size: 0.85rem; color: var(--muted); }

/* --- Nurturing setting tiles -------------------------------------------- */
.tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2vw, 28px);
    align-items: start;
}
.tile {
    position: relative;
    margin: 0;
    aspect-ratio: 3 / 4;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.tile:nth-child(2) { margin-top: clamp(0px, 5vw, 64px); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(21, 48, 42, 0.86) 0%, rgba(21, 48, 42, 0.25) 42%, transparent 65%);
}
.tile figcaption {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 26px;
    z-index: 1;
    font-family: var(--serif);
    font-size: clamp(1.25rem, 1.8vw, 1.55rem);
    line-height: 1.25;
    color: #fff;
}

/* --- Call to action band ------------------------------------------------- */
.cta-band {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    overflow: hidden;
}
.cta-band .copy { padding: clamp(44px, 6vw, 88px); align-self: center; }
.cta-band h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.cta-band .hero-actions { margin-top: 36px; }
.cta-band .media { position: relative; min-height: 380px; }
.cta-band .media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Events -------------------------------------------------------------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 2.4vw, 32px);
}
.card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.card:hover .media img { transform: scale(1.05); }
.card .body { padding: 28px 30px 34px; }
.card h3 { margin: 14px 0 10px; }
.card p { color: var(--muted); font-size: 0.98rem; }

.tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--sage-100);
    color: var(--sage-600);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.card .media .tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 253, 248, 0.95);
    color: var(--forest);
}

/* --- FAQ ----------------------------------------------------------------- */
.faq-media img {
    width: 100%;
    aspect-ratio: 4 / 3.2;
    object-fit: cover;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}
.faq-media p { margin-top: 18px; color: var(--muted); font-size: 0.95rem; }

.accordion { margin-top: 36px; border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
    border: 0;
    background: none;
    font: 600 1.08rem/1.4 var(--sans);
    color: var(--forest-ink);
    text-align: left;
    cursor: pointer;
}
.accordion-button .plus {
    position: relative;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line);
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.4s var(--ease);
}
.accordion-button .plus::before,
.accordion-button .plus::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 1.5px;
    margin: -0.75px 0 0 -6px;
    background: var(--forest);
    transition: transform 0.3s var(--ease), background-color 0.3s ease;
}
.accordion-button .plus::after { transform: rotate(90deg); }
.accordion-button:hover .plus { border-color: var(--forest); }
.accordion-button.active .plus { background: var(--forest); border-color: var(--forest); transform: rotate(180deg); }
.accordion-button.active .plus::before { background: #fff; }
.accordion-button.active .plus::after { transform: rotate(0); background: #fff; }
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease);
}
.accordion-content p { padding: 0 56px 26px 0; color: var(--muted); }

/* --- Forms --------------------------------------------------------------- */
.form-card {
    padding: clamp(28px, 4vw, 48px);
    background: var(--paper);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
}
.form-card h3 { margin-bottom: 8px; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.form-card > p { color: var(--muted); }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 28px;
}
.form-grid .full { grid-column: 1 / -1; }

.field label,
.field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--forest);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(31, 59, 52, 0.2);
    border-radius: var(--r-sm);
    background: #fff;
    font: 400 1rem/1.5 var(--sans);
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
}
.field select {
    padding-right: 44px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231F3B34' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 18px center;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #8B9692; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--forest);
    box-shadow: 0 0 0 4px rgba(232, 182, 71, 0.3);
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.chip span {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid rgba(31, 59, 52, 0.2);
    border-radius: 999px;
    background: #fff;
    font-weight: 500;
    color: var(--forest);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.chip:hover span { border-color: var(--forest); }
.chip input:checked + span { background: var(--forest); border-color: var(--forest); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--honey); outline-offset: 2px; }

.form-submit { margin-top: 26px; width: 100%; padding-block: 17px; }

.form-message {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: var(--r-sm);
    font-size: 0.95rem;
    font-weight: 500;
}
.form-message.success { background: var(--sage-100); color: var(--forest); }
.form-message.error { background: #FBE6E1; color: #8A2E1C; }

/* Enquiry block */
.enquiry {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(36px, 5vw, 80px);
    align-items: center;
    padding: clamp(36px, 5vw, 72px);
}
.enquiry h2 { font-size: clamp(2.1rem, 3.8vw, 3.2rem); }
.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    font-family: var(--serif);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    color: var(--forest-ink);
    text-decoration: none;
}
.phone-link i {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--honey);
    color: var(--forest-ink);
    font-size: 1.05rem;
}
.phone-link:hover { color: var(--sage-600); }
.enquiry-photo {
    width: min(300px, 70%);
    aspect-ratio: 1;
    margin-top: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 10px solid rgba(255, 253, 248, 0.7);
    box-shadow: var(--shadow);
}
.enquiry-photo img { width: 100%; height: 100%; object-fit: cover; }

/* --- Services page cards ------------------------------------------------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 2.4vw, 32px);
}

/* --- Gallery mosaic (about) --------------------------------------------- */
.mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: clamp(150px, 16vw, 230px);
    gap: clamp(12px, 1.6vw, 20px);
}
.mosaic figure {
    position: relative;
    margin: 0;
    border-radius: var(--r);
    overflow: hidden;
}
.mosaic figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic figure:nth-child(4) { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic figcaption {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.92);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--forest);
}

/* --- Careers benefits ---------------------------------------------------- */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(16px, 2vw, 24px);
}
.benefit {
    padding: 32px 28px;
    background: var(--paper);
    border-radius: var(--r);
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}
.benefit:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.benefit .icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 50%;
    background: var(--honey-100);
    color: var(--forest);
    font-size: 1.25rem;
}
.benefit h3 { margin-bottom: 10px; font-size: 1.3rem; }
.benefit p { color: var(--muted); font-size: 0.96rem; }

.narrow { max-width: 880px; margin-inline: auto; }

/* --- Contact page -------------------------------------------------------- */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}
.detail {
    padding: 24px;
    background: var(--paper);
    border-radius: var(--r);
    box-shadow: var(--shadow-sm);
}
.detail .icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--honey-100);
    color: var(--forest);
}
.detail h3 {
    margin-bottom: 6px;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sage-600);
}
.detail p, .detail a { color: var(--forest-ink); text-decoration: none; }
.detail a:hover { color: var(--sage-600); }

.map {
    height: 100%;
    min-height: 420px;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* --- Footer -------------------------------------------------------------- */
.footer {
    padding-top: clamp(64px, 7vw, 96px);
    background: var(--forest-ink);
    color: rgba(236, 242, 235, 0.78);
}
.footer-top {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: clamp(32px, 4vw, 64px);
    padding-bottom: clamp(48px, 6vw, 72px);
}
.footer-brand .logo-tile {
    display: inline-block;
    padding: 16px 20px;
    background: var(--paper);
    border-radius: var(--r);
}
.footer-brand .logo-tile img { height: 84px; width: auto; }
.footer-brand p {
    margin-top: 24px;
    max-width: 30ch;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.4;
    color: #fff;
}
.footer h4 {
    margin-bottom: 20px;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--honey);
}
.footer li + li { margin-top: 10px; }
.footer a { text-decoration: none; transition: color 0.2s ease; }
.footer a:hover { color: #fff; }
.footer address { font-style: normal; line-height: 1.8; }
.footer .directions { display: inline-flex; gap: 8px; align-items: center; margin-top: 12px; color: var(--honey); font-weight: 600; }

.social { display: flex; gap: 10px; margin-top: 22px; }
.social a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line-light);
    color: #fff;
}
.social a:hover { background: var(--honey); border-color: var(--honey); color: var(--forest-ink); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-block: 24px;
    border-top: 1px solid var(--line-light);
    font-size: 0.86rem;
}
.footer-bottom .rated { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom .rated i { color: #6DBB7C; font-size: 0.55rem; }

/* Floating call button for phones and tablets */
.floating-call {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    background: var(--forest);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 14px 30px -10px rgba(21, 48, 42, 0.6);
}
.floating-call i { color: var(--honey); animation: ring 5s ease-in-out infinite; }
@keyframes ring {
    0%, 88%, 100% { transform: rotate(0); }
    90% { transform: rotate(-14deg); }
    92% { transform: rotate(12deg); }
    94% { transform: rotate(-8deg); }
    96% { transform: rotate(6deg); }
}

/* --- Reveal on scroll ---------------------------------------------------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.9s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
        scroll-behavior: auto !important;
    }
    .js [data-reveal] { opacity: 1; transform: none; }
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1080px) {
    .offer-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
    .benefit-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .floating-call { display: inline-flex; }
    .footer { padding-bottom: 72px; }
}

@media (max-width: 900px) {
    .hero .container,
    .split,
    .enquiry,
    .cta-band,
    .cqc,
    .section-head.split { grid-template-columns: 1fr; }

    .hero h1 { max-width: none; }
    .hero-media { justify-self: center; max-width: 440px; }
    .hero::before { width: 120%; right: -40%; top: 30%; }

    .care-grid,
    .testimonial-grid,
    .card-grid,
    .service-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }

    .tiles { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
    .tile { aspect-ratio: 4 / 3.4; }
    .tile:nth-child(2) { margin-top: 0; }

    .split .duo, .split .faq-media { order: 2; }
    .duo { max-width: 520px; width: 100%; margin-inline: auto; }

    .cta-band .media { min-height: 300px; order: -1; }
    .cqc-badge { justify-self: start; }
    .mosaic { grid-template-columns: repeat(2, 1fr); }
    .mosaic figure:nth-child(1) { grid-column: span 2; }
    .mosaic figure:nth-child(4) { grid-row: span 1; }
    .enquiry-photo { display: none; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .hero-trust { grid-template-columns: repeat(3, 1fr); }
    .hero-trust > div { padding-right: 12px; margin-right: 12px; }
    .hero-trust strong { font-size: 1.3rem; }
    .hero-trust span { font-size: 0.78rem; line-height: 1.35; display: block; }
    .hero-actions .btn { flex: 1 1 100%; }
    .rating-chip { right: 0; bottom: 4%; padding: 10px 14px 10px 10px; }
    .rating-chip svg { width: 30px; height: 30px; }
    .offer-grid { grid-template-columns: 1fr 1fr; }
    .offer-item { padding: 22px 16px; }
    .offer-item .icon { width: 46px; height: 46px; font-size: 1.05rem; margin-bottom: 14px; }
    .offer-item h3 { font-size: 0.98rem; }
    .facility-list { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .benefit-grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .accordion-content p { padding-right: 0; }
    .gallery .slide figcaption { top: 16px; bottom: auto; left: 16px; }
}
