/*
Theme Name: Greensleeves Care Home
Theme URI: https://greensleevescarehome.co.uk
Author: Samson Web Design
Description: Bespoke classic theme for Greensleeves Care Home. Uses ACF (free) for per-page custom fields. Requires PHP 8.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: cornelius-house
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT@0,9..144,300..700,0..100;1,9..144,300..700,0..100&family=Inter:wght@300..600&display=swap');

/* To self-host the fonts: drop Fraunces.woff2, Fraunces-Italic.woff2 and
   Inter.woff2 into /assets/fonts/, remove the @import above, and uncomment
   the @font-face block below.
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('assets/fonts/Fraunces.woff2') format('woff2-variations'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url('assets/fonts/Fraunces-Italic.woff2') format('woff2-variations'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url('assets/fonts/Inter.woff2') format('woff2-variations'); }
*/

:root {
  --paper: #EFF3F6;
  --cream: #F7FAFC;
  --stone: #DDE5EC;
  --stone-2: #C5D2DC;
  --ink: #1B2A36;
  --ink-2: #263845;
  --ink-3: #4A5B6B;
  --ink-4: #7B8A98;
  --hair: rgba(38, 56, 69, 0.14);
  --clay: #825C3D;
  --moss: #6B7A56;
  --sage: #8A9577;
  --blue: #59A5E9;
  --blue-deep: #2E7DC9;
  --accent: var(--blue);
  --serif: 'Fraunces', 'Georgia', serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --page-max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans); background: var(--paper); color: var(--ink);
  font-size: 16px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.display { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.08; }
.h1 { font-family: var(--serif); font-weight: 380; font-variation-settings: "opsz" 144, "SOFT" 50; font-size: clamp(38px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -0.018em; }
.h2 { font-family: var(--serif); font-weight: 380; font-variation-settings: "opsz" 120, "SOFT" 50; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -0.014em; }
.h3 { font-family: var(--serif); font-weight: 400; font-variation-settings: "opsz" 72, "SOFT" 50; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -0.008em; }
.eyebrow { font-family: var(--sans); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.22em; color: var(--accent); }
.lede { font-family: var(--sans); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; color: var(--ink-3); max-width: 62ch; }
p { max-width: 68ch; color: var(--ink-3); }
em, i { font-family: var(--serif); font-style: italic; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  transition: all .25s ease; border: 1px solid transparent; white-space: nowrap; cursor: pointer; }
.btn-primary { background: var(--ink-2); color: var(--paper); }
.btn-primary:hover { background: var(--ink); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--hair); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { padding: 8px 0; border-radius: 0; border-bottom: 1px solid var(--ink); }
.btn-ghost:hover { color: var(--accent); border-bottom-color: var(--accent); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(3px); }

.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 980px; margin: 0 auto; padding: 0 var(--gutter); }
/*section { padding: clamp(64px, 9vw, 128px) 0; }*/
section { padding: clamp(32px, 4.5vw, 64px) 0; }
section.section-tight { padding: clamp(32px, 4.5vw, 64px) 0; }
.hair { height: 1px; background: var(--hair); border: 0; margin: 0; }

/* Header — deep navy */
.site-header { position: sticky; top: 0; z-index: 50;
  background: rgba(27, 42, 54, 0.96);
  backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08); color: #EFF3F6; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.site-logo img { height: 52px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-size: 13.5px; color: rgba(239,243,246,0.86); padding: 8px 0; white-space: nowrap; transition: color .2s; }
