/* Brisbane Water Garage Doors — Gosford & the Central Coast.
   Bespoke system. Estuary-morning: ink charcoal + galvanised steel, a hi-vis
   signal-yellow "get-it-fixed" accent, and a deep Brisbane-Water blue for the
   calm / considered side. Motif: garage panel-lines (strong horizontals) and a
   waterline. */

:root {
  --ink: #14181d;          /* near-black cool charcoal */
  --ink-2: #1e242b;        /* raised charcoal */
  --steel: #5c6873;        /* mid galvanised grey */
  --steel-2: #8b96a1;      /* lighter grey text */
  --line: #d7dbe0;         /* hairline on paper */
  --paper: #f4f2ec;        /* warm off-white (estuary morning) */
  --paper-2: #ece9e0;      /* slightly deeper paper */
  --white: #ffffff;
  --signal: #ffcf1a;       /* hi-vis caution yellow — urgent / CTA */
  --signal-deep: #e9b400;  /* pressed */
  --water: #1f4d6e;        /* Brisbane Water deep blue */
  --water-2: #2c6690;      /* lighter water */
  --water-ink: #0d2233;    /* deepest water for the tool bg */

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --gut: clamp(1.1rem, 4vw, 2.4rem);
  --radius: 4px;           /* mechanical, not rounded-friendly */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.09rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--water); text-decoration-thickness: 1px; text-underline-offset: 2px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem); text-transform: uppercase; }
