:root {
  --bg: #fdfcfa;
  --surface: #ffffff;
  --mist: #f3f6fa;
  --navy: #0f2440;
  --navy-2: #1a355b;
  --ink: #111c2d;
  --body: #324155;
  --muted: #5a6b80;
  --sky: #0369a1;
  --sky-d: #075985;
  --sky-soft: #e0f2fe;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --line: #dce4ee;
  --line-2: #bcc9da;
  --head: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); color: var(--body); background: var(--bg);
  font-size: 16.5px; line-height: 1.64; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--head); color: var(--ink); font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 0.7rem;
}
h1 { font-size: clamp(1.95rem, 3.6vw, 2.85rem); line-height: 1.1; }
h2 { font-size: clamp(1.42rem, 2.3vw, 1.95rem); }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.num { font-variant-numeric: tabular-nums; }

/* Header */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; }
.logo {
  font-family: var(--head); font-weight: 800; font-size: 1.28rem;
  color: var(--navy); letter-spacing: -0.03em; white-space: nowrap; text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo span { color: var(--sky); }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { color: var(--body); font-size: 0.92rem; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); text-decoration: none; }
.hdr-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.menu-toggle {
  display: none; background: #fff; border: 1.5px solid var(--line-2); border-radius: 7px;
  padding: 7px 11px; font-family: var(--head); font-size: 0.84rem; font-weight: 700;
  color: var(--navy); cursor: pointer;
}
.mob-nav {
  display: none; background: #fff; border-top: 1px solid var(--line);
  padding: 12px 20px 18px;
}
.mob-nav.open { display: grid; gap: 6px; }
.mob-nav a { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 0.96rem; }
.mob-nav a:last-child { border-bottom: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 8px;
  font-family: var(--head); font-weight: 700; font-size: 0.94rem;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.15;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-p { background: var(--sky); color: #fff; }
.btn-p:hover { background: var(--sky-d); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-o { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-o:hover { background: var(--mist); color: var(--navy); }
.btn-sm { min-height: 38px; padding: 0 15px; font-size: 0.85rem; }

/* Form-First Split Hero */
.hero {
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: clamp(28px, 4.5vw, 54px) 0 clamp(32px, 5vw, 56px);
}
.hero-split {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px 40px; align-items: start;
}
.hero-lead { font-size: clamp(1.03rem, 1.25vw, 1.15rem); color: var(--body); max-width: 56ch; margin: 0 0 18px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.trust-line { font-size: 0.92rem; font-weight: 600; color: var(--muted); margin: 0 0 24px; }
.stats-4 {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px; list-style: none; padding: 0; margin: 0;
}
.stats-4.row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 26px; }
.stats-4 li { border-left: 3px solid var(--sky); padding: 2px 0 2px 13px; }
.stats-4 strong {
  display: block; font-family: var(--head); font-size: clamp(1.12rem, 1.55vw, 1.35rem);
  font-weight: 800; color: var(--navy); line-height: 1.18;
}
.stats-4 span { display: block; font-size: 0.83rem; color: var(--muted); margin-top: 3px; line-height: 1.35; }

/* Hero / Inline 4-Step Quote Card */
.qcard {
  background: #fff; border: 1.5px solid var(--line-2); border-top: 4px solid var(--navy);
  border-radius: 12px; padding: clamp(18px, 2.5vw, 26px);
  box-shadow: 0 12px 32px rgba(15, 36, 64, 0.08);
}
.qcard-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.qcard-title { font-family: var(--head); font-size: 1.08rem; font-weight: 800; color: var(--navy); margin: 0; }
.qcard-step-lbl { font-size: 0.8rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.qprog { height: 5px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 16px; }
.qprog i { display: block; height: 100%; background: var(--sky); transition: width .2s ease; }
.qstep { display: none; }
.qstep.on { display: block; }
.qstep-h { font-family: var(--head); font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.qstep-sub { font-size: 0.87rem; color: var(--muted); margin: 0 0 12px; }
.qpic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.qpic {
  text-align: left; padding: 0; border: 1.5px solid var(--line-2); border-radius: 8px;
  background: #fff; overflow: hidden; cursor: pointer; font-family: var(--sans);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.qpic:hover, .qpic.picked { border-color: var(--sky); box-shadow: inset 0 0 0 1px var(--sky); }
.qpic-img { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); border-bottom: 1px solid var(--line); }
.qpic-img img { width: 100%; height: 100%; object-fit: cover; }
.qpic-txt { display: block; padding: 7px 9px; font-family: var(--head); font-weight: 700; font-size: 0.83rem; color: var(--ink); line-height: 1.25; }
.qpic-txt small { display: block; font-family: var(--sans); font-weight: 500; font-size: 0.76rem; color: var(--muted); margin-top: 2px; }
.qopts { display: grid; gap: 8px; }
.qopt {
  width: 100%; text-align: left; padding: 11px 13px; border: 1.5px solid var(--line-2);
  border-radius: 8px; background: #fff; cursor: pointer; font-family: var(--head);
  font-size: 0.9rem; font-weight: 700; color: var(--ink);
}
.qopt:hover, .qopt.picked { border-color: var(--sky); background: #f0f9ff; }
.qopt small { display: block; font-family: var(--sans); font-weight: 400; color: var(--muted); font-size: 0.81rem; margin-top: 2px; }
.swatch-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.swbtn {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px;
  border: 1.5px solid var(--line-2); border-radius: 7px; background: #fff; cursor: pointer;
  font-family: var(--sans); font-size: 0.84rem; font-weight: 600; color: var(--ink); text-align: left;
}
.swbtn:hover, .swbtn.picked { border-color: var(--sky); background: #f0f9ff; }
.swdot { width: 18px; height: 18px; border-radius: 4px; border: 1px solid rgba(0,0,0,0.22); flex-shrink: 0; }
.qprice-banner {
  background: var(--mist); border-left: 4px solid var(--amber); border-top: 1px solid var(--line);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  border-radius: 0 8px 8px 0; padding: 13px 15px; margin-bottom: 14px;
}
.qprice-k { font-size: 0.78rem; font-weight: 700; color: var(--amber); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }
.qprice-val { font-family: var(--head); font-size: 1.48rem; font-weight: 800; color: var(--navy); line-height: 1.15; }
.qprice-meta { font-size: 0.83rem; color: var(--body); margin-top: 4px; line-height: 1.4; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fld { margin-bottom: 9px; }
.fld label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.fld input, .fld select, .fld textarea {
  width: 100%; min-height: 43px; padding: 9px 11px; border: 1.5px solid var(--line-2);
  border-radius: 7px; font-family: var(--sans); font-size: 1rem; color: var(--ink); background: #fff;
}
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--sky); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent {
  display: flex; align-items: flex-start; gap: 9px; padding: 10px 11px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--mist);
  font-size: 0.82rem; color: var(--body); margin: 4px 0 12px; line-height: 1.42;
}
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--sky); flex-shrink: 0; }
.qnav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.qback { background: transparent; border: 0; color: var(--muted); font-family: var(--head); font-size: 0.88rem; font-weight: 700; cursor: pointer; padding: 8px 4px; }
.qerr { color: #b91c1c; font-size: 0.86rem; font-weight: 700; min-height: 1.2em; margin: 6px 0 0; }

/* Sections */
.sec { padding: clamp(42px, 5.5vw, 68px) 0; background: var(--surface); }
.sec.mist { background: var(--bg); }
.sec + .sec { border-top: 1px solid var(--line); }
.sh { max-width: 700px; margin-bottom: 26px; }
.sh p { color: var(--muted); margin: 0; font-size: 1rem; }

/* Door Style Photography Strip */
.door-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.dcard {
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff;
  display: flex; flex-direction: column;
}
.dcard-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); border-bottom: 1px solid var(--line); }
.dcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.dcard:hover .dcard-img img { transform: scale(1.03); }
.dcard-body { padding: 15px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.dcard-t { font-family: var(--head); font-size: 1rem; font-weight: 800; color: var(--navy); margin: 0 0 3px; }
.dcard-p { font-family: var(--head); font-size: 0.94rem; font-weight: 800; color: var(--amber); margin: 0 0 7px; }
.dcard-d { font-size: 0.88rem; color: var(--muted); margin: 0 0 12px; line-height: 1.48; }
.dcard-a { margin-top: auto; font-family: var(--head); font-size: 0.85rem; font-weight: 700; color: var(--sky); }

/* Standalone Interactive uPVC Door Price Estimator */
.est-box {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 26px;
  border: 1.5px solid var(--line-2); border-radius: 12px; padding: clamp(20px, 3vw, 30px); background: #fff;
}
.est-group { margin-bottom: 16px; }
.est-lbl { display: block; font-family: var(--head); font-size: 0.84rem; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.est-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.est-pill {
  padding: 8px 13px; border: 1.5px solid var(--line-2); border-radius: 7px;
  background: #fff; color: var(--ink); font-family: var(--sans); font-size: 0.88rem; font-weight: 600; cursor: pointer;
}
.est-pill:hover, .est-pill.on { border-color: var(--sky); background: #f0f9ff; color: var(--navy); }
.est-out {
  background: var(--navy); color: #fff; border-radius: 10px; padding: 22px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.est-out-k { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: #93c5fd; font-weight: 700; }
.est-out-price { font-family: var(--head); font-size: clamp(1.75rem, 2.8vw, 2.25rem); font-weight: 800; color: #fff; margin: 6px 0 10px; line-height: 1.1; }
.est-specs { list-style: none; padding: 0; margin: 0 0 18px; border-top: 1px solid rgba(255,255,255,0.16); }
.est-specs li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 0.88rem; }
.est-specs span { color: #cbd5e1; }
.est-specs b { color: #fff; text-align: right; }
.est-note { font-size: 0.8rem; color: #cbd5e1; margin: 10px 0 0; line-height: 1.45; }

/* Tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--mist); font-family: var(--head); font-weight: 700; color: var(--navy); font-size: 0.84rem; }
tr:last-child td { border-bottom: 0; }
.price-cell { font-family: var(--head); font-weight: 800; color: var(--navy); white-space: nowrap; }

/* Cards, Grids, Callouts, Breadcrumbs, FAQ */
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 20px; background: #fff; }
.card.hi { border-color: var(--sky); }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 10px 0 0; padding-left: 19px; }
.card li { margin-bottom: 6px; font-size: 0.94rem; }
.note-box {
  border-left: 4px solid var(--amber); background: var(--amber-soft);
  padding: 15px 18px; border-radius: 0 8px 8px 0; margin: 20px 0; color: var(--ink);
}
.info-box {
  border-left: 4px solid var(--sky); background: var(--mist);
  padding: 15px 18px; border-radius: 0 8px 8px 0; margin: 20px 0; color: var(--ink);
}
.split-media { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 28px; align-items: center; }
.media-fig { margin: 0; }
.media-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.media-fig figcaption { font-size: 0.83rem; color: var(--muted); margin-top: 7px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.84rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.prose h2 { margin-top: 1.9rem; }
.prose ul { padding-left: 20px; margin: 0 0 1.2rem; }
.prose li { margin-bottom: 0.45rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.chips a {
  display: inline-flex; padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 7px;
  color: var(--navy); font-weight: 600; font-size: 0.87rem; background: #fff;
}
.chips a:hover { border-color: var(--sky); color: var(--sky); text-decoration: none; }
.lcard {
  display: flex; flex-direction: column; gap: 6px; padding: 18px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--body);
}
.lcard:hover { border-color: var(--sky); text-decoration: none; }
.lcard b { font-family: var(--head); color: var(--navy); font-size: 0.99rem; }
.lcard span { color: var(--muted); font-size: 0.88rem; }
.lcard i { font-style: normal; font-family: var(--head); font-size: 0.85rem; font-weight: 700; color: var(--sky); margin-top: auto; padding-top: 6px; }

/* FAQ */
.faqs { max-width: 840px; border-top: 1px solid var(--line); }
details.faq { border-bottom: 1px solid var(--line); padding: 15px 0; }
details.faq summary {
  font-family: var(--head); font-weight: 700; color: var(--navy); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 0.98rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font-size: 1.3rem; color: var(--sky); font-weight: 600; flex: none; }
details.faq[open] summary::after { content: '−'; }
details.faq p { margin: 10px 0 0; font-size: 0.95rem; color: var(--body); }

/* Thanks Photo Uploader */
.more-card { max-width: 680px; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 24px; background: #fff; }
.more-up {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 5px; padding: 24px 16px; border: 2px dashed var(--line-2); border-radius: 10px;
  background: var(--mist); cursor: pointer; margin-bottom: 16px;
}
.more-up:hover { border-color: var(--sky); }
.more-up b { font-family: var(--head); color: var(--navy); }
.more-up span { font-size: 0.84rem; color: var(--muted); }
.more-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.more-th { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.more-th img { width: 100%; height: 100%; object-fit: cover; }
.more-th button {
  position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%;
  border: 0; background: rgba(15,36,64,0.85); color: #fff; font-size: 16px; cursor: pointer;
}
.more-st { font-size: 0.85rem; color: var(--muted); margin: 10px 0 0; }
.more-ok { padding: 14px 16px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 8px; font-weight: 700; }

/* CTA Band & Footer */
.cta-band { background: var(--navy); color: #fff; border-radius: 12px; padding: clamp(24px, 4vw, 38px); display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #cbd5e1; margin: 0; max-width: 56ch; }
.ftr { background: var(--navy); color: #cbd5e1; padding: 46px 0 32px; font-size: 0.9rem; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.ftr .logo { color: #fff; display: inline-block; margin-bottom: 10px; }
.ftr .logo span { color: #38bdf8; }
.ftr h4 { color: #fff; font-size: 0.88rem; margin: 0 0 10px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.ftr a { color: #cbd5e1; }
.ftr a:hover { color: #fff; }
.ftr-bot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 20px; font-size: 0.83rem; color: #94a3b8; }

@media (max-width: 960px) {
  .hero-split, .est-box, .split-media { grid-template-columns: 1fr; }
  .door-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-4.row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .g2, .g3, .fgrid { grid-template-columns: 1fr; }
  .hdr-in { min-height: 58px; }
  .logo { font-size: 1.12rem; }
  .btn-sm { padding: 0 11px; font-size: 0.8rem; }
  .hide-mob { display: none; }
}
@media (max-width: 460px) {
  .door-grid, .swatch-row { grid-template-columns: 1fr; }
  .qpic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .ftr-grid { grid-template-columns: 1fr; }
}
