/* Big Jon Stump Grinding: site styles. Mobile-first. */

:root {
  --pine-900: #14251B;
  --pine-700: #1E3A2A;
  --pine-500: #3E6B48;
  --cream: #F1EBDD;
  --cream-2: #E7DFCC;
  --orange: #E06A10;
  --orange-dark: #B9550A;
  --bark: #6B4423;
  --ink: #1C1C1A;
  --white: #FFFFFF;
  --error: #A3260F;

  --font-head: 'Archivo Black', 'Arial Black', Impact, sans-serif;
  --font-body: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 10px;
  --wrap: 1120px;
  --gutter: 16px;
  --bar-h: 64px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.6;
  padding-bottom: var(--bar-h); /* room for the mobile action bar */
}
@media (min-width: 900px) { body { font-size: 1.125rem; padding-bottom: 0; } }

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.15; color: var(--pine-700); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

a { color: var(--pine-700); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--pine-500); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--orange); color: var(--white); padding: 10px 16px; border-radius: var(--radius); font-weight: 700; }
.skip-link:focus { top: 8px; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: .7em 1.4em;
  border: 2px solid transparent; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 700; font-size: 1.1875rem; /* 19px bold = WCAG large text */
  line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover, .btn-orange:active { background: var(--orange-dark); color: var(--white); }
.btn-ghost { border-color: var(--cream); color: var(--cream); background: transparent; }
.btn-ghost:hover { background: var(--cream); color: var(--pine-900); }
.btn-ghost-dark { border-color: var(--pine-700); color: var(--pine-700); background: transparent; }
.btn-ghost-dark:hover { background: var(--pine-700); color: var(--cream); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.25em 0; }
.btn-row .btn { flex: 1 1 200px; }
@media (min-width: 600px) { .btn-row .btn { flex: 0 0 auto; } }
.btn-row-center { justify-content: center; }

/* ---------- Header ---------- */

.site-header { background: var(--pine-900); color: var(--cream); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 64px; }

.lockup { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; font-family: var(--font-head); margin: 0; }
.lockup-top { color: var(--cream); font-size: 1.45rem; letter-spacing: .02em; }
.lockup-bottom { color: var(--orange); font-size: .66rem; letter-spacing: .14em; margin-top: 3px; }
.lockup:hover .lockup-top { color: var(--white); }

.btn-header { min-height: 44px; padding: .45em .9em; margin-left: auto; order: 1; }
.site-nav { order: 2; }
.hide-sm { display: none; }
.header-inner { flex-wrap: wrap; position: relative; }
html:not(.js) .site-nav { flex-basis: 100%; } /* no JS: links wrap onto their own row */

.header-phone { display: none; }
@media (min-width: 1100px) {
  .header-phone { display: flex; flex-direction: column; order: 2; margin-left: 12px; color: var(--cream); text-decoration: none; font-weight: 700; line-height: 1.15; font-size: 1.05rem; white-space: nowrap; }
  .header-phone-label { font-size: .75rem; font-weight: 600; color: #F4A766; text-transform: uppercase; letter-spacing: .08em; }
  .header-phone:hover { color: var(--white); }
}
.signoff { font-family: var(--font-head); font-size: 1.6rem; color: #F4A766; margin-top: -.3em; }
.signoff::before { content: "— "; }

.nav-toggle { display: none; background: none; border: 0; color: var(--cream); padding: 10px; min-width: 44px; min-height: 44px; cursor: pointer; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.nav-menu a { color: var(--cream); text-decoration: none; font-weight: 600; display: block; padding: 10px 2px; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: var(--white); text-decoration: underline; text-decoration-color: var(--orange); }

@media (max-width: 899px) {
  .js .header-inner { flex-wrap: nowrap; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--pine-900); flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 8px var(--gutter) 16px; border-top: 1px solid var(--pine-700); box-shadow: 0 12px 24px rgba(0,0,0,.25); }
  .js .nav-menu.open { display: flex; }
  .js .nav-menu a { padding: 12px 0; font-size: 1.125rem; border-bottom: 1px solid var(--pine-700); }
}
@media (min-width: 900px) {
  .header-inner { flex-wrap: nowrap; }
  .site-nav { order: 1; margin-left: auto; flex-basis: auto !important; }
  .btn-header { order: 3; margin-left: 12px; }
  .hide-sm { display: inline; }
  .nav-phone { display: none; }
  .lockup-top { font-size: 1.7rem; }
  .lockup-bottom { font-size: .76rem; }
}

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

.hero {
  color: var(--cream);
  background-color: var(--pine-700);
  /* subtle tree-ring texture */
  background-image:
    repeating-radial-gradient(circle at 85% 40%, rgba(20,37,27,.0) 0 18px, rgba(20,37,27,.35) 19px 21px),
    linear-gradient(160deg, var(--pine-700), var(--pine-900));
  padding: 40px 0 48px;
}
.hero h1 { color: var(--cream); }
.hero .hl { color: var(--orange); display: inline-block; }
.hero-sub { font-size: 1.15rem; max-width: 36em; }
.hero-inner { display: grid; gap: 28px; align-items: center; }
.hero-badge { order: -1; display: flex; justify-content: center; }
.hero-badge .badge-img { width: min(44vw, 180px); height: auto; filter: drop-shadow(0 10px 24px rgba(0,0,0,.35)); }
@media (min-width: 900px) {
  .hero { padding: 72px 0 80px; }
  .hero-inner { grid-template-columns: 1.3fr 1fr; gap: 48px; }
  .hero-badge { order: 0; }
  .hero-badge .badge-img { width: 100%; max-width: 420px; }
}
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .85rem; color: var(--orange); margin-bottom: .6em; }
.hero .eyebrow { color: #F4A766; } /* lighter orange for contrast on pine */

.trust-row { list-style: none; padding: 0; margin: 1.5em 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; font-size: 1rem; }
.trust-row li { display: inline-flex; align-items: center; gap: 6px; }
.trust-row svg { color: var(--orange); flex: none; }

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

.section { padding: 56px 0; }
.section-alt { background: var(--cream-2); }
.section-form { background: var(--white); }
@media (min-width: 900px) { .section { padding: 80px 0; } }

.page-head { background: var(--pine-700); color: var(--cream); padding: 40px 0; }
.page-head h1 { color: var(--cream); }
.page-head a { color: var(--cream); }
.page-head .eyebrow { color: #F4A766; }
.page-head .lead { margin-bottom: 0; }
.page-head-center { text-align: center; padding: 72px 0; }
.page-head-center .btn-ghost-dark { border-color: var(--cream); color: var(--cream); }
.page-head-center .btn-ghost-dark:hover { background: var(--cream); color: var(--pine-900); }
.lead { font-size: 1.15rem; }
.more-link { margin-top: 1.5em; font-weight: 700; }

.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; margin-bottom: .3em; color: var(--pine-500); }
.fine { font-size: .9rem; color: #4a4a45; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: .7em; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(-45deg); }

/* How it works */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
.step { background: var(--white); border-radius: var(--radius); padding: 24px 22px 18px 72px; position: relative; border: 1px solid var(--cream-2); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 20px; width: 38px; height: 38px; border-radius: 50%; background: var(--pine-700); color: var(--cream); font-family: var(--font-head); display: grid; place-items: center; font-size: 1.1rem; }
.step h3 { margin-bottom: .3em; }
.step p { margin: 0; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Service cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.card { background: var(--white); border-radius: var(--radius); padding: 20px; border-top: 4px solid var(--pine-500); }
.card h3 { margin-bottom: .3em; }
.card p { margin: 0; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }

/* Why Big Jon */
.why-grid { display: grid; gap: 22px; }
.why { border-left: 4px solid var(--orange); padding-left: 16px; }
.why p { margin: 0; }
@media (min-width: 768px) { .why-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }

/* About */
.about-short { display: grid; gap: 28px; align-items: start; }
@media (min-width: 768px) { .about-short { grid-template-columns: 2fr 3fr; gap: 48px; } }
.photo-placeholder {
  aspect-ratio: 4 / 3; border-radius: var(--radius); display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, var(--cream-2) 0 14px, #ddd3bd 14px 28px);
  color: #4a4a45; font-weight: 600;
}
.photo-placeholder span { background: var(--cream); padding: 6px 14px; border-radius: 999px; }
.placeholder-note { background: var(--white); border: 2px dashed #c9bfa8; border-radius: var(--radius); padding: 28px; text-align: center; font-weight: 600; color: #4a4a45; }

/* Towns */
.town-list { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 16px; font-weight: 600; }
@media (min-width: 600px) { .town-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .town-list { grid-template-columns: repeat(4, 1fr); } }
.town-list-lg .town-list { font-size: 1.15rem; gap: 12px 16px; margin-bottom: 2em; }
.callout { margin-top: 32px; background: var(--white); border-radius: var(--radius); padding: 24px; border-left: 6px solid var(--orange); }
.callout p { margin: 0; }
.prep { margin: 2em 0; }
.prep h2 { margin-top: 0; }
.prep p { margin-bottom: .8em; }
.prep .checklist:last-child { margin-bottom: 0; }

/* FAQ */
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--white); border-radius: var(--radius); border: 1px solid var(--cream-2); }
.faq-item summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; position: relative; list-style: none; min-height: 52px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-family: var(--font-head); font-size: 1.4rem; color: var(--orange); }
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 18px 4px; }
.section-alt .faq-item { border-color: transparent; }

/* Gallery */
.gallery { display: grid; gap: 28px; }
.job { margin: 0; }
.job-pair { display: grid; gap: 8px; }
@media (min-width: 600px) { .job-pair:not(.job-single) { grid-template-columns: 1fr 1fr; } }
.job-shot { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--cream-2); }
.job-shot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.job-tag { position: absolute; left: 10px; top: 10px; background: var(--pine-900); color: var(--cream); font-weight: 700; font-size: .85rem; padding: 3px 10px; border-radius: 999px; }


/* CTA band */
.cta-band { background: var(--pine-900); color: var(--cream); padding: 56px 0; text-align: center; }
.cta-band h2 { color: var(--cream); }
.cta-band .btn-row { justify-content: center; }

/* ---------- Quote form ---------- */

.quote-form { margin-top: 24px; }
.form-grid { display: grid; gap: 0 20px; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } }

