/* ==========================================================================
   Mr Fridge Repairs — frost design system
   Display: Space Grotesk | Body: IBM Plex Sans | Data: IBM Plex Mono
   ========================================================================== */

:root {
  --ink: #0B2540;          /* deep cold navy */
  --ink-2: #163a5f;        /* lifted navy */
  --ice: #2BA6E0;          /* ice blue accent */
  --ice-deep: #1C7FB8;     /* darker ice for hover */
  --frost: #EAF4FB;        /* pale frost surface */
  --frost-2: #F4F9FD;      /* lighter frost */
  --line: #d4e4f0;         /* hairline on frost */
  --white: #ffffff;
  --coral: #FF5A36;        /* the one warm signal: call */
  --coral-deep: #e8431f;
  --text: #1d3142;         /* body text on light */
  --muted: #5b7286;        /* secondary text */
  --ok: #1aa06d;           /* safe cold green tick */

  --maxw: 1140px;
  --gap: clamp(1rem, 3vw, 2rem);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px -12px rgba(11, 37, 64, .25);
  --shadow-soft: 0 4px 18px -8px rgba(11, 37, 64, .18);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

p { margin: 0 0 1rem; }

a { color: var(--ice-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; height: auto; display: block; }

/* Inline icons inside text links sit at text size (component rules below override) */
a svg { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gap); }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 500;
  color: var(--ice-deep);
  margin: 0 0 .8rem;
  display: inline-block;
}

section { padding: clamp(3rem, 7vw, 5.5rem) 0; }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 600;
  padding: .95rem 1.6rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  font-size: 1.05rem; line-height: 1; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-call {
  background: var(--coral); color: #fff;
  box-shadow: 0 8px 22px -8px rgba(255, 90, 54, .65);
}
.btn-call:hover { background: var(--coral-deep); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ice); background: var(--frost); }
.btn svg { width: 1.15em; height: 1.15em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .65rem;
}
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.12rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: .6rem; letter-spacing: .14em; color: var(--ice-deep); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a.navlink { color: var(--ink); font-weight: 500; font-size: .98rem; }
.nav a.navlink:hover { color: var(--ice-deep); text-decoration: none; }
.header-call { display: inline-flex; align-items: center; gap: .5rem; }

@media (max-width: 460px) {
  .brand { font-size: .98rem; line-height: 1.05; max-width: 9.5em; }
  .brand .mark { width: 30px; height: 30px; }
  .brand small { font-size: .52rem; }
  .header-call .btn { padding: .8rem 1.1rem; font-size: .95rem; }
}
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle svg { width: 28px; height: 28px; stroke: var(--ink); }

/* mobile nav */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: .5rem 0;
  }
  .nav.open .nav-links a.navlink { padding: .85rem var(--gap); border-top: 1px solid var(--frost); }
}
@media (min-width: 881px) {
  .nav-links { display: flex; align-items: center; gap: 1.4rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 480px at 78% -8%, rgba(43,166,224,.22), transparent 60%),
    linear-gradient(180deg, var(--frost-2), #fff 78%);
  border-bottom: 1px solid var(--line);
  padding-top: clamp(2.4rem, 6vw, 4rem);
  padding-bottom: clamp(2.4rem, 6vw, 4rem);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lede { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--muted); max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; align-items: center; }
.hero-cta .sub { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.hero-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.6rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: .45rem; font-size: .92rem; color: var(--ink); font-weight: 500; }
.hero-trust svg { width: 1.05em; height: 1.05em; color: var(--ok); flex: none; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 360px; margin-inline: auto; }
}