.site-nav a:hover, .site-nav a.current-menu-item, .site-nav .current-menu-item > a { color: #fff; }
.site-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; align-items: center; }
.site-nav li { position: relative; }
.site-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--ink-2); padding: 12px 0; min-width: 220px; flex-direction: column; align-items: stretch; gap: 0; border: 1px solid rgba(255,255,255,0.08); }
.site-nav li:hover > .sub-menu { display: flex; }
.site-nav .sub-menu li { display: block; }
.site-nav .sub-menu a { display: block; padding: 10px 20px; }
.nav-ctas { display: flex; gap: 10px; margin-left: 12px; }
.site-header .btn-secondary { color: #EFF3F6; border-color: rgba(255,255,255,0.22); }
.site-header .btn-secondary:hover { border-color: #fff; }
.site-header .btn-primary { background: var(--blue); color: #fff; padding: 10px 20px; }
.site-header .btn-primary:hover { background: var(--blue-deep); }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 1px; background: #EFF3F6; position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content:''; position:absolute; left:0; right:0; height:1px; background:#EFF3F6; }
.menu-toggle span::before { top:-6px; } .menu-toggle span::after { top:6px; }

.mobile-menu { position: fixed; inset: 0; background: var(--paper); z-index: 60; padding: 32px var(--gutter);
  overflow-y: auto; display: none; flex-direction: column; }
.mobile-menu.open { display: flex; }
/* Dark strip behind the header so the white Greensleeves logo stays legible on the light mobile menu. */
.mobile-menu .mm-head { display:flex; justify-content:space-between; align-items:center; margin-bottom: 32px; background: var(--ink); padding: 10px 18px; border-radius: 10px; }
.mobile-menu .mm-head img { height: 48px; }
.mobile-menu .mm-close { font-family: var(--serif); font-size: 32px; line-height: 1; color: var(--paper); background: none; border: 0; cursor: pointer; }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu ul a { font-family: var(--serif); font-size: 28px; padding: 14px 0; border-bottom: 1px solid var(--hair); display:block; color: var(--ink); }
.mobile-menu .sub-menu a { font-size: 18px; padding-left: 16px; color: var(--ink-3); }
.mobile-menu .btn { flex: 1; justify-content: center; min-width: 0; }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); padding: 96px 0 40px; }
.site-footer img.footer-logo { height: 64px; width: auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
.site-footer h5 { font-family: var(--serif); font-size: 16px; font-weight: 500; margin: 0 0 16px; color: var(--paper); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--stone); font-size: 14px; }
.site-footer a:hover { color: var(--blue); }
.footer-bottom { margin-top: 64px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; font-size: 13px; color: rgba(246,241,232,0.55);
  flex-wrap: wrap; gap: 16px; }
.footer-bottom > div:last-child a { margin-left: 24px; }
.footer-quote { font-family: var(--serif); font-size: 20px; font-style: italic; color: var(--paper);
  max-width: 40ch; line-height: 1.5; margin-top: 18px; }

/* Photos */
.ph { position: relative; overflow: hidden; background-color: #d6c9ad; background-size: cover; background-position: center; }
.ph::before { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,42,34,0) 40%, rgba(31,42,34,0.25) 100%); pointer-events: none; }

/* Trust strip — four highlight cards under the hero */
.trust-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 56px 0 clamp(64px, 9vw, 128px); border: 1px solid var(--hair); background: var(--stone); padding: 0; }
.trust-strip .item { display: flex; flex-direction: row; align-items: center; gap: 16px;
  padding: 24px clamp(18px, 2vw, 28px); position: relative; transition: background .3s ease; }
.trust-strip .item:hover { background: var(--stone-2); }
.trust-strip .item + .item { border-left: 1px solid var(--hair); }
.trust-strip .dot { display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; background: rgba(89, 165, 233, 0.22);
  color: var(--blue-deep); flex-shrink: 0; transition: background .3s, color .3s; }
.trust-strip .dot::before { content: "\2713"; font-size: 16px; font-weight: 600; line-height: 1; }
.trust-strip .item:hover .dot { background: var(--blue); color: #fff; }
.trust-strip .label { font-family: var(--serif); font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.3; color: var(--ink); letter-spacing: -0.005em; }

/* Care section intro — 3-col grid that aligns with the cards below */
.care-intro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  align-items: end; margin-bottom: 48px; }
.care-intro-grid > :first-child { grid-column: 1; }
.care-intro-grid .care-intro-body { grid-column: 2 / -1; margin: 0; max-width: none; }

/* Cards */
.card { background: var(--cream); border: 1px solid var(--hair); border-radius: 2px; overflow: hidden;
  transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(31,42,34,0.2); }

