/* WindowRepair.sg — single stylesheet. No external fonts or CDN assets:
   everything is served from this origin so the page renders in one round trip. */

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
/* Markers off by default; switched back on only inside prose, where they carry
   meaning. Scoping this to ul[class] instead missed every list whose class sits
   on an ancestor (nav, footer, trust strip) and left stray discs there. */
ul, ol { list-style: none; padding: 0; }
/* height:auto is load-bearing: the width/height attributes on every <img> map to
   the CSS height property, which would otherwise beat the aspect-ratio rules
   below and render every photo at its intrinsic pixel height. */
img, svg { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ----------------------------------------------------------------- tokens */
:root {
  --ink:      #10202a;
  --ink-2:    #3d5460;
  --ink-3:    #6b8290;
  --line:     #dbe4e8;
  --line-2:   #eef3f5;
  --paper:    #ffffff;
  --paper-2:  #f5f8f9;
  --brand:    #0f4c63;   /* deep teal-navy */
  --brand-dk: #0a3547;
  --teal:     #17868f;
  --teal-lt:  #e5f2f3;
  --amber:    #c8720f;
  --amber-lt: #fdf3e6;
  --red:      #a32a24;
  --red-lt:   #fcf0ef;
  --radius:   10px;
  --shadow:   0 1px 2px rgba(16,32,42,.06), 0 8px 24px -12px rgba(16,32,42,.18);
  --wrap:     1140px;
  --sans:     ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
              "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif:    ui-serif, Georgia, Cambria, "Times New Roman", serif;
}

/* ------------------------------------------------------------------- base */
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--teal); }
h1, h2, h3, h4 { line-height: 1.22; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
h1 { font-size: clamp(1.85rem, 1.35rem + 2.1vw, 2.85rem); }
h2 { font-size: clamp(1.4rem, 1.18rem + .95vw, 1.95rem); }
h3 { font-size: 1.16rem; }
p + p, p + ul, p + ol, ul + p, ol + p { margin-top: 1em; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff;
  padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* ----------------------------------------------------------------- header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.6) blur(8px);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: 16px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--brand); }
.brand-mark { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; }
.brand-text { font-weight: 800; font-size: 1.06rem; letter-spacing: -.03em; color: var(--ink); }
.brand-sg { color: var(--teal); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--ink-2); font-size: .92rem; font-weight: 600;
  padding: 8px 11px; border-radius: 7px; white-space: nowrap;
}
.nav a:hover { background: var(--paper-2); color: var(--brand); }
.nav .nav-cta {
  background: var(--brand); color: #fff; margin-left: 8px; padding: 9px 15px;
}
.nav .nav-cta:hover { background: var(--brand-dk); color: #fff; }
.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 38px; border: 1px solid var(--line);
  background: var(--paper); border-radius: 8px; cursor: pointer; padding: 10px 9px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink-2); border-radius: 2px; }

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 12px 14px; box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; border-radius: 8px; font-size: 1rem; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ------------------------------------------------------------- breadcrumb */
.crumbs { border-bottom: 1px solid var(--line-2); background: var(--paper-2); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 9px 0; margin: 0; font-size: .82rem; }
.crumbs li { color: var(--ink-3); display: flex; gap: 6px; }
.crumbs li + li::before { content: "›"; color: var(--line); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }

