/* ==========================================================================
   Bay Brothers Construction
   Single stylesheet. No framework, no build step.
   ========================================================================== */

:root {
  --ink:        #12171c;
  --ink-soft:   #1c242b;
  --slate:      #2a343d;
  --muted:      #5c6670;
  --line:       #e2ded8;
  --paper:      #ffffff;
  --paper-warm: #f7f5f2;
  --accent:     #c26a32;
  --accent-dim: #a5561f;
  --accent-lite:#f3e5d9;

  --wrap: 1160px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(18, 23, 28, .06), 0 8px 24px rgba(18, 23, 28, .06);

  --display: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 700; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-dim); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 20px;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  padding: 15px 26px; border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dim); color: #fff; }

.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-sm { padding: 10px 18px; font-size: .95rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 76px;
}

.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.wordmark-mark { color: var(--accent); width: 34px; flex: none; }
.wordmark-mark svg { width: 100%; height: auto; }
/* Richard's house glyph. Sized by height so the mark sits on the same optical
   baseline as the wordmark text next to it rather than being squashed into a
   fixed square box. */
.wordmark-mark-img { width: auto; height: 40px; display: flex; align-items: center; }
.wordmark-mark-img img { width: auto; height: 100%; max-width: 140px; object-fit: contain; }
.wordmark-text { display: flex; flex-direction: column; line-height: 1.1; }
.wordmark-text strong {
  font-family: var(--display); font-weight: 800; font-size: 1.22rem;
  letter-spacing: -.02em; color: #fff;
}
.wordmark-text small {
  font-size: .69rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.5); font-weight: 500;
}

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav > a {
  color: rgba(255,255,255,.78); text-decoration: none;
  font-size: .95rem; font-weight: 500; padding: 9px 13px; border-radius: var(--radius);
}
.site-nav > a:hover { color: #fff; background: rgba(255,255,255,.08); }
.site-nav > a.btn { color: #fff; margin-left: 8px; }

/* Log in. Deliberately quieter than the phone button: calling is what we want
   a visitor to do, and the login is only useful to the small number of people
   who already have an account. */
.nav-login {
  display: inline-flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,.62); text-decoration: none;
  font-size: .88rem; font-weight: 500;
  padding: 8px 12px; margin-left: 4px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.16);
}
.nav-login:hover { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
.nav-login svg { width: 16px; height: 16px; flex: none; }

/* Active state driven by <body data-page> — no JS.
   A service detail page lights up "Services", since that is its parent in a
   flat five-item nav. */
body[data-page="home"]         .site-nav a[data-nav="home"],
body[data-page="services"]     .site-nav a[data-nav="services"],
body[data-page="roof-replacement"] .site-nav a[data-nav="services"],
body[data-page="roof-repairs"] .site-nav a[data-nav="services"],
body[data-page="new-roofs"]    .site-nav a[data-nav="services"],
body[data-page="commercial"]   .site-nav a[data-nav="services"],
body[data-page="gallery"]      .site-nav a[data-nav="gallery"],
body[data-page="contact"]      .site-nav a[data-nav="contact"],
body[data-page="about"]        .site-nav a[data-nav="about"] {
  color: #fff; background: rgba(255,255,255,.1);
}

.navtoggle, .burger { display: none; }

/* --------------------------------------------------------------- imagery */

/* Every photo ships as WebP with a JPEG fallback at three widths — see
   scripts/optimise-images.py. Aspect ratios are declared so the page doesn't
   jump around as images arrive on a slow connection. */
.shot { display: block; width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--paper-warm); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-wide { aspect-ratio: 16 / 10; }
.shot-tall { aspect-ratio: 4 / 5; }

figure.shot-figure { margin: 0; }
figure.shot-figure figcaption {
  font-size: .86rem; color: var(--muted); margin-top: 10px; line-height: 1.5;
}

.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Side-by-side photo and prose. Photo second on mobile so the words lead. */
.media-split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .media-split { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .media-split.media-right .media-split-text { order: -1; } }

/* --------------------------------------------------------------- warranty */

.warranty-band { background: var(--ink); color: rgba(255,255,255,.8); }
.warranty-inner {
  display: grid; gap: 28px; padding-block: clamp(40px, 6vw, 64px);  /* see .hero-inner */
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.warranty-item h3 { color: #fff; font-size: 1.05rem; margin-bottom: .45em; display: flex; align-items: baseline; gap: 10px; }
.warranty-item h3 .num {
  font-family: var(--display); font-size: 1.8rem; font-weight: 800; color: var(--accent); line-height: 1;
}
.warranty-item p { font-size: .95rem; color: rgba(255,255,255,.68); margin: 0; }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  background: var(--ink);
  color: rgba(255,255,255,.82);
  overflow: hidden;
}

/* Real photo of the crew on a job. The gradients sit ON TOP of it, not
   instead of it: a dark scrim is what keeps white hero text readable over a
   bright Sydney sky, and without one the headline disappears into the
   photograph on exactly the sunny shots that look best. */
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(18,23,28,.92) 0%, rgba(18,23,28,.72) 45%, rgba(18,23,28,.45) 100%),
    var(--hero-img, url('/img/crew-sarking-battens-1600.jpg')) center 38% / cover no-repeat;
}

