/* HCL Commercial — homepage styles (the /care-homes/ page keeps using /styles.css) */
:root {
  --navy: #142d40;
  --navy-2: #1c3a52;
  --navy-deep: #0e2232;
  --gold: #99702b;
  --gold-dark: #79561e;
  --gold-light: #d7b97c;
  --ivory: #f7f5ef;
  --sand: #f3eee3;
  --ink: #263e4b;
  --muted: #55666f;
  --line: #e2d9c9;
  --white: #fff;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--navy); margin: 0 0 .55em; line-height: 1.15; }
h2 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.02em; }
h3 { font-size: 21px; line-height: 1.3; }
p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: 4px; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid #23659a; outline-offset: 4px; }

.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; }
.nowrap { white-space: nowrap; }

/* Buttons and links */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 50px; padding: 13px 26px; border-radius: 3px; border: 0;
  background: #8a6424; color: #fff; font-weight: 650; font-size: 16px; text-decoration: none;
}
.button:hover { background: var(--gold-dark); }
.button-small { min-height: 42px; padding: 9px 18px; font-size: 14px; }
.button-large { min-height: 58px; font-size: 18px; width: 100%; }
.text-link { font-weight: 600; color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); }
.text-link:hover { color: var(--gold-dark); }
.text-link-light { color: #fff; text-decoration-color: var(--gold-light); }
.text-link-light:hover { color: var(--gold-light); }

/* Eyebrows and section heads */
.eyebrow { text-transform: uppercase; font-size: 12px; letter-spacing: .2em; font-weight: 700; color: var(--gold-dark); margin-bottom: 18px; }
.eyebrow::after { content: ""; display: block; width: 36px; height: 2px; background: var(--gold); margin-top: 12px; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-intro { font-size: 19px; color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand span { font-family: var(--serif); color: var(--navy); font-size: 22px; letter-spacing: .05em; line-height: 1.15; }
.brand small { display: block; font-family: var(--sans); font-size: 11.5px; letter-spacing: .06em; color: var(--muted); margin-top: 4px; }
#navigation { display: flex; align-items: center; gap: 28px; }
#navigation > a:not(.button) { font-size: 15px; text-decoration: none; color: var(--navy); padding-block: 6px; border-bottom: 2px solid transparent; }
#navigation > a:not(.button):hover { border-bottom-color: var(--gold); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer; position: relative; }
.menu-bars, .menu-bars::before, .menu-bars::after { position: absolute; left: 12px; width: 20px; height: 2px; background: var(--navy); content: ""; }
.menu-bars { top: 22px; }
.menu-bars::before { top: -6px; left: 0; }
.menu-bars::after { top: 6px; left: 0; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero { background: var(--ivory); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; padding-block: clamp(64px, 9vw, 120px); }
.hero h1 { font-size: clamp(40px, 5.2vw, 66px); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 26px; }
.hero h1 span { display: block; color: var(--gold-dark); }
.lead { font-size: clamp(18px, 1.6vw, 20px); max-width: 600px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }

.hero-panel { position: relative; overflow: hidden; background: var(--navy); color: #fff; border-radius: 90px 6px 6px 6px; padding: clamp(32px, 4vw, 48px); }
.panel-label { text-transform: uppercase; font-size: 12px; letter-spacing: .2em; font-weight: 700; color: var(--gold-light); margin-bottom: 22px; }
.flow { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.flow li { display: flex; gap: 18px; align-items: baseline; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 18px; color: rgba(255, 255, 255, .84); }
.flow li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.flow span { font-family: var(--serif); color: var(--gold-light); font-size: 15px; min-width: 22px; }
.flow strong { color: #fff; font-weight: 650; }
.panel-mark { position: absolute; right: -6px; bottom: -14px; width: 120px; height: auto; opacity: .16; }

/* Problem */
.problem-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.problem-grid li { background: var(--ivory); border-top: 3px solid var(--gold); padding: 30px 28px; }
.problem-grid p { margin: 0; color: var(--muted); }

/* Services */
.services { background: var(--sand); }
.service-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 34px 32px; }
.service p { margin: 0; color: var(--muted); }
.service-icon { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: var(--sand); color: var(--gold-dark); margin-bottom: 20px; }
.service-icon svg { width: 32px; height: 32px; }

/* Approach */
.approach { background: var(--navy); color: rgba(255, 255, 255, .82); }
.section-head-light h2 { color: #fff; }
.section-head-light .eyebrow { color: var(--gold-light); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.steps li { padding: 30px 26px 8px 0; }
.steps li + li { padding-left: 26px; border-left: 1px solid rgba(255, 255, 255, .16); }
.steps h3 { color: #fff; }
.steps p { font-size: 16px; }
.step-number { display: block; font-family: var(--serif); font-size: 34px; color: var(--gold-light); margin-bottom: 14px; line-height: 1; }

/* Who we help */
.who-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 14px; height: 8px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.sector-card { background: var(--navy-2); color: rgba(255, 255, 255, .84); border-radius: 6px; padding: clamp(30px, 4vw, 44px); }
.sector-card h3 { color: #fff; font-size: 26px; }
.coming-soon { display: table; font-size: 13px; font-weight: 600; letter-spacing: .05em; color: var(--navy); background: var(--gold-light); border-radius: 30px; padding: 4px 14px; margin: 4px 0 22px; }

/* About */
.about { background: var(--ivory); }
.about-grid { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.about-photo { display: block; position: relative; z-index: 0; }
.about-photo img { display: block; width: 100%; height: auto; border-radius: 70px 4px 4px 4px; }
.about-photo::after { content: ""; position: absolute; z-index: -1; inset: 16px -16px -16px 16px; border: 1px solid var(--gold); border-radius: 70px 4px 4px 4px; }
.about-lead { font-family: var(--serif); font-size: 23px; line-height: 1.4; color: var(--navy); }
.about-parent { font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 26px; }
.about-parent a { color: var(--navy); text-decoration-color: var(--gold); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.contact-hint { color: var(--muted); font-size: 16px; border-left: 3px solid var(--gold); padding-left: 16px; }
.contact-card { background: var(--sand); border: 1px solid var(--line); border-radius: 6px; padding: clamp(28px, 4vw, 40px); }
.contact-email { text-align: center; font-family: var(--serif); font-size: 20px; margin: 18px 0; word-break: break-word; }
.contact-email a { color: var(--navy); text-decoration-color: var(--gold); }
.contact-note { font-size: 14px; color: var(--muted); margin: 0; text-align: center; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .72); font-size: 14px; padding-top: 52px; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-brand { display: flex; align-items: center; gap: 10px; align-self: start; }
.footer-brand span { font-family: var(--serif); color: #fff; letter-spacing: .05em; font-size: 17px; }
.footer-legal p { margin: 0 0 8px; max-width: 560px; }
.footer-legal a, .footer-links a { color: rgba(255, 255, 255, .9); text-decoration-color: rgba(215, 185, 124, .6); word-break: break-word; }
.footer-legal a:hover, .footer-links a:hover { color: var(--gold-light); }
.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-base { padding-block: 20px 26px; font-size: 13px; color: rgba(255, 255, 255, .5); }
.footer-base p { margin: 0; }

/* Privacy page */
.page-head { background: var(--ivory); border-bottom: 1px solid var(--line); padding-block: clamp(56px, 8vw, 88px); }
.page-head h1 { font-size: clamp(36px, 4.5vw, 52px); }
.policy { max-width: 760px; }
.policy h2 { font-size: 26px; margin-top: 1.8em; }
.policy h2:first-child { margin-top: 0; }
.policy ul { padding-left: 1.2em; }
.placeholder { background: #fff3df; border-left: 3px solid var(--gold); padding: 2px 6px; }

/* Responsive */
@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .16); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 880px) {
  :root { --header-h: 72px; }
  .menu-toggle { display: inline-block; }
  #navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 6px 32px 22px; box-shadow: 0 12px 24px rgba(20, 45, 64, .08); }
  #navigation.open { display: flex; }
  #navigation > a:not(.button) { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  #navigation .button { margin-top: 16px; min-height: 50px; font-size: 16px; }
  .header-inner { position: relative; }
  .hero-grid, .who-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 340px; }
}

@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .wrap { width: calc(100% - 40px); }
  #navigation { padding-inline: 20px; }
  .brand span { font-size: 19px; }
  .brand small { font-size: 10.5px; }
  .hero-actions .button { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .hero-panel { border-radius: 60px 6px 6px 6px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0 4px; border-left: 0; }
  .steps li + li { border-top: 1px solid rgba(255, 255, 255, .16); }
  .service, .problem-grid li { padding: 26px 22px; }
  .about-photo { max-width: 300px; margin-right: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { grid-row: auto; }
}

@media print {
  .site-header, .menu-toggle, .hero-actions { display: none !important; }
  .approach, .hero-panel, .sector-card, .site-footer { background: none !important; color: #000 !important; }
}
/* Enquiry call to action */
.hero-note { margin: 22px 0 0; font-size: 15px; color: var(--muted); max-width: 520px; }
.cta-steps { list-style: none; counter-reset: cta; margin: 26px 0 0; padding: 0; }
.cta-steps li { counter-increment: cta; position: relative; padding: 12px 0 12px 48px; border-top: 1px solid var(--line); }
.cta-steps li::before { content: counter(cta); position: absolute; left: 0; top: 11px; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font: 15px/32px var(--serif); text-align: center; }
.cta-steps strong { color: var(--navy); }
.contact-card-title { font-family: var(--serif); font-size: 24px; line-height: 1.25; color: var(--navy); text-align: center; margin-bottom: 20px; }
@media (max-width: 600px) { .hero-note { text-align: left; } }
