/* ==========================================================================
   The North Shore Handyman — custom styles
   Direction: soft paper + chart navy + azure, taken from the compass-rose logo.
   Light-dominant editorial; navy is punctuation, azure is the one loud thing.
   Type: Barlow Condensed (display ONLY) / Montserrat (small utility text)
         / Barlow (body) / Lora italic (reviews only).
   ========================================================================== */

:root {
  --ink: #101B2D;
  --ink-soft: #1B2A42;
  --navy: #172A4A;
  --navy-soft: #24406B;
  --azure: #3E7FD1;              /* the brand blue — logo, rules, borders */
  --azure-cta: #2A6BBF;          /* button fill under white text (AA) */
  --azure-light: #78ADEA;        /* accent text on dark backgrounds (AA) */
  --azure-deep: #1F5AA6;         /* accent text on light backgrounds (AA) */
  --paper: #F5F3EE;
  --paper-deep: #E7E4DC;
  --white: #FDFCFA;
  --stone: #5A606C;
  --stone-light: #A8AFBC;
  --line: rgba(16, 27, 45, 0.15);
  --line-light: rgba(245, 243, 238, 0.22);

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif; /* display sizes ONLY */
  --font-strong: 'Montserrat', 'Avenir Next', sans-serif;         /* nav, labels, buttons */
  --font-body: 'Barlow', -apple-system, 'Helvetica Neue', sans-serif;
  --font-serif: 'Lora', Georgia, serif;                           /* reviews only */

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
}

/* --- Base -------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--wide { width: min(1400px, 100% - 2 * var(--gutter)); }
.container--narrow { width: min(900px, 100% - 2 * var(--gutter)); }

:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; }
::selection { background: var(--navy); color: var(--paper); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: var(--paper); padding: 0.75rem 1.25rem;
  font-family: var(--font-strong); font-weight: 700;
}
.skip:focus { left: 0; }

/* --- Type roles --------------------------------------------------------- */

.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.94;
}
.display--hero { font-size: clamp(3.1rem, 9.4vw, 7.2rem); }
.display--xl   { font-size: clamp(2.4rem, 6vw, 4.35rem); }
.display--lg   { font-size: clamp(1.95rem, 4.2vw, 3rem); }
.display--md   { font-size: clamp(1.45rem, 2.9vw, 2rem); }

.lead {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.18rem, 2.2vw, 1.55rem);
  line-height: 1.44;
  color: var(--ink-soft);
}
.on-dark .lead { color: rgba(245, 243, 238, 0.86); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-strong);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--azure-deep);
  margin-bottom: 1.15rem;
}
.eyebrow::before { content: ""; width: 1.9rem; height: 2px; background: currentColor; }
.on-dark .eyebrow { color: var(--azure-light); }