/* Each page opens on a DIFFERENT photo, chosen to match what the page is
   about — one image reused across the whole site makes eight pages read as
   the same page. Driven off <body data-page>, so adding a page means adding
   one line here, not touching any markup.
   The variable holds the whole url() so the gradient above stays in one place
   instead of being restated per page. */
/* The home page's image comes from site.json (heroImage) via the inline
   custom property in layout.html — Richie is supplying a replacement, and that
   keeps the swap to one line of config rather than an edit in here. */
body[data-page="home"]         { --hero-img: var(--hero-home); }
body[data-page="roof-replacement"] { --hero-img: url('/img/before-after-rusted-iron-1600.jpg'); }
body[data-page="roof-repairs"] { --hero-img: url('/img/metal-roof-flashing-1600.jpg'); }
body[data-page="new-roofs"]    { --hero-img: url('/img/paddington-colorbond-detail-1600.jpg'); }
body[data-page="services"]     { --hero-img: url('/img/sydney-rooftops-wide-1600.jpg'); }
body[data-page="commercial"]   { --hero-img: url('/img/commercial-metal-roof-1600.jpg'); }
body[data-page="gallery"]      { --hero-img: url('/img/harbour-view-rooftop-1600.jpg'); }
body[data-page="about"]        { --hero-img: url('/img/paddington-bullnose-verandah-1600.jpg'); }
body[data-page="contact"]      { --hero-img: url('/img/eastern-suburbs-slate-1600.jpg'); }

@media (max-width: 700px) {
  /* Portrait phones crop a landscape photo to almost nothing useful, and the
     text needs more contrast over a smaller area, so lean harder on the scrim
     and pull the smaller file. */
  .hero::before {
    background:
      linear-gradient(180deg, rgba(18,23,28,.86) 0%, rgba(18,23,28,.78) 100%),
      var(--hero-img-sm, url('/img/crew-sarking-battens-800.jpg')) center / cover no-repeat;
  }
  body[data-page="home"]         { --hero-img-sm: var(--hero-home-sm); }
  body[data-page="roof-replacement"] { --hero-img-sm: url('/img/before-after-rusted-iron-800.jpg'); }
  body[data-page="roof-repairs"] { --hero-img-sm: url('/img/metal-roof-flashing-800.jpg'); }
  body[data-page="new-roofs"]    { --hero-img-sm: url('/img/paddington-colorbond-detail-800.jpg'); }
  body[data-page="services"]     { --hero-img-sm: url('/img/sydney-rooftops-wide-800.jpg'); }
  body[data-page="commercial"]   { --hero-img-sm: url('/img/commercial-metal-roof-800.jpg'); }
  body[data-page="gallery"]      { --hero-img-sm: url('/img/harbour-view-rooftop-800.jpg'); }
  body[data-page="about"]        { --hero-img-sm: url('/img/paddington-bullnose-verandah-800.jpg'); }
  body[data-page="contact"]      { --hero-img-sm: url('/img/eastern-suburbs-slate-800.jpg'); }
}
.hero > * { position: relative; }

