/*
Theme Name: Emedix Health
Description: Patient-facing theme for Emedix Health, High Wycombe.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: emedix-health
*/
:root {
  color-scheme: light;
  --ink: #14242d;
  --body: #425460;
  --plum: #006f9c;
  --plum-hover: #005778;
  --ice: #e3f4fa;
  --sand: #f5f8f9;
  --porcelain: #ffffff;
  --white: #fff;
  --line: #dce8ed;
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--porcelain);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 102px; }
body { margin: 0; font-size: 16px; line-height: 1.65; }
p { margin: 0 0 1em; color: var(--body); }
h1, h2, h3 { margin: 0 0 .38em; line-height: 1.12; letter-spacing: -.045em; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h1 { font-size: clamp(3.05rem, 5.8vw, 5.65rem); }
h2 { font-size: clamp(2.1rem, 4.1vw, 3.65rem); }
h3 { font-size: 1.26rem; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; }
svg { width: 21px; height: 21px; flex: 0 0 auto; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #ac522e; outline-offset: 4px; }
.wrap { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: fixed; left: 12px; top: 8px; transform: translateY(-150%); background: white; padding: 10px 16px; z-index: 50; }
.skip:focus { transform: translateY(0); }
.topline { background: #153541; color: #fcf7fb; font-size: .77rem; font-weight: 600; }
.topline .wrap { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 34px; }
.topline span, .topline a { display: inline-flex; align-items: center; gap: 6px; }
.topline a { text-decoration: none; white-space: nowrap; }
.topline svg { width: 14px; height: 14px; }
.site-head { position: sticky; top: 0; z-index: 10; background: #fffffff5; border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav { position: relative; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand { gap: 9px; text-decoration: none; }
.brand img { width: 42px; height: 42px; }
.brand-word { display: block; font-size: 1.72rem; line-height: 1; font-weight: 800; letter-spacing: -.07em; }
.brand-word small { display: block; font-size: .54rem; line-height: 1.1; font-weight: 750; letter-spacing: .27em; margin: 4px 0 0 2px; }
@media (max-width: 360px) { .brand img { width: 35px; height: 35px; } }
nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
nav a { text-decoration: none; font-size: .9rem; font-weight: 650; }
nav a:hover, nav a[aria-current] { text-decoration: underline; }
.menu-button { display: none; }
.btn, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; line-height: 1.28; text-decoration: none; }
.btn { border: 1px solid transparent; padding: 13px 19px; min-height: 49px; border-radius: 9px; font-size: .9rem; }
.btn svg, .text-link svg { width: 18px; height: 18px; }
.primary { background: var(--plum); color: white; }
.primary:hover { background: var(--plum-hover); }
.outline { border-color: #a3b9c5; background: transparent; }
.outline:hover { background: #e3f4fa; }
.light { background: #e3f3f8; color: var(--ink); }
.light:hover { background: white; }
.text-link { justify-content: flex-start; color: #006b92; font-size: .9rem; }
.text-link:hover { text-decoration: underline; }
.eyebrow { color: #0d637e; font-weight: 800; font-size: .69rem; letter-spacing: .155em; margin: 0 0 13px; }
.lead { max-width: 53ch; font-size: clamp(1.03rem, 1.7vw, 1.23rem); }
.hero {
  background: radial-gradient(ellipse at 86% 0%, #e8f8ff 0%, transparent 55%),
    radial-gradient(ellipse at 72% 100%, #f6fbfd 0%, transparent 58%),
    #ffffff;
}
.hero .outline { background: #ffffff62; }
.hero .outline:hover { background: #fff; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(26px, 5vw, 74px); padding-block: clamp(40px, 6vw, 80px); }
.hero h1 em { color: var(--plum); font-weight: inherit; }
.hero .lead { max-width: 39ch; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-top: 23px; }
.hero-image { margin: 0; position: relative; border-radius: 110px 20px 110px 20px; overflow: hidden; isolation: isolate; background: #e8f3f8; outline: 1px solid #acc5d08a; outline-offset: 6px; box-shadow: 0 22px 48px #25566729; }
.hero-image img { width: 100%; height: auto; aspect-ratio: 1.23; object-fit: cover; object-position: center; }
.hero-image figcaption { position: absolute; bottom: 12px; left: 15px; background: #fffffff2; color: #274650; font-size: .68rem; padding: 3px 8px; border-radius: 4px; }
.trust { background: #f0f8fa; border-block: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(3,1fr); padding-block: 17px; }
.trust a { display: flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; padding-inline: 14px; }
.trust a + a { border-left: 1px solid #dce9ef; }
.trust a:hover strong { text-decoration: underline; }
.trust a > svg { color: var(--plum); width: 25px; height: 25px; }
.trust strong, .trust small { display: block; }
.trust strong { font-size: .92rem; }
.trust small { color: #475e68; font-size: .78rem; }
.section { padding-block: clamp(48px, 7vw, 96px); }
.section-head { margin-bottom: 27px; }
.section-head p:last-child { margin-bottom: 0; }
.cards, .booking-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.service-card, .fee-panel, .team-card { border-radius: var(--radius); border: 1px solid var(--line); background: #ffffff; padding: clamp(20px, 3vw, 34px); }
.service-card { display: flex; align-items: flex-start; flex-direction: column; }
.service-card h3 { font-size: 1.33rem; margin: 18px 0 9px; }
.service-card p { flex: 1; }
.service-card .text-link { margin-top: 6px; }
.mist, .tinted { background: #eef8fb; }
.sand { background: #f5f8f9; }
.service-icon { display: inline-grid; place-items: center; width: 47px; height: 47px; background: #e1f3f9; border-radius: 13px; color: var(--plum); }
.service-icon svg { width: 25px; height: 25px; }
.sand .service-icon { background: #e3edf1; }
.other-services { display: flex; gap: 8px 17px; flex-wrap: wrap; margin-top: 20px; color: var(--body); font-size: .91rem; }
.finder-section { background: #f3f8fa; padding-block: clamp(44px, 6vw, 78px); }
.finder-grid, .visit-preview, .fees-section { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(22px, 5vw, 66px); align-items: center; }
.finder { border-radius: var(--radius); background: #ffffff; border: 1px solid #dceaf0; padding: clamp(16px, 2.7vw, 30px); }
.finder-options { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.finder-options button { border: 1px solid #a9bec9; border-radius: 7px; background: transparent; padding: 8px 10px; color: var(--ink); font-size: .81rem; font-weight: 700; cursor: pointer; }
.finder-options button[aria-pressed=true] { color: white; background: var(--plum); border-color: var(--plum); }
.finder-result p { margin-bottom: 11px; }
.visit-card { background: var(--sand); border: 1px solid #e0e9ed; padding: clamp(22px, 4vw, 45px); border-radius: var(--radius); }
.visit-card .eyebrow { margin-top: 16px; }
.visit-card h2 { margin-top: 8px; }
address { font-style: normal; margin-bottom: 1.2em; color: var(--body); }
.faq details { border-bottom: 1px solid #dde9ee; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; padding: 15px 0; font-weight: 700; }
.faq summary::marker, .faq summary::-webkit-details-marker { display: none; }
.faq summary span::after { content: "+"; font-size: 1.3rem; color: var(--plum); }
.faq details[open] summary span::after { content: "−"; }
.faq details div { color: var(--body); padding: 0 0 15px; }
.closing { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-radius: var(--radius); background: #064960; color: white; margin-bottom: 56px; padding: clamp(24px, 4vw, 48px); }
.closing .eyebrow, .closing p { color: #ebf8fc; }
.closing p:last-child { margin: 0; }
footer { background: #f2f7f9; padding-top: 42px; }
.foot-grid { display: grid; grid-template-columns: 1.25fr repeat(3,1fr); gap: 22px; }
.foot-grid p { margin-top: 14px; font-size: .88rem; max-width: 29ch; }
.foot-grid h2 { font-family: inherit; font-size: .95rem; font-weight: 750; letter-spacing: 0; }
.foot-grid > div > a:not(.brand) { display: block; font-size: .83rem; margin-top: 7px; overflow-wrap: anywhere; }
.foot-grid .foot-cqc { display: inline-flex!important; align-items: center; gap: 6px; }
.foot-cqc svg { width: 15px; height: 15px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #dfe9ee; margin-top: 28px; padding-block: 14px; color: #465e69; font-size: .76rem; }
.page-intro { background: #f3f8fa; padding-block: clamp(40px, 6vw, 78px); }
.page-intro h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
.page-intro .lead { margin-bottom: 0; }
.route-links { display: flex; gap: 10px; flex-wrap: wrap; padding-block: 24px 4px; }
.route-links a { border: 1px solid var(--line); border-radius: 7px; padding: 7px 12px; text-decoration: none; background: #ffffff; font-size: .83rem; font-weight: 650; }
.route-links a:hover { text-decoration: underline; }
.detail-list { padding-block: 15px 55px; }
.detail { display: grid; grid-template-columns: auto 1fr; gap: clamp(12px, 3vw, 30px); padding-block: 31px; border-bottom: 1px solid var(--line); }
.detail h2, .fee-panel h2 { font-size: clamp(1.75rem, 3.2vw, 2.65rem); }
.detail p { max-width: 64ch; }
.inline-fees { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.inline-fees span { padding: 6px 12px; background: #f3f8fa; border-radius: 8px; font-size: .88rem; }
.inline-fees strong { margin-right: 3px; }
.small { font-size: .88rem; }
.fees-section { align-items: start; gap: 16px; }
.fee-panel > .service-icon { margin-bottom: 14px; }
.fee-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 15px; border-bottom: 1px solid var(--line); }
.fee-line p { margin: 0; font-size: .84rem; }
.fee-line > strong { font-size: 1.48rem; }
.fee-line + .small { margin-top: 16px; }
.fee-notes { margin-bottom: 44px; }
.fee-notes h2 { font-size: 2rem; }
.booking-grid { padding-bottom: 24px; }
.booking-grid .text-link { display: flex; margin-top: 13px; }
.info-bar { display: flex; align-items: flex-start; gap: 12px; background: #eef8fb; border: 1px solid var(--line); border-radius: 12px; padding: 17px 20px; margin-bottom: 52px; }
.info-bar p { margin: 0; }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.team-card { display: flex; gap: 15px; }
.team-card p { margin-bottom: 4px; }
.initials { display: grid; place-items: center; width: 50px; height: 50px; flex: 0 0 auto; background: var(--sand); border-radius: 50%; font-weight: 750; }
.initials.ice { background: var(--ice); }
.cqc-note { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 18px 0 0; }
@media (max-width: 900px) {
  .wrap { width: min(1200px,calc(100% - 48px)); }
  .nav { gap: 14px; }
  .hero-grid { gap: 22px; }
  .hero-image { border-radius: 74px 15px 74px 15px; }
  .header-book { font-size: .8rem; padding-inline: 12px; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 75px; }
  .wrap { width: calc(100% - 36px); }
  .nav { min-height: 64px; }
  .header-book { display: none; }
  .menu-button { display: inline-flex; align-items: center; gap: 5px; background: transparent; border: 1px solid #a7beca; border-radius: 8px; color: var(--ink); min-height: 44px; padding: 8px 11px; font-size: .85rem; cursor: pointer; }
  nav { position: absolute; top: 100%; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; border: 1px solid var(--line); border-radius: 0 0 12px 12px; box-shadow: 0 10px 28px #15354124; background: var(--porcelain); }
  nav.open { display: flex; }
  nav a { padding: 12px 17px; }
  nav a + a { border-top: 1px solid var(--line); }
  .hero-grid, .cards, .booking-grid, .finder-grid, .visit-preview, .fees-section, .team-grid { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 36px; }
  .hero-image { max-width: 520px; }
  .hero-image img { aspect-ratio: 1.45; }
  .trust-grid { grid-template-columns: 1fr; padding-block: 6px; }
  .trust a { justify-content: flex-start; padding: 8px 3px; }
  .trust a + a { border-left: 0; border-top: 1px solid #dce9ef; }
  .section { padding-block: 42px; }
  .closing { align-items: flex-start; flex-direction: column; }
  .foot-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .foot-bottom { flex-direction: column; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 28px); }
  .hero .actions .btn { width: 100%; }
  .detail { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.mobile-book { display: none; }
@media (max-width: 720px) { .mobile-book { display: block; font-weight: 800; } }
.booking-extra { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-block: 6px 25px; border: 1px solid var(--line); border-radius: 15px; padding: 18px 22px; background: #f5f8f9; }
.booking-extra h2 { font-size: 1.8rem; }
.booking-extra p { margin: 0; max-width: 65ch; }
.booking-extra .btn { flex: 0 0 auto; }
@media (max-width: 720px) { .booking-extra { flex-direction: column; align-items: flex-start; } }
.urgent-strip { background: #fff0e8; border-bottom: 1px solid #efdbc9; }
.urgent-strip .wrap { display: flex; gap: 9px; align-items: flex-start; padding-block: 9px; }
.urgent-strip svg { width: 17px; height: 17px; margin-top: 2px; color: #884529; }
.urgent-strip p { color: #553321; margin: 0; font-size: .81rem; line-height: 1.45; }
.urgent-strip a { font-weight: 750; }
.cqc-badge img { width: 135px; height: auto; }
.cqc-badge strong { max-width: 12ch; }
@media (max-width: 720px) { .urgent-strip .wrap { padding-block: 8px; } }
.detail-with-image { grid-template-columns: auto minmax(0, 1fr) minmax(230px, .65fr); align-items: start; }
.service-photo { margin: 0; position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--line); }
.service-photo img { width: 100%; height: auto; }
.service-photo figcaption { position: absolute; bottom: 8px; left: 9px; padding: 2px 7px; border-radius: 4px; background: #fffffff2; color: var(--body); font-size: .68rem; }
@media (max-width: 800px) {
  .detail-with-image { grid-template-columns: auto minmax(0, 1fr); }
  .service-photo { grid-column: 2; width: min(100%, 420px); }
}
@media (max-width: 360px) {
  .detail-with-image { grid-template-columns: minmax(0, 1fr); }
  .service-photo { grid-column: 1; }
}
