/* Absolute Choice Home Care — absolutechoicehc.com
   Palette: navy #12283F · gold #C08A2E · teal #2E6B5E · paper #F6F7F9 · ink #1A1D21 */

:root {
  --navy: #12283F;
  --navy-800: #1B3A59;
  --navy-600: #2E5679;
  --gold: #C08A2E;
  --gold-soft: #F0E2C6;
  --teal: #2E6B5E;
  --teal-dark: #245346;
  --paper: #F6F7F9;
  --white: #FFFFFF;
  --ink: #1A1D21;
  --muted: #5A6672;
  --line: #DEE3E9;
  --alert: #9B2C2C;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1140px;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --radius: 4px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.18; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
a { color: var(--teal-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }

.eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 .8rem;
}

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff;
  padding: .75rem 1.25rem; z-index: 200;
}
.skip:focus { left: 0; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.topbar {
  background: var(--navy); color: #C8D4E0; font-size: .82rem;
  padding: .45rem 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; justify-content: space-between; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }

.langbar { display: flex; gap: .25rem; align-items: center; }
.langbar a {
  padding: .15rem .5rem; border-radius: var(--radius); font-weight: 600;
  color: #C8D4E0; text-decoration: none;
}
.langbar a[aria-current="true"] { background: rgba(255,255,255,.14); color: #fff; }

.masthead { border-bottom: 1px solid var(--line); background: var(--white); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem 0; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand b { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--navy); letter-spacing: -.01em; }
.brand span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .5rem .8rem; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer;
}

nav.main ul { display: flex; flex-wrap: wrap; gap: .2rem; list-style: none; margin: 0; padding: 0; }
nav.main a {
  display: block; padding: .5rem .7rem; font-size: .92rem; font-weight: 600;
  color: var(--navy-800); text-decoration: none; border-radius: var(--radius);
}
nav.main a:hover { background: var(--paper); }
nav.main a[aria-current="page"] { color: var(--teal-dark); box-shadow: inset 0 -2px 0 var(--gold); }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  nav.main { display: none; width: 100%; }
  nav.main.open { display: block; }
  .masthead .wrap { flex-wrap: wrap; }
  nav.main ul { flex-direction: column; gap: 0; padding-bottom: .75rem; }
  nav.main a { padding: .7rem .3rem; border-bottom: 1px solid var(--line); border-radius: 0; }
}

