/* South Perth Pool Supplies: built from hawke-trades/trades.css by build.py. Edit there, then rebuild. */
:root {
  --paper: #FFFFFF; --tint: #EDF5FB; --ink: #102A43; --ink-soft: #4E657A;
  --accent: #1677C2; --accent-text: #1263A3; --on-accent: #FFFFFF; --star: #F4A62A; --line: rgba(16,42,67,0.12);
  --hero-ink: #0A1F33; --hero-btn: #29A3E8; --hero-btn-ink: #061726;
  --hero-pos: 58% center; --hero-pos-m: 40% 70%;
  --display: 'Outfit', Georgia, serif; --sans: 'Inter', system-ui, sans-serif; --display-weight: 700;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
/* Hawke trades template. Master copy in auto-sites/hawke-trades/; build.py writes each site's styles.css
   from this file plus that business's colours and fonts (the :root block at the top). Mobile first. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

h1, h2 { font-family: var(--display); font-weight: var(--display-weight, 700); letter-spacing: -0.01em; }
h2 { font-size: clamp(2.1rem, 7vw, 3.1rem); line-height: 1.1; margin-bottom: 26px; }
h3 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 6px; }
.lede { color: var(--ink-soft); max-width: 60ch; margin: -10px 0 30px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-weight: 700; letter-spacing: 0.02em; text-decoration: none; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px var(--accent); }
.btn:focus-visible, .links a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn-small { padding: 9px 20px; font-size: 0.95rem; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); box-shadow: none; }
.btn-light { background: var(--paper); color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: var(--display-weight, 700); font-size: 1.15rem; text-decoration: none; white-space: nowrap; }
.brand img { height: 36px; width: auto; flex: none; }
.links { display: none; gap: 18px; font-weight: 600; font-size: 0.94rem; }
.links a { text-decoration: none; white-space: nowrap; }
.links a:hover { color: var(--accent-text); }
.nav .btn-small { display: none; white-space: nowrap; flex: none; padding: 8px 16px; font-size: 0.9rem; }

/* Hero: integrated full-bleed editorial photography with directional brand-ink scrim */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--hero-ink, var(--ink)); color: #FFFFFF;
  min-height: 580px; display: flex; align-items: flex-end;
  padding: 184px 0 68px;
}
.hero::before, .hero::after { display: none !important; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  object-position: var(--hero-pos-m, center 55%);
  transform: scale(1.01);
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--hero-ink, var(--ink)) 6%, transparent) 0%,
      color-mix(in srgb, var(--hero-ink, var(--ink)) 16%, transparent) 28%,
      color-mix(in srgb, var(--hero-ink, var(--ink)) 76%, transparent) 56%,
      color-mix(in srgb, var(--hero-ink, var(--ink)) 94%, transparent) 100%);
}
.hero-in { position: relative; z-index: 2; width: 100%; }
.hero-text { max-width: 560px; }
.eyebrow {
  display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; line-height: 1.4; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92); margin-bottom: 14px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
