/* ==========================================================================
   Bruce Storey Plumbing Services — per-site stylesheet
   Palette derived from the brief's street-view photo of the Flagstone Creek
   property: deep eucalyptus green (gum foliage), warm charcoal-slate (roof &
   trunks), golden ochre accent (morning light on the grass).
   ========================================================================== */

:root {
  /* Dominant colours from the photo */
  --gum: #2f5d50;          /* deep eucalyptus green */
  --gum-deep: #234a40;
  --gum-soft: #5b8576;
  --slate: #26302e;        /* warm charcoal — roof, trunks, shadow */
  --slate-soft: #50605c;

  /* Accent — golden morning light on the grass */
  --ochre: #d99a3a;
  --ochre-deep: #b97c22;

  /* Paper & neutrals */
  --cream: #f7f4ee;
  --cream-2: #efe9df;
  --sage-tint: #e7eee9;
  --line: #dcd6cb;
  --white: #ffffff;

  --ink: #20282a;
  --ink-soft: #4d5a57;

  --maxw: 1160px;
  --gutter: clamp(1.1rem, 4vw, 2.4rem);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 48px -24px rgba(35, 74, 64, 0.45);
  --shadow-sm: 0 8px 22px -14px rgba(35, 74, 64, 0.4);

  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { 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(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--slate);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 700; }

p { margin: 0 0 1rem; }
a { color: var(--gum-deep); text-decoration: none; }
a:hover { color: var(--ochre-deep); }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  margin-bottom: 0.9rem;
}
.eyebrow--light { color: var(--ochre); }

.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; }

.section { padding-block: clamp(3.2rem, 8vw, 6rem); }
.section--tint { background: var(--sage-tint); }
.section--cream { background: var(--cream-2); }

.section-head { max-width: 62ch; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-head--center { margin-inline: auto; text-align: center; }

/* ----- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--ochre); color: var(--slate); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--ochre-deep); color: var(--white); }

.btn--solid { background: var(--gum); color: var(--white); }
.btn--solid:hover { background: var(--gum-deep); color: var(--white); }

.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); color: var(--white); border-color: var(--white); }

.btn--outline { background: transparent; color: var(--gum-deep); border-color: var(--gum); }
.btn--outline:hover { background: var(--gum); color: var(--white); }

.btn--block { width: 100%; }

/* ----- Header / nav ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

/* Logo lockup */
.logo { display: inline-flex; align-items: center; gap: 0.7rem; }
.logo__mark {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  background: var(--gum);
  border-radius: 12px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.12);
}
.logo__mark svg { width: 26px; height: 26px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.16rem;
  color: var(--slate);
  letter-spacing: -0.02em;
}
.logo__name em { color: var(--gum); font-style: normal; }
.logo__sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  margin-top: 4px;
}

/* Nav */
.nav-toggle { display: none; }
.nav-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-btn span { width: 22px; height: 2px; background: var(--slate); border-radius: 2px; transition: transform 0.2s; }

.nav { display: flex; align-items: center; gap: 0.4rem; }
.nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--slate);
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
}
.nav a:hover { background: var(--sage-tint); color: var(--gum-deep); }
.nav a[aria-current="page"] { color: var(--gum-deep); background: var(--sage-tint); }
.nav a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; background: var(--ochre);
  border-radius: 2px; margin-top: 3px;
}
.nav__cta { margin-left: 0.6rem; }

/* ----- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--gum-deep);
  color: var(--white);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero__copy { max-width: 38rem; }
.hero h1 { color: var(--white); }
.hero h1 em { color: var(--ochre); font-style: normal; }
.hero__lead { color: rgba(255,255,255,0.86); font-size: 1.15rem; max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2rem;
  padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.16);
}
.hero__trust div { display: flex; flex-direction: column; }
.hero__trust strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--white); }
.hero__trust span { font-size: 0.85rem; color: rgba(255,255,255,0.72); }
.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  height: clamp(320px, 46vw, 540px);
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 28px 60px -28px rgba(0,0,0,0.6);
}
.hero__badge {
  position: absolute;
  left: -14px;
  bottom: 22px;
  background: var(--ochre);
  color: var(--slate);
  padding: 0.7rem 1.05rem;
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-family: var(--font-display);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.1;
}
.hero__badge small { display: block; font-weight: 600; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; }

.stars { color: var(--ochre); letter-spacing: 2px; }

/* ----- Trust strip -------------------------------------------------------- */
.strip {
  background: var(--slate);
  color: rgba(255,255,255,0.9);
}
.strip__row {
  display: flex; flex-wrap: wrap; gap: 1rem 2.2rem;
  align-items: center; justify-content: space-between;
  padding-block: 1.1rem;
}
.strip__item { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 0.95rem; }
.strip__item svg { width: 20px; height: 20px; color: var(--ochre); flex: none; }

