/* Whitehurst Land Services — sign-board layout.
   Square corners and no shadows anywhere: that's the whole look. */

:root {
  --green: #1f3328;
  --green-hover: #2a4534;
  --cream: #f4f1e6;
  --warm-grey: #e7e4da;
  --red: #8e1b1b;
  --red-hover: #a82024;

  --body-text: #3f3f38;
  --muted: #5a5a50;
  --muted-2: #6e6a5e;
  --on-dark: #b9c2b6;
  --on-dark-2: #c0c9be;
  --on-dark-3: #94a092;
  --on-dark-4: #9da89b;
  --numeral: #8e9e8c;

  --hairline: #cfccc0;
  --hairline-dark: rgba(244, 241, 230, 0.18);
  --gold: #e8b44a;
  --photo-backdrop: #14201a;

  --serif: 'Bitter', Georgia, serif;
  --sans: 'Public Sans', system-ui, -apple-system, sans-serif;

  --gutter: clamp(20px, 4vw, 48px);
  --ease: 140ms ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--warm-grey);
  color: var(--body-text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; }

/* <picture> is only a format switch — let the <img> be the real layout box.
   `source` must be explicitly removed: under `display:contents` it would
   otherwise become a grid/flex item of its own and push everything along. */
picture { display: contents; }
picture > source { display: none; }

a { color: var(--red); text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); margin: 0; }

p { margin: 0; }

ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

/* Grid and flex items default to min-width:auto, so an image's intrinsic
   width can hold a column open wider than the viewport. Opt every layout
   container's children out of that. */
.hero > *,
.hero__panel > *,
.services > *,
.about > *,
.gallery > *,
.pair__shots > *,
.where > *,
.footer__grid > * { min-width: 0; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 8px; top: -60px;
  z-index: 100;
  background: var(--green);
  color: var(--cream);
  font-family: var(--serif);
  padding: 12px 18px;
  transition: top var(--ease);
}
.skip:focus { top: 8px; }

/* ---------------------------------------------------------------- top bar */

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  background: var(--cream);
  padding: 16px clamp(20px, 3.4vw, 40px);
  border-bottom: 1px solid var(--hairline);
}

.topbar__locality {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--green);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
}

.topbar__nav a {
  font-size: 14px;
  color: var(--green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--ease);
}
.topbar__nav a:hover { color: var(--red); }

.topbar__phone {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--red);
  letter-spacing: normal;
  text-transform: none;
}

/* ------------------------------------------------------------------- hero */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 640px;
  background: var(--cream);
}

.hero__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  padding: 64px var(--gutter) 60px;
}

.hero__logo { width: 100%; max-width: 520px; height: auto; }

.hero__rule { width: 120px; height: 3px; background: var(--red); }

.hero__title {
  font-weight: 800;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.06;
  color: var(--green);
  text-wrap: balance;
}

.hero__lede {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.6;
  color: #4a4a42;
  max-width: 520px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
  padding-top: 8px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.btn--solid {
  background: var(--green);
  color: var(--cream);
  padding: 18px 26px;
  font-weight: 800;
  font-size: clamp(20px, 2vw, 24px);
}
.btn--solid:hover { background: var(--green-hover); color: var(--cream); }

.btn--outline {
  border: 2px solid var(--green);
  color: var(--green);
  padding: 16px 24px;
  font-weight: 600;
  font-size: 16px;
}
.btn--outline:hover { background: var(--green); color: var(--cream); }

.hero__photo {
  position: relative;
  background: var(--photo-backdrop);
  min-height: 320px;
}

.hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 55%;
}

.hero__band {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: var(--red);
  color: #f7e9e9;
  padding: 14px 28px;
  font-family: var(--serif);
  font-size: clamp(13px, 1.2vw, 15px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

/* --------------------------------------------------------------- sections */

.section { padding: 78px var(--gutter) 84px; }
.section--dark { background: var(--green); }
.section--cream { background: var(--cream); }
.section--alt { background: var(--warm-grey); padding-top: 76px; }

.section__head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 8px;
}

.section__title {
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 44px);
  color: var(--cream);
}
.section--alt .section__title { color: var(--green); }

.section__rule { flex: 1; height: 2px; }
.section__rule--red { background: var(--red); }
.section__rule--green { background: var(--green); }