.hero .eyebrow {
  padding: 6px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.section .eyebrow { color: var(--ink-soft); text-shadow: none; }
.logo {
  font-size: clamp(2.6rem, 11vw, 4.9rem); line-height: 1.02; margin-bottom: 16px;
  color: #FFFFFF; text-shadow: 0 4px 28px rgba(0, 0, 0, 0.32);
}
.logo img { max-width: min(330px, 78%); height: auto; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.32)); }
.lead {
  font-size: clamp(1.05rem, 3.8vw, 1.24rem); line-height: 1.55; max-width: 38ch;
  margin-bottom: 26px; color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.32);
}
.hero .btn:not(.btn-ghost) {
  background: var(--hero-btn, var(--accent)); color: var(--hero-btn-ink, var(--on-accent));
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.45);
}
.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.14); color: #FFFFFF;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero .btn-ghost:hover { background: #FFFFFF; color: var(--hero-ink, var(--ink)); box-shadow: none; }
.rating { margin-top: 20px; font-size: 0.92rem; color: rgba(255, 255, 255, 0.90); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35); }
@media (max-width: 759px) { .hero .rating { padding-right: 96px; } }
.stars { color: var(--hero-star, #F6B93B); letter-spacing: 2px; margin-right: 6px; }
.visit-card { margin-top: 22px; padding: 18px 20px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); display: grid; gap: 10px; }
.visit-card b { display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 2px; }
.visit-card p { margin: 0; color: var(--ink); font-size: 0.96rem; }

/* Sections */
.section { padding: 76px 0; }
.section-tint { background: var(--tint); }

/* Services */
.menu { display: grid; gap: 36px; }
.menu ul { list-style: none; }
.menu li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.item { font-weight: 700; }
.menu small { font-size: 0.92rem; color: var(--ink-soft); text-align: right; }
.fine { margin-top: 28px; max-width: 62ch; color: var(--ink-soft); }

/* Why us: three facts */
.why { list-style: none; display: grid; gap: 14px; margin-top: 40px; }
.why li { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.why b { display: block; font-family: var(--display); font-size: 1.35rem; line-height: 1.2; margin-bottom: 4px; }
.why span { color: var(--ink-soft); font-size: 0.95rem; }

/* Our work: photo grid + before/after */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.shots figure { margin: 0; position: relative; overflow: hidden; border-radius: 16px; background: var(--line); }
.shots img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: transform 0.8s var(--ease); }
.shots figure:hover img { transform: scale(1.06); }
.shots figcaption { position: absolute; left: 10px; bottom: 10px; right: 10px; color: #fff; font-size: 0.85rem; font-weight: 700;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6); }
.shots .wide { grid-column: span 2; }
.shots .wide img { aspect-ratio: 16 / 9; }

.ba { position: relative; overflow: hidden; border-radius: 22px; aspect-ratio: 4 / 3; margin-bottom: 14px; user-select: none; --pos: 50%; box-shadow: 0 24px 50px -24px rgba(0,0,0,0.4); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,0.35); pointer-events: none; }
.ba .knob { position: absolute; top: 50%; left: var(--pos); width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff; pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3); display: grid; place-items: center; color: var(--ink); font-weight: 800; font-size: 0.9rem; }
.ba .tag { position: absolute; top: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(0,0,0,0.55); color: #fff; font-size: 0.8rem; font-weight: 700; pointer-events: none; }
.ba .tag.l { left: 12px; } .ba .tag.r { right: 12px; }
.ba-note { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 26px; }
.fb-follow { display: inline-block; font-weight: 700; margin-top: 22px; }

/* Reviews: real Google (or Facebook) reviews */
.rev-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 30px; margin-bottom: 30px; }
.rev-head h2 { margin-bottom: 0; }
.rev-head .eyebrow { margin-bottom: 10px; }
.rev-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--paper); color: var(--ink-soft);
  font-size: 0.86rem; white-space: nowrap; text-decoration: none; box-shadow: 0 0 0 1px var(--line), 0 10px 26px -12px rgba(0,0,0,0.3); transition: transform 0.2s var(--ease); }
.rev-pill:hover { transform: translateY(-2px); }
.rev-pill b { color: var(--ink); }
.rev-pill .stars { color: #F4A62A; letter-spacing: 1px; margin: 0; }
.g { width: 18px; height: 18px; flex: none; }
.revs { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 6px 20px 26px; scrollbar-width: none; }
.revs::-webkit-scrollbar { display: none; }
.rcol { display: contents; }
.rcard { position: relative; flex: 0 0 84%; scroll-snap-align: center; margin: 0; display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 18px;
  border-radius: 16px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 16px 36px -24px rgba(0,0,0,0.4); }
.rcard::before { content: "\201C"; position: absolute; top: 2px; right: 16px; font-family: Georgia, serif; font-size: 4.4rem; line-height: 1; color: var(--accent); opacity: 0.2; }
.r-stars { color: #F4A62A; letter-spacing: 3px; }
.r-rec { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.rcard blockquote { flex: 1; font-size: 1.02rem; line-height: 1.65; }
.rcard figcaption { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.r-av { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--tint); box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--display); font-weight: 700; }
.rcard figcaption b { display: block; font-size: 0.95rem; line-height: 1.3; }
.rcard figcaption small { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--ink-soft); }
.rcard figcaption .g { width: 14px; height: 14px; }
.revs.one { display: block; margin: 0; padding: 0; overflow: visible; }
.revs.one .rcard { max-width: 760px; }
.revs.one blockquote { font-size: 1.15rem; }

/* Areas */
.areas { display: grid; gap: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 18px; }
.chips li { padding: 7px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; font-size: 0.95rem; }
.map { width: 100%; height: 320px; border: 0; border-radius: 22px; background: var(--tint); }

/* Quote */
.quote { background: var(--ink); color: var(--paper); text-align: center; }
.quote h2 { color: var(--paper); }
.quote h2::after { margin-left: auto; margin-right: auto; }
.quote p { color: color-mix(in srgb, var(--paper) 75%, transparent); max-width: 52ch; margin: -8px auto 28px; }
.quote .cta { justify-content: center; }
.quote .btn-ghost { color: var(--paper); }
.quote .btn-ghost:hover { background: var(--paper); color: var(--ink); }
.quote .num { display: block; font-family: var(--display); font-size: clamp(2rem, 8vw, 3.2rem); color: var(--paper); text-decoration: none; margin-bottom: 26px; }
.quote-in { display: grid; gap: 34px; }
.quote .or { margin: 0 auto 2px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }

/* Quote form: a light card on the dark section */
.qform { background: var(--paper); color: var(--ink); border-radius: 22px; padding: 22px 20px; text-align: left; display: grid; gap: 14px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); }
.qrow { display: grid; gap: 14px; }
.qform label { display: grid; gap: 6px; font-weight: 700; font-size: 0.92rem; }
.qform label i { font-style: normal; font-weight: 400; color: var(--ink-soft); }
.qform input, .qform select, .qform textarea { width: 100%; font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color 0.2s, box-shadow 0.2s; }
.qform textarea { resize: vertical; min-height: 92px; }
.qform input:focus, .qform select:focus, .qform textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.qform .btn { justify-content: center; border: 0; font: inherit; font-weight: 700; cursor: pointer; width: 100%; }
.qform .btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.qform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quote .qform p { margin: 0; max-width: none; color: var(--ink-soft); }
.quote .qform .qnote { font-size: 0.85rem; text-align: center; margin-top: -4px; }
.qmsg:empty { display: none; }
.quote .qform .qmsg.err { color: #B3261E; font-weight: 700; font-size: 0.95rem; }
.quote .qform .qdone { color: var(--ink); font-family: var(--display); font-size: 1.35rem; line-height: 1.35; padding: 26px 6px; text-align: center; }
.qdone::before { content: "✓"; display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-family: var(--sans); font-weight: 800; }

/* Footer */
.foot { background: var(--ink); color: color-mix(in srgb, var(--paper) 70%, transparent); padding: 30px 0 96px; font-size: 0.92rem; border-top: 1px solid rgba(255,255,255,0.1); }
.foot-in { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: space-between; align-items: center; }
.foot-brand { font-family: var(--display); font-size: 1.2rem; color: var(--paper); }
.foot a { color: var(--paper); }
.foot-nav { display: flex; gap: 18px; }
.credit a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.4); }

