/*
  H.J.C Landscaping — design direction (Kern, 1 Oct 2026)
  A working yard's own colours, not a landscaping template's: deep laurel green and
  aged gold lifted from H.J.C.'s own circular badge logo and the gold "check out our
  reviews" star callout on their Facebook cover graphic, on a warm cream paper ground.
  The two real job photos are the entire photographic evidence, so each sits in a single
  framed "plaque" with a dated caption and star-rating corner badge, treated as proof
  rather than decoration. The rest of the proof is a dense, honestly-sized ledger of real
  review quotes, not a gallery — a gallery is the one thing this business does not have.
  Motion is restrained: the two plaques get one small "stamped" flourish, each service's
  badge panel wipes in as its card scrolls in and the badge leans closer on hover/focus/press,
  and the opening hours say honestly whether the yard is open right now; nothing heavy at
  the top of the page.
  Rev 2 (1 Oct 2026): service strip retired, Services cards redesigned, "open now" status
  (assets/hours.js), phone centring below 820px, ledger reveal repaired (it never ran).
  Rev 3 (1 Oct 2026): opening-hours status simplified to AAA Trailer Hire's box; service
  swatches replaced by line-icon badges; review-ledger scroll reveal dropped.
*/

:root{
  --bg:        #faf5e8;   /* warm cream paper — their FB graphic's ground colour */
  --bg-alt:    #f1e8d2;   /* deeper parchment, alternating bands / card fill */
  --panel:     #ffffff;   /* white card surface under the photo plaques */
  --ink:       #1c2a18;   /* near-black deep green, body text */
  --muted:     #5b6b52;   /* sage-grey-green, secondary text */
  --pine:      #234a28;   /* deep laurel green — sampled from the logo's green serif text */
  --pine-d:    #163319;   /* darker green — dark-band background, button hover */
  --accent:        #b9892e; /* aged gold — sampled from the laurel badge and star-rating accents */
  --accent-hover:  #96701f; /* darker gold, hover/active */
  --accent-light:  #d9b86b; /* lighter gold, for text ON dark --pine backgrounds only */
  --line:      #e0d4b0;   /* soft parchment border */
  --open:      #2e7d32;   /* rev 2: "open now" signal green: the status dot ONLY, never text */
  --shut:      #b3261e;   /* rev 3: "closed now" dot only, never text (same red as AAA Trailer Hire; --shut: var(--muted) restores grey) */
  --radius:    8px;       /* plaque/card corners — heritage-badge, not pill, not sharp */
}

/* ---------- Fonts ---------- */
/* Display: Fraunces 600/900 (+ italic 600). Body: Public Sans 400-700. */

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Public Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; }
ul{ margin: 0; padding: 0; list-style: none; }
h1, h2, h3{ font-family: "Fraunces", Georgia, serif; margin: 0 0 .5em; line-height: 1.1; color: var(--pine); }
p{ margin: 0 0 1em; }
button{ font-family: inherit; }

.container{
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

section{ scroll-margin-top: 84px; }

/* ---------- Kicker ---------- */
.kicker{
  display: inline-block;
  font-family: "Public Sans", sans-serif;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pine);
  margin-bottom: .75em;
}
.dark .kicker, .pine-band .kicker, .contact-band .kicker{ color: var(--accent-light); }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85em 1.6em;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
  min-height: 44px;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{ background: var(--pine); color: var(--bg); }
.btn-primary:hover, .btn-primary:focus-visible{ background: var(--pine-d); }
/* "Ghost"/secondary CTA: per Kern's contrast note this is accent-filled with ink text
   (~5.3:1), not a transparent outline -- a transparent gold-on-cream outline tests too
   close to the fail line, so the secondary button ships solid like the brief's maths. */
.btn-ghost, .btn-gold{ background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-ghost:hover, .btn-ghost:focus-visible,
.btn-gold:hover, .btn-gold:focus-visible{ background: var(--accent-hover); border-color: var(--accent-hover); color: var(--bg); }
a:focus-visible, button:focus-visible{ outline: 3px solid var(--accent-hover); outline-offset: 2px; }

.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--pine);
  color: var(--bg);
  padding: .75em 1em;
  z-index: 100;
  border-radius: 0 0 6px 0;
}
.skip-link:focus{
  left: 0;
}