.section__sub {
  font-size: 17px;
  color: var(--on-dark);
  max-width: 620px;
  margin-bottom: 40px;
}
.section__sub--dark { color: var(--muted); margin-bottom: 34px; }

.section--dark a { color: var(--cream); text-decoration: underline; }

.eyebrow {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--red);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* --------------------------------------------------------------- services */

.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
}

.service {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline-dark);
}

.service__num {
  width: 26px;
  flex: none;
  padding-top: 7px;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--numeral);
  letter-spacing: 0.1em;
}

.service__title {
  font-weight: 700;
  font-size: clamp(20px, 2vw, 24px);
  color: var(--cream);
  margin-bottom: 6px;
}

.service__desc { font-size: 16px; line-height: 1.6; color: var(--on-dark); }

/* ------------------------------------------------------------------ about */

.about {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 52px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.about__portrait {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: 50% 25%;
  border: 8px solid var(--green);
}

.about__title {
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
  color: var(--green);
  margin-bottom: 24px;
}

.about__p {
  font-size: clamp(17px, 1.5vw, 18px);
  line-height: 1.68;
  color: var(--body-text);
  margin-bottom: 18px;
}
.about__p:last-of-type { margin-bottom: 28px; }

.pull {
  margin: 0;
  border-left: 4px solid var(--red);
  padding-left: 18px;
}
.pull p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--green);
}

/* ---------------------------------------------------------------- gallery */

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 32px;
}

.pair { margin: 0; }

.pair__label {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--green);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.pair__shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.shot {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: var(--photo-backdrop);
  cursor: zoom-in;
  line-height: 0;
}

/* Photos ship pre-cropped to 7:5 (323x230 at desktop), so the box just
   follows the source ratio and object-fit never has anything to trim. */
.shot__img {
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 5;
  object-fit: cover;
  display: block;
  transition: opacity var(--ease);
}
.shot:hover .shot__img { opacity: 0.88; }

.badge {
  position: absolute;
  top: 0; left: 0;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
}
.badge--before { background: var(--red); }
.badge--after { background: var(--green); }

/* ----------------------------------------------------------- testimonials */

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(244, 241, 230, 0.2);
}
/* Until there are enough real reviews to fill the row, one card on its own
   needs its own edge — the shared hairline grid has nothing to draw against. */
.quotes--single {
  grid-template-columns: minmax(0, 640px);
  background: none;
}
.quotes--single .quote { border: 1px solid rgba(244, 241, 230, 0.25); }

.quote { background: var(--green); padding: 30px 28px 28px; }

.stars {
  display: block;
  color: var(--gold);
  font-size: 17px;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.quote__body { margin: 0 0 20px; }
.quote__body p { font-size: 17px; line-height: 1.65; color: #d5dbd2; }
.quote__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--cream);
}
.quote__meta { font-size: 14px; color: var(--on-dark-3); }

/* -------------------------------------------------------- where we work  */

.where {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  padding-top: 70px;
  padding-bottom: 70px;
  border-top: 1px solid var(--hairline);
}

.where__title {
  font-weight: 800;
  font-size: clamp(28px, 3vw, 36px);
  color: var(--green);
  margin-bottom: 8px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.chip {
  background: #fff;
  color: var(--green);
  font-family: var(--serif);
  font-size: 15px;
  padding: 8px 15px;
}
.chip--home { background: var(--green); color: var(--cream); }

.where__counties { font-size: 15px; color: var(--muted); }

.facts { border-left: 2px solid var(--hairline); padding-left: 32px; }

.facts__title {
  font-weight: 700;
  font-size: 22px;
  color: var(--green);
  margin-bottom: 16px;
}
.facts__title + .hours + .facts__title { margin-top: 28px; margin-bottom: 10px; }

.hours { font-size: 16px; color: var(--body-text); }
.hours__row { display: grid; grid-template-columns: 44px 1fr; gap: 20px; margin-bottom: 8px; }
.hours__day { color: var(--muted-2); }
.hours__value--closed { color: var(--red); }

.facts__address { font-style: normal; font-size: 16px; line-height: 1.6; }

/* ----------------------------------------------------------------- footer */

.footer {
  background: var(--green);
  border-top: 6px solid var(--red);
  padding: 74px var(--gutter) 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.footer__title {
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
  color: var(--cream);
  margin-bottom: 16px;
}

.footer__lede { font-size: 18px; line-height: 1.6; color: var(--on-dark-2); }

.footer__cta { display: flex; flex-direction: column; gap: 14px; }

.card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--cream);
  transition: background var(--ease), border-color var(--ease);
}