/* ── Hero + the four doors (signature element) ──────────────────────────── */
.hero { background: var(--navy); color: #E8EEF4; padding: clamp(3rem, 7vw, 5rem) 0 0; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero p.lede { font-size: clamp(1.05rem, 2vw, 1.28rem); color: #BFCEDC; max-width: 56ch; }
.hero .cred { font-size: .85rem; color: #92A6B8; border-top: 1px solid rgba(255,255,255,.14); padding-top: 1rem; margin-top: 1.6rem; }

.doors {
  display: grid; gap: 1px; background: var(--line);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 3px solid var(--gold);
}
.door {
  background: var(--white); padding: 1.7rem 1.5rem 1.5rem; text-decoration: none;
  display: flex; flex-direction: column; transition: background .18s ease;
}
.door:hover, .door:focus-visible { background: var(--paper); }
.door .who { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; }
.door strong { font-family: var(--serif); font-size: 1.32rem; font-weight: 500; color: var(--navy); line-height: 1.25; margin-bottom: .5rem; }
.door span.sub { font-size: .95rem; color: var(--muted); }
.door .go { margin-top: 1rem; font-size: .9rem; font-weight: 700; color: var(--teal-dark); }
.door .go::after { content: " →"; }

/* ── Sections ───────────────────────────────────────────────────────────── */
.band { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.band.paper { background: var(--paper); }
.band.navy { background: var(--navy); color: #D5E0EA; }
.band.navy h2, .band.navy h3 { color: #fff; }

.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: clamp(2.2rem, 5vw, 3.4rem) 0; }
.page-head p { max-width: 62ch; color: var(--muted); font-size: 1.08rem; margin-bottom: 0; }

.cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cols-2 { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .cols-2 { grid-template-columns: 1.15fr .85fr; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.card h3 { margin-top: 0; }
.card ul { padding-left: 1.1rem; margin: 0; }
.card li { margin-bottom: .35rem; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 1.7rem; position: relative; margin-bottom: .6rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: .7rem; height: .7rem;
  border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

.stat-row { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat b { display: block; font-family: var(--serif); font-size: 2rem; color: var(--gold); line-height: 1; }
.stat span { font-size: .92rem; color: inherit; opacity: .85; }

.btn {
  display: inline-block; background: var(--teal); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1rem; padding: .85rem 1.6rem; border-radius: var(--radius);
  border: none; cursor: pointer; font-family: var(--sans);
}
.btn:hover { background: var(--teal-dark); }
.btn.gold { background: var(--gold); color: #21170A; }
.btn.gold:hover { background: #A9761F; }
.btn.ghost { background: transparent; border: 2px solid currentColor; color: #fff; }

.callout {
  border-left: 4px solid var(--gold); background: var(--gold-soft);
  padding: 1.2rem 1.4rem; border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p:last-child { margin-bottom: 0; }

details.faq { border-bottom: 1px solid var(--line); padding: 1rem 0; }
details.faq summary { font-weight: 700; cursor: pointer; color: var(--navy); font-size: 1.05rem; }
details.faq[open] summary { margin-bottom: .7rem; }

table.area { width: 100%; border-collapse: collapse; }
table.area th, table.area td { text-align: left; padding: .75rem .5rem; border-bottom: 1px solid var(--line); }
table.area th { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
table.area td:first-child { font-weight: 700; color: var(--navy); white-space: nowrap; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.formwrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 700; font-size: .93rem; margin-bottom: .35rem; color: var(--navy); }
.field .hint { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); margin-top: .15rem; }
.field input[type=text], .field input[type=tel], .field input[type=email],
.field select, .field textarea {
  width: 100%; padding: .7rem .8rem; font: inherit; font-size: 1rem;
  border: 1px solid #B9C2CC; border-radius: var(--radius); background: var(--white); color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; gap: 1.15rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .field-row.two { grid-template-columns: 1fr 1fr; } }

.req { color: var(--alert); font-weight: 700; }

.consent {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; margin-bottom: 1rem; background: var(--paper);
}
.consent + .consent { margin-top: -.35rem; }
.consent label { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-weight: 400; font-size: .88rem; line-height: 1.5; color: #2E3742; }
.consent input[type=checkbox] { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--teal); }
.consent b { display: block; font-size: .93rem; color: var(--navy); margin-bottom: .2rem; }

.form-msg { padding: 1rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.2rem; display: none; font-size: .95rem; }
.form-msg.ok { display: block; background: #E6F2EE; border-left: 4px solid var(--teal); }
.form-msg.err { display: block; background: #FBEAEA; border-left: 4px solid var(--alert); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer.site { background: var(--navy); color: #A9BCCD; padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem; font-size: .93rem; }
footer.site h4 { color: #fff; font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .9rem; }
footer.site a { color: #D8E3EC; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: .45rem; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.foot-legal { border-top: 1px solid rgba(255,255,255,.13); margin-top: 2.5rem; padding-top: 1.3rem; font-size: .82rem; color: #8A9DAF; }
.foot-legal p { margin-bottom: .5rem; }

/* ── Footer contact lines with icons, and the social row ─────────────────── */
.clines { display: flex; flex-direction: column; gap: .55rem; margin: .9rem 0 0; }
.cline {
  display: grid; grid-template-columns: 1.9rem 1fr; align-items: start;
  text-decoration: none; color: #D8E3EC; line-height: 1.35;
}
.cline:hover .ctxt { text-decoration: underline; }
.cico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.55rem; height: 1.55rem; border-radius: 3px;
  background: rgba(255,255,255,.09); color: var(--gold);
}
.cline:hover .cico { background: rgba(192,138,46,.22); }
.ctxt b {
  display: block; font-size: .68rem; letter-spacing: .09em; text-transform: uppercase;
  font-weight: 700; color: #8FA5B8; margin-bottom: .05rem;
}
.socials { margin-top: 1.8rem; }
.socrow { display: flex; flex-wrap: wrap; gap: .5rem; }
.soc {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: rgba(255,255,255,.09); color: #D8E3EC;
  transition: background .16s ease, color .16s ease;
}
.soc:hover { background: var(--gold); color: #14202D; }
.ico { display: block; }