/* padding-BLOCK, not the padding shorthand: this element also carries .wrap,
   whose padding-inline: 24px is the page gutter. The shorthand would reset it
   to 0 and run the hero text into both edges of a phone screen. */
.hero-inner { padding-block: clamp(64px, 10vw, 118px) clamp(60px, 8vw, 100px); }
/* The width limit goes on the CHILDREN, not the container. With max-width on
   .hero-inner itself, margin-inline:auto from .wrap centred a 750px box inside
   the page, so hero text started ~200px right of the logo and of every section
   below it. Now the container is full content width and its left edge lines up
   with everything else; only the line length is capped. */
.hero-inner > * { max-width: 750px; }

/* The landing page gets a full-impact hero: taller, bigger headline. Inner
   pages keep the shorter one so the content starts sooner. */
body[data-page="home"] .hero { min-height: min(84vh, 800px); display: flex; align-items: center; }
body[data-page="home"] .hero > .wrap { width: 100%; }
body[data-page="home"] .hero h1 { font-size: clamp(2.7rem, 6.6vw, 4.8rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-size: .76rem; font-weight: 700;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 30px; height: 2px; background: var(--accent); }

.hero h1 { color: #fff; margin-bottom: .38em; }
.hero-lede { font-size: clamp(1.08rem, 2vw, 1.28rem); color: rgba(255,255,255,.75); max-width: 60ch; }
.hero .btn-row { margin-top: 34px; }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px 30px;
  margin-top: 40px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.13);
  font-size: .93rem; color: rgba(255,255,255,.62);
}
.hero-trust span { display: flex; align-items: center; gap: 9px; }
.hero-trust span::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex: none;
}

/* -------------------------------------------------------------- sections */

.section { padding: clamp(58px, 8vw, 96px) 0; }
.section-warm { background: var(--paper-warm); }
.section-ink { background: var(--ink); color: rgba(255,255,255,.78); }
.section-ink h2, .section-ink h3 { color: #fff; }

.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head p { font-size: 1.08rem; color: var(--muted); }
.section-ink .section-head p { color: rgba(255,255,255,.68); }

.lede { font-size: 1.14rem; color: var(--muted); max-width: 62ch; }

/* ----------------------------------------------------------------- cards */

.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }

/* Exactly two across on desktop. auto-fit would fit three at 1200px, which
   leaves a set of four cards sitting 3-then-1 and looking like something
   failed to load. */
.grid-2up { grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-2up { grid-template-columns: 1fr 1fr; } }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .98rem; }

.card-link {
  text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card-link:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-more {
  margin-top: auto; padding-top: 18px;
  font-family: var(--display); font-weight: 700; font-size: .95rem; color: var(--accent-dim);
}
.card-link:hover .card-more { color: var(--accent); }

.card-num {
  font-family: var(--display); font-weight: 800; font-size: .8rem;
  letter-spacing: .13em; color: var(--accent); margin-bottom: 14px;
}

/* --------------------------------------------------------------- reasons */

.reasons { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); }
.reason { background: var(--paper); padding: 30px 32px; }
.reason h3 { font-size: 1.08rem; margin-bottom: .4em; }
.reason p { color: var(--muted); font-size: .97rem; margin: 0; }
@media (min-width: 720px)  { .reasons { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .reasons { grid-template-columns: repeat(4, 1fr); } }

/* ---------------------------------------------------------------- quotes */

/* Columns rather than a grid. Reviews vary from four words to six lines, and a
   grid forces every card in a row to the tallest one's height, leaving the
   short ones as mostly-empty boxes. Columns let each card be its own height and
   pack them like a masonry wall: up to three across, one on a phone. */
.quotes { columns: 320px 3; column-gap: 24px; }

.quote {
  /* <figure> carries a 40px left/right margin by default in every browser.
     Unreset, it shoved each card in from its column and out of line with the
     section heading. */
  margin: 0 0 24px;
  break-inside: avoid;
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px 28px 24px;
  box-shadow: 0 1px 2px rgba(18,23,28,.04);
}
.quote-stars { color: #e0a43a; letter-spacing: 2px; font-size: .95rem; margin-bottom: 12px; }
.quote blockquote { margin: 0 0 16px; font-size: 1rem; line-height: 1.6; color: var(--ink); }
.quote figcaption { font-family: var(--display); font-size: .9rem; color: var(--ink); font-weight: 700; }

/* ------------------------------------------------------------ area lists */

.pill-list { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; padding: 0; margin: 0; }
.pill-list a, .pill-list span {
  display: block; padding: 9px 16px; border: 1px solid var(--line);
  border-radius: 100px; font-size: .92rem; text-decoration: none; color: var(--slate);
  background: var(--paper);
}
.pill-list a:hover { border-color: var(--accent); color: var(--accent-dim); }

/* ------------------------------------------------------------ prose bits */

.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--accent); }