/* ---------- Temperature gauge (signature) ---------- */
.gauge { width: 100%; }
.gauge .needle { transform-origin: 150px 150px; animation: settle 3.2s cubic-bezier(.34,1.4,.5,1) .3s both; }
@keyframes settle {
  0% { transform: rotate(58deg); }
  60% { transform: rotate(-46deg); }
  100% { transform: rotate(-38deg); }
}
.gauge .frostpulse { animation: frostpulse 4s ease-in-out infinite; }
@keyframes frostpulse { 0%,100% { opacity:.5 } 50% { opacity:1 } }
@media (prefers-reduced-motion: reduce) {
  .gauge .needle { animation: none; transform: rotate(-38deg); }
  .gauge .frostpulse { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Trust bar ---------- */
.trustbar { background: var(--ink); color: #fff; }
.trustbar .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: 1.4rem; }
.trustbar .item { display: flex; align-items: center; gap: .7rem; }
.trustbar .item svg { width: 26px; height: 26px; color: var(--ice); flex: none; }
.trustbar .item b { font-family: var(--font-display); display: block; font-size: 1rem; }
.trustbar .item span { font-size: .82rem; color: #b9cee0; }
@media (max-width: 720px) { .trustbar .wrap { grid-template-columns: 1fr 1fr; gap: 1.1rem; } }

/* ---------- Section heads ---------- */
.sec-head { max-width: 60ch; margin-bottom: 2.4rem; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head p { color: var(--muted); font-size: 1.08rem; margin-bottom: 0; }

/* ---------- Fault / service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover { border-color: var(--ice); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.card .ic { width: 44px; height: 44px; border-radius: 11px; background: var(--frost); display: grid; place-items: center; margin-bottom: 1rem; }
.card .ic svg { width: 24px; height: 24px; color: var(--ice-deep); }
.card h3 { font-size: 1.18rem; margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: step; }
.step { position: relative; padding-top: 1rem; }
.step .num { font-family: var(--font-mono); font-size: .8rem; color: var(--ice-deep); letter-spacing: .12em; font-weight: 600; }
.step h3 { margin: .4rem 0 .3rem; }
.step p { color: var(--muted); font-size: .96rem; margin-bottom: 0; }
.step::before { content: ""; display: block; width: 38px; height: 3px; background: var(--ice); border-radius: 3px; margin-bottom: .8rem; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ---------- Chips (brands / suburbs) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--frost); border: 1px solid var(--line); color: var(--ink);
  padding: .55rem .95rem; border-radius: 999px; font-weight: 500; font-size: .92rem;
  transition: background .15s, border-color .15s, color .15s;
}
a.chip:hover { background: var(--ice); border-color: var(--ice); color: #fff; text-decoration: none; }

/* ---------- Region / link grid ---------- */
.linkgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
.region-card {
  display: flex; flex-direction: column; gap: .5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.region-card:hover { border-color: var(--ice); transform: translateY(-3px); box-shadow: var(--shadow-soft); text-decoration: none; }
.region-card h3 { font-size: 1.22rem; margin: 0; display: flex; align-items: center; justify-content: space-between; }
.region-card h3 svg { width: 20px; height: 20px; color: var(--ice); }
.region-card p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.panel { background: var(--frost); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; }
.checklist li svg { width: 22px; height: 22px; color: var(--ok); flex: none; margin-top: 2px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--ink), var(--ink-2)); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.2rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content:""; position:absolute; inset:0; background: radial-gradient(600px 240px at 85% 0%, rgba(43,166,224,.3), transparent 65%); pointer-events:none; }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: #c4d8e8; max-width: 50ch; margin-inline: auto; position: relative; }
.cta-band .btn { position: relative; margin-top: .4rem; }
.cta-phone { font-family: var(--font-mono); font-size: clamp(1.6rem, 5vw, 2.3rem); font-weight: 600; color: #fff; letter-spacing: .02em; display: inline-block; margin: .6rem 0; }
.cta-phone:hover { text-decoration: none; color: var(--ice); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; max-width: 820px; margin-inline: auto; }
details.qa { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.3rem; }
details.qa summary { cursor: pointer; list-style: none; padding: 1.15rem 0; font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.08rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; font-family: var(--font-mono); color: var(--ice-deep); font-size: 1.4rem; transition: transform .2s; }
details.qa[open] summary::after { transform: rotate(45deg); }
details.qa .a { padding: 0 0 1.2rem; color: var(--muted); }
details.qa .a p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c4d8e8; padding: clamp(3rem, 6vw, 4rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; font-family: var(--font-mono); font-weight: 500; margin-bottom: 1rem; }
.site-footer a { color: #c4d8e8; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .95rem; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand small { color: var(--ice); }
.footer-brand p { color: #9fb8cd; font-size: .92rem; margin-top: .9rem; max-width: 32ch; }
.footer-phone { font-family: var(--font-mono); font-size: 1.35rem; color: #fff; font-weight: 600; display: inline-block; margin-top: .3rem; }
.footer-phone:hover { color: var(--ice); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; font-size: .82rem; color: #8aa6bd; }
.footer-bottom a { color: #8aa6bd; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Sticky mobile call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; padding: .6rem var(--gap) calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.callbar .btn { width: 100%; justify-content: center; font-size: 1.1rem; }
@media (max-width: 720px) { .callbar { display: block; } body { padding-bottom: 76px; } }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 1.4rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ice-deep); }
.crumbs span { color: var(--ink); }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: linear-gradient(180deg, var(--frost-2), #fff); border-bottom: 1px solid var(--line); padding: clamp(1.5rem,4vw,2.5rem) 0 clamp(2.4rem,5vw,3.4rem); }
.page-hero h1 { margin-top: .6rem; }
.page-hero .lede { font-size: clamp(1.05rem, 2.4vw, 1.2rem); color: var(--muted); max-width: 56ch; }
.page-hero .hero-cta { margin-top: 1.4rem; }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }

/* utility */
.center { text-align: center; }
.mt { margin-top: 1.4rem; }
.muted { color: var(--muted); }