.muted { color: var(--stone); }
.on-dark .muted { color: var(--stone-light); }

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-block;
  font-family: var(--font-strong);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 1.9rem;
  border: 2px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  cursor: pointer;
}
.btn--primary { background: var(--azure-cta); color: var(--white); border-color: var(--azure-cta); }
.btn--primary:hover { background: var(--azure-deep); border-color: var(--azure-deep); color: var(--white); }
/* On navy bands the blue-on-blue button disappears — flip it to paper. */
.on-dark .btn--primary { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.on-dark .btn--primary:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--ghost { border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.btn--dark { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.btn--dark:hover { background: var(--navy-soft); border-color: var(--navy-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* --- Nav ---------------------------------------------------------------- */

.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-nav > .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 88px;
}
.nav-brand { display: block; }
.nav-brand img { height: 56px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  font-family: var(--font-strong);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-link:hover, .nav-link[aria-current="page"] { border-color: var(--azure); }
.nav-call {
  font-family: var(--font-strong); font-weight: 700; font-size: 0.86rem;
  letter-spacing: 0.06em; text-decoration: none;
  background: var(--navy); color: var(--paper);
  padding: 0.85rem 1.4rem;
  transition: background 0.25s var(--ease);
}
.nav-call:hover { background: var(--navy-soft); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 40px; padding: 8px 6px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: transform 0.25s var(--ease); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease);
  }
  .nav-links.is-open { max-height: 26rem; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-link { display: block; padding: 1.1rem var(--gutter); border-bottom: 0; }
  .nav-call { display: block; text-align: center; margin: 0.9rem var(--gutter) 1.2rem; }
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(94svh, 900px);
  display: flex; align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(9,16,28,0.90) 0%, rgba(9,16,28,0.82) 30%, rgba(9,16,28,0.46) 55%, rgba(9,16,28,0.10) 78%, rgba(9,16,28,0) 100%),
    linear-gradient(to top, rgba(9,16,28,0.80) 0%, rgba(9,16,28,0.34) 32%, rgba(9,16,28,0.04) 66%, rgba(9,16,28,0.34) 100%);
}
@media (max-width: 760px) {
  .hero-media::after {
    background: linear-gradient(to top, rgba(9,16,28,0.94) 0%, rgba(9,16,28,0.78) 42%, rgba(9,16,28,0.48) 74%, rgba(9,16,28,0.52) 100%);
  }
}
.hero-inner { position: relative; padding: clamp(3rem, 9vw, 6rem) 0 clamp(2.5rem, 5vw, 3.75rem); }
.hero .display--hero { max-width: 15ch; text-shadow: 0 2px 30px rgba(9, 16, 28, 0.35); }
.hero .lead {
  max-width: 42ch; margin: 1.5rem 0 2.1rem;
  color: rgba(253, 252, 250, 0.95);
  text-shadow: 0 1px 14px rgba(9, 16, 28, 0.6);
}
.hero-kicker {
  font-family: var(--font-strong); font-weight: 700;
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--azure-light); margin-bottom: 1.1rem;
  text-shadow: 0 1px 10px rgba(9, 16, 28, 0.6);
}

/* --- Trust strip -------------------------------------------------------- */

.trust {
  background: var(--navy); color: var(--paper);
  font-family: var(--font-strong); font-weight: 600;
  font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.trust ul {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 0.5rem 2rem; padding: 1.15rem 0;
}
.trust li { display: flex; align-items: center; gap: 0.5rem; }
.trust .star { color: var(--azure-light); font-size: 1rem; line-height: 1; }
@media (max-width: 720px) { .trust ul { justify-content: flex-start; } }

/* --- Sections ----------------------------------------------------------- */

section { padding: var(--section-y) 0; }
.band-paper { background: var(--paper); }
.band-paper-deep { background: var(--paper-deep); }
.band-navy { background: var(--navy); color: var(--paper); }
.band-ink { background: var(--ink); color: var(--paper); }

.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }

/* --- Intro grid --------------------------------------------------------- */

.intro-grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.intro-grid .lead { margin: 0; }
.intro-figure { margin: clamp(2.5rem, 5vw, 4rem) 0 0; }
.intro-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 58%; }
.intro-figure figcaption {
  font-family: var(--font-strong); font-weight: 600; font-size: 0.74rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone);
  margin-top: 0.85rem;
}
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }

/* --- Service rows ------------------------------------------------------- */

.service-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(1rem, 4vw, 3.5rem);
  padding: clamp(1.75rem, 3.5vw, 2.6rem) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.5rem, 3vw, 2.05rem); line-height: 1; }
.service-row .svc-body p { color: var(--ink-soft); }
.svc-points { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.svc-points li {
  font-family: var(--font-strong); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.42rem 0.75rem; border: 1px solid var(--line); color: var(--stone);
}
@media (max-width: 720px) { .service-row { grid-template-columns: 1fr; gap: 0.75rem; } }

/* --- Promise list (dark band) ------------------------------------------- */

.promise-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.promise {
  padding: clamp(1.75rem, 3.5vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line-light);
}
.promise:nth-child(odd) { border-right: 1px solid var(--line-light); }
.promise h3 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem); line-height: 1.02; margin-bottom: 0.7rem;
}
.promise p { color: rgba(245, 243, 238, 0.8); }
@media (max-width: 720px) {
  .promise-grid { grid-template-columns: 1fr; }
  .promise:nth-child(odd) { border-right: 0; }
}

/* --- Work strip --------------------------------------------------------- */

.work-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.work-strip a { display: block; position: relative; overflow: hidden; background: var(--ink); }
.work-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease); }
.work-strip a:hover img { transform: scale(1.04); opacity: 0.9; }
@media (max-width: 720px) { .work-strip { grid-template-columns: repeat(2, 1fr); } }

/* --- Reviews ------------------------------------------------------------ */

.rating-line {
  display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap;
  font-family: var(--font-strong); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.rating-line .stars { color: var(--azure-deep); font-size: 1.15rem; letter-spacing: 0.1em; }
.rating-line strong { font-size: 1.05rem; color: var(--ink); }

.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.75rem, 4vw, 3.5rem); }
.review { border-top: 2px solid var(--navy); padding-top: 1.5rem; }
.review blockquote {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.12rem, 1.9vw, 1.32rem); line-height: 1.52; color: var(--ink);
}
.review figcaption {
  font-family: var(--font-strong); font-weight: 700; font-size: 0.76rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone);
}
@media (max-width: 720px) { .reviews { grid-template-columns: 1fr; } }