.bg-stone { background: var(--stone); }
.bg-cream { background: var(--cream); }
.bg-ink { background: var(--ink-2); color: var(--paper); }
.bg-ink p, .bg-ink .lede { color: rgba(239,243,246,0.78); }
.bg-ink .eyebrow { color: var(--blue); }

/* Home hero */
.hero-home { padding: 56px 0 0; }
.hero-home-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: stretch; }
.hero-home-text { padding: 40px 0 80px; }
.hero-home-media { position: relative; min-height: 580px; border-radius: 2px; overflow: hidden;
  background: var(--stone); display: flex; align-items: center; justify-content: center; }
.hero-home-media .ph { width:100%; height:100%; }
.hero-home-img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; }

/* Shared hero image frame — page-hero.php and ch_page_hero(). Container takes the
   image's natural aspect ratio (set inline by ch_hero_photo()) so the photo fills
   it perfectly: no bars, no centre-crop, regardless of portrait or landscape. */
.hero-image-frame { position: relative; border-radius: 2px; overflow: hidden;
  background: var(--stone); width: 100%; }
.hero-image-img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Pullquote */
.pullquote { font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); line-height: 1.2;
  letter-spacing: -0.008em; max-width: 22ch; font-style: italic; }
/* Pullquotes inside .wrap-narrow are standalone "breakpoint" sections — centre them in the column. */
.wrap-narrow > .pullquote { max-width: 28ch; margin: 0 auto; text-align: center; }
.wrap-narrow > .pullquote::before { content: ''; display: block; width: 48px; height: 2px;
  background: var(--accent); margin: 0 auto 32px; opacity: 0.7; }
.wrap-narrow > .pullquote + .caption { text-align: center; margin-top: 28px !important; }

/* Care card — whole card is clickable */
.care-card { display: flex; flex-direction: column; transition: transform .25s ease; color: inherit; }
.care-card:hover { transform: translateY(-2px); }
.care-card .ph { aspect-ratio: 4/5; transition: filter .35s ease, transform .4s ease; overflow: hidden; }
.care-card:hover .ph { filter: brightness(1.04); }
.care-card-body { padding: 28px 24px 30px; }
.care-card h3 { margin: 0 0 10px; }
.care-card p { margin: 0 0 18px; font-size: 15px; }
.care-card .link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.care-card:hover .link { color: var(--accent); border-bottom-color: var(--accent); }
/* Square image variant used on the /care hub */
.care-hub-grid .care-card .ph { aspect-ratio: 1/1; }

/* Proofs */
.proofs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--hair); border: 1px solid var(--hair); }
.proofs .proof { background: var(--paper); padding: 36px 28px; }
.proofs .proof .n { font-family: var(--serif); font-size: 48px; line-height: 1; color: var(--ink); }
.proofs .proof .label { font-size: 13px; color: var(--ink-3); margin-top: 10px; }
.proofs-center .proof { text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split.reverse .split-text { order: 2; }
.split-media { aspect-ratio: 5/6; }
.split-media .ph { width:100%; height:100%; }

/* FAQ */
.faq-item { border-top: 1px solid var(--hair); padding: 24px 0; }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q { font-family: var(--serif); font-size: 22px; line-height: 1.3; }
.faq-item summary .plus { font-family: var(--serif); font-size: 28px; color: var(--accent); line-height: 1; transition: transform .3s; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .a { padding-top: 16px; max-width: 60ch; font-size: 15px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px;
  grid-auto-flow: dense; gap: 10px; }
.gallery .ph,
.gallery .gallery-tile { display: block; width: 100%; height: 100%; aspect-ratio: auto;
  border-radius: 2px; transition: transform .35s ease, filter .35s ease; }
.gallery .gallery-tile { cursor: zoom-in; }
.gallery .gallery-tile:hover { transform: scale(1.015); filter: brightness(1.04); }
.gallery .gallery-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Default size pattern (period of 7) — good for 7 or 14 images. */
.gallery > *:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; }
.gallery > *:nth-child(7n+4) { grid-row: span 2; }
.gallery > *:nth-child(7n+7) { grid-column: span 2; }
/* Count-aware overrides: keep the grid a tidy rectangle at typical image counts.
   Uses :has() + :nth-child():last-child to detect exact child count (supported in all modern browsers). */
/* 8 images: big (2x2) + tall (1x2) + 6 singles  = 12 cells, 3 rows */
.gallery:has(> :nth-child(8):last-child) > :nth-child(7),
.gallery:has(> :nth-child(8):last-child) > :nth-child(8) { grid-column: auto; grid-row: auto; }
/* 9 images: big + 8 singles = 12 cells, 3 rows */
.gallery:has(> :nth-child(9):last-child) > :nth-child(4),
.gallery:has(> :nth-child(9):last-child) > :nth-child(7),
.gallery:has(> :nth-child(9):last-child) > :nth-child(8) { grid-column: auto; grid-row: auto; }
/* 10 images: big + tall + 2 wides across the bottom = 16 cells, 4 rows */
.gallery:has(> :nth-child(10):last-child) > :nth-child(7),
.gallery:has(> :nth-child(10):last-child) > :nth-child(8) { grid-column: auto; grid-row: auto; }
.gallery:has(> :nth-child(10):last-child) > :nth-child(9),
.gallery:has(> :nth-child(10):last-child) > :nth-child(10) { grid-column: span 2; }

/* External form embed (LeadConnector / HubSpot / etc.) */
.form-embed { min-height: 620px; }
.form-embed iframe { width: 100%; min-height: 620px; border: 0; display: block; }

/* "Known / Proactive" feature pair on the Who We Are page */
.who-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.5vw, 32px); }
.who-feature { background: var(--paper); border: 1px solid var(--hair); padding: clamp(32px, 3.5vw, 52px);
  display: flex; flex-direction: column; transition: transform .3s ease, border-color .3s ease; }
