/* airconrepair.sg: one page, mobile first, Snowflake's greyscale-black look.
   The first screen is complete on its own; the dock keeps WhatsApp one tap away. */
:root {
  --bg: #0b0b0c;
  --surface: #18181b;
  --surface-hover: #222226;
  --line: #2a2a2f;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --wa: #25d366;
  --wa-ink: #04170b; /* dark text on the green: white on #25d366 fails contrast */
  --blue: #3ba3ff;
  --red: #ff5a3c;
  --amber: #ffb020;
  --gutter: 20px;
  --dock-h: 116px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
}
a { color: inherit; }
/* While the sheet is open, the page behind it stays put. */
html:has(.sheet[open]), body:has(.sheet[open]) { overflow: hidden; }
main, .bar { max-width: 560px; margin: 0 auto; padding: 0 var(--gutter); }

.bar { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.lockup { display: flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font-weight: 700; font-size: 1.0625rem; letter-spacing: .01em; }
.lockup svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lockup-text { display: flex; flex-direction: column; line-height: 1.15; }
.by { font-size: .75rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }

/* First screen: fills the view above the dock on a phone. */
/* Sized to its content, not the screen: the next section starts right under the
   tiles, so there is no dead band and the page reads as one that scrolls. */
.first { padding: 12px 0 32px; }
h1 { font-size: 2.125rem; line-height: 1.1; font-weight: 800; letter-spacing: -.025em; }
.lede { margin-top: 12px; font-size: 1.0625rem; color: var(--muted); }
.label { margin-top: 28px; font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.tiles { list-style: none; margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  min-height: 92px; padding: 16px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; font-weight: 700; font-size: 1rem; line-height: 1.25;
  transition: background .15s, transform .1s;
}
.tile:hover { background: var(--surface-hover); }
.tile[role="button"] { cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; }
.tile:active { transform: scale(.98); }
.tile:focus-visible, .wa:focus-visible, .links a:focus-visible, .lockup:focus-visible {
  outline: 3px solid var(--text); outline-offset: 2px;
}
.i { width: 26px; height: 26px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i.blue { stroke: var(--blue); } .i.red { stroke: var(--red); } .i.amber { stroke: var(--amber); }

/* Below the first screen: optional reassurance for anyone who scrolls. */
/* The divider runs edge to edge: the block bleeds into the gutter and pads it back. */
.block {
  padding: 32px var(--gutter); margin-inline: calc(var(--gutter) * -1); border-top: 1px solid var(--line);
  /* Skip drawing sections that are off screen until they scroll near. */
  content-visibility: auto; contain-intrinsic-size: auto 600px;
}
h2 { font-size: 1.375rem; line-height: 1.2; font-weight: 800; letter-spacing: -.015em; margin-bottom: 14px; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; color: var(--muted); }
.steps li b { color: var(--text); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: .8125rem; font-weight: 800; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.proof { font-size: 1rem; color: var(--muted); font-weight: 600; }
.proof + .proof { margin-top: 4px; }
.proof b { color: var(--text); font-size: 1.25rem; font-weight: 800; }
.proof a { color: var(--text); text-underline-offset: 3px; }
.proof-block .strip { margin-top: 14px; }
/* Inline links sit in running text, so their tap area grows without moving the line. */
.proof a, .faq a { padding: 12px 4px; margin: 0 -4px; }
.stars { color: #f5b400; letter-spacing: 1px; }
/* Job photos: a strip that drifts slowly sideways and loops. The track holds
   the set twice and moves by exactly one set, so the loop has no seam. It
   pauses under a finger or pointer, and stands still for reduced motion. */
.strip {
  margin: 18px calc(var(--gutter) * -1) 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.strip-track { display: flex; width: max-content; animation: drift 48s linear infinite; }
.strip-track img, .strip-copy img {
  width: 132px; height: 176px; margin-right: 10px; flex: none;
  object-fit: cover; border-radius: 14px; background: var(--surface); display: block;
}
.strip-copy { display: flex; }
.strip:hover .strip-track, .strip:active .strip-track { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }
/* Who runs it: a compact business card, then the small site links. */
.who-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 16px; }
.who-head { display: flex; align-items: center; gap: 12px; }
.who-mark {
  flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.who-mark svg { width: 24px; height: 24px; fill: none; stroke: var(--text); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.who-eyebrow { font-size: .75rem; font-weight: 600; color: var(--muted); margin-bottom: 1px; }
.who h2 { font-size: 1.125rem; line-height: 1.25; margin-bottom: 0; }
.who-legal { margin-top: 2px; font-size: .8125rem; color: var(--muted); }
.who-legal span { white-space: nowrap; }
.who-facts { list-style: none; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 600; font-size: .9375rem; }
.who-facts li { display: flex; align-items: center; gap: 7px; }
.who-facts svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.who .links.small { margin-top: 10px; column-gap: 16px; font-size: .875rem; }
.links { margin-top: 14px; display: flex; flex-wrap: wrap; column-gap: 20px; }
.links.small { margin-top: 0; }
.links.small a { font-weight: 600; color: var(--muted); }
.links a { font-weight: 700; color: var(--text); min-height: 44px; display: inline-flex; align-items: center; }

/* Reviews: real Google reviews, shortened names. */
.reviews { list-style: none; display: grid; gap: 12px; }
.reviews li { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.reviews blockquote { font-size: 1rem; line-height: 1.45; }
.reviews p { margin-top: 8px; font-size: .8125rem; font-weight: 600; color: var(--muted); }

/* Common questions: native disclosure, one tap to open. */
/* Each question is a card like the symptom tiles; the round + turns to x when open. */
.faq { display: grid; gap: 8px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  transition: border-color .15s ease;
}
.faq details[open] { border-color: #3f3f46; }
.faq summary {
  list-style: none; cursor: pointer; min-height: 56px; padding: 15px 58px 15px 16px; position: relative;
  font-weight: 700; font-size: 1rem; line-height: 1.35; border-radius: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 30px; height: 30px; margin-top: -15px;
  border-radius: 50%; background-color: var(--bg);
  background-image: linear-gradient(var(--text), var(--text)), linear-gradient(var(--text), var(--text));
  background-size: 12px 2px, 2px 12px; background-position: center; background-repeat: no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.faq details p { padding: 0 16px 16px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .faq summary::after, .faq details { transition: none; } }
.faq a { color: var(--text); font-weight: 700; }

/* Symptom sheet: an app-style bottom sheet. Header, likely causes, optional
   detail chips and a preview of the WhatsApp message, with the action pinned
   at the foot. On wider screens it becomes a centred card. */
/* A centred card at every width. */
.sheet {
  margin: auto; width: calc(100% - 24px); max-width: 480px; max-height: 92svh;
  border: 0; padding: 0; background: transparent; color: var(--text); overflow: visible;
}
.sheet::backdrop { background: rgba(0, 0, 0, .66); }
/* Focus lands on the panel itself when it opens, so no control shows a ring until used. */
.sheet-body:focus { outline: none; }
.sheet-body {
  display: flex; flex-direction: column; max-height: 92svh; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  transition: transform .2s ease-out;
}
.sheet[open] .sheet-body { animation: pop .2s ease-out; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.grab { display: none; }
.sheet-head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 10px var(--gutter) 12px; border-bottom: 1px solid var(--line); flex: none; touch-action: none;
}
.sheet-icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.sheet-icon svg { width: 22px; height: 22px; }
.sheet h2 { margin: 1px 0 0; font-size: 1.25rem; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.eyebrow span { text-transform: none; letter-spacing: 0; font-weight: 600; opacity: .8; margin-left: 4px; }
.sheet-close {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--bg); display: grid; place-items: center;
}
.sheet-close svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2.25; stroke-linecap: round; }
.sheet-close:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }

.sheet-scroll { overflow-y: auto; padding: 12px var(--gutter) 14px; display: grid; gap: 14px; overscroll-behavior: contain; }
/* When more of the panel sits below, the bottom edge fades so it reads as scrollable. */
.sheet-scroll.more {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 44px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 44px), transparent);
}
.causes ul { list-style: none; margin-top: 8px; display: grid; gap: 4px; }
.causes li {
  position: relative; padding: 8px 12px 8px 30px; border-radius: 10px; background: var(--bg);
  font-weight: 600; font-size: .875rem; line-height: 1.3;
}
.causes li::before {
  content: ""; position: absolute; left: 13px; top: 50%; width: 6px; height: 6px; margin-top: -3px;
  border-radius: 50%; background: var(--muted);
}
.tip { margin-top: 8px; font-size: .875rem; line-height: 1.4; color: var(--muted); }

.chip-label { margin-top: 8px; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.chip-row {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px;
}
.chip {
  flex: none; min-height: 40px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
  font: inherit; font-weight: 600; font-size: .8125rem;
}
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }

.bubble {
  margin-top: 0; margin-left: auto; max-width: 92%; width: fit-content;
  padding: 7px 11px; border-radius: 12px 12px 4px 12px;
  background: #005c4b; color: #f4f4f5; font-size: .875rem; line-height: 1.35;
}

.sheet-foot { flex: none; background: var(--surface); padding: 12px var(--gutter) 14px; border-top: 1px solid var(--line); }
.sheet-foot .wa { max-width: none; box-shadow: none; margin-top: 12px; min-height: 46px; gap: 9px; font-size: .9375rem; }
.sheet-foot .wa svg { width: 21px; height: 21px; }

/* Phones get the same contained card as wide screens: the page sits in a rounded
   card inset from the screen edge, and the WhatsApp bar floats as its own panel. */
@media (max-width: 759px) {
  :root { --gutter: 16px; }
  body {
    background: #050506;
    padding: 8px 8px calc(var(--dock-h) + 16px + env(safe-area-inset-bottom));
  }
  .shell { background: #111113; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
}

/* The dock: anchored to the bottom like an app's action bar. */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 12px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  /* A solid ground on its own layer: the bar is not repainted on every scroll frame. */
  background: var(--bg); border-top: 1px solid var(--line);
  transform: translateZ(0); will-change: transform; contain: layout paint;
}
@media (max-width: 759px) {
  .dock {
    left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom));
    padding: 10px 10px 8px; background: #111113;
    border: 1px solid var(--line); border-radius: 24px;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, .55);
  }
}
.wa {
  max-width: 520px; margin: 0 auto; min-height: 58px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  border-radius: 999px; background: var(--wa); color: var(--wa-ink);
  font-weight: 800; font-size: 1.0625rem; text-decoration: none;
}
.wa svg { width: 26px; height: 26px; }
.wa svg .o { fill: none; stroke: var(--wa-ink); stroke-width: 4.5; stroke-linejoin: round; }
.wa svg .f { fill: var(--wa-ink); }
.note { text-align: center; margin-top: 6px; font-size: .75rem; font-weight: 600; color: var(--muted); }
/* Phone and email under the WhatsApp button: larger and brighter than a note,
   and each one a tap target in its own right. */
.contact { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; column-gap: 10px; margin-top: 4px; font-size: .9375rem; color: #d4d4d8; }
.contact a { min-height: 36px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 700; }
.contact a:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; border-radius: 6px; }
.contact span { color: var(--muted); }

/* Short phones (iPhone SE and similar): keep all six tiles above the dock. */
@media (max-height: 700px) {
  .first { padding-top: 4px; }
  h1 { font-size: 1.75rem; }
  .lede { margin-top: 8px; font-size: .9375rem; }
  .label { margin-top: 16px; }
  .tiles { gap: 8px; margin-top: 10px; }
  .tile { min-height: 74px; padding: 12px 14px; gap: 6px; font-size: .9375rem; }
  .i { width: 22px; height: 22px; }
}
/* The QR code only makes sense on a computer. */
.qr { display: none; }

/* Wide screens: one centred card on a softly lit ground, like a link page.
   The WhatsApp button sticks to the foot of the card instead of the window,
   and a QR code lets a computer visitor continue on their phone. */
@media (min-width: 760px) {
  body {
    padding: 48px 24px;
    background:
      radial-gradient(900px 520px at 50% -8%, #1d1d22 0%, rgba(11, 11, 12, 0) 70%),
      var(--bg);
  }
  .shell {
    max-width: 520px; margin: 0 auto; padding: 8px 32px 24px;
    background: #111113; border: 1px solid var(--line); border-radius: 28px;
  }
  main, .bar { max-width: none; padding: 0; }
  .first { min-height: 0; padding: 20px 0 28px; }
  h1 { font-size: 2.375rem; }
  .dock {
    position: sticky; bottom: 0; z-index: 5; margin: 0 -32px -24px; padding: 28px 32px 20px;
    border-radius: 0 0 28px 28px; border-top: 0; transform: none; will-change: auto; contain: none;
    background: linear-gradient(to top, #111113 72%, rgba(17, 17, 19, 0));
  }
  .block { margin-inline: -32px; padding-inline: 32px; }
  .strip { margin-inline: -32px; }
  .strip-track img, .strip-copy img { width: 150px; height: 200px; }
  .qr {
    display: flex; align-items: center; gap: 14px; margin-top: 16px;
    padding: 12px; border-radius: 16px; border: 1px dashed var(--line);
  }
  .qr img { width: 76px; height: 76px; border-radius: 8px; flex: none; }
  .qr p { font-size: .875rem; color: var(--muted); }
  .qr b { color: var(--text); display: block; }
  .block { contain-intrinsic-size: auto 480px; }
}
@media (prefers-reduced-motion: reduce) {
  .tile { transition: none; }
  .strip { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .strip-track { animation: none; padding-inline: var(--gutter); }
  .strip-copy { display: none; }
  .sheet[open] .sheet-body { animation: none; }
  .sheet-body { transition: none; }
  .tile:active { transform: none; }
}
