/* StormScout v2 design system — aligned to Brand Guidelines v1.0 (July 2026).
   Storm Navy #011938 · Response Gold #F8B302 · Signal White · Mist Grey #F3F6F8 · Field Slate #526171.
   Display: Barlow Semi Condensed. Body: Inter. Balance: mostly white + navy, gold as accent/CTA.
   All site pages link this. Page-specific styles go in a small inline <style>. */
:root {
  --navy: #011938;       /* Storm Navy — trust, headings, dark backgrounds */
  --navy-2: #0a2652;     /* lifted navy for gradients */
  --gold: #F8B302;       /* Response Gold — CTAs, accents, large display only */
  --gold-deep: #dd9e00;  /* gold hover */
  --mist: #F3F6F8;       /* Mist Grey — cards, tinted sections */
  --slate: #526171;      /* Field Slate — secondary text, labels */
  --paper: #ffffff;
  --line: #e3e8ee;
  --font-display: 'Barlow Semi Condensed', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  /* legacy aliases — keep older page-scoped inline CSS on-brand automatically */
  --blue: #011938;
  --blue-deep: #0a2652;
  --sky: #F3F6F8;
  --ink: #011938;
  --ink-soft: #526171;
  --cloud: #F3F6F8;
  --sun: #F8B302;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--navy); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* --- Type: Barlow Semi Condensed for display + headings, sentence case --- */
h1, h2, h3, .hero h1, .price .amount, .step h3, .area h2, .brand-word, .group-title {
  font-family: var(--font-display);
}
h1, h2 { font-weight: 700; letter-spacing: -.005em; line-height: 1.12; }
h3 { font-weight: 600; letter-spacing: 0; }

/* --- Buttons: gold CTA with navy text (brand "calls to action") --- */
.btn { display: inline-block; background: var(--gold); color: var(--navy); text-decoration: none; font-family: var(--font-body); font-weight: 700; border-radius: 14px; padding: 1.05rem 2rem; font-size: 1.05rem; box-shadow: 0 6px 20px rgba(248,179,2,.34); transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); background: var(--gold-deep); box-shadow: 0 10px 26px rgba(248,179,2,.4); }
.btn.big { font-size: 1.15rem; padding: 1.2rem 2.5rem; }
.btn.ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.7); box-shadow: none; backdrop-filter: blur(4px); }
.btn.ghost:hover { background: rgba(255,255,255,.22); }
/* navy button variant, for placing on gold/mist where a solid-navy action reads better */
.btn.navy { background: var(--navy); color: #fff; box-shadow: 0 6px 20px rgba(1,25,56,.28); }
.btn.navy:hover { background: var(--navy-2); box-shadow: 0 10px 26px rgba(1,25,56,.34); }

/* --- Header + primary logo lockup (larger on the homepage, smaller on interior pages) --- */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
header .bar { max-width: 1100px; margin: 0 auto; height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 1.25rem; transition: height .2s; }
header.home .bar { height: 96px; }         /* homepage header ~1/3 taller for the full lockup */
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 56px; width: auto; display: block; }
header.home .brand-logo { height: 80px; }  /* full-size primary lockup on the homepage */
header nav { display: flex; gap: 1.5rem; align-items: center; }
header nav a { text-decoration: none; font-size: .92rem; font-weight: 600; color: var(--slate); }
header nav a:hover { color: var(--navy); }
header nav .btn { padding: .55rem 1.2rem; font-size: .92rem; border-radius: 10px; box-shadow: none; }
@media (max-width: 760px) { header nav a:not(.btn) { display: none; } header .bar { height: 64px; } header.home .bar { height: 76px; } .brand-logo { height: 46px; } header.home .brand-logo { height: 58px; } }

.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; color: #fff; }
.hero .bg { position: absolute; inset: 0; background: url('assets/hero-roof-drone.jpg') center 35%/cover no-repeat; }
.hero .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1,25,56,.25) 0%, rgba(1,25,56,.08) 38%, rgba(1,25,56,.82) 100%); }
.hero .inner { position: relative; max-width: 1100px; margin: 0 auto; padding: 8rem 1.25rem 4.5rem; width: 100%; }
.hero h1 { font-size: clamp(2.4rem, 6.2vw, 4.2rem); font-weight: 700; line-height: 1.05; letter-spacing: -.01em; max-width: 15ch; text-shadow: 0 2px 24px rgba(0,0,0,.4); }
.hero p.sub { margin: 1.3rem 0 2rem; font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 38ch; font-weight: 500; text-shadow: 0 1px 14px rgba(0,0,0,.45); }
.hero .cta-row { display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; }
.trust { display: flex; gap: 1.4rem 2rem; flex-wrap: wrap; margin-top: 2.2rem; font-size: .9rem; font-weight: 600; }
.trust span { display: flex; align-items: center; gap: .45rem; text-shadow: 0 1px 10px rgba(0,0,0,.55); }
.trust svg { flex-shrink: 0; color: var(--gold); }

