/* Foreshore Solar — Newcastle. Warm sandstone-and-amber, harbour-ink text.
   Deliberately unlike the local field of generic utility-blue installers:
   editorial, place-proud, engineering-meets-sunshine. */

:root {
  --ink:      #16232c;   /* deep harbour ink (bluish black, never grey) */
  --ink-soft: #3d4d57;
  --paper:    #fcf6ec;   /* warm sunlit sandstone */
  --paper-2:  #f5ead7;   /* band tint */
  --sand:     #efe1c9;
  --sun:      #f2a01f;   /* amber — the hero, sunlight not greenwash */
  --sun-hot:  #ffb838;
  --sun-deep: #d47b12;
  --sea:      #147a90;   /* harbour teal — trust, the water */
  --sea-deep: #0c4a58;
  --line:     #e2d3b8;
  --ok:       #2f7d5b;
  --shadow:   0 1px 2px rgba(22,35,44,.06), 0 8px 26px -12px rgba(22,35,44,.22);
  --shadow-lg:0 24px 60px -22px rgba(12,74,88,.42);
  --wrap: 1140px;
  --r: 16px;
  --r-lg: 26px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
  font-size: 17px;
  overflow-x: hidden;
}
h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}
h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); margin: 0 0 .5em; }
h3 { font-size: 1.28rem; margin: 0 0 .4em; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
a { color: var(--sea-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
img { max-width: 100%; display: block; }
::placeholder { color: hsl(202 12% 45% / 0.4); }
::selection { background: var(--sun-hot); color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }
.eyebrow {
  font-family: "Inter", sans-serif; font-weight: 700; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--sun-deep);
  display: inline-flex; align-items: center; gap: .55em; margin: 0 0 .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--sun); border-radius: 2px; }

/* ---- buttons ---- */
.btn {
  --bg: var(--sun); --fg: var(--ink);
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  background: var(--bg); color: var(--fg); font-weight: 700; font-size: 1rem;
  padding: .82em 1.5em; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; line-height: 1; transition: transform .12s ease, box-shadow .18s ease, background .15s;
  box-shadow: 0 8px 20px -8px rgba(210,123,18,.6);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(210,123,18,.7); }
.btn:active { transform: translateY(0); }
.btn--ghost { --bg: transparent; --fg: var(--paper); box-shadow: none; border: 1.5px solid rgba(252,246,236,.5); }
.btn--ghost:hover { background: rgba(252,246,236,.12); box-shadow: none; }
.btn--sea { --bg: var(--sea); --fg: #fff; box-shadow: 0 8px 20px -8px rgba(12,74,88,.5); }
.btn--lg { font-size: 1.08rem; padding: 1em 1.8em; }
.btn--block { display: flex; width: 100%; }

/* ---- top nav (bespoke, slim, brand-led) ---- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; gap: 1.4rem; height: 70px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-family: "Fraunces", serif; font-weight: 600; font-size: 1.32rem; letter-spacing: -.02em; margin-right: auto; }
.brand__mark { width: 30px; height: 30px; flex: 0 0 auto; }
.brand small { display: block; font-family: "Inter", sans-serif; font-weight: 600; font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sun-deep); line-height: 1; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--sea-deep); }
.nav .btn { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px; width: 44px; height: 42px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 22px 20px; box-shadow: var(--shadow); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; justify-content: center; }
}

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; background: var(--sea-deep); color: var(--paper); }
.hero__img { position: absolute; inset: 0; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero__scrim { position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(12,42,52,.92) 0%, rgba(12,42,52,.72) 42%, rgba(12,42,52,.18) 78%, transparent 100%); }
.hero__in { position: relative; padding: clamp(3.4rem, 8vw, 6.5rem) 0 clamp(3.6rem, 8vw, 6rem); max-width: 640px; }
.hero h1 { font-size: clamp(2.4rem, 6.2vw, 4.15rem); margin: 0 0 1.1rem; color: #fff; }
.hero h1 em { font-style: normal; color: var(--sun-hot); }
.hero__lead { font-size: clamp(1.08rem, 2.4vw, 1.28rem); color: #f0e6d6; max-width: 32em; margin-bottom: 1.9rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.hero__note { margin: 1.7rem 0 0; font-size: .9rem; color: #cdd9d6; display: flex; align-items: center; gap: .5em; }
.hero__note svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--sun-hot); }

/* sun-arc motif divider */
.arc { display: block; width: 100%; height: 46px; color: var(--paper); }
.arc--sea { color: var(--sea-deep); }
.arc--sand { color: var(--paper-2); }

/* ---- generic sections ---- */
section { position: relative; }
.band { padding: clamp(3.2rem, 7vw, 5.4rem) 0; }
.band--sand { background: var(--paper-2); }
.band--ink { background: var(--ink); color: var(--paper); }
.band--ink h2, .band--ink h3 { color: #fff; }
.band--ink .eyebrow { color: var(--sun-hot); }
.lead-in { max-width: 620px; margin-bottom: 2.6rem; }
.lead-in p { font-size: 1.12rem; color: var(--ink-soft); }
.band--ink .lead-in p { color: #d8e0e0; }

/* ---- services grid ---- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.svc {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.5rem 1.4rem; box-shadow: var(--shadow); position: relative;
}
.svc__ic { width: 42px; height: 42px; color: var(--sea); margin-bottom: .9rem; }
.svc h3 { font-size: 1.14rem; }
.svc p { font-size: .96rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 820px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---- steps (how it works) ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: s; }
.step { position: relative; padding-top: .4rem; }
.step__n { font-family: "Fraunces", serif; font-size: 2.1rem; color: var(--sun); font-weight: 600; line-height: 1; margin-bottom: .5rem; }
.step h3 { font-size: 1.08rem; }
.step p { font-size: .94rem; color: var(--ink-soft); margin: 0; }
.band--ink .step p { color: #cdd6d6; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr 1fr; gap: 1.6rem; } }
@media (max-width: 440px) { .steps { grid-template-columns: 1fr; } }

/* ---- split feature (image + text) ---- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3.4rem); align-items: center; }
.split--flip .split__media { order: 2; }
.split__media img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.split__body h2 { margin-bottom: .7rem; }
.split__body p { color: var(--ink-soft); }
.band--ink .split__body p { color: #d8e0e0; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split--flip .split__media { order: 0; } }

/* ---- the Roof Check tool (signature feature) ---- */
.roofcheck {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; max-width: 720px; margin: 0 auto;
}
.rc__head { background: linear-gradient(115deg, var(--sea-deep), var(--sea)); color: #fff; padding: 1.5rem 1.7rem 1.3rem; }
.rc__head .eyebrow { color: var(--sun-hot); margin-bottom: .5rem; }
.rc__head h3 { color: #fff; font-size: 1.5rem; margin: 0; }
.rc__head p { margin: .5rem 0 0; color: #d5e4e5; font-size: .96rem; }
.rc__progress { display: flex; gap: 6px; margin-top: 1.1rem; }
.rc__progress span { height: 5px; flex: 1; background: rgba(255,255,255,.25); border-radius: 3px; transition: background .25s; }
.rc__progress span.on { background: var(--sun-hot); }
.rc__body { padding: 1.6rem 1.7rem 1.8rem; }
.rc__step { display: none; }
.rc__step.active { display: block; animation: rcfade .3s ease; }
@keyframes rcfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rc__q { font-family: "Fraunces", serif; font-size: 1.32rem; font-weight: 600; margin: 0 0 .35rem; letter-spacing: -.01em; }
.rc__hint { font-size: .93rem; color: var(--ink-soft); margin: 0 0 1.2rem; }
.rc__opts { display: grid; gap: .7rem; }
.rc__opts--2 { grid-template-columns: 1fr 1fr; }
.rc__opt {
  text-align: left; background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px;
  padding: .95rem 1.05rem; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .14s, background .14s, transform .1s;
  display: flex; gap: .85rem; align-items: flex-start;
}
.rc__opt:hover { border-color: var(--sun); background: #fffaf0; }
.rc__opt.sel { border-color: var(--sun); background: #fff5e2; box-shadow: inset 0 0 0 1px var(--sun); }
.rc__opt b { display: block; font-size: 1.01rem; }
.rc__opt small { color: var(--ink-soft); font-size: .86rem; line-height: 1.4; }
.rc__opt .rc__oic { width: 30px; height: 30px; flex: 0 0 auto; color: var(--sea); margin-top: 2px; }
@media (max-width: 480px) { .rc__opts--2 { grid-template-columns: 1fr; } }
.rc__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; gap: 1rem; }
.rc__back { background: none; border: 0; color: var(--ink-soft); font: inherit; font-weight: 600; cursor: pointer; padding: .5em 0; }
.rc__back:hover { color: var(--ink); }
.rc__back[hidden] { visibility: hidden; }

/* result card */
.rc__result { text-align: left; }
.rc__badge { display: inline-flex; align-items: baseline; gap: .5rem; background: #fff5e2; border: 1px solid var(--sun); color: var(--sun-deep); padding: .5rem 1rem; border-radius: 999px; font-weight: 700; margin-bottom: 1.2rem; }
.rc__badge b { font-family: "Fraunces", serif; font-size: 1.7rem; color: var(--ink); }
.rc__read { background: var(--paper-2); border-radius: 14px; padding: 1.15rem 1.25rem; margin-bottom: 1.2rem; }
.rc__read p { margin: 0 0 .6rem; font-size: .98rem; }
.rc__read p:last-child { margin: 0; }
.rc__read strong { color: var(--sea-deep); }
.rc__disclaim { font-size: .84rem; color: var(--ink-soft); margin: 1rem 0 0; display: flex; gap: .5em; align-items: flex-start; }
.rc__disclaim svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 3px; color: var(--sea); }

/* ---- enquiry form ---- */
.form-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: clamp(1.6rem, 4vw, 2.4rem);
}
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.field .req { color: var(--sun-deep); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; padding: .75em .9em;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--sun); outline-offset: 1px; border-color: var(--sun); }
.field textarea { min-height: 96px; resize: vertical; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.05rem; }
@media (max-width: 480px) { .field--row { grid-template-columns: 1fr; gap: 0; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: 1.1rem; font-size: .96rem; }
[data-lead-success] { background: #e7f4ec; border: 1px solid var(--ok); color: #1c5a3d; }
[data-lead-error] { background: #fbe7e3; border: 1px solid #c9542e; color: #8a3416; }
.form-fine { font-size: .82rem; color: var(--ink-soft); margin: 1rem 0 0; }

/* ---- trust / honesty strip ---- */
.assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.assure__i { display: flex; gap: .8rem; align-items: flex-start; }
.assure__i svg { width: 26px; height: 26px; flex: 0 0 auto; color: var(--sun); margin-top: 2px; }
.assure__i b { display: block; margin-bottom: .15rem; }
.assure__i p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.band--ink .assure__i p { color: #cdd6d6; }
@media (max-width: 720px) { .assure { grid-template-columns: 1fr; gap: 1.1rem; } }

/* ---- suburb page specifics ---- */
.subhero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem,4vw,3rem); align-items: center; padding: clamp(2.4rem,5vw,3.6rem) 0; }
.subhero img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); aspect-ratio: 3/2; object-fit: cover; }
.subhero h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: .3rem 0 .8rem; }
.subhero p { color: var(--ink-soft); font-size: 1.08rem; }
@media (max-width: 780px) { .subhero { grid-template-columns: 1fr; } .subhero .split__media { order: -1; } }
.factbar { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 1.6rem 0 0; }
.factbar div { background: var(--paper); padding: 1rem 1.15rem; }
.factbar b { display: block; font-family: "Fraunces", serif; font-size: 1.5rem; color: var(--sea-deep); line-height: 1; }
.factbar span { font-size: .82rem; color: var(--ink-soft); }
@media (max-width: 560px) { .factbar { grid-template-columns: 1fr; } }

.prose { max-width: 720px; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul { padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 1.6rem; margin-bottom: .6rem; color: var(--ink-soft); }
.prose li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--sun); }
.callout { background: var(--paper-2); border-left: 4px solid var(--sea); border-radius: 0 14px 14px 0; padding: 1.1rem 1.3rem; margin: 1.6rem 0; }
.callout p:last-child { margin: 0; }

/* ---- diagram (guide page) ---- */
.flow { width: 100%; max-width: 780px; margin: 1.5rem auto; }
.flow text { font-family: "Inter", sans-serif; }

/* ---- data-viz figure (foreshore elevation strip) ---- */
.viz { margin: 0; }
.viz__cap { font-size: .98rem; color: var(--ink-soft); margin: 0 0 1rem; max-width: 68ch; }
.viz__cap strong { color: var(--ink); }
.viz__svg {
  width: 100%; height: auto; display: block; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: .6rem .4rem;
}
.viz__method { font-size: .82rem; color: var(--ink-soft); margin: .9rem 0 0; }

/* ---- footer ---- */
.foot { background: var(--ink); color: #c3ccce; padding: 3rem 0 2rem; }
.foot__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; margin-bottom: 2.2rem; }
.foot__brand .brand { color: #fff; }
.foot__brand p { font-size: .93rem; max-width: 30ch; margin-top: .8rem; }
.foot h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .9rem; font-family: "Inter"; }
.foot a { color: #c3ccce; text-decoration: none; display: block; padding: .28rem 0; font-size: .94rem; }
.foot a:hover { color: var(--sun-hot); }
.foot__bar { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.4rem; font-size: .82rem; color: #8fa0a3; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; }
.foot__bar p { margin: 0; }
@media (max-width: 700px) { .foot__top { grid-template-columns: 1fr; gap: 1.6rem; } }

/* utility */
.center { text-align: center; }
.mt-lg { margin-top: 2.2rem; }
.stack-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.pill { display: inline-flex; align-items: center; gap: .45em; background: var(--sand); color: var(--sun-deep); font-weight: 700; font-size: .8rem; padding: .35em .8em; border-radius: 999px; }