/* ------------------------------------------------------------------ layout */
.section { padding: clamp(38px, 5vw, 64px) 0; }
.section-tint { background: var(--paper-2); border-block: 1px solid var(--line-2); }
.lede { font-size: 1.1rem; color: var(--ink-2); max-width: 62ch; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { margin-top: 1em; padding-left: 1.25em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose ul li, .prose ol li { margin-bottom: .5em; }
.prose .tick, .prose .cross { list-style: none; padding-left: 0; }
.section-head { max-width: 62ch; margin-bottom: 26px; }
.section-head p { color: var(--ink-2); margin-top: .5em; }

/* -------------------------------------------------------------------- hero */
.hero { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fbfdfd 0%, #fff 100%); }
.hero-grid {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(24px, 4vw, 56px);
  align-items: center;
  /* padding-block, never the padding shorthand: this element also carries .wrap,
     and the shorthand's implicit horizontal 0 wiped .wrap's 20px side gutter,
     flushing the hero text to the screen edge. */
  padding-block: clamp(34px, 4.5vw, 64px);
}
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 16/10; object-fit: cover; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero h1 { max-width: none; }
}

/* ------------------------------------------------------------------ trust */
.trust { border-bottom: 1px solid var(--line-2); background: var(--brand); color: #dceef2; }
.trust ul {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(22px, 2.8vw, 32px) clamp(28px, 3.8vw, 56px);
  padding-block: clamp(30px, 3.6vw, 46px);
}
.trust li { font-size: .875rem; line-height: 1.5; padding-left: 27px; position: relative; }
/* Description is its own block so text-wrap:balance can even out the two lines
   instead of leaving a lone orphan word ("...landed and / commercial").
   Balance needs a block of its own — it cannot reach across the <strong>. */
.trust li span { display: block; text-wrap: balance; }
.trust li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 7px;
  border-left: 2px solid #6fd0c9; border-bottom: 2px solid #6fd0c9; transform: rotate(-45deg);
}
.trust strong {
  color: #fff; display: block; font-size: .95rem; line-height: 1.35;
  margin-bottom: 5px; letter-spacing: -.005em;
}
/* Row gap comes from the clamp above, so the stacked layouts breathe too. */
@media (max-width: 800px) { .trust ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .trust ul { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ answer block */
.answer {
  border-left: 4px solid var(--teal); background: var(--teal-lt);
  padding: 20px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin: 26px 0;
}
.answer-h { font-size: 1.22rem; margin-bottom: .5em; }
.answer-p { max-width: 66ch; }
.answer .facts { margin-top: 16px; font-size: .93rem; background: rgba(255,255,255,.6); border-radius: 8px; }
.facts th, .facts td { text-align: left; padding: 9px 12px; border-top: 1px solid rgba(15,76,99,.12); vertical-align: top; }
.facts tr:first-child th, .facts tr:first-child td { border-top: 0; }
.facts th { width: 42%; font-weight: 600; color: var(--brand); }

/* ------------------------------------------------------------------ tables */
.tbl { margin: 22px 0; font-size: .93rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tbl-scroll { overflow-x: auto; }
.tbl th, .tbl td { text-align: left; padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl thead th { background: var(--paper-2); border-top: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.tbl tbody tr:hover { background: #fbfdfd; }
.u-normal { color: var(--ink-2); }
.u-higher { color: var(--amber); font-weight: 600; }
.u-urgent { color: var(--red); font-weight: 700; }

/* ------------------------------------------------------------------ price */
.pricebox {
  border: 1px solid var(--line); border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0; background: var(--amber-lt);
  padding: 18px 20px; margin: 24px 0;
}
.pricebox-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 12px; }
.pricebox-label {
  width: 100%; font-size: .72rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--amber);
}
.pricebox-fig { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); letter-spacing: -.02em; color: var(--ink); }
.pricebox-unit { font-size: .9rem; color: var(--ink-2); }
.pricebox p { font-size: .93rem; color: var(--ink-2); }
.pricebox p + p { margin-top: .6em; }

/* Lets a data-dense table step outside the 68ch reading column on wide screens.
   Bounded by --wrap so it can never push past the page gutter. */
@media (min-width: 1080px) {
  .prose .tbl-wide { width: calc(100% + 320px); max-width: calc(var(--wrap) - 40px); }
}

.price-cell { white-space: nowrap; font-weight: 700; color: var(--ink); }
.price-unit { display: block; font-weight: 400; font-size: .82rem; color: var(--ink-3); white-space: normal; }

/* ------------------------------------------------------------------ boxes */
.warn {
  border: 1px solid #f0c9c5; background: var(--red-lt); border-radius: var(--radius);
  padding: 16px 18px; margin: 24px 0;
}
.warn-label {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--red); margin-bottom: 6px;
}
.warn p { color: #5c2320; }
.disclose {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 14px 18px; margin: 24px 0; font-size: .93rem; color: var(--ink-2); background: var(--paper-2);
}
.reviewed {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: .88rem; color: var(--ink-2);
}
.reviewed h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-top: 14px; }
.sources { margin-top: 8px; padding-left: 1.1em; list-style: disc; }
.sources li { margin-bottom: .3em; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 8px; font-weight: 700; font-size: .97rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--amber); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.btn-primary:hover { background: #a95d09; color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-2); border-color: var(--teal); color: var(--brand); }
.btn-block { width: 100%; }
.cta-inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 28px 0; }
.cta-note { width: 100%; font-size: .86rem; color: var(--ink-3); margin: 0; }

/* -------------------------------------------------------------------- cards */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.card-img { aspect-ratio: 4/3; object-fit: cover; width: 100%; background: var(--paper-2); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-body p { font-size: .92rem; color: var(--ink-2); }
.card-go { margin-top: auto; padding-top: 8px; font-size: .87rem; font-weight: 700; color: var(--brand); }
.card:hover .card-go { color: var(--teal); }

/* --------------------------------------------------------- symptom picker */
.symptoms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 860px) { .symptoms { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .symptoms { grid-template-columns: 1fr; } }
.symptom {
  display: block; padding: 15px 17px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: all .15s;
}
.symptom:hover { border-color: var(--teal); background: var(--teal-lt); color: var(--ink); }
.symptom b { display: block; font-size: .99rem; }
.symptom span { display: block; font-size: .85rem; color: var(--ink-3); margin-top: 3px; }

/* ------------------------------------------------------------------- steps */
.steps { counter-reset: s; display: grid; gap: 2px; }
.step {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
  padding: 18px 0; border-top: 1px solid var(--line-2);
}
.step:first-child { border-top: 0; }
.step::before {
  counter-increment: s; content: counter(s);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 800; font-size: .92rem;
}
.step h3 { margin-bottom: 3px; }
.step p { color: var(--ink-2); font-size: .95rem; }

/* --------------------------------------------------------------------- faq */
.faq { margin: 36px 0 0; }
.faq h2 { margin-bottom: 14px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; background: var(--paper); }
.faq summary {
  cursor: pointer; padding: 14px 18px; font-weight: 650; list-style: none; position: relative; padding-right: 46px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.35rem;
  color: var(--teal); font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--line-2); }
.faq-a { padding: 14px 18px; color: var(--ink-2); }

/* -------------------------------------------------------- photo instructions */
.photo-req { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--paper-2); margin: 26px 0; }
.photo-req h3 { margin-bottom: 10px; }
.photo-req ol { padding-left: 1.2em; list-style: decimal; }
.photo-req .cross { padding-left: 0; }
.photo-req li { margin-bottom: .45em; }
.photo-note { font-size: .87rem; color: var(--ink-3); margin-top: 10px; }

/* --------------------------------------------------------------- lists ext */
.tick, .cross { list-style: none; padding: 0; }
.tick li, .cross li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.tick li::before {
  content: ""; position: absolute; left: 4px; top: .48em; width: 12px; height: 7px;
  border-left: 2.2px solid var(--teal); border-bottom: 2.2px solid var(--teal); transform: rotate(-45deg);
}
.cross li::before {
  content: "×"; position: absolute; left: 5px; top: -.02em; color: var(--red); font-size: 1.25rem; font-weight: 700;
}

/* ------------------------------------------------------------------ band cta */
.band-cta { background: var(--brand); color: #dceef2; padding: clamp(38px, 5vw, 60px) 0; text-align: center; }
.band-cta h2 { color: #fff; }
.band-cta p { max-width: 60ch; margin: 12px auto 0; }
.band-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.band-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.band-cta .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

/* -------------------------------------------------------------------- footer */
.site-foot { background: #0b2632; color: #a9c2cc; font-size: .9rem; padding-top: 44px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 34px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot h3 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.foot-h-gap { margin-top: 22px; }
.site-foot ul { display: grid; gap: 7px; }
.site-foot a { color: #a9c2cc; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.brand-foot { margin-bottom: 14px; color: #fff; }
.brand-foot .brand-text { color: #fff; }
.brand-foot .brand-sg { color: #6fd0c9; }
.disclosure { font-size: .86rem; line-height: 1.55; margin-bottom: 10px; color: #93aeba; }
.disclosure strong { color: #d6e6ec; }
.foot-contact li { color: #93aeba; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.1); padding-block: 18px 30px; font-size: .8rem; color: #7f9aa6; }
.foot-legal p + p { margin-top: 6px; }

/* --------------------------------------------------------------------- form */
.form-shell { display: grid; grid-template-columns: 1.25fr .75fr; gap: 34px; align-items: start; }
@media (max-width: 900px) { .form-shell { grid-template-columns: 1fr; } }
.form-card { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); background: var(--paper); box-shadow: var(--shadow); }
fieldset { border: 0; padding: 0; margin: 0 0 26px; }
fieldset legend {
  font-weight: 800; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal); padding: 0; margin-bottom: 14px;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 650; font-size: .92rem; margin-bottom: 5px; }
.field .hint { display: block; font-weight: 400; font-size: .83rem; color: var(--ink-3); margin-top: 2px; }
.field input[type=text], .field input[type=tel], .field input[type=email],
.field select, .field textarea, .field input[type=file] {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper); font-size: 1rem;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: 2px solid var(--teal-lt); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
/* Labels stretch so the inputs line up even when one field carries a long hint. */
.field-row > .field { display: flex; flex-direction: column; }
.field-row > .field > label:first-child { flex: 1; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.req { color: var(--red); }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; cursor: pointer; }
.choice:hover { border-color: var(--teal); background: var(--teal-lt); }
.choice input { margin-top: 4px; flex: none; }
.choice span { font-size: .93rem; }
.consent { font-size: .89rem; color: var(--ink-2); }
.form-note { font-size: .85rem; color: var(--ink-3); margin-top: 14px; }
.form-aside { position: sticky; top: 82px; display: grid; gap: 18px; }
.msg { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 22px; }
.msg-ok { background: var(--teal-lt); border: 1px solid #a8d5d8; color: #0d4a4f; }
.msg-err { background: var(--red-lt); border: 1px solid #f0c9c5; color: #5c2320; }
.msg ul { margin-top: .5em; padding-left: 1.2em; list-style: disc; }

/* ------------------------------------------------------------------ figures */
figure { margin: 26px 0; }
figure img { border-radius: var(--radius); width: 100%; }
figcaption { font-size: .84rem; color: var(--ink-3); margin-top: 8px; }
.stock-note { font-size: .78rem; color: var(--ink-3); font-style: italic; }

/* ------------------------------------------------------------------- misc */
.pill {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  background: var(--teal-lt); color: var(--teal); margin-bottom: 14px;
}
.pill-warn { background: var(--amber-lt); color: var(--amber); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }

@media print {
  .site-head, .band-cta, .nav, .crumbs, .cta-inline { display: none; }
  body { font-size: 12pt; }
}