.checks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checks li { position: relative; padding-left: 32px; margin-bottom: .7em; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: .42em;
  width: 16px; height: 9px; border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg);
}

.split { display: grid; gap: 52px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.35fr 1fr; } }

.aside-box {
  background: var(--paper-warm); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; position: sticky; top: 100px;
}
.aside-box h3 { margin-bottom: .5em; }
.aside-box p { font-size: .96rem; color: var(--muted); }

/* -------------------------------------------------------------------- cta */

.cta { background: var(--ink); color: rgba(255,255,255,.8); position: relative; overflow: hidden; }
.cta::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(194,106,50,.2) 0%, transparent 58%),
    repeating-linear-gradient(56deg, rgba(255,255,255,.03) 0 2px, transparent 2px 15px);
}
.cta > * { position: relative; }
.cta-inner { padding-block: clamp(56px, 7vw, 82px); text-align: center; }  /* see .hero-inner */
.cta h2 { color: #fff; }
.cta p { max-width: 54ch; margin-inline: auto; color: rgba(255,255,255,.72); }
.cta .btn-row { justify-content: center; margin-top: 30px; }

/* ------------------------------------------------------------------ form */

.form { display: grid; gap: 20px; max-width: 620px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: .94rem; color: var(--ink); }
.field .hint { font-weight: 400; color: var(--muted); font-size: .86rem; }

.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1px solid #cfcac3; border-radius: var(--radius);
  background: var(--paper); width: 100%;
}
.field textarea { min-height: 145px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); outline: 2px solid var(--accent-lite); outline-offset: 0;
}

.form-note { font-size: .9rem; color: var(--muted); }

.form-status { padding: 15px 18px; border-radius: var(--radius); font-size: .96rem; display: none; }
.form-status[data-state="ok"]   { display: block; background: #e8f3ec; border: 1px solid #b6d9c3; color: #1d5233; }
.form-status[data-state="bad"]  { display: block; background: #fbeceb; border: 1px solid #e3bab6; color: #8a2f26; }
/* Amber: not an error, but the thing you are about to do will not do what you
   expect — e.g. building a quote from rates that have no price set yet. */
.form-status[data-state="warn"] { display: block; background: #fdf4e3; border: 1px solid #e8d3a8; color: #7a5518; }
.form-status a { color: inherit; font-weight: 600; }

.honeypot { position: absolute; left: -9999px; }

/* --------------------------------------------------------------- contact */

.contact-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); margin-bottom: 46px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--paper); }
.contact-card h3 { font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: .7em; }
/* admin@baybrothers.com.au is 24 characters with no space in it, so it cannot
   wrap — at a fixed 1.14rem it pushed straight out through the side of the
   card. The size now scales with the viewport down to a floor that fits, and
   overflow-wrap is the backstop so a longer address later can never overflow
   again, it just breaks. */
.contact-card a, .contact-card p {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(.93rem, .55rem + .9vw, 1.14rem);
  color: var(--ink); text-decoration: none;
  overflow-wrap: anywhere; display: block;
}
.contact-card a:hover { color: var(--accent-dim); }

/* The email address on one line, always (Ashli, 2026-10-04). It is 24
   characters with no space, so it either wraps mid-address or overflows the
   card. Instead the card is a size container and the address scales with it:
   7cqi is 7% of the card's width, which fits 24 bold characters with room to
   spare, capped at the same size as the other cards. */