section { padding: 5rem 1.25rem; }
.wrap { max-width: 1100px; margin: 0 auto; }
.kicker { color: var(--slate); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; margin-bottom: .7rem; }
.kicker::before { content: ''; display: inline-block; width: 22px; height: 3px; background: var(--gold); border-radius: 2px; vertical-align: middle; margin-right: .55rem; margin-bottom: .15em; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); }
.lede { color: var(--slate); font-size: 1.08rem; max-width: 56ch; margin-top: .8rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 4px 18px rgba(1,25,56,.05); }
.step img { height: 210px; width: 100%; object-fit: cover; }
.step .pad { padding: 1.5rem 1.6rem 1.7rem; }
.step .num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: var(--navy); color: #fff; border-radius: 50%; font-weight: 700; font-size: .95rem; margin-bottom: .8rem; font-family: var(--font-display); }
.step h3 { font-size: 1.25rem; margin-bottom: .45rem; }
.step p { color: var(--slate); font-size: .95rem; }

.insurance { background: var(--navy); color: #fff; }
.insurance .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; }
@media (max-width: 860px) { .insurance .wrap { grid-template-columns: 1fr; } }
.insurance img { border-radius: 20px; box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.insurance h2 { color: #fff; }
.insurance .kicker { color: #fff; }
.insurance .kicker::before { background: var(--gold); }
.insurance p { color: #c3ccd9; margin-top: 1rem; font-size: 1.05rem; }
.insurance .points { margin-top: 1.6rem; display: grid; gap: .8rem; }
.insurance .points div { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; color: #fff; }
.insurance .points svg { flex-shrink: 0; margin-top: .2rem; color: var(--gold); }
.insurance .btn { margin-top: 2rem; }

.price { background: var(--mist); }
.price .card { background: var(--paper); border-radius: 24px; max-width: 660px; margin: 2.5rem auto 0; padding: 3rem 2.5rem; text-align: center; box-shadow: 0 16px 50px rgba(1,25,56,.1); border: 1px solid var(--line); }
.price .amount { font-size: clamp(3rem, 8vw, 4.4rem); font-weight: 700; letter-spacing: -.01em; line-height: 1; color: var(--navy); }
.price .amount small { font-size: .32em; font-weight: 600; color: var(--slate); letter-spacing: 0; font-family: var(--font-body); }
.price .card > p { color: var(--slate); margin-top: 1rem; font-size: 1.02rem; }
.price .strip { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-top: 1.8rem; padding-top: 1.8rem; border-top: 1px solid var(--line); font-size: .92rem; font-weight: 600; color: var(--slate); }
.price .btn { margin-top: 2rem; }
.price .center { text-align: center; }

.why .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; margin-top: 1rem; }
@media (max-width: 860px) { .why .grid { grid-template-columns: 1fr; } }
.why img { border-radius: 20px; }
.why ul { list-style: none; margin-top: 1.6rem; display: grid; gap: 1.1rem; }
.why li { display: flex; gap: .85rem; align-items: flex-start; }
.why li svg { flex-shrink: 0; margin-top: .15rem; color: var(--gold); }
.why li strong { display: block; font-size: 1.02rem; }
.why li span { color: var(--slate); font-size: .93rem; }

.faq { background: var(--mist); }
.faq .list { max-width: 760px; margin: 2.5rem auto 0; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; margin-bottom: .8rem; overflow: hidden; }
.faq summary { cursor: pointer; font-weight: 600; padding: 1.15rem 1.4rem; font-size: 1rem; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--gold); font-weight: 700; line-height: 1; }
.faq details[open] summary::after { content: '\2013'; }
.faq details p { padding: 0 1.4rem 1.25rem; color: var(--slate); font-size: .96rem; }
.group-title { font-size: 1.15rem; font-weight: 600; color: var(--navy); margin: 2rem 0 .9rem; }

.final { background: linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; text-align: center; }
.final h2 { color: #fff; }
.final p { color: #c3ccd9; margin: 1rem auto 2.2rem; max-width: 46ch; font-size: 1.06rem; }
.final .btn { background: var(--gold); color: var(--navy); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.final .btn:hover { background: var(--gold-deep); }

footer { padding: 3rem 1.25rem; background: var(--paper); border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.foot-left { display: flex; flex-direction: column; gap: .7rem; }
.footer-logo { width: 190px; height: auto; }
footer p { color: var(--slate); font-size: .85rem; }
footer nav { display: flex; gap: 1.4rem; flex-wrap: wrap; max-width: 560px; }
footer nav a { font-size: .85rem; color: var(--slate); text-decoration: none; font-weight: 600; }
footer nav a:hover { color: var(--navy); }

/* --- Homepage service-area band --- */
.area { position: relative; color: #fff; padding: 0; }
.area .bg { position: absolute; inset: 0; background: url('assets/brisbane-skyline-roofs.jpg') center 60%/cover no-repeat; }
.area .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1,25,56,.88) 0%, rgba(1,25,56,.6) 55%, rgba(1,25,56,.25) 100%); }
.area .inner { position: relative; max-width: 1100px; margin: 0 auto; padding: 6.5rem 1.25rem; }
.area h2 { color: #fff; max-width: 16ch; }
.area .kicker { color: #fff; }
.area p { color: #d6deeb; max-width: 46ch; margin-top: 1rem; font-size: 1.05rem; }
.area .regions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; max-width: 560px; }
.area .regions span { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(4px); border-radius: 999px; padding: .35rem 1rem; font-size: .88rem; font-weight: 600; }
.area .honest { margin-top: 1.6rem; font-size: .92rem; color: #aebacb; font-style: italic; }

/* --- compact interior page hero (secondary pages) --- */
.page-hero { position: relative; color: #fff; min-height: 46vh; display: flex; align-items: flex-end; }
.page-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1,25,56,.35) 0%, rgba(1,25,56,.5) 60%, rgba(1,25,56,.85) 100%); }
.page-hero .inner { position: relative; max-width: 1100px; margin: 0 auto; padding: 7rem 1.25rem 3rem; width: 100%; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 20ch; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.page-hero p { margin-top: .8rem; font-size: 1.1rem; max-width: 46ch; color: #e2e8f0; text-shadow: 0 1px 12px rgba(0,0,0,.4); }

/* Photo credit on a real photograph.
   Overlaid, not stacked. The caption sits ON the image so it contributes ZERO layout
   height — .step img is a fixed 210px and the three step cards only align because of
   it, so a caption placed below the image pushed the middle card's text out of line
   with its neighbours. Overlaying keeps the grid honest and reads as a photo credit,
   which is what it is. */
figure.photo { position: relative; margin: 0; overflow: hidden; }
figure.photo img { display: block; width: 100%; }
figure.photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.2rem 1.05rem .75rem;
  background: linear-gradient(180deg, rgba(1,25,56,0) 0%, rgba(1,25,56,.55) 45%, rgba(1,25,56,.85) 100%);
  color: #fff; font-size: .82rem; font-weight: 700; line-height: 1.35;
  letter-spacing: .01em; pointer-events: none;
}
figure.photo figcaption span { font-weight: 400; opacity: .82; }
/* The .why photo is a standalone rounded image; clip the overlay to its corners. */
.why figure.photo { border-radius: 20px; }

/* ---------------------------------------------------------------------------
   50 free roof checks campaign (Albany Creek + McDowall).
   Two surfaces: a compact header button on every page, and a full-width strip on
   the homepage. Both carry data-campaign so campaign.js can hide them once the 50
   places are gone — the offer should not keep advertising itself after it closes.
   --------------------------------------------------------------------------- */

/* Header button. Gold outline rather than a second solid gold button, so it reads
   as a distinct offer and does not fight the standing "Check my roof" CTA. */
header nav .btn-campaign {
  background: var(--gold); color: var(--navy);
  border: 0; font-weight: 700; white-space: nowrap;
}
header nav .btn-campaign:hover { background: var(--gold-deep); }
/* The standing paid CTA becomes the quiet one while the campaign is running. */
header nav .btn-standard { background: transparent; color: var(--navy); border: 1.5px solid var(--line); box-shadow: none; }
header nav .btn-standard:hover { background: var(--mist); border-color: var(--slate); }

@media (max-width: 760px) {
  /* Two buttons will not fit beside the lockup at phone width. The campaign is the
     current push, so it keeps the slot. */
  header nav .btn-standard { display: none; }
  header nav .btn-campaign { padding: .5rem .9rem; font-size: .86rem; }
}

/* Homepage strip. Sits directly under the hero so it is the first thing after the
   fold, and is deliberately loud — this is a time-limited giveaway, not a service. */
.campaign-strip { background: var(--gold); color: var(--navy); }
.campaign-strip .wrap {
  max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.campaign-strip .copy { flex: 1 1 28ch; }
.campaign-strip .eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  opacity: .72;
}
.campaign-strip .eyebrow::before { content: ''; width: 20px; height: 3px; background: var(--navy); border-radius: 2px; }
.campaign-strip h2 {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.95rem);
  font-weight: 700; margin: .45rem 0 .25rem; color: var(--navy); line-height: 1.15;
}
.campaign-strip h2 .campaign-left { display: block; }
.campaign-strip h2 .campaign-left[hidden] { display: none; }
.campaign-strip p { font-size: .98rem; font-weight: 500; max-width: 58ch; opacity: .85; }
.campaign-strip .btn {
  background: var(--navy); color: #fff; box-shadow: none; flex: 0 0 auto;
  padding: 1rem 1.9rem; font-size: 1.02rem;
}
.campaign-strip .btn:hover { background: var(--navy-2); transform: translateY(-2px); }
@media (max-width: 700px) {
  .campaign-strip .wrap { padding: 1.4rem 1.1rem; }
  .campaign-strip .btn { width: 100%; text-align: center; }
}

/* A field marked hidden stays hidden. .field sets display, which beats the browser's
 * own [hidden] rule — so the Monitoring plan picker showed for every roof check. */
.field[hidden] { display: none; }

/* Promo banners (promo.js, Ben 12 Nov 2026: STORM7). Added by script while a code is
   running, so none of this shows once the offer ends. */
.promo-bar {
  display: flex; align-items: center; justify-content: center; gap: .9rem; flex-wrap: wrap;
  background: var(--navy); color: #fff; text-decoration: none;
  padding: .55rem 1.25rem; font-size: .9rem; line-height: 1.35; text-align: center;
}
.promo-bar b { color: var(--gold); letter-spacing: .04em; }
.promo-bar-cta { font-weight: 700; color: var(--gold); white-space: nowrap; }
.promo-bar:hover .promo-bar-cta { text-decoration: underline; }
@media (max-width: 700px) {
  .promo-bar { font-size: .82rem; gap: .5rem; padding: .5rem .9rem; }
  .promo-bar-ends { display: none; }
}

.promo-band { background: var(--navy); color: #fff; padding: 0; }
.promo-band .wrap {
  max-width: 1100px; margin: 0 auto; padding: 2.6rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.promo-band .copy { flex: 1 1 34ch; }
.promo-band .eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold);
}
.promo-band .eyebrow::before { content: ''; width: 22px; height: 3px; background: var(--gold); border-radius: 2px; }
.promo-band h2 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4.4vw, 2.9rem);
  font-weight: 700; line-height: 1.08; margin: .55rem 0 .6rem; color: #fff;
}
.promo-band p { color: #cfd8e3; font-size: 1.02rem; max-width: 60ch; }
.promo-band p b { color: var(--gold); letter-spacing: .04em; }
.promo-band .promo-cta { display: flex; flex-direction: column; align-items: center; gap: .9rem; flex: 0 0 auto; }
.promo-band .promo-price { display: flex; align-items: baseline; gap: .7rem; }
.promo-band .promo-price .now { font-family: var(--font-display); font-weight: 700; font-size: clamp(3.2rem, 8vw, 4.6rem); line-height: 1; color: var(--gold); }
.promo-band .promo-price .was { font-size: 1.15rem; color: #93a3b6; text-decoration: line-through; }
@media (max-width: 700px) {
  .promo-band .wrap { padding: 2rem 1.1rem; gap: 1.4rem; }
  .promo-band .promo-cta { width: 100%; }
  .promo-band .btn { width: 100%; text-align: center; }
}

.promo-toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; max-width: 340px;
  background: #fff; color: var(--navy); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 50px rgba(1,25,56,.22); padding: 1.1rem 2.6rem 1.1rem 1.2rem;
  opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .3s;
}
.promo-toast.in { opacity: 1; transform: none; }
.promo-toast-kicker { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .3rem; }
.promo-toast p { font-size: .95rem; line-height: 1.45; margin: 0 0 .55rem; }
.promo-toast a { font-weight: 700; color: var(--navy); }
.promo-toast-x {
  position: absolute; top: 8px; right: 10px; width: 30px; height: 30px; border: 0; background: none;
  font-size: 1.5rem; line-height: 1; color: var(--slate); cursor: pointer;
}
@media (max-width: 700px) {
  .promo-toast { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
.hint.promo-ok { color: #0a7558; font-weight: 600; }
.hint.promo-ok[hidden] { display: none; }