/* --- Credentials -------------------------------------------------------- */

.cred-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(2rem, 4vw, 3rem); }
.cred {
  border-top: 1px solid var(--line); padding: 1.5rem 1.5rem 1.5rem 0;
}
.cred dt {
  font-family: var(--font-strong); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--azure-deep);
  margin-bottom: 0.4rem;
}
.cred dd { margin: 0; font-size: 1.02rem; }
@media (max-width: 760px) { .cred-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .cred-row { grid-template-columns: 1fr; } }

/* --- Area covered ------------------------------------------------------- */

.suburbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }
.suburbs li {
  font-family: var(--font-strong); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.85rem; background: var(--paper); border: 1px solid var(--line);
}
.band-paper .suburbs li { background: var(--white); }

/* --- Contact / CTA ------------------------------------------------------ */

.cta-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }

.contact-lines { margin-top: 2rem; display: grid; gap: 1.35rem; }
.contact-lines dt {
  font-family: var(--font-strong); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--azure-light);
  margin-bottom: 0.2rem;
}
.contact-lines dd { margin: 0; font-size: 1.15rem; }
.contact-lines a { text-decoration: none; border-bottom: 1px solid var(--line-light); }
.contact-lines a:hover { border-color: var(--azure-light); }

.contact-form { display: grid; gap: 1.1rem; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .field-pair { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-family: var(--font-strong); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 0.45rem; color: rgba(245, 243, 238, 0.88);
}
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-body); font-weight: 500; font-size: 1rem;
  color: var(--paper); background: rgba(245, 243, 238, 0.07);
  border: 1px solid var(--line-light); padding: 0.85rem 0.95rem;
  border-radius: 0; transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--azure); background: rgba(245, 243, 238, 0.12);
}
.field select option { color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.95rem; min-height: 1.2rem; }
.form-status.is-ok { color: #9ED8B4; }
.form-status.is-err { color: #F3B7A5; }
.form-note { font-size: 0.88rem; color: rgba(245, 243, 238, 0.74); }

/* --- Footer ------------------------------------------------------------- */

.site-footer { background: var(--ink); color: var(--paper); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2.5rem; align-items: start; }
.site-footer img { height: 64px; width: auto; }
.footer-heading {
  font-family: var(--font-strong); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--azure-light);
  margin-bottom: 1rem;
}
.footer-list li { margin-bottom: 0.55rem; }
.footer-list a { font-family: var(--font-strong); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.footer-list a:hover { color: var(--azure-light); }
.footer-base {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem;
  border-top: 1px solid var(--line-light);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--stone-light);
}
.footer-base a { text-decoration: none; }
.footer-base a:hover { color: var(--azure-light); }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }

/* --- Gallery page ------------------------------------------------------- */

.page-head { background: var(--navy); color: var(--paper); padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem); }
.page-head .eyebrow { color: var(--azure-light); }
.page-head .lead { max-width: 52ch; margin-top: 1.25rem; color: rgba(245, 243, 238, 0.86); }

.gallery-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.filter-btn {
  font-family: var(--font-strong); font-weight: 700; font-size: 0.76rem;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 0.65rem 1.1rem; background: transparent;
  border: 1px solid var(--line); color: var(--stone); cursor: pointer;
  transition: all 0.2s var(--ease);
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.is-active { background: var(--navy); border-color: var(--navy); color: var(--paper); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.75rem, 1.6vw, 1.25rem); }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: 1fr; } }

.shot { margin: 0; }
.shot button {
  display: block; width: 100%; padding: 0; border: 0; background: var(--paper-deep);
  cursor: zoom-in; overflow: hidden; position: relative;
}
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s var(--ease); }
.shot button:hover img { transform: scale(1.035); }
.shot figcaption {
  font-family: var(--font-strong); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.02em; color: var(--stone); margin-top: 0.7rem;
}
.shot.is-hidden { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(9, 16, 28, 0.95);
  display: none; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 82svh; width: auto; object-fit: contain; }
.lightbox figcaption {
  color: var(--paper); text-align: center; margin-top: 1rem;
  font-family: var(--font-strong); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: rgba(245, 243, 238, 0.1); border: 1px solid var(--line-light);
  color: var(--paper); cursor: pointer; width: 52px; height: 52px;
  font-size: 1.4rem; line-height: 1; display: grid; place-items: center;
  transition: background 0.2s var(--ease);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(245, 243, 238, 0.22); }
.lb-close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); border-radius: 50%; }
.lb-prev { left: clamp(0.5rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(0.5rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }

/* --- Reveal ------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .work-strip img, .shot img { transition: none; }
}