/* ---------- Wordmark (type-drawn — no confirmed logo file, see HTML comment) ---------- */
.wordmark{
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 900;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--pine);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .sprig{ width: 18px; height: 18px; flex: none; color: var(--accent); }
footer .wordmark{ color: var(--bg); }
footer .wordmark .sprig{ color: var(--accent-light); }

/* ---------- Nav ---------- */
body > nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 232, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px 20px;
  max-width: 1180px;
  margin: 0 auto;
}
.nav-links{
  display: none;
  align-items: center;
  gap: 1.6rem;
  font-weight: 600;
  font-size: .95rem;
}
.nav-links a{ text-decoration: none; color: var(--ink); }
.nav-links a:hover{ color: var(--pine); }
.nav-right{ display: flex; align-items: center; gap: 1rem; flex: none; }
/* Below 560px the wordmark + inline "Get a quote" button + burger don't fit without
   crowding or overflow -- the mobile menu already repeats both CTAs prominently, so
   the inline nav button steps aside for the burger alone on small phones. */
@media (max-width: 559px){
  .nav-right .btn-primary{ display: none; }
  .nav-inner{ padding: 12px 16px; gap: .6rem; }
  .wordmark{ font-size: 1.05rem; gap: .35em; }
  .wordmark .sprig{ width: 14px; height: 14px; }
}
.nav-phone{
  display: none;
  font-weight: 700;
  color: var(--pine);
  text-decoration: none;
  font-size: .95rem;
}
.nav-burger{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  cursor: pointer;
}
.nav-burger svg{ width: 22px; height: 22px; color: var(--pine); }

