/* Pettit Constructions — site styles
   Brand colours come from the supplied logo files. */
:root {
  --green: #4c644c;
  --green-dark: #34463a;
  --green-deep: #243026;
  --sand: #afa793;
  --sand-light: #e7e2d6;
  --cream: #f7f5f0;
  --white: #ffffff;
  --ink: #232821;
  --muted: #5d6459;
  --line: #ddd8cc;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(36, 48, 38, .12);
  --max: 1180px;
  --head: "Montserrat", system-ui, sans-serif;
  --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(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--green-deep);
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 500; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--sand); }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--white { background: var(--white); }
.section--dark { background: var(--green-deep); color: #e9ece6; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .eyebrow { color: var(--sand); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--dark .section-head p { color: #c9cfc6; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--head); font-weight: 600; font-size: .9rem;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding: 15px 26px; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); }
.btn--sand { background: var(--sand); color: var(--green-deep); }
.btn--sand:hover { background: #c4bda9; }
.btn--ghost { border-color: currentColor; color: var(--white); background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn--outline:hover { background: var(--green); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Top bar + header */
.topbar { background: var(--green-deep); color: #d5dbd2; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.topbar span + span::before { content: "·"; margin: 0 .6em; color: var(--sand); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 20px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-family: var(--head); font-size: .82rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; color: var(--ink); text-decoration: none; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--sand); color: var(--green); }
.nav .btn { padding: 12px 20px; border: 0; color: var(--white); }
.nav .btn:hover { color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--green-deep); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .topbar .hide-sm { display: none; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 78px 0 auto 0; background: var(--white);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 24px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform .3s ease; visibility: hidden;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; padding: 16px; }
}

/* Hero */
.hero {
  position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,28,22,.15) 0%, rgba(20,28,22,.45) 45%, rgba(20,28,22,.85) 100%);
}
.hero .container { position: relative; z-index: 1; padding-top: 120px; padding-bottom: clamp(48px, 8vw, 90px); }
.hero h1 { color: var(--white); max-width: 820px; }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 620px; color: #eef0ea; }
.hero .eyebrow { color: var(--sand-light); }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 30px 0 0; padding: 0; list-style: none; font-size: .95rem; color: #e6e9e2; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--sand); flex: none; }

.page-hero { background: var(--green-deep); color: #dfe4dc; padding: clamp(56px, 8vw, 96px) 0; position: relative; overflow: hidden; }
.page-hero h1 { color: var(--white); }
.page-hero p { max-width: 640px; font-size: 1.1rem; margin: 0; }
.page-hero .eyebrow { color: var(--sand); }
.page-hero--img .page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-hero .container { position: relative; }

/* Trust strip */
.strip { background: var(--white); border-bottom: 1px solid var(--line); }
.strip .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__item { padding: 26px 18px; text-align: center; border-right: 1px solid var(--line); }
.strip__item:last-child { border-right: 0; }
.strip__num { font-family: var(--head); font-size: 1.7rem; font-weight: 500; color: var(--green); display: block; }
.strip__label { font-size: .88rem; color: var(--muted); }
@media (max-width: 760px) {
  .strip .container { grid-template-columns: 1fr 1fr; padding: 0; }
  .strip__item:nth-child(2) { border-right: 0; }
  .strip__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: 0 1px 0 var(--line); border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card__img img { transform: scale(1.04); }
.card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--muted); font-size: .97rem; flex: 1; }
.card__link { font-family: var(--head); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }

/* Split / about */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev > :first-child { order: 2; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split__media .badge {
  position: absolute; right: -14px; bottom: 28px; background: var(--green); color: var(--white);
  padding: 20px 24px; border-radius: var(--radius); box-shadow: var(--shadow); font-family: var(--head);
}
.badge strong { display: block; font-size: 2.2rem; font-weight: 500; line-height: 1; }
.badge span { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
  .split__media .badge { right: 12px; }
}
.ticks { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: 3px; }
.section--dark .ticks svg { color: var(--sand); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; counter-reset: step; }
.step { padding-top: 22px; border-top: 2px solid rgba(175,167,147,.5); }
.step__n { font-family: var(--head); font-size: .8rem; letter-spacing: .2em; color: var(--sand); font-weight: 600; }
.step h3 { margin-top: .5em; }
.step p { color: #c9cfc6; font-size: .97rem; }
.section--white .step p, .section:not(.section--dark) .step p { color: var(--muted); }
.section:not(.section--dark) .step { border-color: var(--line); }
.section:not(.section--dark) .step__n { color: var(--green); }

/* Project teaser grid */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; }
.mosaic a { position: relative; overflow: hidden; border-radius: var(--radius); display: block; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.mosaic a:hover img { transform: scale(1.05); }
.mosaic .tall { grid-row: span 2; }
.mosaic .wide { grid-column: span 2; }
.mosaic figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: var(--white);
  font-family: var(--head); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
}
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .mosaic .wide { grid-column: span 2; }
}

/* Service area */
.areas { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; margin: 0; }
.areas li { background: var(--white); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; font-size: .92rem; }

/* CTA band */
.cta-band { background: var(--green); color: var(--white); padding: clamp(56px, 8vw, 88px) 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin: 0 0 .3em; }
.cta-band p { margin: 0; color: #e3e8e0; max-width: 560px; }

/* Services page detail */
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); }
.service-detail:last-child { border-bottom: 0; }
.service-detail:nth-child(even) .service-detail__media { order: 2; }
.service-detail__media { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.service-detail__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); aspect-ratio: 3/4; }
.service-detail__media img:first-child { grid-row: span 2; aspect-ratio: auto; height: 100%; min-height: 360px; }
.service-detail__media img:not(:first-child) { aspect-ratio: 1; }
.service-detail .ticks { font-size: .97rem; }
.tag-featured { display: inline-block; background: var(--sand-light); color: var(--green-deep); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; margin-bottom: 12px; font-family: var(--head); }
@media (max-width: 860px) {
  .service-detail { grid-template-columns: 1fr; }
  .service-detail:nth-child(even) .service-detail__media { order: 0; }
  .service-detail__media img:first-child { min-height: 260px; }
}
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump a { color: var(--white); border: 1px solid rgba(255,255,255,.35); padding: 7px 14px; border-radius: 999px; text-decoration: none; font-size: .88rem; }
.jump a:hover { background: rgba(255,255,255,.1); }

