/* McLachlan Roof Maintenance
   Layout: one page on a 12-column grid. Stone and white sections, one charcoal band,
   brushed-gold used only as a hairline accent. One typeface (Archivo), widened for headings. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1f2124;
  --ink-2: #53565c;
  --ink-3: #85888d;
  --stone: #f5f5f3;
  --paper: #ffffff;
  --line: #e2e1dd;
  --night: #222427;
  --night-line: rgba(255, 255, 255, 0.12);
  --on-night: #edece8;
  --on-night-2: #a4a6aa;
  --gold: #b89a62;
  --gold-2: #d7c39a;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --section: clamp(84px, 11vw, 168px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
h1 {
  font-size: clamp(3rem, 7.6vw, 6.75rem);
  font-stretch: 112%;
  letter-spacing: -0.04em;
  line-height: 0.93;
}
h2 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-stretch: 110%;
  letter-spacing: -0.03em;
  line-height: 1;
}
h3 {
  font-size: 1.3rem;
  font-stretch: 106%;
  letter-spacing: -0.012em;
  line-height: 1.2;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 32px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 300; background: var(--ink); color: #fff; padding: 12px 18px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.on-night :focus-visible { outline-color: var(--gold-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 2px;
  font-size: 0.97rem; font-weight: 600; letter-spacing: 0.005em; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #3a3d42; }
.btn-line { border-color: rgba(31, 33, 36, 0.28); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-2); }
.btn-night-line { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.btn-night-line:hover { border-color: #fff; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
@supports (backdrop-filter: blur(10px)) {
  .site-header { background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(1.4) blur(14px); }
}
.home .site-header { background: rgba(245, 245, 243, 0.9); }
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, 0.92); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.brand-badge {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  transition: width .35s ease, opacity .35s ease, margin .35s ease;
}
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name strong { font-size: 1.06rem; font-weight: 700; font-stretch: 116%; letter-spacing: 0.01em; }
.brand-name span { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; color: var(--ink-3); margin-top: 6px; }
@media (min-width: 901px) {
  .home .site-header:not(.is-scrolled) .brand-badge { width: 0; opacity: 0; margin-right: -12px; }
}

.nav-menu { display: flex; gap: 6px; }
.nav-menu a { display: block; padding: 10px 12px; font-size: 0.95rem; font-weight: 500; text-decoration: none; color: var(--ink-2); }
.nav-menu a:hover { color: var(--ink); }
.nav-menu .nav-call { display: none; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone { font-weight: 600; font-size: 0.97rem; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.header-phone:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }

.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 2px; background: transparent; cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 13px; width: 18px; height: 1.5px; background: var(--ink); content: "";
  transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle span { top: 22px; }
.nav-toggle span::before { left: 0; top: -6px; }
.nav-toggle span::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1000px) { .header-phone { display: none; } }
@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .header-inner { gap: 12px; }
  .brand-badge { width: 40px; height: 40px; }
  .nav { order: 3; }
  .nav-toggle { display: block; }
  .nav-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 28px;
    background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: 18px 0; font-size: 1.25rem; font-weight: 500; font-stretch: 108%; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav-menu .nav-call { display: block; }
  .header-actions .btn { min-height: 46px; }
}
@media (max-width: 400px) {
  .brand-name span { letter-spacing: 0.1em; }
  .header-actions .btn { padding: 0 14px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--stone); }
.hero-grid { align-items: center; padding-top: clamp(40px, 6vw, 88px); }
.hero-copy { grid-column: 1 / span 7; }
.hero-lede { margin-top: 30px; max-width: 29em; font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.5; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-badge { grid-column: 8 / span 5; justify-self: end; width: min(100%, 470px); margin-right: -12px; }
.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  margin-top: clamp(56px, 7vw, 96px); padding: 28px 0 clamp(48px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.facts li { display: flex; flex-direction: column; gap: 2px; font-size: 0.95rem; }
.facts strong { font-weight: 600; }
.facts span { color: var(--ink-3); }
@media (max-width: 900px) {
  .hero-copy { grid-column: 1 / -1; }
  .hero-badge { display: none; }
}
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; gap: 18px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--section); }
.section-stone { background: var(--stone); }
.section-night { background: var(--night); color: var(--on-night); }
.section-head { align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head h2 { grid-column: 1 / span 6; }
.section-head p { grid-column: 8 / span 5; color: var(--ink-2); font-size: 1.08rem; }
.section-night .section-head p { color: var(--on-night-2); }
@media (max-width: 900px) {
  .section-head h2, .section-head p { grid-column: 1 / -1; }
  .section-head p { margin-top: 20px; }
}

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 40px); }
.service { position: relative; padding: 30px 0 44px; border-top: 1px solid var(--night-line); }
.service::before { content: ""; position: absolute; top: -1px; left: 0; width: 28px; height: 1px; background: var(--gold); }
.service h3 { color: #fff; }
.service p { margin-top: 12px; color: var(--on-night-2); font-size: 0.99rem; max-width: 30em; }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } .service { padding: 26px 0 32px; } }

/* ---------- About ---------- */
.about-top { align-items: start; }
.about-top h2 { grid-column: 1 / span 6; }
.about-text { grid-column: 8 / span 5; display: grid; gap: 18px; color: var(--ink-2); font-size: 1.08rem; }
.about-text p:first-child { color: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(64px, 8vw, 112px); counter-reset: step; }
.step { position: relative; padding-top: 24px; border-top: 1px solid var(--line); counter-increment: step; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 28px; height: 1px; background: var(--gold); }
.step::after { content: "0" counter(step); position: absolute; top: 22px; right: 0; font-size: 0.85rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: 0.97rem; }
@media (max-width: 900px) {
  .about-top h2, .about-text { grid-column: 1 / -1; }
  .about-text { margin-top: 28px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; row-gap: 28px; } }