.mobile-menu{
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  display: none;
  flex-direction: column;
  padding: 20px;
}
.mobile-menu.open{ display: flex; }
.mobile-menu-top{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.mobile-menu-close{
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--panel); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.mobile-menu-close svg{ width: 20px; height: 20px; color: var(--pine); }
.mobile-menu nav{ display: flex; flex-direction: column; gap: 1.4rem; font-size: 1.3rem; font-weight: 700; font-family: "Fraunces", serif; }
.mobile-menu nav a{ text-decoration: none; color: var(--pine); }
.mobile-menu .mobile-cta{ margin-top: auto; display: flex; flex-direction: column; gap: .75rem; }

/* ---------- Hero ---------- */
.hero{
  padding: 48px 0 56px;
  background: var(--bg);
}
.hero-inner{
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.hero-text h1{
  font-size: clamp(2.1rem, 5vw + 1rem, 3.4rem);
  font-weight: 900;
}
.hero-text h1 em{
  font-style: italic;
  font-weight: 600;
  color: var(--accent-hover);
}
.hero-lede{
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 48ch;
}
.hero-cta{
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin: 1.4rem 0 1.2rem;
}
.trust-chip{
  display: inline-flex;
  align-items: center;
  gap: .5em;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .5em 1em;
  font-weight: 700;
  font-size: .9rem;
  color: var(--pine);
}
.trust-chip .stars{ color: var(--accent-hover); letter-spacing: 1px; }

.hero-fade{
  opacity: 0;
  transform: translateY(14px);
  animation: hero-fade-in .3s ease-out .05s forwards;
}
@media (prefers-reduced-motion: reduce){
  .hero-fade{ opacity: 1; transform: none; animation: none; }
}
@keyframes hero-fade-in{
  to{ opacity: 1; transform: translateY(0); }
}

/* ---------- Plaque component ---------- */
.plaque{
  background: var(--panel);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 28px -16px rgba(22, 51, 25, .35);
  max-width: 460px;
  margin: 0 auto;
}
.plaque-photo{
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.plaque-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.plaque-badge{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--pine);
  border: 2px solid var(--accent-light);
  color: var(--accent-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: .95rem;
  line-height: 1;
  text-align: center;
  transform: scale(.4) rotate(-18deg);
  opacity: 0;
}
.plaque-badge .star{ font-size: .7rem; margin-top: 2px; }
/* Hero plaque is visible on first paint, so its stamp plays once on load (same beat as
   the hero fade-in), not on scroll. The recent-work plaque is below the fold, so its
   stamp plays when it scrolls into view. */
.hero .plaque-badge{
  animation: stamp-in .4s cubic-bezier(.2,1.4,.4,1) .35s forwards;
}
/* F1 fix (Plumb review, 1 Oct 2026): .plaque-wrap holds the badge directly now (see HTML
   comment at the recent-work markup) so it sits outside .plaque/.plaque-photo's
   overflow:hidden -- confirmed with Playwright that the view-timeline's source otherwise
   resolved to .plaque-photo instead of the document. Also dropped the "80%" inset: a
   single-value inset of 80% shrinks the active range from BOTH edges of the viewport by
   80%, which for this badge's geometry leaves nothing to activate (reproduced in isolation:
   view(block 80%) stayed inactive even once the source was corrected). Plain view() was
   confirmed working. position:relative + width:fit-content on .plaque-wrap keeps the badge
   anchored to the photo's corner instead of the wider grid column. */
.recent-work .plaque-wrap{
  position: relative;
  width: fit-content;
  margin: 0 auto;
}
/* The stacked-layout 2rem gap (see max-width:899px rule at the foot of this file) moves onto
   the wrapper for this plaque: left on .plaque it collapses through the wrapper and puts the
   badge's offset origin 32px above the photo. Badge offsets are 14px = original 12px + the
   plaque's 2px border, so it lands exactly where it did inside .plaque-photo. */
.recent-work .plaque{ margin-top: 0; }
@media (max-width: 899px){
  .recent-work .plaque-wrap{ margin-top: 2rem; }
}
.recent-work .plaque-badge{
  top: 14px;
  right: 14px;
  animation: stamp-in .4s cubic-bezier(.2,1.4,.4,1) both;
  animation-timeline: view();
}
@keyframes stamp-in{
  to{ transform: scale(1) rotate(0deg); opacity: 1; }
}
@media (prefers-reduced-motion: reduce){
  .plaque-badge, .hero .plaque-badge, .recent-work .plaque-badge{ transform: none; opacity: 1; animation: none; }
}
.plaque-caption{
  background: var(--pine);
  color: var(--bg);
  padding: .9em 1.1em;
  font-size: .88rem;
  font-weight: 600;
}
.plaque-caption .month{ color: var(--accent-light); }

/* ---------- Generic section head ---------- */
.section-head{ max-width: 56ch; margin-bottom: 2.2rem; }
.section-head h2{ font-size: clamp(1.7rem, 3vw + 1rem, 2.4rem); }
.section-head p{ color: var(--muted); }
.section{ padding: 64px 0; }
.section.alt{ background: var(--bg-alt); }

/* ---------- Services grid ---------- */
.services-grid{
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}
#services{ border-top: 1px solid var(--line); } /* cream hero meets cream Services: a line, not a seam */
.service-card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scroll-margin-top: 100px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
/* The mark panel is the animated subject (clip-path wipe, scroll-linked). Per the F1 lesson, NO
   ancestor of .service-mark may set overflow other than visible: .service-card, .services-grid,
   .container and section are all clean. */
.service-mark{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 112px;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  background: var(--bg-alt);
}
.mark-art{
  display: block;
  width: 80px;
  height: 80px;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.mk-ring{ fill: var(--panel); stroke: var(--accent); stroke-width: 2; }
.mk-glyph{ fill: none; stroke: var(--pine); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.service-body{ padding: 1.3rem 1.6rem 1.5rem; }
.service-card h3{ font-size: 1.2rem; margin-bottom: .4em; }
.service-card p{ color: var(--muted); margin: 0 0 .9em; font-size: .95rem; }
.service-link{
  display: inline-flex;
  align-items: center;
  gap: .4em;
  min-height: 44px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--pine);
  text-decoration: none;
}
.service-link:hover{ text-decoration: underline; text-underline-offset: 3px; }
.service-link .arr{ transition: transform .2s ease; }
/* One state, three triggers: pointer hover (hover-capable devices only, so touch screens never
   get a stuck hover), keyboard focus on the card's link, and a touch/mouse press. */
@media (hover: hover){
  .service-card:hover{ transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 14px 28px -18px rgba(22,51,25,.4); }
  .service-card:hover .mark-art{ transform: scale(1.12); }
  .service-card:hover .service-link .arr{ transform: translateX(4px); }
}
.service-card:focus-within{ transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 14px 28px -18px rgba(22,51,25,.4); }
.service-card:focus-within .mark-art{ transform: scale(1.12); }
.service-card:focus-within .service-link .arr{ transform: translateX(4px); }
.service-card:active .mark-art{ transform: scale(1.12); }
@keyframes mark-laid{
  from{ clip-path: inset(0 100% 0 0); }
  to{ clip-path: inset(0 0 0 0); }
}
/* Plain view() + an explicit range. Never view(block 80%): it never activates (confirmed twice
   on this site). @supports means an engine without scroll timelines skips the animation and
   shows finished panels rather than a stuck start state. */
@supports (animation-timeline: view()){
  .service-mark{
    animation: mark-laid linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 70%;
  }
}
@media (prefers-reduced-motion: reduce){
  .service-card, .mark-art, .service-link .arr{ transition: none; }
  .service-card:hover, .service-card:focus-within{ transform: none; }
  .service-card:hover .mark-art, .service-card:focus-within .mark-art, .service-card:active .mark-art{ transform: none; }
  .service-card:hover .service-link .arr, .service-card:focus-within .service-link .arr{ transform: none; }
  .service-mark{ animation: none; clip-path: none; }
}

/* ---------- Recent work ---------- */
.recent-work{
  display: grid;
  gap: 2.2rem;
  align-items: center;
}
.recent-copy p{ color: var(--muted); }

/* ---------- Reviews ledger ---------- */
.ledger{
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
.ledger-entry{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
/* Rev 3: the review scroll reveal is DROPPED (Kern's revision 3, recommendation; AJ has not ruled).
   To RESTORE it (one edit): add these three lines to BOTH .ledger-entry and .ledger-cap:
     animation: fade-slide-up linear both;
     animation-timeline: view();
     animation-range: entry 0% entry 60%;
   and put this back verbatim anywhere in the file:
     @media (prefers-reduced-motion: reduce){ .ledger-entry, .ledger-cap{ animation: none !important; } }
     @keyframes fade-slide-up{ from{ opacity: 0; transform: translateY(32px); } to{ opacity: 1; transform: translateY(0); } }
   Why it went: near-invisible on a phone, a faint edge fade on desktop, scrubbed so it fades the
   cards back out on scroll-up, and the plain fade-up AJ already called too basic. */
.ledger-entry--full{ grid-column: span 1; }
.ledger-entry--half{ grid-column: span 1; }
.ledger-stars{ color: var(--accent-hover); letter-spacing: 2px; font-size: 1rem; margin-bottom: .6rem; display: block; }
.ledger-entry blockquote{ margin: 0 0 .8rem; font-size: 1.02rem; }
.ledger-entry cite{ font-style: normal; font-size: .85rem; color: var(--muted); display: block; }
.ledger-entry cite .name{ font-weight: 700; color: var(--ink); }
.ledger-entry--note{
  background: var(--bg-alt);
  border-style: dashed;
}
.ledger-entry--note blockquote{ font-size: .95rem; color: var(--ink); }
.ledger-cap{
  grid-column: 1 / -1;
  background: var(--pine);
  color: var(--bg);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ledger-cap .big-stars{ font-family: "Fraunces", serif; font-weight: 900; font-size: 1.6rem; color: var(--accent-light); }
.ledger-cap a{
  color: var(--bg);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}
.ledger-cap a:hover{ color: var(--accent-light); }

/* ---------- How a quote works ---------- */
.steps{
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}
.step{ position: relative; padding-left: 3.2rem; }
.step::before{
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--pine);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: "Fraunces", serif; font-weight: 900;
}
.step h3{ font-size: 1.1rem; margin-bottom: .3em; }
.step p{ color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Area & hours ---------- */
.area-grid{
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
.hours-table{ width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours-table td{ padding: .5em 0; border-bottom: 1px solid var(--line); }
.hours-table td:last-child{ text-align: right; font-weight: 600; }
.hours-table tr.today td{ color: var(--pine); font-weight: 700; }
.area-facts p{ margin: 0 0 .5em; }
.area-facts strong{ color: var(--pine); }

/* ---------- Area & hours: "open now" status (assets/hours.js) ---------- */
/* AAA Trailer Hire's treatment: one box, a dot and a word, the days, a note. */
.hours-box{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem .5rem 1.1rem;
}
.hours-status{ display: none; }
.js .hours-status{
  display: flex;
  align-items: center;
  gap: .6em;
  min-height: 1.6em; /* one line reserved before the script runs */
  margin: 0 0 .6rem;
  padding: 0 .6rem;
  color: var(--ink);
  visibility: hidden;
}
.js .hours-status[data-state]{ visibility: visible; }
.hs-dot{ flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.hs-label{ font-weight: 700; }
.hours-status[data-state="open"] .hs-dot{ background: var(--open); }
.hours-status[data-state="closed"] .hs-dot{ background: var(--shut); }
.hours-status[data-state="unsure"] .hs-dot{ background: var(--accent); }
.hours-table td:first-child{ padding-left: .6rem; }
.hours-table td:last-child{ padding-right: .6rem; }
.hours-table tr.today td{ background: rgba(185, 137, 46, .14); }
.hours-note{ font-size: .85rem; color: var(--muted); margin: .8rem 0 0; padding: 0 .6rem; }

/* ---------- Contact band ---------- */
.contact-band{
  background: var(--pine-d);
  color: var(--bg);
  padding: 64px 0;
}
.contact-band h2{ color: var(--bg); }
.contact-band .section-head p{ color: #cdd9c9; }
.contact-grid{
  display: grid;
  gap: 2.4rem;
  grid-template-columns: 1fr;
}
.contact-methods{ display: flex; flex-direction: column; gap: 1rem; }
.contact-method{
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  color: var(--bg);
  font-weight: 600;
  padding: .9rem 1rem;
  border: 1px solid rgba(250,245,232,.25);
  border-radius: var(--radius);
}
.contact-method:hover{ border-color: var(--accent-light); }
.contact-method svg{ width: 22px; height: 22px; color: var(--accent-light); flex: none; }

.enquiry-form{
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.enquiry-form label{ font-size: .85rem; font-weight: 700; color: var(--pine); display: block; margin-bottom: .3em; }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea{
  width: 100%;
  padding: .7em .8em;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: inherit;
  font-size: .95rem;
  background: var(--panel);
  color: var(--ink);
}
.enquiry-form textarea{ field-sizing: content; min-height: 3lh; max-height: 10lh; resize: vertical; }
.enquiry-form input:focus-visible, .enquiry-form select:focus-visible, .enquiry-form textarea:focus-visible{
  outline: 2px solid var(--accent-hover); outline-offset: 1px;
}
.form-note{ font-size: .82rem; color: var(--muted); margin: 0; }
.form-alert{ font-size: .88rem; font-weight: 600; color: var(--ink); background: var(--bg-alt); border-left: 3px solid var(--accent); padding: .7em .9em; border-radius: 6px; margin: 0; }
.form-alert a{ color: var(--pine); text-decoration: underline; }
.form-alert[hidden]{ display: none; }

/* ---------- Footer ---------- */
footer{
  background: var(--pine-d);
  color: #cdd9c9;
  padding: 40px 0 24px;
  border-top: 1px solid rgba(250,245,232,.12);
}
.footer-top{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-nav{ display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .9rem; }
.footer-nav a{ text-decoration: none; color: #cdd9c9; }
.footer-nav a:hover{ color: var(--accent-light); }
.footer-bottom{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem;
  font-size: .82rem;
  color: #9fae98;
  border-top: 1px solid rgba(250,245,232,.12);
  padding-top: 1.2rem;
}
.footer-bottom a{ color: #9fae98; text-decoration: underline; }

/* ---------- Sticky mobile WhatsApp bar ---------- */
.sticky-whatsapp{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  background: var(--pine);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 14px;
  text-decoration: none;
  font-weight: 700;
  border-top: 2px solid var(--accent);
}
.sticky-whatsapp svg{ width: 20px; height: 20px; color: var(--accent-light); }

/* =========================================================
   Breakpoints: 560 / 760 / 820 / 900 (per Kern's mobile intent)
   ========================================================= */

@media (min-width: 560px){
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(5){ grid-column: 1 / -1; width: calc(50% - .6rem); justify-self: center; }
}

@media (min-width: 760px){
  .ledger{
    grid-template-columns: repeat(2, 1fr);
  }
  .ledger-entry--full{ grid-column: span 2; }
}

@media (max-width: 819px){
  .sticky-whatsapp{ display: flex; }
  body{ padding-bottom: 64px; } /* room for sticky bar */
}
@media (min-width: 820px){
  .sticky-whatsapp{ display: none; }
  body{ padding-bottom: 0; }
}

@media (min-width: 820px){
  .steps{ grid-template-columns: repeat(3, 1fr); }
  .area-grid{ grid-template-columns: 1.1fr .9fr; }
  .contact-grid{ grid-template-columns: 1fr 1fr; }
}

/* F4 fix (Plumb review, 1 Oct 2026): nav moved from 820px to 900px to match Kern's
   "Mobile intent" prose ("<900px: nav collapses to hamburger") -- the sticky WhatsApp
   bar's own 820px threshold (above) is separately named in the same brief and is
   unaffected. */
@media (min-width: 900px){
  .nav-links{ display: flex; }
  .nav-phone{ display: inline-block; }
  .nav-burger{ display: none; }
  .hero-inner{ grid-template-columns: 1.1fr .9fr; }
  .hero-text{ order: 1; }
  .plaque-wrap{ order: 2; }
  /* 3 + 2, second row centred (6-column grid): no empty third slot */
  .services-grid{ grid-template-columns: repeat(6, 1fr); }
  .service-card, .service-card:nth-child(5){ grid-column: span 2; width: auto; justify-self: stretch; }
  .service-card:nth-child(4){ grid-column: 2 / span 2; }
  .service-card:nth-child(5){ grid-column: 4 / span 2; }
  .recent-work{ grid-template-columns: .9fr 1.1fr; }
  .ledger{ grid-template-columns: repeat(3, 1fr); }
  .ledger-entry--full{ grid-column: span 3; }
}

@media (max-width: 899px){
  .plaque{ margin-top: 2rem; }
}

/* ---------- Phone centring (AJ, 1 Oct 2026; house rule in Business/Design Preferences.md) ----------
   Below 820px (the same threshold as the sticky WhatsApp bar) headings, kickers, lead-ins, CTAs,
   cards and the footer centre. Left-aligned on purpose: review quotes, the "How a job runs"
   paragraphs, the three quote steps (numerals hang left) and the enquiry-form fields. */
@media (max-width: 819px){
  .hero-text{ text-align: center; }
  .hero-lede{ margin-left: auto; margin-right: auto; }
  .hero-cta{ justify-content: center; }
  .plaque-caption{ text-align: center; }
  .section-head{ margin-left: auto; margin-right: auto; text-align: center; }
  .service-body{ text-align: center; }
  .recent-copy{ text-align: center; }
  .recent-copy p{ text-align: left; }
  .ledger-cap{ justify-content: center; text-align: center; }
  .area-facts{ text-align: center; }
  .hours .kicker{ display: block; text-align: center; }
  .hours-note{ text-align: center; }
  .hours-status{ justify-content: center; text-align: center; }
  .contact-method{ justify-content: center; }
  .footer-top{ flex-direction: column; align-items: center; text-align: center; }
  .footer-nav{ justify-content: center; }
  .footer-bottom{ justify-content: center; text-align: center; }
  .mobile-menu nav{ align-items: center; text-align: center; }
}