/* About fold-out */
.about-wrap { padding-bottom: 56px; padding-top: 30px; }
.about { border-top: 1px solid var(--line); padding-top: 18px; color: var(--ink-soft); max-width: 68ch; }
.about summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.about p { margin-top: 12px; }

/* Phone pill */
.bookbar { position: fixed; right: 16px; bottom: 16px; z-index: 20; padding: 12px 24px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-weight: 700; text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,0.28), 0 0 0 2px var(--paper); }

@media (min-width: 760px) {
  .wrap { padding: 0 36px; }
  .links { display: flex; }
  .nav .btn-small { display: inline-flex; }
  .hero { min-height: clamp(560px, 76svh, 740px); align-items: center; padding: 88px 0 96px; }
  .hero .eyebrow { border-radius: 999px; font-size: 0.78rem; letter-spacing: 0.16em; padding: 6px 14px; }
  .hero-bg { object-position: var(--hero-pos, center); }
  .hero-scrim {
    background:
      linear-gradient(90deg,
        color-mix(in srgb, var(--hero-ink, var(--ink)) 86%, transparent) 0%,
        color-mix(in srgb, var(--hero-ink, var(--ink)) 72%, transparent) 34%,
        color-mix(in srgb, var(--hero-ink, var(--ink)) 28%, transparent) 60%,
        color-mix(in srgb, var(--hero-ink, var(--ink)) 4%, transparent) 84%,
        transparent 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.14) 0%, transparent 22%, transparent 82%, rgba(0, 0, 0, 0.18) 100%);
  }
  .hero-text { max-width: 560px; }
  .menu { grid-template-columns: repeat(2, 1fr); gap: 40px 48px; }
  .why { grid-template-columns: repeat(3, 1fr); }
  .shots { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .work-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; margin-bottom: 20px; }
  .areas { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .revs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; margin: 0; padding: 0; overflow: visible; }
  .rcol { display: grid; gap: 22px; }
  .rcol:nth-child(2) { margin-top: 48px; }
  .rcol:nth-child(2) .rcard:first-child { border-top: 3px solid var(--accent); }
  .quote-in { grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
  .quote-text { text-align: left; }
  .quote .quote-text p { margin-left: 0; }
  .quote .quote-text .cta { justify-content: flex-start; }
  .quote .quote-text h2::after { margin-left: 0; }
  .qform { padding: 30px 28px; }
  .qrow { grid-template-columns: 1fr 1fr; }
  .map { height: 380px; }
  .bookbar { display: none; }
  .foot { padding-bottom: 30px; }
}
@media (min-width: 980px) {
  .links { gap: 28px; font-size: 1rem; }
  .brand { font-size: 1.2rem; }
  .nav .btn-small { padding: 9px 20px; font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .shots img { transition: none; } }

/* Colours for the shared polish layer (polish.css) */
html:root { --hk-accent: #1677C2; --hk-ink: #102A43; --hk-tint: #EDF5FB; }
