/* ==========================================================
   CBS Home Support — main stylesheet
   Palette: white + turquoise
   ========================================================== */
:root {
  --teal-900: #0a4b4f;
  --teal-700: #0b6e72;
  --teal-600: #0e8a8e;
  --teal-500: #14a9a9;   /* primary turquoise */
  --teal-400: #3cc4c0;
  --teal-100: #d9f4f2;
  --teal-50:  #effaf9;
  --ink:      #15333a;
  --muted:    #5b7177;
  --line:     #e2ecec;
  --white:    #ffffff;
  --warm:     #fff8ef;

  --radius:   18px;
  --radius-sm: 10px;
  --shadow:   0 10px 30px rgba(10, 75, 79, 0.08);
  --shadow-lg:0 20px 50px rgba(10, 75, 79, 0.14);
  --max:      1180px;

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-700); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--teal-900);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 90px 0; }
.section--tint { background: var(--teal-50); }
.section--warm { background: var(--warm); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 12px;
}

.skip-link {
  position: absolute; left: -999px; top: 10px;
  background: var(--teal-700); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--teal-500); color: #fff; box-shadow: 0 8px 20px rgba(20,169,169,.3); }
.btn--primary:hover { background: var(--teal-600); }
.btn--ghost { background: #fff; color: var(--teal-700); border-color: var(--teal-100); }
.btn--ghost:hover { border-color: var(--teal-400); }
.btn--white { background: #fff; color: var(--teal-700); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Top bar + header ---------- */
.topbar {
  background: var(--teal-900);
  color: #cfeeee;
  font-size: .88rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar-contact { display: flex; align-items: center; gap: 18px; white-space: nowrap; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 80px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--teal-900); }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; line-height: 1; }
.brand-name small { display: block; font-family: var(--font-body); font-size: .7rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-500); margin-top: 4px; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.nav a {
  display: block; padding: 10px 16px; border-radius: 999px;
  text-decoration: none; color: var(--ink); font-weight: 700;
}
.nav a:hover { background: var(--teal-50); color: var(--teal-700); }
.nav a[aria-current="page"] { color: var(--teal-700); background: var(--teal-100); }
.nav .btn { margin-left: 8px; padding: 11px 22px; }
.nav .btn:hover { background: var(--teal-600); color: #fff; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--teal-50); border: 0; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--teal-900); position: relative; transition: .25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after  { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background:
    radial-gradient(circle at 85% 10%, var(--teal-100) 0, transparent 45%),
    linear-gradient(180deg, #fff 0%, var(--teal-50) 100%);
  overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.hero h1 span { color: var(--teal-500); font-style: italic; }
.hero .lead { margin-bottom: 30px; }
.hero-media { position: relative; }
.hero-media .photo {
  border-radius: 200px 200px var(--radius) var(--radius);
  aspect-ratio: 4 / 4.4;
  max-height: 600px;
  object-fit: cover;
  width: 100%;
  box-shadow: var(--shadow-lg);
  background: var(--teal-100);
}
.hero-badge {
  position: absolute; left: -24px; bottom: 40px;
  background: #fff; border-radius: var(--radius);
  padding: 16px 20px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 14px; max-width: 260px;
}
.hero-badge .icon { width: 46px; height: 46px; border-radius: 50%; background: var(--teal-500); color: #fff; display: grid; place-items: center; flex: none; }
.hero-badge strong { display: block; font-family: var(--font-head); color: var(--teal-900); font-size: 1.05rem; line-height: 1.2; }
.hero-badge small { color: var(--muted); }
.hero-points { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-weight: 700; font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { color: var(--teal-500); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 90px 0 80px;
  background: var(--teal-900);
  color: #e6f7f6;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--bg);
  background-size: cover; background-position: center;
  opacity: .22;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--teal-900) 25%, rgba(10,75,79,.55) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #c7ecea; }
.page-hero .eyebrow { color: var(--teal-400); }
.breadcrumb { font-size: .9rem; margin-bottom: 14px; color: #a8dcd9; }
.breadcrumb a { color: #fff; text-decoration: none; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal-100); }
.card p { color: var(--muted); margin-bottom: 0; }
.card .icon {
  width: 58px; height: 58px; border-radius: 16px;
  background: var(--teal-50); color: var(--teal-600);
  display: grid; place-items: center; margin-bottom: 20px;
}
.card .icon svg { width: 28px; height: 28px; }

.tag {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #9a6a12; background: #fff1d6; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}

.section-head { margin-bottom: 50px; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split--reverse .split-media { order: 2; }
.split > *, .hero .container > *, .contact-grid > *, .grid > * { min-width: 0; }
main { overflow-x: clip; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); aspect-ratio: 5 / 4; object-fit: cover; width: 100%; background: var(--teal-100); }
.split-media .accent {
  position: absolute; right: -18px; bottom: -18px; width: 55%; height: 55%;
  border-radius: var(--radius); background: var(--teal-100); z-index: -1;
}
.checklist { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { flex: none; margin-top: 4px; color: var(--teal-500); }

/* ---------- Trust strip ---------- */
.trust { margin-top: -50px; position: relative; z-index: 2; }
.trust .grid { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 34px; gap: 10px; }
.trust-item { display: flex; gap: 16px; align-items: flex-start; padding: 6px 14px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item .icon { width: 48px; height: 48px; border-radius: 50%; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; flex: none; }
.trust-item h3 { font-size: 1.08rem; margin-bottom: 4px; }
.trust-item p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 10px; }
.step .num {
  font-family: var(--font-head); font-size: 3rem; font-weight: 600; color: var(--teal-400); line-height: 1; margin-bottom: 14px;
}
.step p { color: var(--muted); }

/* ---------- CTA band ---------- */
.section--cta { padding: 90px 0; }
.cta {
  background: linear-gradient(120deg, var(--teal-600), var(--teal-500) 60%, var(--teal-400));
  border-radius: 28px;
  padding: 60px;
  color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px;
  border-radius: 50%; border: 40px solid rgba(255,255,255,.12);
}
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { margin: 0; color: #e6fbfa; max-width: 560px; }
.cta > * { position: relative; z-index: 1; }

/* ---------- Values / team ---------- */
.value { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.value h3 { display: flex; align-items: center; gap: 10px; }
.value h3 svg { color: var(--teal-500); }
.value p { color: var(--muted); margin: 0; }

.team-card { text-align: center; }
.team-card .avatar {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 18px;
  background: var(--teal-50); border: 2px dashed var(--teal-400);
  display: grid; place-items: center; color: var(--teal-600);
}
.team-card p { margin: 0; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.stat { background: #fff; border-radius: var(--radius-sm); padding: 18px; border: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.8rem; color: var(--teal-600); line-height: 1.1; }
.stat span { font-size: .9rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.info-card { background: var(--teal-900); color: #d4f1ef; border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; }
.info-card h2, .info-card h3 { color: #fff; }
.info-list { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; }
.info-list .icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.1); color: var(--teal-400); display: grid; place-items: center; flex: none; }
.info-list strong { display: block; color: #fff; }
.info-list a { color: #fff; }
.hours { margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); }
.hours table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours td { padding: 6px 0; }
.hours td:last-child { text-align: right; color: #fff; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 800; font-size: .92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: #fbfefe;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px var(--teal-100);
}
.field textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 22px; font-weight: 700; display: none; }
.alert.show { display: block; }
.alert--ok { background: var(--teal-50); color: var(--teal-700); border: 1px solid var(--teal-100); }
.alert--err { background: #fdecec; color: #9b2c2c; border: 1px solid #f6caca; }


/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal-500); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-900); color: #a9d4d2; padding: 70px 0 0; }
.site-footer .brand { color: #fff; }
.site-footer .brand-name small { color: var(--teal-400); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #d4f1ef; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding: 22px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .88rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { gap: 44px; }
}

@media (max-width: 880px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  /* Top banner: one centred line on phones */
  .topbar .container { justify-content: center; padding-top: 7px; padding-bottom: 7px; }
  .topbar-note, .topbar-phone.is-placeholder, .topbar-phone .lbl { display: none; }
  .topbar-contact { gap: 14px; font-size: .84rem; min-width: 0; max-width: 100%; overflow: hidden; }
  .topbar-contact a { overflow: hidden; text-overflow: ellipsis; }

  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 80px 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-open .nav { max-height: 420px; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 14px 20px 22px; gap: 4px; }
  .nav a { padding: 14px 16px; border-radius: 12px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }

  .hero { padding: 50px 0 80px; }
  .hero .container, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 460px; margin: 0 auto; width: 100%; }
  .hero-badge { left: 0; }
  .split--reverse .split-media { order: 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .trust .grid { padding: 20px; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
  .cta { padding: 40px 28px; }
  .form-card, .info-card { padding: 28px 22px; }
  .page-hero { padding: 64px 0 56px; }
}

@media (max-width: 560px) {
  .grid-4, .footer-grid, .form-row, .stat-row { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.15rem; }
  .btn-row .btn { width: 100%; justify-content: center; }
  .hero-badge { position: static; margin-top: -40px; margin-left: 16px; margin-right: 16px; position: relative; max-width: none; }
}

/* ---------- Additions ---------- */
.h3 { font-size: 1.08rem; margin-bottom: 4px; }
.mini-list { list-style: none; padding: 16px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: .95rem; }
.mini-list li { position: relative; padding-left: 22px; color: var(--ink); }
.mini-list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); }
.legal-links { display: flex; gap: 22px; }
.form-note a { color: var(--teal-700); }
.page-hero:not([style])::before { display: none; }

.prose { max-width: 780px; }
.prose h2 { font-size: 1.45rem; margin-top: 2em; }
.prose h2:first-of-type { margin-top: .5em; }
.prose p, .prose li { color: #33525a; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose .meta { color: var(--muted); font-size: .9rem; }
.notice { background: var(--teal-50); border-left: 4px solid var(--teal-500); padding: 16px 20px; border-radius: 8px; margin: 24px 0; }

@media (max-width: 880px) {
  .section--cta { padding: 64px 0; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- v2 additions ---------- */
.btn--outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--outline-white:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn[disabled] { opacity: .7; cursor: wait; transform: none; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.social a:hover { background: var(--teal-500); text-decoration: none; }
.legal-name { display: flex; flex-direction: column; gap: 4px; }
.legal-name span:last-child { color: #8cc3c0; font-size: .82rem; }
.avatar--photo { object-fit: cover; border: 0; }
.topbar a:hover { text-decoration: underline; }
.alert a { color: inherit; }
.card { scroll-margin-top: 110px; }
.debug { margin-top: 12px; padding-top: 12px; border-top: 1px solid #f6caca; font-weight: 400; font-size: .88rem; }
.debug ul { margin: 6px 0 0; padding-left: 18px; }
.debug li { margin-bottom: 6px; word-break: break-word; }