/* Projects gallery */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter {
  font-family: var(--head); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  background: var(--white); color: var(--ink); border: 1px solid var(--line); padding: 11px 18px; border-radius: 999px; cursor: pointer;
}
.filter:hover { border-color: var(--green); }
.filter[aria-pressed="true"] { background: var(--green); color: var(--white); border-color: var(--green); }
.filter .count { opacity: .65; margin-left: 4px; }
.gallery { columns: 3 300px; column-gap: 14px; }
.gallery__item {
  break-inside: avoid; margin: 0 0 14px; position: relative; border-radius: var(--radius); overflow: hidden;
  cursor: zoom-in; background: var(--sand-light); border: 0; padding: 0; width: 100%; display: block;
}
.gallery__item img { width: 100%; height: auto; transition: transform .6s; }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item[hidden] { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,20,16,.94); display: none; align-items: center; justify-content: center; padding: 60px 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; max-width: min(1200px, 100%); width: auto; border-radius: 4px; }
.lightbox figure { margin: 0; text-align: center; color: #dfe4dc; }
.lb-btn { position: absolute; background: rgba(255,255,255,.1); color: var(--white); border: 0; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; font-size: 26px; line-height: 1; }
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } }

/* Booking / quote form */
.booking { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .booking { grid-template-columns: 1fr; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: clamp(22px, 4vw, 40px); box-shadow: 0 1px 0 var(--line); }
.aside-card { background: var(--green-deep); color: #dfe4dc; border-radius: 10px; padding: 30px; position: sticky; top: 100px; }
.aside-card h3 { color: var(--white); }
.aside-card a { color: var(--white); font-weight: 600; }
.aside-card .big-phone { font-family: var(--head); font-size: 1.6rem; text-decoration: none; display: block; margin: 4px 0 18px; letter-spacing: .04em; }
.aside-card hr { border: 0; border-top: 1px solid rgba(255,255,255,.15); margin: 22px 0; }
.aside-card dl { margin: 0; font-size: .95rem; }
.aside-card dt { color: var(--sand); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-top: 14px; }
.aside-card dd { margin: 2px 0 0; }

.progress { display: flex; gap: 6px; margin-bottom: 30px; padding: 0; list-style: none; }
.progress li { flex: 1; }
.progress .bar { height: 4px; border-radius: 2px; background: var(--line); display: block; margin-bottom: 8px; transition: background .3s; }
.progress .lbl { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; font-family: var(--head); }
.progress li.done .bar, .progress li.active .bar { background: var(--green); }
.progress li.active .lbl { color: var(--green); }
@media (max-width: 560px) { .progress .lbl { display: none; } }

.step-pane { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.step-pane.active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step-pane legend { font-family: var(--head); font-size: 1.45rem; color: var(--green-deep); font-weight: 500; margin-bottom: 6px; padding: 0; }
.step-pane .hint { color: var(--muted); margin-bottom: 24px; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice label {
  display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1.5px solid var(--line); border-radius: 8px;
  cursor: pointer; height: 100%; transition: border-color .2s, background .2s; font-weight: 600; font-size: .96rem;
}
.choice label small { font-weight: 400; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.choice label svg { width: 28px; height: 28px; color: var(--green); }
.choice input:checked + label { border-color: var(--green); background: #eef2ec; box-shadow: inset 0 0 0 1px var(--green); }
.choice input:focus-visible + label { outline: 3px solid var(--sand); outline-offset: 2px; }
.choice-grid--sm { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.choice-grid--sm label { padding: 12px 14px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } }
.field label, .field .label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 6px;
  background: var(--white); color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(76,100,76,.15); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b3412e; }
.err { color: #b3412e; font-size: .88rem; margin-top: 10px; display: none; }
.err.show { display: block; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-nav .btn[hidden] { display: none; }
.summary { background: var(--cream); border-radius: 8px; padding: 18px 20px; margin-top: 24px; font-size: .95rem; }
.summary dt { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--green); margin-top: 10px; }
.summary dt:first-child { margin-top: 0; }
.summary dd { margin: 2px 0 0; white-space: pre-wrap; }
.success { text-align: center; padding: 30px 10px; }
.success svg { width: 64px; height: 64px; color: var(--green); margin: 0 auto 16px; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: #1b241d; color: #b9c1b5; padding: 70px 0 110px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: var(--white); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #e3e8e0; text-decoration: none; }
.site-footer a:hover { color: var(--sand); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-logo { width: 220px; margin-bottom: 18px; }
.footer-base { margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: #8e978a; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
@media (min-width: 901px) { .site-footer { padding-bottom: 40px; } }

/* Mobile action bar — always one tap from calling or booking */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; grid-template-columns: 1fr 1fr; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px; }
.mobile-bar .btn { padding: 14px 10px; font-size: .82rem; }
@media (max-width: 900px) { .mobile-bar { display: grid; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--green); color: #fff; padding: 10px 16px; z-index: 200; }
.skip:focus { left: 10px; top: 10px; }