.who-feature:hover { transform: translateY(-2px); border-color: var(--ink-3); }
.who-feature-num { font-family: var(--serif); font-variation-settings: "opsz" 144;
  font-size: clamp(40px, 4.5vw, 56px); line-height: 1; color: var(--accent); margin-bottom: 28px;
  letter-spacing: -0.01em; }
.who-feature .eyebrow { margin-bottom: 14px; }
.who-feature h2.h2 { margin: 0 0 22px; }
.who-feature p { margin: 0 0 14px; }
.who-feature p:last-child { margin-bottom: 0; }
@media (max-width: 860px) {
  .who-feature-grid { grid-template-columns: 1fr; }
}

/* Social icons (Facebook + Instagram) — used in the dark footer and on the contact page */
.social-row { display: inline-flex; gap: 12px; align-items: center; }
.social-row__link { display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid currentColor;
  color: var(--ink); transition: background .25s, color .25s, transform .25s; }
.social-row__link:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-1px); }
/* Footer variant — light text on dark bg */
.social-row--footer { margin-top: 24px; }
.social-row--footer .social-row__link { color: rgba(246,241,232,0.75); border-color: rgba(246,241,232,0.25); }
.social-row--footer .social-row__link:hover { color: #fff; background: var(--blue); border-color: var(--blue); }
/* Contact-panel variant — slightly larger pills */
.social-row--contact .social-row__link { width: 44px; height: 44px; }

/* Brochure download CTA (contact page) */
.brochure-cta { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.brochure-cta .btn .arrow { transform: translateY(1px); }

/* Fee banner */
.fee-banner { background: var(--stone); padding: 56px clamp(32px, 5vw, 72px); border-radius: 2px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.fee-banner .range { font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); line-height: 1; }
.fee-banner .range small { font-size: 18px; color: var(--ink-3); font-family: var(--sans); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px); }
.contact-grid form { display: grid; gap: 20px; }
.field label { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; font-family: var(--sans); }
.field input, .field select, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--hair); padding: 10px 0; font: inherit; color: var(--ink); outline: none; border-radius: 0; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ink); }
.field textarea { resize: vertical; }

/* Articles */
.article-card { background: var(--cream); border: 1px solid var(--hair); border-radius: 2px; overflow: hidden;
  transition: all .25s; display: flex; flex-direction: column; }
