/*
Theme Name: A2Care Professional
Theme URI: https://a2care.co.uk/
Author: A2Care
Description: A clean, accessible WordPress theme for A2Care supported accommodation, referrals and careers.
Version: 1.0.6
Text Domain: a2care
License: GNU General Public License v2 or later
*/

:root {
  --ink: #13243a;
  --ink-soft: #526174;
  --navy: #0f2e46;
  --navy-2: #173f5e;
  --teal: #168f8a;
  --teal-dark: #0e706c;
  --mint: #eaf7f5;
  --sky: #eef6fb;
  --warm: #f5a85b;
  --warm-soft: #fff3e6;
  --white: #ffffff;
  --line: #dce6ec;
  --surface: #f7fafc;
  --shadow: 0 18px 55px rgba(15, 46, 70, .12);
  --shadow-sm: 0 8px 24px rgba(15, 46, 70, .08);
  --radius: 24px;
  --radius-sm: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: var(--teal-dark); text-decoration-thickness: .08em; text-underline-offset: .15em; }
a:hover { color: var(--navy); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-muted { background: var(--surface); }
.section-navy { background: var(--navy); color: var(--white); }
.section-mint { background: var(--mint); }

.skip-link {
  position: fixed; left: 14px; top: 14px; z-index: 9999; transform: translateY(-160%);
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

.topbar { background: var(--navy); color: #dbe9f3; font-size: 13px; letter-spacing: .01em; }
.topbar .container { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar__right { display: flex; gap: 18px; align-items: center; }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(220,230,236,.9); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-branding { flex: 0 0 auto; }
.site-branding a { text-decoration: none; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { max-height: 54px; width: auto; }
.brand-fallback { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--teal); color: #fff; font-weight: 800; letter-spacing: -.04em; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word strong { font-size: 24px; letter-spacing: -.04em; }
.brand-word small { margin-top: 6px; font-size: 10px; text-transform: uppercase; letter-spacing: .18em; color: var(--ink-soft); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: inline-flex; align-items: center; padding: 12px 12px; border-radius: 10px; color: var(--ink); font-size: 15px; font-weight: 650; text-decoration: none; }
.main-nav a:hover, .main-nav .current-menu-item > a { background: var(--sky); color: var(--navy); }
.header-cta { margin-left: 10px; }
.menu-toggle { display: none; border: 0; background: transparent; width: 46px; height: 46px; border-radius: 10px; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; height: 2px; width: 24px; background: var(--navy); margin: 5px auto; transition: .2s ease; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 13px 20px; border: 1px solid transparent; border-radius: 12px; font-weight: 750; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 10px 24px rgba(22,143,138,.22); }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-secondary { background: #fff; border-color: var(--line); color: var(--navy); }
.btn-secondary:hover { border-color: #b9ccd7; color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-light { background: #fff; color: var(--navy); }
.btn-small { min-height: 42px; padding: 10px 16px; font-size: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform .18s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 16px; color: var(--teal-dark); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #f7fbfd 0%, #eef8f6 62%, #fff7ef 100%); padding: 76px 0 84px; }
.hero::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(22,143,138,.08); right: -150px; top: -180px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
.hero h1 { margin: 0 0 22px; max-width: 720px; color: var(--navy); font-size: clamp(44px, 5.4vw, 74px); line-height: 1.03; letter-spacing: -.055em; }
.hero p { margin: 0 0 30px; max-width: 660px; color: #495b6d; font-size: clamp(18px, 2vw, 21px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px 22px; color: var(--ink-soft); font-size: 14px; font-weight: 650; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row span::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #dff3ef; color: var(--teal-dark); font-size: 12px; font-weight: 900; }

.hero-visual { position: relative; min-height: 520px; }
.hero-photo { width: 100%; height: 520px; object-fit: cover; border-radius: 34px; box-shadow: var(--shadow); }
.hero-panel { position: absolute; inset: 20px; border-radius: 30px; overflow: hidden; background: linear-gradient(145deg, var(--navy), #1c5276); box-shadow: var(--shadow); }
.hero-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.15), transparent 32%), radial-gradient(circle at 10% 90%, rgba(22,143,138,.42), transparent 36%); }
.hero-panel__content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 42px; color: #fff; }
.hero-panel__icon { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; margin-bottom: auto; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.15); font-size: 28px; }
.hero-panel h2 { margin: 0 0 8px; font-size: 31px; line-height: 1.1; letter-spacing: -.035em; }
.hero-panel p { color: #d9e7ef; font-size: 16px; margin: 0; }
.floating-card { position: absolute; left: -28px; bottom: 35px; width: 250px; padding: 18px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); border: 1px solid #e4edf1; }
.floating-card strong { display: block; color: var(--navy); font-size: 16px; }
.floating-card span { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 13px; }
.floating-card__badge { display: inline-flex; margin-bottom: 10px; padding: 5px 9px; border-radius: 999px; background: var(--mint); color: var(--teal-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }

.stats-strip { position: relative; margin-top: -30px; z-index: 4; }
.stats-card { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); overflow: hidden; }
.stat { padding: 25px 28px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; color: var(--navy); font-size: 17px; line-height: 1.25; }
.stat span { color: var(--ink-soft); font-size: 13px; }

.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading.center .eyebrow { justify-content: center; }
.section-heading h2 { margin: 0 0 16px; color: var(--navy); font-size: clamp(32px, 4.2vw, 50px); line-height: 1.1; letter-spacing: -.045em; }
.section-heading p { margin: 0; color: var(--ink-soft); font-size: 18px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 1px 0 rgba(15,46,70,.02); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); border-color: #c8d8df; box-shadow: var(--shadow-sm); }
.card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 24px; background: var(--mint); color: var(--teal-dark); font-size: 23px; }
.card h3 { margin: 0 0 10px; color: var(--navy); font-size: 21px; line-height: 1.25; }
.card p { margin: 0 0 16px; color: var(--ink-soft); font-size: 15.5px; }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
.split.reverse > :first-child { order: 2; }
.feature-panel { min-height: 470px; padding: 42px; border-radius: 32px; background: linear-gradient(145deg, #e7f5f2, #f7fbfd); border: 1px solid #dbece9; }
.feature-panel--navy { background: linear-gradient(145deg, var(--navy), #1a4e70); border-color: transparent; color: #fff; }
.feature-panel h3 { margin: 0 0 12px; font-size: 26px; color: var(--navy); }
.feature-panel--navy h3 { color: #fff; }
.check-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #fff; color: var(--teal-dark); font-size: 12px; font-weight: 900; box-shadow: var(--shadow-sm); }
.feature-panel--navy .check-list li::before { background: rgba(255,255,255,.14); color: #fff; box-shadow: none; }

.process { counter-reset: steps; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.process-step { counter-increment: steps; position: relative; padding: 28px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.process-step::before { content: counter(steps, decimal-leading-zero); display: block; margin-bottom: 18px; color: var(--teal); font-size: 13px; font-weight: 900; letter-spacing: .12em; }
.process-step h3 { margin: 0 0 8px; color: var(--navy); font-size: 18px; }
.process-step p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.quote-section { background: linear-gradient(135deg, var(--navy), #184c6d); color: #fff; }
.quote-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.quote-wrap blockquote { margin: 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.28; letter-spacing: -.03em; font-weight: 700; }
.quote-side { padding: 30px; border-left: 1px solid rgba(255,255,255,.2); color: #d6e5ee; }
.quote-side strong { display: block; margin-bottom: 8px; color: #fff; font-size: 18px; }

.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 42px; border-radius: 28px; background: var(--warm-soft); border: 1px solid #f2dfca; }
.cta-box h2 { margin: 0 0 7px; color: var(--navy); font-size: 31px; letter-spacing: -.035em; }
.cta-box p { margin: 0; color: var(--ink-soft); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.page-hero { background: linear-gradient(135deg, #f4f9fc, #eef8f6); padding: 70px 0 66px; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 0 0 14px; max-width: 850px; color: var(--navy); font-size: clamp(40px, 5vw, 62px); line-height: 1.05; letter-spacing: -.05em; }
.page-hero p { max-width: 760px; margin: 0; color: var(--ink-soft); font-size: 19px; }
.breadcrumbs { margin-bottom: 18px; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.breadcrumbs a { color: var(--teal-dark); text-decoration: none; }

.entry-content { color: #35475b; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3 { color: var(--navy); letter-spacing: -.03em; line-height: 1.2; }
.entry-content h2 { margin-top: 44px; font-size: 32px; }
.entry-content h3 { margin-top: 30px; font-size: 23px; }
.entry-content p, .entry-content li { font-size: 17px; }
.entry-content ul, .entry-content ol { padding-left: 24px; }
.entry-content .wp-block-button__link { background: var(--teal); border-radius: 12px; }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 34px 0; }
.info-box { padding: 25px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.info-box h3 { margin-top: 0; }

.form-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 50px; align-items: start; }
.form-aside { position: sticky; top: 130px; padding: 30px; border-radius: 24px; background: var(--navy); color: #dce8ef; }
.form-aside h2 { color: #fff; margin: 0 0 14px; font-size: 28px; }
.form-aside a { color: #fff; }
.form-card { padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; color: var(--navy); font-size: 14px; font-weight: 750; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #cbd9e1; border-radius: 11px; background: #fff; color: var(--ink); padding: 13px 14px; outline: 0; transition: border-color .15s ease, box-shadow .15s ease; }
.field textarea { min-height: 145px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(22,143,138,.12); }
.field-help { margin-top: 6px; color: var(--ink-soft); font-size: 12px; }
.check-field { display: flex; align-items: flex-start; gap: 10px; }
.check-field input { width: 18px; height: 18px; margin-top: 4px; }
.notice { margin-bottom: 20px; padding: 14px 16px; border-radius: 12px; font-weight: 650; }
.notice-success { background: #e8f6ef; color: #17633d; border: 1px solid #c7ead7; }
.notice-error { background: #fff0f0; color: #8f2d2d; border: 1px solid #f0caca; }

.site-footer { background: #0c2539; color: #bfd0dc; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { max-width: 390px; font-size: 14px; }
.footer-logo { color: #fff; }
.footer-heading { margin: 0 0 16px; color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-nav a { color: #bfd0dc; text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: #fff; }
.footer-meta { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; }
.footer-meta .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-meta a { color: #dce8ef; }

.not-found { text-align: center; padding: 110px 0; }
.not-found h1 { font-size: 72px; margin: 0; color: var(--navy); }
.not-found h2 { margin: 8px 0 15px; }

@media (max-width: 1040px) {
  .main-nav { display: none; position: fixed; left: 0; right: 0; top: 120px; bottom: 0; padding: 24px; background: #fff; overflow: auto; }
  .main-nav.open { display: block; }
  .main-nav ul { display: grid; align-items: stretch; gap: 5px; }
  .main-nav a { width: 100%; padding: 14px; }
  .header-cta { margin: 14px 0 0; }
  .menu-toggle { display: block; }
  .hero-grid, .split, .quote-wrap, .form-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .hero-visual { min-height: 460px; }
  .hero-panel, .hero-photo { height: 440px; }
  .hero-panel { inset: 0; }
  .floating-card { left: 18px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .stats-card { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .form-aside { position: static; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .container, .narrow { width: min(calc(100% - 28px), var(--container)); }
  .topbar__right span:first-child { display: none; }
  .topbar .container { min-height: 34px; }
  .site-header { top: 0; }
  .header-inner { min-height: 70px; }
  .main-nav { top: 104px; }
  .brand-word small { display: none; }
  .hero { padding: 50px 0 70px; }
  .hero h1 { font-size: 46px; }
  .hero-visual { min-height: 400px; }
  .hero-panel, .hero-photo { height: 390px; }
  .hero-panel__content { padding: 28px; }
  .floating-card { width: calc(100% - 36px); bottom: -12px; }
  .stats-strip { margin-top: 0; padding-top: 18px; }
  .stats-card, .cards, .process, .info-grid, .form-grid { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .section { padding: 66px 0; }
  .section-heading { margin-bottom: 30px; }
  .section-heading h2 { font-size: 36px; }
  .split { gap: 35px; }
  .split.reverse > :first-child { order: initial; }
  .feature-panel { min-height: auto; padding: 30px; }
  .cta-box { align-items: flex-start; flex-direction: column; padding: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .form-card { padding: 24px; }
  .field.full { grid-column: auto; }
}
.screen-reader-text { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.screen-reader-text:focus { position:fixed!important; width:auto; height:auto; clip:auto; padding:12px 16px; margin:0; left:12px; top:12px; background:#fff; color:#000; z-index:100000; }

.header-phone {
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
}
.header-phone:hover,
.header-phone:focus {
    text-decoration: underline;
}

/* A2Care 1.0.3 brand logo */
.a2care-logo-link { display:inline-flex; align-items:center; text-decoration:none; }
.a2care-logo { display:block; width:250px; height:auto; max-width:100%; object-fit:contain; image-rendering:auto; }
.a2care-logo--footer { width:280px; height:auto; max-width:100%; background:#fff; border-radius:12px; padding:5px 10px; }
@media (max-width: 700px) {
  .a2care-logo { width:205px; height:auto; }
  .a2care-logo--footer { width:230px; height:auto; }
}

/* A2Care 1.0.4 — force fresh sharp brand asset */
.site-header .site-branding { display:flex; align-items:center; }
.site-header .a2care-logo-link { display:block; line-height:0; }
.site-header .a2care-logo { width:150px; height:auto; max-height:none; object-fit:contain; filter:none; transform:none; }
@media (max-width: 768px) { .site-header .a2care-logo { width:135px; } }