.field { margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.hint { font-weight: 400; color: #55554f; }

input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: inherit; color: var(--ink); background: var(--white);
  border: 2px solid #8f887a; border-radius: 8px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--pine-500); outline: 3px solid rgba(224,106,16,.45); outline-offset: 1px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.field-error { color: var(--error); font-weight: 600; font-size: .95rem; margin: 6px 0 0; }

.check-row { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.check { display: inline-flex; align-items: center; gap: 10px; font-weight: 400 !important; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--pine-700); flex: none; }
.consent { align-items: flex-start; margin-bottom: 20px; font-size: .95rem; }
.consent input { margin-top: 3px; }

.photo-tips { margin: 0 0 12px; color: #3d3d38; }
.photo-tips p { margin: 0 0 4px; }
.photo-tips ol { margin: 0; padding-left: 1.4em; }
.photo-tips li { margin-bottom: 2px; }
.photo-drop {
  display: flex !important; align-items: center; justify-content: center; gap: 10px;
  min-height: 72px; border: 2px dashed var(--pine-500); border-radius: var(--radius);
  background: #F7F3EA; color: var(--pine-700); font-weight: 700; cursor: pointer;
}
.photo-drop:hover { background: var(--cream); }
.photo-input:focus-visible + .photo-thumbs, .photo-input:focus + .photo-thumbs { outline: none; }
.js .photo-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.js .photo-input:focus-visible ~ .photo-count { outline: none; }
.js .photo-drop:focus-within, .js .photo-input:focus-visible { outline: 3px solid var(--orange); }
html:not(.js) .photo-drop { display: none !important; }
.photo-thumbs { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.photo-thumbs:empty { display: none; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--cream-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button {
  position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: rgba(20,37,27,.88); color: var(--white); font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.photo-count { margin: 8px 0 0; font-size: .95rem; color: #3d3d38; min-height: 1.5em; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 0 0 20px; min-height: 65px; }

.form-status { border-radius: var(--radius); padding: 16px 18px; margin: 0 0 20px; font-weight: 600; }
.form-status.error { background: #FBE9E4; border: 2px solid var(--error); color: #5e1608; }
.form-status.working { background: var(--cream); border: 2px solid var(--pine-500); color: var(--pine-900); }
.form-status a { color: inherit; }
.form-note { background: var(--cream); border-radius: var(--radius); padding: 14px 16px; font-weight: 600; }
.form-fine { font-size: .9rem; color: #4a4a45; margin-top: 12px; text-align: center; }

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

.site-footer { background: var(--pine-900); color: var(--cream); padding: 48px 0 24px; font-size: 1rem; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr 1.4fr; } }
.footer-h { font-size: 1rem; color: #F4A766; font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.lockup-footer { margin-bottom: 12px; }
.footer-contact { list-style: none; padding: 0; margin: 0 0 1em; }
.footer-contact li { margin-bottom: .4em; }
.footer-trust { font-weight: 700; }
.footer-social a { margin-right: 16px; }
.footer-legal { border-top: 1px solid var(--pine-700); margin-top: 32px; padding-top: 18px; font-size: .9rem; }
.footer-legal p { margin: 0; }

/* ---------- Sticky mobile action bar ---------- */

.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr 1.25fr;
  height: var(--bar-h); padding-bottom: env(safe-area-inset-bottom);
  background: var(--pine-900); border-top: 1px solid var(--pine-500);
  box-shadow: 0 -6px 18px rgba(0,0,0,.2);
}
.action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--cream); text-decoration: none; font-weight: 700; font-size: .95rem; }
.action-bar a + a { border-left: 1px solid var(--pine-700); }
.action-bar .action-quote { background: var(--orange-dark); color: var(--white); border-left: 0; } /* darker orange: small text needs 4.5:1 */
.action-bar .action-quote:active { background: #A84C08; }
@media (min-width: 900px) { .action-bar { display: none; } }