.article-card:hover { background: var(--paper); border-color: var(--ink); transform: translateY(-2px); }
.article-card-media { aspect-ratio: 16/10; background-color: var(--stone); background-size: cover; background-position: center;
  transition: transform .4s ease; }
.article-card:hover .article-card-media { transform: scale(1.02); }
.article-card-body { padding: 24px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.article-card .tag { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.article-card h4 { font-family: var(--serif); font-size: 22px; line-height: 1.25; margin: 12px 0 14px; }
.article-card p { font-size: 14px; margin: 0; }
.article-card-foot { margin-top: auto; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; }

/* Long-form post content (single blog posts, page body overrides) */
.post-content { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.post-content p { max-width: 68ch; margin: 0 0 20px; color: var(--ink-2); }
.post-content h2 { font-family: var(--serif); font-size: clamp(26px, 2.8vw, 34px); margin: 48px 0 18px; letter-spacing: -0.01em; }
.post-content h3 { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 26px); margin: 36px 0 14px; }
.post-content ul, .post-content ol { padding-left: 22px; margin: 0 0 22px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.35; padding-left: 24px; border-left: 2px solid var(--accent); margin: 32px 0; color: var(--ink); }
.post-content a { color: var(--blue-deep); border-bottom: 1px solid currentColor; }
.post-content a:hover { color: var(--ink); }
.post-content img, .post-content .wp-block-image img { margin: 32px auto; border-radius: 2px; }
.post-content figure { margin: 32px 0; }
.post-content figure figcaption { font-size: 13px; color: var(--ink-3); margin-top: 8px; text-align: center; }
.post-meta { display: flex; gap: 20px; align-items: center; font-size: 13px; color: var(--ink-3); margin-top: 20px; flex-wrap: wrap; }
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-4); }

.u-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-bottom: 3px; transition: all .2s; }
.u-link:hover { color: var(--accent); border-bottom-color: var(--accent); gap: 12px; }

.caption { font-size: 12px; color: var(--ink-4); letter-spacing: 0.04em; font-family: var(--sans); }