h3 { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.55rem); }
p { margin: 0 0 1rem; max-width: 62ch; }
::placeholder { color: hsl(215 8% 45% / 0.4); }
::selection { background: var(--signal); color: var(--ink); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.wrap-wide { width: min(1360px, 100% - 2 * var(--gut)); margin-inline: auto; }

/* ---- panel-line motif: a stack of thin horizontals like a door's sections ---- */
.panels { height: 8px; background:
  repeating-linear-gradient(180deg, var(--ink) 0 2px, transparent 2px 4px);
  opacity: 0.9; }

/* ---------------------------------------------------------------- header ---- */
.util {
  background: var(--ink); color: var(--steel-2);
  font-size: 0.82rem; letter-spacing: 0.03em;
}
.util .wrap-wide { display: flex; gap: 1rem; justify-content: space-between; align-items: center; min-height: 38px; padding-block: 6px; flex-wrap: wrap; }
.util strong { color: var(--paper); font-weight: 600; }
.util .yellow { color: var(--signal); }

.head {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.head .wrap-wide { display: flex; align-items: center; gap: 1.4rem; min-height: 74px; }

/* CSS wordmark — no generated logo (crisp, honest, on-brand) */
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.brand__mark {
  width: 42px; height: 42px; flex: 0 0 auto; border-radius: var(--radius);
  background: var(--ink); position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.brand__mark::before { /* panel lines */
  content: ""; position: absolute; inset: 7px 6px auto 6px; height: 20px;
  background: repeating-linear-gradient(180deg, var(--steel-2) 0 2px, transparent 2px 6px);
  opacity: 0.55;
}
.brand__mark::after { /* waterline */
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 6px;
  background:
    radial-gradient(circle at 20% 0, transparent 60%, var(--signal) 61%) 0 0 / 12px 6px repeat-x;
  opacity: 0.9;
}
.brand__name { font-family: var(--font-display); text-transform: uppercase; line-height: 0.9; }
.brand__name b { display: block; font-weight: 700; font-size: 1.32rem; letter-spacing: 0.01em; }
.brand__name span { display: block; font-size: 0.72rem; letter-spacing: 0.16em; color: var(--steel); font-family: var(--font-body); font-weight: 600; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.nav a { color: var(--ink); text-decoration: none; font-family: var(--font-display); font-size: 1.08rem; text-transform: uppercase; letter-spacing: 0.02em; }
.nav a:hover { color: var(--water); }
.nav .btn { margin-left: 0.3rem; }
.nav__toggle { display: none; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.03em;
  font-size: 1.05rem; font-weight: 600;
  padding: 0.62em 1.15em; border-radius: var(--radius);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform 0.06s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--signal { background: var(--signal); color: var(--ink); }
.btn--signal:hover { background: var(--signal-deep); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-2); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--water { background: var(--signal); color: var(--ink); }
.btn--lg { font-size: 1.2rem; padding: 0.75em 1.4em; }

/* ---------------------------------------------------------------- hero ---- */
.hero { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 0; align-items: stretch; }
.hero__copy { padding: clamp(2rem, 1rem + 5vw, 4.5rem) var(--gut) clamp(2.4rem, 1rem + 5vw, 4rem); display: flex; flex-direction: column; justify-content: center; }
.hero__eyebrow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.22em; color: var(--signal); font-size: 0.9rem; margin-bottom: 1rem; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--signal); }
.hero__lede { color: #c9d1d9; font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem); max-width: 44ch; margin-top: 0.4rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.7rem; }
.hero__media { position: relative; min-height: 340px; background: var(--ink-2); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, transparent 22%); }

/* job-type split — the spine */
.jobs { background: var(--ink-2); border-top: 2px solid #000; }
.jobs__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.job {
  padding: clamp(1.2rem, 0.8rem + 1.5vw, 1.9rem) var(--gut);
  color: var(--paper); text-decoration: none;
  border-right: 1px solid #000; display: block; position: relative;
  transition: background 0.15s ease;
}
.job:last-child { border-right: 0; }
.job:hover { background: var(--water); }
.job__tag { font-family: var(--font-display); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.14em; color: var(--signal); }
.job h3 { color: var(--white); margin: 0.3rem 0 0.35rem; font-size: 1.35rem; }
.job p { color: #aab4bd; font-size: 0.92rem; margin: 0; }
.job--urgent .job__tag { color: var(--signal); }

/* generic section */
.sec { padding: clamp(2.6rem, 1.5rem + 5vw, 5.5rem) 0; }
.sec--paper2 { background: var(--paper-2); }
.sec--ink { background: var(--ink); color: var(--paper); }
.sec--ink h2 { color: var(--white); }
.sec__head { max-width: 60ch; margin-bottom: 2.2rem; }
.sec__kicker { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.18em; color: var(--water); font-size: 0.85rem; font-weight: 600; display: block; margin-bottom: 0.6rem; }
.sec--ink .sec__kicker { color: var(--signal); }
.lede { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem); color: var(--steel); }
.sec--ink .lede { color: #c2ccd4; }

/* the two-force local story */
.forces { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.force { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.force img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.force__body { padding: 1.4rem 1.5rem 1.6rem; }
.force h3 { color: var(--ink); }
.force__stat { font-family: var(--font-display); color: var(--water); font-size: 2.2rem; line-height: 1; margin-bottom: 0.2rem; }

/* services list */
.svcs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.4rem 1.5rem; background: var(--white); }
.svc__no { font-family: var(--font-display); color: var(--steel-2); font-size: 0.85rem; letter-spacing: 0.1em; }
.svc h3 { margin: 0.2rem 0 0.35rem; }
.svc p { font-size: 0.94rem; color: var(--steel); margin: 0; }

/* areas gradient */
.gradient { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.area-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.area-card:hover { border-color: var(--water); }
.area-card__type { font-family: var(--font-display); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.12em; color: var(--white); background: var(--water); align-self: flex-start; padding: 0.15em 0.6em; border-radius: 2px; margin-bottom: 0.7rem; }
.area-card__type--house { background: var(--ink); }
.area-card h3 { color: var(--ink); margin-bottom: 0.2rem; }
.area-card p { font-size: 0.92rem; color: var(--steel); margin: 0.2rem 0 0; }
.area-card__meta { margin-top: auto; padding-top: 0.9rem; font-size: 0.85rem; color: var(--steel-2); font-family: var(--font-display); letter-spacing: 0.04em; }

/* ---------------------------------------------------- signature: door check ---- */
.check { background: var(--water-ink); color: #eef4f8; }
.check__head { text-align: center; max-width: 40ch; margin: 0 auto 2rem; }
.check__head h2 { color: var(--white); }
.check__head .sec__kicker { color: var(--signal); }
.check__lede { color: #a9c2d4; }
.checker {
  background: #0a1a28; border: 1px solid #1d3a52; border-radius: 6px;
  max-width: 760px; margin-inline: auto; overflow: hidden;
}
.checker__step { padding: clamp(1.3rem, 1rem + 1.5vw, 2rem); border-bottom: 1px solid #12293c; }
.checker__q { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.15rem; color: var(--white); display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.checker__q i { width: 26px; height: 26px; display: grid; place-items: center; background: var(--signal); color: var(--ink); border-radius: 50%; font-style: normal; font-size: 0.9rem; font-family: var(--font-body); font-weight: 700; flex: 0 0 auto; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.opt {
  background: #0f2436; border: 1px solid #26485f; color: #dce8f0;
  border-radius: var(--radius); padding: 0.85rem 1rem; cursor: pointer; text-align: left;
  font-size: 0.96rem; font-family: var(--font-body); transition: all 0.12s ease; line-height: 1.3;
}
.opt b { display: block; color: var(--white); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.03em; font-weight: 600; font-size: 1.02rem; }
.opt small { color: #8fa9bd; font-size: 0.82rem; }
.opt:hover { border-color: var(--signal); }
.opt[aria-pressed="true"] { border-color: var(--signal); background: #163650; box-shadow: inset 0 0 0 1px var(--signal); }
.checker__out { padding: clamp(1.3rem, 1rem + 1.5vw, 2rem); background: #0a1a28; }
.checker__out[hidden] { display: none; }
.verdict { border-left: 4px solid var(--signal); padding-left: 1.1rem; }
.verdict__cause { font-size: 1.08rem; color: #eaf2f8; }
.verdict__cause b { color: var(--signal); }
.verdict__safety { color: #ffd9d0; background: #2a1512; border: 1px solid #5a2a20; border-radius: var(--radius); padding: 0.7rem 0.9rem; font-size: 0.92rem; margin: 0.9rem 0; display: none; }
.verdict__safety.show { display: block; }
.verdict__cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.1rem; align-items: center; }
.verdict__note { color: #90a9bc; font-size: 0.86rem; margin-top: 0.9rem; }
.checker__reset { background: none; border: 0; color: #7f9bb0; text-decoration: underline; cursor: pointer; font-size: 0.86rem; font-family: var(--font-body); padding: 0; }

/* ------------------------------------------------------------- enquiry form ---- */
.form-wrap { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.9rem; color: var(--ink); margin-bottom: 0.35rem; }
.field label .req { color: var(--water); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.72em 0.85em; font: inherit; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--water); box-shadow: 0 0 0 3px rgba(31,77,110,0.14); }
.field textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.85rem; color: var(--steel); margin-top: 0.2rem; }
[data-lead-success] { background: #133a24; color: #d7f5e2; border: 1px solid #1f6b3f; border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; }
[data-lead-error] { background: #3a1513; color: #f6d7d2; border: 1px solid #7a2a22; border-radius: var(--radius); padding: 0.85rem 1.1rem; margin-bottom: 1rem; }

/* split enquiry band */
.enq { background: var(--ink); color: var(--paper); }
.enq__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(1.6rem, 1rem + 3vw, 3.5rem); align-items: start; }
.enq h2 { color: var(--white); }
.enq__aside p { color: #c2ccd4; }
.enq__list { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.enq__list li { padding: 0.6rem 0 0.6rem 1.9rem; position: relative; border-top: 1px solid #2a323b; color: #d3dae0; }
.enq__list li::before { content: ""; position: absolute; left: 0; top: 0.95rem; width: 12px; height: 12px; background: var(--signal); border-radius: 2px; }

/* pull / prose (inner pages) */
.prose { max-width: 66ch; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.callout { background: var(--paper-2); border-left: 4px solid var(--signal); padding: 1.1rem 1.3rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.6rem 0; }
.callout strong { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em; }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.6rem, 1rem + 3vw, 3.5rem); align-items: center; }
.split img { border-radius: 6px; }

.pagehero { background: var(--ink); color: var(--paper); padding: clamp(2.4rem, 1.5rem + 4vw, 4.5rem) 0 clamp(2rem, 1.2rem + 3vw, 3.5rem); }
.pagehero h1 { color: var(--white); }
.pagehero h1 em { font-style: normal; color: var(--signal); }
.pagehero p { color: #c2ccd4; max-width: 56ch; font-size: clamp(1.05rem, 1rem + 0.5vw, 1.25rem); }
.crumbs { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; color: var(--steel-2); margin-bottom: 1rem; }
.crumbs a { color: var(--signal); text-decoration: none; }

/* streets chips */
.streets { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.streets span { background: var(--white); border: 1px solid var(--line); border-radius: 40px; padding: 0.3em 0.85em; font-size: 0.85rem; color: var(--steel); }

/* ------------------------------------------------------------------- footer ---- */
.foot { background: var(--ink); color: var(--steel-2); padding: clamp(2.4rem, 1.5rem + 3vw, 3.6rem) 0 1.4rem; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--paper); font-size: 1rem; margin-bottom: 0.9rem; }
.foot a { color: #b7c0c8; text-decoration: none; display: block; padding: 0.28rem 0; }
.foot a:hover { color: var(--signal); }
.foot__brand p { color: #97a2ab; font-size: 0.92rem; max-width: 40ch; }
.foot__bottom { border-top: 1px solid #2a323b; margin-top: 2rem; padding-top: 1.2rem; font-size: 0.82rem; color: #7c868f; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* --------------------------------------------------------------- responsive ---- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { min-height: 260px; order: -1; }
  .hero__media::after { background: linear-gradient(0deg, var(--ink) 0%, transparent 40%); }
  .jobs__grid { grid-template-columns: 1fr 1fr; }
  .job { border-bottom: 1px solid #000; }
  .job:nth-child(odd) { border-right: 1px solid #000; }
  .job:nth-child(even) { border-right: 0; }
  .forces { grid-template-columns: 1fr; }
  .gradient { grid-template-columns: 1fr 1fr; }
  .enq__grid, .split { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
  /* mobile nav */
  .nav { position: fixed; inset: 74px 0 auto 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--gut) 1.2rem; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform 0.22s ease; box-shadow: 0 12px 24px rgba(0,0,0,0.12); }
  .nav[data-open] { transform: translateY(0); }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1.25rem; }
  .nav .btn { margin: 0.8rem 0 0; justify-content: center; }
  .nav__toggle { display: inline-grid; margin-left: auto; place-items: center; width: 46px; height: 40px; background: var(--ink); color: var(--paper); border: 0; border-radius: var(--radius); cursor: pointer; gap: 4px; }
  .nav__toggle span { width: 20px; height: 2px; background: var(--paper); display: block; }
}
@media (max-width: 620px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .jobs__grid { grid-template-columns: 1fr; }
  .job { border-right: 0 !important; }
  .svcs { grid-template-columns: 1fr; }
  .gradient { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .opts { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .foot__bottom { flex-direction: column; }
  .util .wrap-wide { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; transition: none !important; } }