/* ---------- Service area ---------- */
.areas-grid { align-items: start; }
.areas-intro { grid-column: 1 / span 5; }
.areas-intro p { margin-top: 20px; color: var(--ink-2); max-width: 26em; }
.suburbs { grid-column: 7 / span 6; columns: 3; column-gap: 24px; color: var(--ink-2); font-size: 0.98rem; line-height: 2.1; }
.suburbs li { break-inside: avoid; }
@media (max-width: 900px) {
  .areas-intro, .suburbs { grid-column: 1 / -1; }
  .suburbs { margin-top: 36px; }
}
@media (max-width: 520px) { .suburbs { columns: 2; } }

/* ---------- Quote ---------- */
.quote-grid { align-items: start; }
.quote-intro { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 32px); }
.quote-intro > p { margin-top: 20px; color: var(--ink-2); max-width: 24em; }
.direct { margin-top: 44px; display: grid; gap: 22px; }
.direct span { display: block; font-size: 0.85rem; color: var(--ink-3); margin-bottom: 2px; }
.direct a { font-size: 1.35rem; font-weight: 600; font-stretch: 106%; letter-spacing: -0.01em; text-decoration: none; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.direct a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 6px; }
.quote-form { grid-column: 7 / span 6; }
@media (max-width: 900px) {
  .quote-intro, .quote-form { grid-column: 1 / -1; }
  .quote-intro { position: static; }
  .quote-form { margin-top: 56px; }
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label, .field .label { font-size: 0.88rem; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px;
  background: var(--paper); border: 1px solid #d3d2cd; border-radius: 2px;
  font-size: 1rem; line-height: 1.4; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231f2124' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b9b8b2; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(184, 154, 98, 0.28); }
.field input::placeholder, .field textarea::placeholder { color: #9a9ca0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #a8432b; }
.field-error { font-size: 0.84rem; font-weight: 500; color: #a8432b; }

.photos { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px; border: 1px dashed #c9c8c2; border-radius: 2px; }
.photos input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 2px; font-size: 0.92rem; font-weight: 600; cursor: pointer; background: var(--paper); }
.photo-button svg { width: 18px; height: 18px; }
.photo-button:hover { background: var(--ink); color: #fff; }
.photos input[type="file"]:focus-visible + .photo-button { outline: 2px solid var(--ink); outline-offset: 3px; }
.photo-note { font-size: 0.85rem; color: var(--ink-3); flex: 1 1 200px; }
.photo-list { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.photo-list:empty { display: none; }
.photo-list li { position: relative; width: 76px; height: 76px; overflow: hidden; border-radius: 2px; background: var(--stone); }
.photo-list img { width: 100%; height: 100%; object-fit: cover; }
.photo-list button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(31,33,36,.85); color: #fff; cursor: pointer; font-size: 15px; line-height: 1; display: grid; place-items: center; }

.form-status { grid-column: 1 / -1; display: none; padding: 14px 16px; font-size: 0.95rem; border-radius: 2px; }
.form-status.is-busy { display: block; background: var(--stone); }
.form-status.is-error { display: block; background: #f8ece8; color: #7a2c1a; }
.form-status a { font-weight: 600; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
.form-foot .btn { min-width: 220px; }
.form-foot small { font-size: 0.84rem; color: var(--ink-3); }
.form-foot small a { color: var(--ink-2); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
button[disabled] { opacity: .65; cursor: progress; }
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
}

/* ---------- Simple pages ---------- */
.page-top { background: var(--stone); padding-block: clamp(56px, 8vw, 112px) clamp(48px, 6vw, 80px); }
.page-top h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); max-width: 12em; }
.page-top p { margin-top: 24px; max-width: 32em; color: var(--ink-2); font-size: 1.15rem; }
.page-top .hero-actions { margin-top: 36px; }
.prose { max-width: 680px; padding-block: clamp(56px, 7vw, 96px); }
.prose h2 { font-size: 1.4rem; font-stretch: 106%; letter-spacing: -0.01em; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); margin-bottom: 14px; }
.prose a { color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-night-2); font-size: 0.95rem; }
.footer-top { padding-block: clamp(64px, 8vw, 104px) 56px; row-gap: 48px; }
.footer-brand { grid-column: 1 / span 5; }
.footer-brand img { width: 72px; height: 72px; border-radius: 50%; }
.footer-tagline { margin-top: 24px; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; font-stretch: 110%; letter-spacing: -0.025em; line-height: 1.1; color: #fff; max-width: 13em; }
.footer-col { grid-column: span 2; }
.footer-col:first-of-type { grid-column: 7 / span 2; }
.footer-col h2 { font-size: 0.85rem; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--on-night-2); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--on-night); text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--gold-2); }
.footer-col.wide { grid-column: span 3; }
.footer-bottom { border-top: 1px solid var(--night-line); padding-block: 24px 30px; font-size: 0.85rem; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer-bottom a { color: var(--on-night-2); text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--on-night); }
@media (max-width: 900px) {
  .footer-brand { grid-column: 1 / -1; }
  .footer-col, .footer-col:first-of-type, .footer-col.wide { grid-column: span 4; }
}
@media (max-width: 600px) {
  .footer-col, .footer-col:first-of-type, .footer-col.wide { grid-column: 1 / -1; }
}

/* ---------- Mobile call bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--night);
  }
  .mobile-bar .btn { min-height: 48px; padding: 0 12px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .mobile-bar, .site-footer, form { display: none !important; }
  body { padding: 0; }
}
.facts-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { .facts-4 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .header-actions .btn { display: none; } }
.direct a { font-size: clamp(1.05rem, 4.4vw, 1.35rem); }