/* ----- Cards / services --------------------------------------------------- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--sage-tint);
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 26px; height: 26px; color: var(--gum); }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.card__link {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--gum-deep);
}
.card__link svg { width: 16px; height: 16px; transition: transform 0.15s; }
.card__link:hover svg { transform: translateX(3px); }

/* ----- Split feature ------------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.split--rev .split__media { order: 2; }
.split__media img {
  width: 100%;
  height: clamp(280px, 38vw, 460px);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.checklist { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: 0.7rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; color: var(--gum); flex: none; margin-top: 2px; }

/* ----- Gallery ------------------------------------------------------------ */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.gallery figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.4s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery .span-2 { grid-column: span 2; }

/* ----- Steps -------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1.2rem; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding: 1.5rem 1.4rem 1.4rem; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ochre);
  display: block;
  margin-bottom: 0.5rem;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--ink-soft); margin: 0; }

/* ----- Quote / review ----------------------------------------------------- */
.quote {
  background: var(--gum);
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
}
.quote .stars { font-size: 1.4rem; }
.quote blockquote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.3;
  margin: 1rem auto 1.2rem;
  max-width: 26ch;
  color: var(--white);
}
.quote cite { font-style: normal; color: var(--ochre); font-weight: 600; letter-spacing: 0.04em; }

/* ----- CTA band ----------------------------------------------------------- */
.cta-band { background: var(--slate); color: var(--white); }
.cta-band__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.6rem; padding-block: clamp(2.4rem, 6vw, 3.6rem);
}
.cta-band h2 { color: var(--white); margin-bottom: 0.4rem; }
.cta-band p { color: rgba(255,255,255,0.8); margin: 0; max-width: 46ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ----- Page hero (sub-pages) --------------------------------------------- */
.page-hero { background: var(--gum-deep); color: var(--white); }
.page-hero__inner { padding-block: clamp(2.6rem, 6vw, 4rem); max-width: 56ch; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.85); margin: 0; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 0.8rem; }
.breadcrumb a { color: var(--ochre); }

/* ----- Contact ------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.info-list .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--sage-tint); display: grid; place-items: center; flex: none; }
.info-list .ico svg { width: 22px; height: 22px; color: var(--gum); }
.info-list strong { display: block; font-family: var(--font-display); color: var(--slate); }
.info-list a { color: var(--gum-deep); }
.info-list span { color: var(--ink-soft); }

.hours { width: 100%; border-collapse: collapse; margin-top: 0.4rem; }
.hours td { padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.hours td:last-child { text-align: right; font-weight: 600; color: var(--gum-deep); }

.callout {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ochre);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}

/* ----- Footer ------------------------------------------------------------- */
.site-footer { background: var(--slate); color: rgba(255,255,255,0.78); padding-block: clamp(2.6rem, 6vw, 3.6rem) 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer .logo__name { color: var(--white); }
.site-footer .logo__name em { color: var(--ochre); }
.site-footer p { color: rgba(255,255,255,0.7); margin-top: 1rem; max-width: 34ch; }
.footer-col h4 { color: var(--white); font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer-col a { color: rgba(255,255,255,0.78); }
.footer-col a:hover { color: var(--ochre); }
.footer-bottom {
  margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.14);
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: space-between;
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
}

/* ----- Utilities ---------------------------------------------------------- */
.stack > * + * { margin-top: 1rem; }
.mt-sm { margin-top: 0.6rem; }
.mt { margin-top: 1.4rem; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__media img { height: clamp(260px, 46vw, 360px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-btn { display: flex; }
  .nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem var(--gutter) 1.2rem;
    box-shadow: var(--shadow-sm);
    display: none;
  }
  .nav a { padding: 0.85rem 0.6rem; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav__cta { margin: 0.6rem 0 0; }
  .nav-toggle:checked ~ .nav { display: flex; }

  .grid--3, .grid--2, .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .span-2 { grid-column: span 2; }
  .gallery img { height: 180px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img { height: 150px; }
  .hero__badge { left: 10px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .hero__cta .btn, .cta-band__actions .btn { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