.card__label {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.card__value { font-family: var(--serif); }
.card__value--phone { font-weight: 800; font-size: clamp(30px, 3.4vw, 38px); }
.card__value--email {
  font-weight: 600;
  font-size: clamp(17px, 1.9vw, 22px);
  overflow-wrap: anywhere;
}

.card--red { background: var(--red); padding: 26px 30px; }
.card--red:hover { background: var(--red-hover); color: var(--cream); }
.card--red .card__label { color: #efc5c5; }

.card--outline {
  border: 2px solid rgba(244, 241, 230, 0.4);
  padding: 24px 30px;
}
.card--outline:hover { border-color: var(--cream); color: var(--cream); }
.card--outline .card__label { color: var(--on-dark-4); }

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 24px;
  border-top: 1px solid rgba(244, 241, 230, 0.2);
  margin-top: 52px;
  padding-top: 22px;
}

.footer__legal {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--on-dark-4);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer__social { font-size: 14px; color: var(--on-dark-4); }

/* -------------------------------------------------- mobile call-to-action */

.callbar { display: none; }

/* --------------------------------------------------------------- lightbox */

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  padding: clamp(16px, 4vw, 40px);
  border: 0;
  background: rgba(15, 24, 18, 0.93);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  overscroll-behavior: contain;
}
.lightbox[open] { display: flex; }

/* Declarative scroll lock: tied to the dialog's own state, so closing by any
   route — Escape, scrim click, close button — always releases it. */
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox::backdrop { background: rgba(15, 24, 18, 0.93); }

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: default;
}

.lightbox__nav,
.lightbox__close {
  position: absolute;
  border: 0;
  background: rgba(31, 51, 40, 0.85);
  color: var(--cream);
  font-family: var(--serif);
  cursor: pointer;
  transition: background var(--ease);
}
.lightbox__nav:hover,
.lightbox__close:hover { background: var(--red); }

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 72px;
  font-size: 34px;
  line-height: 1;
}
.lightbox__nav--prev { left: 0; }
.lightbox__nav--next { right: 0; }

.lightbox__close {
  top: 0; right: 0;
  width: 52px; height: 52px;
  font-size: 30px;
  line-height: 1;
}

/* ------------------------------------------------------------ breakpoints */

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__panel { padding-top: 44px; padding-bottom: 44px; gap: 22px; }
  /* min-height must go, or aspect-ratio resolves width from it (320 x 1.6)
     and the cell overflows the column. */
  .hero__photo { min-height: 0; aspect-ratio: 16 / 10; }

  .about { grid-template-columns: 1fr; gap: 32px; }
  .about__portrait { height: clamp(320px, 60vw, 460px); border-width: 6px; }

  .gallery { grid-template-columns: 1fr; gap: 30px; }

  .where { grid-template-columns: 1fr; gap: 40px; }
  .facts { border-left: 0; border-top: 2px solid var(--hairline); padding-left: 0; padding-top: 28px; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .services { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; gap: 2px; }
  .quotes--single { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .section { padding-top: 56px; padding-bottom: 60px; }
  .section--alt { padding-top: 56px; }
  .about, .where { padding-top: 56px; padding-bottom: 56px; }
  .footer { padding-top: 56px; }

  .topbar { justify-content: center; }
  .topbar__locality { width: 100%; text-align: center; }
  .topbar__nav { width: 100%; justify-content: center; }

  .hero__cta { flex-direction: column; }
  .btn { width: 100%; }
  .hero__band { padding: 12px 14px; letter-spacing: 0.1em; }

  .footer__cta .card--red { text-align: center; align-items: center; }

  /* Phone is the conversion on mobile — keep it on screen. */
  .callbar {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    background: var(--red);
    color: var(--cream);
    font-family: var(--serif);
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    border-top: 2px solid var(--cream);
  }
  body { padding-bottom: 62px; }
  .lightbox__nav { width: 44px; height: 60px; font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