/* Key-points list */
.keypoints { list-style:none; padding:0; margin: 28px 0 0; display:grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; }
.keypoints li { display:flex; gap:14px; align-items:flex-start; font-size:15px; color:var(--ink-2); line-height:1.5; }
.keypoints li::before { content:''; flex:0 0 auto; width:6px; height:6px; border-radius:50%; background:var(--accent); margin-top:9px; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1180px) { .site-nav ul, .nav-ctas { display: none; } .menu-toggle { display: inline-flex; } }
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-home-grid { grid-template-columns: 1fr; } .hero-home-media { min-height: 420px; }
  .proofs { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; } .split.reverse .split-text { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .fee-banner { grid-template-columns: 1fr; }
  .brochure-cta { grid-template-columns: 1fr; }
  .care-intro-grid { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .care-intro-grid > :first-child,
  .care-intro-grid .care-intro-body { grid-column: auto; }
  /* Collapse inline 2-col grids (used throughout the templates) to single column on mobile */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns:1fr 1.1fr"],
  [style*="grid-template-columns:1fr 1.2fr"],
  [style*="grid-template-columns:1fr 1.4fr"],
  [style*="grid-template-columns:1.1fr 1fr"],
  [style*="grid-template-columns:1.4fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-strip .item { border-left: 0; }
  .trust-strip .item:nth-child(2n) { border-left: 1px solid var(--hair); }
  .trust-strip .item:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery > *:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; }
  .gallery > *:nth-child(7n+4) { grid-column: auto; grid-row: auto; }
  .gallery > *:nth-child(7n+7) { grid-column: span 2; grid-row: auto; }
  .keypoints { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .site-header-inner { height: 72px; }
  .nav-ctas .btn-secondary { display: none; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip .item { border-left: 0 !important; border-top: 1px solid var(--hair); }
  .trust-strip .item:first-child { border-top: 0; }
}

/* Trust bar — ratings + reviews band that sits above the footer */
.trust-bar { background: var(--cream); padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.trust-bar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--hair); background: var(--paper); }
.trust-bar-grid .trust-badge { display: flex; align-items: center; gap: 18px; padding: 22px clamp(18px, 2.4vw, 32px); color: inherit;
  text-decoration: none; transition: background .25s ease; min-height: 96px; }
.trust-bar-grid .trust-badge:hover { background: var(--cream); }
.trust-bar-grid .trust-badge + .trust-badge { border-left: 1px solid var(--hair); }
.trust-badge__logo { width: 64px; height: auto; flex-shrink: 0; }
.trust-badge__brand { font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1; flex-shrink: 0; min-width: 110px; letter-spacing: -0.005em; }
.trust-badge__brand-dot { color: var(--accent); }
.trust-badge__brand--google { font-family: var(--sans); font-size: 24px; font-weight: 500; letter-spacing: -0.01em; min-width: 96px; }
.trust-badge__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.trust-badge__rating { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.1; color: var(--ink); letter-spacing: -0.005em; }
.trust-badge__star { color: var(--accent); font-size: 0.8em; }
.trust-badge__caption { font-size: 12px; letter-spacing: 0.04em; color: var(--ink-3); }

/* Review marquee */
.trust-reviews { margin-top: clamp(32px, 4vw, 48px); position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.trust-reviews-track { display: flex; gap: 20px; width: max-content; animation: trustScroll 70s linear infinite; }
.trust-reviews:hover .trust-reviews-track,
.trust-reviews:focus-within .trust-reviews-track { animation-play-state: paused; }
.trust-review-card { width: clamp(280px, 28vw, 360px); flex-shrink: 0; padding: 28px 30px;
  background: var(--paper); border: 1px solid var(--hair); display: flex; flex-direction: column; gap: 14px;
  min-height: 220px; }
.trust-review-source { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.trust-review-quote { font-family: var(--serif); font-style: italic; font-weight: 500;
  font-variation-settings: "opsz" 72; font-size: 17px; line-height: 1.5; letter-spacing: -0.005em;
  color: var(--ink); margin: 0; }
.trust-review-attr { font-size: 13px; color: var(--ink-3); margin-top: auto; }
@keyframes trustScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .trust-reviews-track { animation: none; }
  .trust-reviews { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
}
@media (max-width: 860px) {
  .trust-bar-grid { grid-template-columns: 1fr; }
  .trust-bar-grid .trust-badge + .trust-badge { border-left: 0; border-top: 1px solid var(--hair); }
  .trust-badge__brand, .trust-badge__brand--google { min-width: 90px; }
}

/* Mobile-only sticky CTA bar (Call + Book a Visit) */
.mobile-sticky-cta { display: none; }
@media (max-width: 860px) {
  .mobile-sticky-cta {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--ink-2); border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 -8px 24px rgba(0,0,0,0.22);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .mobile-sticky-cta .msc-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 12px; min-height: 56px; color: var(--paper);
    font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
    text-decoration: none; border: 0; transition: background .2s ease;
  }
  .mobile-sticky-cta .msc-call { border-right: 1px solid rgba(255,255,255,0.10); }
  .mobile-sticky-cta .msc-call:hover { background: rgba(255,255,255,0.06); }
  .mobile-sticky-cta .msc-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--blue); }
  .mobile-sticky-cta .msc-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
  .mobile-sticky-cta .msc-caption { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(246,241,232,0.6); }
  .mobile-sticky-cta .msc-number { font-family: var(--serif); font-size: 16px; color: var(--paper); margin-top: 2px; }
  .mobile-sticky-cta .msc-book { background: var(--blue); color: #fff; }
  .mobile-sticky-cta .msc-book:hover { background: var(--blue-deep); }
  .mobile-sticky-cta .msc-book .arrow { transition: transform .2s; }
  .mobile-sticky-cta .msc-book:hover .arrow { transform: translateX(3px); }
  /* Stop the bar covering content at the bottom of the page */
  body { padding-bottom: 64px; padding-bottom: calc(64px + env(safe-area-inset-bottom, 0)); }
  /* Hide when the mobile menu is open so it doesn't fight with menu CTAs */
  .mobile-menu.open ~ .mobile-sticky-cta { display: none; }
}

/* Page fade-in */
main { animation: pageIn .5s ease; }
@keyframes pageIn { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform:none; } }