.contact-card { container-type: inline-size; }
.contact-card a.contact-email {
  white-space: nowrap; overflow-wrap: normal;
  font-size: min(1.14rem, 7cqi);
}

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--ink); color: rgba(255,255,255,.62); padding: 64px 0 0; font-size: .94rem; }

/* The full stacked logo — house, wordmark, gold rule and ROOFING. It only
   goes here: the footer is the one place with enough vertical room for a
   portrait lockup, whereas the 76px sticky header takes the house glyph
   alone. */
.footer-logo { display: block; height: 110px; width: auto; margin-bottom: 20px; }

/* Staff link. Deliberately dim — it is a door for the crew, not a call to
   action for customers. */
.footer-crew { margin-left: 20px; opacity: .55; }
.footer-crew:hover { opacity: 1; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); padding-bottom: 48px; }
.footer-brand { max-width: 34ch; }
.footer-name { font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: #fff; margin-bottom: .55em; }
.footer-legal { font-size: .84rem; color: rgba(255,255,255,.42); margin-top: 1.3em; }
.footer-licence { font-size: .9rem; color: rgba(255,255,255,.78); font-weight: 500; margin-top: 1em; }
.site-footer h3 { font-size: .77rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 1.2em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .62em; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-hours { margin-top: 1.3em; font-size: .86rem; color: rgba(255,255,255,.42); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between;
  padding-top: 24px; padding-bottom: 24px;
  border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: rgba(255,255,255,.4);
}
.footer-bottom p { margin: 0; }

/* --------------------------------------------------------- mobile bits */

.mobile-call { display: none; }

/* Burger breakpoint. Raised from 940px to 1080px: the nav has grown since
   (Services dropdown, Our work, Contact, Log in) and between ~940 and ~1080
   it no longer fit on one line — it silently wrapped to two and the header
   looked broken. Measured, not guessed: at 1000px the nav needed ~958px of
   the 952px available. */
@media (max-width: 1080px) {
  .burger {
    display: block; width: 44px; height: 44px; position: relative;
    cursor: pointer; flex: none;
  }
  .burger span, .burger span::before, .burger span::after {
    content: ''; position: absolute; left: 10px; width: 24px; height: 2px;
    background: #fff; transition: transform .2s, opacity .2s;
  }
  .burger span { top: 21px; }
  .burger span::before { top: -7px; left: 0; }
  .burger span::after  { top: 7px;  left: 0; }

  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink-soft); border-bottom: 1px solid rgba(255,255,255,.1);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 24px 22px;
  }
  .navtoggle:checked ~ .site-nav { display: flex; }
  .navtoggle:checked ~ .burger span { background: transparent; }
  .navtoggle:checked ~ .burger span::before { transform: translateY(7px) rotate(45deg); }
  .navtoggle:checked ~ .burger span::after  { transform: translateY(-7px) rotate(-45deg); }

  .site-nav > a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.07); border-radius: 0; }
  .site-nav > a.btn { margin: 16px 0 0; justify-content: center; border-bottom: none; }
  .nav-login { margin: 10px 0 0; justify-content: center; padding: 13px; border-color: rgba(255,255,255,.2); }

  body { padding-bottom: 66px; }

  .mobile-call {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    background: var(--accent); color: #fff; text-decoration: none;
    font-family: var(--display); font-weight: 700; font-size: 1.06rem;
    padding: 17px; box-shadow: 0 -2px 14px rgba(0,0,0,.18);
  }
  .mobile-call svg { width: 21px; height: 21px; }

  .aside-box { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}

/* ----------------------------------------------------------- gallery page */

.gallery-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.gallery-item { margin: 0; }
.gallery-item figcaption {
  font-size: .9rem; color: var(--muted); margin-top: 11px; line-height: 1.55;
}
.gallery-item figcaption strong { color: var(--ink); font-weight: 600; }

.insta-block { text-align: center; max-width: 620px; }
.insta-block h2 { margin-bottom: .4em; }
.insta-block p { margin-bottom: 1.1em; }

/* ------------------------------------------------- touch targets (mobile) */

