/* ==========================================================================
   GlideWell Stairlifts — design system
   Warm, trustworthy, senior-friendly. Fraunces (display) + Mulish (text).
   ========================================================================== */

:root {
  /* Color */
  --ink:        #20302f;   /* near-black, slightly teal */
  --ink-soft:   #455654;
  --muted:      #6c7a78;
  --bg:         #f6f1e8;   /* warm cream */
  --bg-2:       #efe7d8;   /* deeper cream for bands */
  --surface:    #fffdf9;
  --line:       #e3dac9;

  --teal:       #14524c;   /* primary brand */
  --teal-d:     #0e3b37;
  --teal-l:     #2c6f68;
  --rust:       #c25733;   /* warm accent / primary CTA */
  --rust-d:     #a8451f;
  --gold:       #e0a94a;   /* small highlights, stars */
  --cream-card: #fbf6ec;

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text: "Mulish", -apple-system, "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(32,48,47,.06), 0 2px 6px rgba(32,48,47,.05);
  --shadow:    0 6px 22px rgba(32,48,47,.10);
  --shadow-lg: 0 24px 60px rgba(20,40,38,.22);
}

/* ---- Reset-ish ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal-d); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; overflow-wrap: break-word; }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--teal); color: #fff; padding: .6rem 1rem; z-index: 200; }
.skip:focus { left: .5rem; top: .5rem; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; border-radius: 4px; }

.eyebrow { font-family: var(--text); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .76rem; color: var(--rust-d); margin: 0 0 .9rem; }
.lede { font-size: 1.22rem; color: var(--ink-soft); }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  --bg-btn: var(--teal);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--text); font-weight: 700; font-size: 1.02rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  background: var(--bg-btn); color: #fff; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: #fff; }
.btn:active { transform: translateY(0); }
.btn--primary { --bg-btn: var(--teal); }
.btn--primary:hover { background: var(--teal-d); }
.btn--accent { --bg-btn: var(--rust); }
.btn--accent:hover { background: var(--rust-d); }
.btn--ghost { background: transparent; color: var(--teal-d); border-color: var(--teal); box-shadow: none; }
.btn--ghost:hover { background: rgba(20,82,76,.07); color: var(--teal-d); transform: translateY(-2px); }
.btn--sm { padding: .55rem 1.05rem; font-size: .92rem; }
.btn--lg { padding: 1.02rem 1.9rem; font-size: 1.1rem; }
.btn--block { width: 100%; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* ---- Utility bar + header ----------------------------------------------- */
.util { background: var(--teal-d); color: #dcebe8; font-size: .86rem; }
.util__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .42rem 0; }
.util a { color: #fff; font-weight: 700; text-decoration: none; }
.util__contact { display: flex; gap: .5rem; align-items: center; }
.util__sep { opacity: .5; }

.site { position: sticky; top: 0; z-index: 90; background: var(--surface); border-bottom: 1px solid var(--line); }
.site__row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand img { height: 44px; width: auto; }

.nav__toggle { display: none; }
.nav__menu { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav__menu > li > a { font-weight: 700; color: var(--ink); text-decoration: none; padding: .55rem .8rem; border-radius: 8px; display: inline-flex; align-items: center; gap: .35rem; }
.nav__menu > li > a:hover { background: var(--bg-2); color: var(--teal-d); }
.nav__menu a[aria-current="page"] { color: var(--rust-d); }
.nav__has-sub { position: relative; }
.nav__sub {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); list-style: none; margin: 0; padding: .4rem;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s ease;
}
.nav__has-sub:hover .nav__sub, .nav__has-sub:focus-within .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sub a { display: block; padding: .6rem .8rem; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; }
.nav__sub a:hover { background: var(--bg-2); color: var(--teal-d); }
.nav__cta { margin-left: .3rem; }

/* ---- Sections ------------------------------------------------------------ */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tint { background: var(--bg-2); }
.section--teal { background: var(--teal-d); color: #eaf3f1; }
.section--teal h2, .section--teal h3 { color: #fff; }
.section__head { max-width: 680px; margin-bottom: 2.5rem; }
.section__head.center { margin-inline: auto; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { background:
    radial-gradient(120% 120% at 85% 0%, #fff7e9 0%, rgba(255,247,233,0) 55%),
    var(--bg);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
  position: relative; overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 span { color: var(--rust-d); }
.hero__rating { display: flex; align-items: center; gap: .6rem; margin: 1.4rem 0; font-weight: 700; color: var(--ink-soft); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1.1rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero__assure { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 1.1rem; font-weight: 600; color: var(--ink-soft); font-size: .96rem; }
.hero__assure span { display: inline-flex; align-items: center; gap: .4rem; }
.tick { color: var(--teal); font-weight: 800; }

/* ---- Image placeholders (swap for real photos) -------------------------- */
.ph {
  position: relative; display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--teal-d);
  background:
    repeating-linear-gradient(45deg, rgba(20,82,76,.05) 0 14px, rgba(20,82,76,.09) 14px 28px),
    var(--cream-card);
  border: 1.5px dashed rgba(20,82,76,.35); border-radius: var(--radius-lg);
  min-height: 220px; padding: 1.5rem; overflow: hidden;
}
.ph::before {
  content: "▣"; position: absolute; font-size: 2.2rem; opacity: .25; top: 14px; left: 16px;
}
.ph span { font-weight: 700; font-size: .92rem; letter-spacing: .02em; line-height: 1.4; max-width: 22ch; }
.ph small { display: block; font-weight: 600; color: var(--muted); font-size: .78rem; margin-top: .3rem; }
.ph--hero { min-height: 420px; box-shadow: var(--shadow); }
.ph--tall { min-height: 340px; }
.ph--wide { min-height: 260px; }
.ph--round { border-radius: 999px; min-height: 0; aspect-ratio: 1; width: 64px; }

/* ---- Trust strip --------------------------------------------------------- */
.trust { background: var(--teal-d); color: #dcebe8; }
.trust__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 2.2rem 0; text-align: center; }
.trust__num { font-family: var(--display); font-size: 2.1rem; color: #fff; font-weight: 600; line-height: 1; }
.trust__lbl { font-size: .9rem; font-weight: 600; opacity: .85; margin-top: .4rem; }

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

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ph { border-radius: 0; border-left: 0; border-right: 0; border-top: 0; min-height: 190px; }
.card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .35rem; }
.card__price { font-weight: 700; color: var(--rust-d); font-size: .98rem; margin: .2rem 0 .8rem; }
.card__body p { color: var(--ink-soft); font-size: .98rem; }
.card__link { margin-top: auto; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.card__link::after { content: "→"; transition: transform .15s ease; }
.card:hover .card__link::after { transform: translateX(3px); }

/* feature list with check icons */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.checks li { display: flex; gap: .65rem; align-items: flex-start; }
.checks li::before { content: "✓"; color: var(--teal); font-weight: 800; margin-top: .05rem; }

/* ---- Steps (how it works) ----------------------------------------------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.5rem; position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%; background: var(--rust); color: #fff;
  display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 1.3rem; box-shadow: var(--shadow-sm); }
.step h3 { margin-top: .6rem; }

/* ---- Testimonials -------------------------------------------------------- */
.quote { background: var(--cream-card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; }
.quote .stars { font-size: 1rem; }
.quote blockquote { font-family: var(--display); font-size: 1.2rem; line-height: 1.5; margin: .8rem 0 1.1rem; color: var(--ink); }
.quote__who { display: flex; align-items: center; gap: .8rem; font-size: .92rem; }
.quote__who b { display: block; }
.quote__who .ph--round { background: var(--bg-2); }

/* ---- Split feature ------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(2rem,5vw,4rem); align-items: center; }
.split--rev .split__media { order: 2; }

/* ---- Article / prose ----------------------------------------------------- */
.prose { max-width: 720px; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .96rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .7rem .9rem; text-align: left; }
.prose th { background: var(--bg-2); }
.callout { background: var(--cream-card); border-left: 4px solid var(--rust); border-radius: 0 12px 12px 0; padding: 1.2rem 1.4rem; margin: 1.6rem 0; }
.article-meta { color: var(--muted); font-size: .9rem; font-weight: 600; margin-bottom: 1rem; }

/* ---- Page hero (inner pages) -------------------------------------------- */
.phero { background: var(--bg-2); padding: clamp(2.4rem,5vw,3.6rem) 0; border-bottom: 1px solid var(--line); }
.phero p.lede { max-width: 640px; }
.crumbs { font-size: .85rem; color: var(--muted); font-weight: 600; margin-bottom: .8rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }

/* ---- Forms --------------------------------------------------------------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; font-size: .95rem; }
.field .req { color: var(--rust-d); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; padding: .8rem .9rem; border: 1.5px solid var(--line);
  border-radius: 10px; background: var(--surface); color: var(--ink); transition: border .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20,82,76,.14); outline: none; }
.field textarea { min-height: 130px; resize: vertical; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); line-height: 1.5; }
.consent input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; flex: none; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: .8rem; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm); }

.alert { border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1rem; font-weight: 600; display: none; }
.alert--ok { background: #e7f3ec; border: 1px solid #b6dcc4; color: #1d6b41; }
.alert--err { background: #fbeae5; border: 1px solid #f0c4b6; color: #a8451f; }

/* ---- CTA band ------------------------------------------------------------ */
.cta-band { background:
    linear-gradient(120deg, var(--teal) 0%, var(--teal-d) 100%); color: #fff; }
.cta-band__row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.6rem 0; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band__kicker { color: var(--gold); font-weight: 700; letter-spacing: .04em; margin: 0 0 .3rem; font-size: .9rem; }
.cta-band__actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: #16201f; color: #b9c6c4; padding: 3.4rem 0 2rem; font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer h3 { color: #fff; font-family: var(--text); font-weight: 800; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-footer a, .site-footer .linklike { color: #b9c6c4; text-decoration: none; }
.site-footer a:hover, .site-footer .linklike:hover { color: #fff; }
.site-footer__brand p { max-width: 34ch; }
.logo--light { filter: brightness(0) invert(1); opacity: .92; margin-bottom: 1rem; }
.site-footer__phone a { color: #fff; font-weight: 800; font-size: 1.15rem; }
.site-footer__legal { padding-top: 1.6rem; font-size: .84rem; color: #8c9a98; display: grid; gap: .7rem; }
.site-footer__disclosure { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: 12px; padding: .9rem 1.1rem; }
.site-footer__disclosure strong { color: #e7d2a0; }
.site-footer__legal a { color: #cdd8d6; text-decoration: underline; }

/* ==========================================================================
   Configurator + contact modal
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 150; display: none; }
.modal.is-open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(16,32,30,.55); backdrop-filter: blur(3px); }
.modal__dialog {
  position: relative; background: var(--surface); width: min(640px, 100% - 2rem);
  margin: 4vh auto; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden;
  max-height: 92vh; display: flex; flex-direction: column;
}
.modal__head { padding: 1.3rem 1.6rem; background: var(--teal-d); color: #fff; display: flex; justify-content: space-between; align-items: center; }
.modal__head h2 { color: #fff; margin: 0; font-size: 1.3rem; }
.modal__head p { margin: .15rem 0 0; font-size: .86rem; color: #cfe3df; }
.modal__close { background: rgba(255,255,255,.14); border: 0; color: #fff; width: 38px; height: 38px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; line-height: 1; }
.modal__close:hover { background: rgba(255,255,255,.26); }
.modal__body { padding: 1.6rem; overflow-y: auto; }

/* progress */
.cfg-progress { display: flex; align-items: center; gap: .4rem; margin-bottom: 1.4rem; }
.cfg-progress__step { flex: 1; height: 6px; border-radius: 999px; background: var(--line); }
.cfg-progress__step.is-done { background: var(--teal); }
.cfg-progress__step.is-active { background: var(--rust); }
.cfg-count { font-size: .82rem; font-weight: 700; color: var(--muted); margin-bottom: .3rem; letter-spacing: .03em; text-transform: uppercase; }

.cfg-step { display: none; }
.cfg-step.is-active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cfg-step h3 { font-size: 1.5rem; margin-bottom: .3rem; }
.cfg-step > p { color: var(--ink-soft); margin-bottom: 1.3rem; }

/* option chips */
.opts { display: grid; gap: .8rem; }
.opts--2 { grid-template-columns: 1fr 1fr; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt__box {
  display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; border: 2px solid var(--line);
  border-radius: 14px; cursor: pointer; background: var(--surface); transition: .14s ease; height: 100%;
}
.opt__box:hover { border-color: var(--teal-l); background: var(--cream-card); }
.opt input:checked + .opt__box { border-color: var(--teal); background: #eef5f3; box-shadow: 0 0 0 3px rgba(20,82,76,.12); }
.opt input:focus-visible + .opt__box { outline: 3px solid var(--rust); outline-offset: 2px; }
.opt__ic { font-size: 1.6rem; line-height: 1; }
.opt__t { font-weight: 700; display: block; }
.opt__d { font-size: .85rem; color: var(--muted); }

.cfg-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; }
.cfg-summary { background: var(--cream-card); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.3rem; margin-bottom: 1.3rem; }
.cfg-summary dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 0; font-size: .95rem; }
.cfg-summary dt { color: var(--muted); font-weight: 600; }
.cfg-summary dd { margin: 0; font-weight: 700; text-align: right; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .trust__row { grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
  .split, .split--rev .split__media { grid-template-columns: 1fr; order: 0; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .util__msg { display: none; }
  .nav__toggle {
    display: inline-flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center;
    background: var(--teal); border: 0; border-radius: 10px; padding: .6rem .8rem; cursor: pointer; color: #fff;
  }
  .nav__toggle span { width: 22px; height: 2.5px; background: #fff; border-radius: 2px; transition: .2s; }
  .nav__toggle em { font-size: .6rem; font-style: normal; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: .8rem 1.25rem 1.3rem; gap: .1rem; display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu > li > a { padding: .85rem .4rem; border-radius: 8px; }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .4rem 1rem; }
  .nav__cta { margin: .4rem 0 0; }
  .nav__cta .btn { width: 100%; }
  .grid--3, .grid--4, .grid--2, .steps { grid-template-columns: 1fr; }
  .field--row, .opts--2 { grid-template-columns: 1fr; }
  .cta-band__row, .util__row { flex-direction: column; align-items: flex-start; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .trust__row { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
