/* =========================================================
   Westend Home Solutions — site styles
   Mobile-first. Breakpoints: 600px (large phone), 768px (tablet),
   960px (desktop nav + two-column hero), 1200px (wide).
   ========================================================= */

:root {
  --navy-900: #0b2233;
  --navy-800: #0f2c40;
  --navy-700: #18405c;
  --accent: #f59e2b;
  --accent-hover: #e48a12;
  --cream: #faf6ef;
  --ink: #1d2a35;
  --muted: #4a5a68;
  --line: #e2ddd3;
  --white: #ffffff;
  --success: #1f7a4d;
  --error: #b42318;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(11, 34, 51, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1160px;
  --call-bar-h: 60px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-wrap: break-word;
  /* room for the sticky mobile call bar */
  padding-bottom: var(--call-bar-h);
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.75rem, 6vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

a { color: var(--navy-700); text-underline-offset: 2px; }
a:hover { color: var(--navy-900); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 600px) { .container { padding-inline: 24px; } }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 8px; top: -100px;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 8px; color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: var(--navy-900); }
.btn--accent:hover { background: var(--accent-hover); color: var(--navy-900); }
.btn--outline { border-color: currentColor; color: var(--navy-800); background: transparent; }
.btn--outline:hover { background: rgba(15, 44, 64, 0.06); }
.btn--light { border-color: var(--white); color: var(--white); background: transparent; }
.btn--light:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.btn--block { display: flex; width: 100%; }
.btn--lg { min-height: 56px; font-size: 1.125rem; }
.btn[disabled] { opacity: 0.7; cursor: wait; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.9375rem;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 16px;
  min-height: 44px;
  padding-block: 6px;
  text-align: center;
}
.topbar__text { display: none; }
.topbar__phone {
  color: var(--white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
}
.topbar__phone strong { color: var(--accent); }
.topbar__phone:hover { color: var(--white); text-decoration: underline; }
@media (min-width: 768px) {
  .topbar__inner { justify-content: space-between; }
  .topbar__text { display: block; }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy-900);
  min-width: 0;
}
.logo svg { width: 38px; height: 38px; flex: none; }
.logo__text {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.logo__text span {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  flex: none;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { color: var(--navy-700); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Mobile/tablet: hamburger (only when JS is available) */
@media (max-width: 959px) {
  .js .nav-toggle { display: inline-flex; }
  .site-nav {
    padding: 8px 0 16px;
  }
  .js .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px 16px 20px;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .js .site-nav.is-open { display: block; }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav__cta { margin-top: 12px; width: 100%; }
  .no-js .header__inner { flex-wrap: wrap; }
  .no-js .site-nav { width: 100%; }
}

/* Desktop nav */
@media (min-width: 960px) {
  .site-nav { display: flex; align-items: center; gap: 28px; }
  .site-nav ul { display: flex; gap: 24px; }
  .logo__text { font-size: 1.25rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: 56px; }
.section--alt { background: var(--cream); }
.section--dark { background: var(--navy-800); color: #e9eff4; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section__head { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.section__head p { color: var(--muted); }
.section--dark .section__head p { color: #c9d6e1; }
@media (min-width: 768px) { .section { padding-block: 80px; } }

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 10%, rgba(245, 158, 43, 0.16), transparent 45%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #e9eff4;
  padding-block: 24px 40px;
}
.hero h1 { color: var(--white); margin-bottom: 0.35em; }
.hero__lead { font-size: 1.0625rem; color: #d3dee8; margin-bottom: 0; }
.hero__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "intro"
    "form"
    "points";
}
.hero__intro { grid-area: intro; }
.hero__form { grid-area: form; }
.hero__points { grid-area: points; }

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.checklist li {
  position: relative;
  padding-left: 34px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2233' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.hero .checklist li { color: #e9eff4; font-weight: 600; }

@media (min-width: 600px) {
  .hero .checklist { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .hero { padding-block: 48px 64px; }
  .hero__form { max-width: 600px; width: 100%; margin-inline: auto; }
}
@media (min-width: 960px) {
  .hero { padding-block: 64px 80px; }
  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    grid-template-areas:
      "intro form"
      "points form";
    column-gap: 56px;
    row-gap: 28px;
    align-items: start;
  }
  .hero__intro { padding-top: 24px; }
  .hero__lead { font-size: 1.2rem; }
  .hero .checklist { grid-template-columns: 1fr; }
  .hero__form { max-width: none; }
}

/* ---------- Lead form ---------- */
.form-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 16px;
  border-top: 6px solid var(--accent);
}
.form-card__title {
  font-size: 1.35rem;
  margin-bottom: 4px;
}
.form-card__sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }
@media (min-width: 600px) { .form-card { padding: 28px; } }

.field { margin-bottom: 14px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 1rem;
}
.field input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  /* >= 16px prevents iOS zoom-on-focus */
  font: inherit;
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--white);
  border: 2px solid #b9c2ca;
  border-radius: var(--radius-sm);
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder { color: #6b7782; }
.field input:focus { border-color: var(--navy-700); outline: 3px solid rgba(245, 158, 43, 0.6); outline-offset: 0; }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field__error {
  margin: 6px 0 0;
  min-height: 0;
  color: var(--error);
  font-size: 0.9375rem;
  font-weight: 600;
}
.field__error:empty { display: none; }

.consent-group {
  margin: 6px 0 16px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.consent-group legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  font-weight: 700;
}
.consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0 0 8px;
  padding: 12px;
  background: #f4f6f8;
  border-radius: var(--radius-sm);
}
.consent-note {
  margin: 4px 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #33414d;
}
.consent-note a {
  display: inline-block;
  padding-block: 4px;
  color: var(--navy-700);
  font-weight: 700;
}
.consent input[type="checkbox"] {
  width: 26px; height: 26px;
  margin: 2px 0 0;
  accent-color: var(--navy-700);
  cursor: pointer;
}
.consent label {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #33414d;
  cursor: pointer;
}

.form-note { margin: 10px 0 0; font-size: 0.875rem; color: var(--muted); text-align: center; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--cream); border-bottom: 1px solid var(--line); }
.trustbar ul {
  list-style: none;
  margin: 0;
  padding: 18px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  text-align: center;
}
.trustbar li { font-weight: 700; color: var(--navy-800); font-size: 0.95rem; }
.trustbar strong { display: block; font-size: 1.35rem; color: var(--navy-900); }
@media (min-width: 768px) { .trustbar ul { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 600px) and (max-width: 767px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card p:last-child { margin-bottom: 0; }

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.2rem;
}

/* comparison */
.compare .card h3 { display: flex; align-items: center; gap: 10px; }
.compare__us { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.compare dl { margin: 0; }
.compare dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.compare dt { color: var(--muted); }
.compare dd { margin: 0; font-weight: 700; text-align: right; }
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--navy-900);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* situations */
.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.chips li {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}

/* CTA band */
.cta-band {
  background: var(--accent);
  color: var(--navy-900);
  padding-block: 48px;
  text-align: center;
}
.cta-band h2 { margin-bottom: 0.3em; }
.cta-band p { max-width: 640px; margin-inline: auto; }
.cta-band__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  max-width: 420px;
  margin: 20px auto 0;
}
.cta-band .btn--dark { background: var(--navy-900); color: var(--white); }
.cta-band .btn--dark:hover { background: var(--navy-700); color: var(--white); }
.cta-band .btn--outline { color: var(--navy-900); }
@media (min-width: 600px) {
  .cta-band__actions { flex-direction: row; justify-content: center; max-width: none; }
}

/* ---------- Inner page hero ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #d3dee8;
  padding-block: 40px;
}
.page-hero h1 { color: var(--white); }
.page-hero p { max-width: 680px; font-size: 1.1rem; margin-bottom: 0; }
@media (min-width: 768px) { .page-hero { padding-block: 64px; } }

/* ---------- Prose (legal / about) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: 0.4em; }
.prose .meta { color: var(--muted); font-size: 0.95rem; }
.callout {
  margin: 1.5em 0;
  padding: 16px 18px;
  background: var(--cream);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  margin-bottom: 12px;
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--navy-700);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 18px 16px; color: #33414d; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; } }
.nap { font-style: normal; line-height: 1.8; }
.nap a { font-weight: 700; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list h3 { margin-bottom: 2px; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.contact-list p { margin: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .about-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
.about-grid .prose { max-width: none; }
.company-facts__title { font-size: 1.25rem; margin-bottom: 8px; }
.company-facts dl { margin: 0; }
.company-facts dl div { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.company-facts dt { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.company-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Thank you ---------- */
.thanks { text-align: center; max-width: 720px; margin-inline: auto; }
.thanks__icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--success);
  display: flex; align-items: center; justify-content: center;
}
.thanks__icon svg { width: 38px; height: 38px; }
.thanks__phone {
  display: inline-flex;
  font-size: clamp(1.4rem, 6vw, 2rem);
  margin: 8px 0 16px;
}
.thanks ol { text-align: left; max-width: 560px; margin: 0 auto 28px; padding-left: 1.25em; }
.thanks ol li { margin-bottom: 0.6em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #c9d6e1;
  padding-top: 48px;
  font-size: 0.975rem;
}
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--accent); }
.footer__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 600px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer__brand { color: var(--white); font-weight: 800; font-size: 1.2rem; margin-bottom: 8px; }
.footer__heading {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
}
.footer__links a:hover { text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer__bottom {
  margin-top: 36px;
  padding-block: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
  color: #a9bac8;
}
.footer__bottom p { margin-bottom: 0.6em; }
.footer__legal-inline a { display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- Sticky mobile call bar ---------- */
.call-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--call-bar-h);
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--accent);
  color: var(--navy-900);
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 -4px 16px rgba(11, 34, 51, 0.2);
}
.call-bar:hover { color: var(--navy-900); background: var(--accent-hover); }
.call-bar svg { width: 22px; height: 22px; flex: none; }
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .call-bar { display: none; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 32px; }