/*
 * On a phone the footer link lists were rendering ~19px tall — the text height
 * and nothing more. That is well under the ~44px a thumb reliably hits, and
 * this is a site whose visitors are mostly on a phone, often outdoors, often
 * one-handed. Measured across every page before changing anything.
 *
 * Only STANDALONE links get padded — list items, the footer, card links.
 * Links inline in a sentence (an email address mid-paragraph) are deliberately
 * left alone: padding those would wreck line spacing for no real gain, and
 * WCAG exempts links embedded in a block of text for exactly that reason.
 */
@media (max-width: 1080px) {
  .site-footer li { margin-bottom: 0; }
  .site-footer li a {
    display: block;
    padding: 11px 0;
    min-height: 44px;
    display: flex; align-items: center;
  }

  .footer-hours a,
  .footer-bottom a {
    display: inline-flex; align-items: center;
    min-height: 44px; padding: 4px 0;
  }
  .footer-bottom { gap: 4px; }

  /* "Read all reviews on Google" under the testimonials. */
  .quotes + p a { display: inline-flex; align-items: center; min-height: 44px; }

  /* The contact page's phone / email / hours cards: make the whole line a
     target rather than just the glyphs of the text. */
  .contact-card a { padding: 8px 0; min-height: 44px; display: flex; align-items: center; }
}

/* ------------------------------------------------------- home: trust strip */

/* Four short facts directly under the hero — scannable, not prose. */
.trust-strip { background: var(--ink-soft); color: rgba(255,255,255,.82); }
.trust-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 12px 28px; padding-block: 20px;
  font-size: .93rem; font-weight: 500;
}
.trust-inner span { display: flex; align-items: center; gap: 9px; }
.trust-inner span::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex: none;
}
@media (max-width: 700px) {
  .trust-inner { display: grid; grid-template-columns: 1fr 1fr; font-size: .86rem; }
}

/* ----------------------------------------------------- home: service tiles */

/* The home page's services are photo tiles with a one-line label — a quick
   visual "here's what we do" that links through. The detail lives on
   /services/, which uses a completely different layout (.service-row) so the
   two pages no longer read as the same page twice. */
.tiles { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, 1fr); } }

.tile {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 3 / 4; border-radius: 6px;
  background: var(--ink); color: #fff; text-decoration: none;
}
.tile picture, .tile img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .45s ease;
}
.tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,23,28,0) 38%, rgba(18,23,28,.9) 100%);
}
.tile-label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px 22px 20px; }
.tile-label strong { display: block; font-family: var(--display); font-size: 1.22rem; line-height: 1.15; margin-bottom: 4px; }
.tile-label span { display: block; font-size: .9rem; color: rgba(255,255,255,.78); line-height: 1.4; }
.tile:hover img { transform: scale(1.045); }
.tile:hover .tile-label strong { color: #f3c79f; }
@media (max-width: 600px) {
  .tile-label { padding: 14px; }
  .tile-label strong { font-size: 1rem; }
  .tile-label span { font-size: .8rem; }
}

.section-foot { margin-top: 30px; }

/* ------------------------------------------------- services: detail rows */

.service-rows { display: grid; gap: clamp(56px, 8vw, 100px); }
.service-row { display: grid; gap: clamp(26px, 4vw, 60px); align-items: center; }
@media (min-width: 900px) {
  .service-row { grid-template-columns: 1fr 1fr; }
  /* Alternate the photo side so four rows don't read as a list of clones. */
  .service-row:nth-child(even) .service-row-img { order: 2; }
}
.service-row-img { aspect-ratio: 4 / 3; border-radius: 6px; }
/* The before/after photo is a tall composite; cropping it wide shows only the
   "BEFORE" label strip. Shown tall it reads as intended. */
.service-row-img.is-tall { aspect-ratio: 4 / 5; }
.service-row-num {
  font-family: var(--display); font-weight: 800; font-size: .8rem;
  letter-spacing: .15em; color: var(--accent); margin-bottom: 12px;
}
.service-row h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); margin-bottom: .4em; }
.service-row p { color: var(--slate); }
.service-row .checks { margin: 18px 0 26px; }
