/*
Theme Name: Morris County Firewood
Theme URI: https://morriscountyfirewood.com
Author: Chris Hurst
Author URI: https://iamchrishurst.com
Description: Custom classic theme for Morris County Firewood, Denville NJ. ACF Pro driven homepage and town pages, tap-to-call first, LocalBusiness schema baked in.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: mcf
*/

/* Self-hosted fonts (Latin subsets, variable) */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/fraunces-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/fraunces-italic-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-variable.woff2') format('woff2');
}


:root {
  --forest: #1B3325;
  --forest-2: #274734;
  --birch: #F1EFE4;
  --white: #FFFFFF;
  --ember: #D1541A;
  --ember-dark: #A8410F;
  --ember-light: #E8783F;
  --ember-tint: #FBE3D3;
  --moss: #45514A;
  --moss-2: #667066;
  --moss-3: #8A9689;
  --sage: #DDE0D3;
  --sage-2: #CFD6C6;
  --sage-3: #C6D2C4;
  --green-ok: #3FA66B;

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 6px;
  --radius-lg: 12px;
  --container: 1152px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(56px, 8vw, 88px);
  --header-h: 68px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--forest);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--ember); }
a:hover { color: var(--ember-dark); }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; 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; padding: 10px 14px; background: var(--forest); color: var(--white); border-radius: var(--radius); }
.skip-link:focus { top: 8px; }

/* Type */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; }
h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 2.75rem); }
h3 { font-size: 1.5rem; font-weight: 600; }
.eyebrow { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); margin-bottom: 14px; }
.eyebrow--light { color: var(--ember-light); }
.lead { font-size: 1.125rem; color: var(--moss); }
.section__head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 40px); }
.section__head h2 { margin-bottom: 14px; }
.section__head h2:last-child { margin-bottom: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  border-radius: var(--radius); border: 1.5px solid transparent;
  font-weight: 600; font-size: 0.9375rem; line-height: 1; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--ember); color: var(--white); font-weight: 700; }
.btn--primary:hover { background: var(--ember-dark); color: var(--white); }
.btn--outline { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn--outline:hover { background: var(--forest); color: var(--white); }
.btn--dark { background: var(--forest); color: var(--white); font-weight: 700; }
.btn--dark:hover { background: #122419; color: var(--white); }
.btn--ghost { border-color: var(--white); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.14); color: var(--white); }
.btn--lg { min-height: 58px; padding: 0 28px; font-size: 1.0625rem; }
.btn--block { width: 100%; min-height: 54px; font-size: 1.0625rem; }
.icon { flex-shrink: 0; }
.icon--check { color: var(--ember); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; }
.dot--ember { background: var(--ember); }
.dot--green { width: 10px; height: 10px; background: var(--green-ok); }

/* Top bar */
.topbar { background: var(--forest); color: var(--birch); font-size: 0.875rem; font-weight: 500; }
.topbar__inner { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar__status { display: inline-flex; align-items: center; gap: 8px; }
.topbar__links { display: flex; gap: 24px; }
.topbar a { color: var(--birch); text-decoration: none; }
.topbar a:hover { color: var(--white); text-decoration: underline; }
@media (max-width: 719px) {
  .topbar__inner { justify-content: center; }
  .topbar__status { display: none; }
  .topbar__links a:first-child { display: none; }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--sage);
}
.site-header__inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--forest); text-decoration: none; }
.brand__mark { width: 34px; height: 34px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-serif); font-weight: 600; font-size: 1.0625rem; white-space: nowrap; }
.brand__place { font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--moss-2); }

.nav__list { display: flex; gap: clamp(18px, 2.2vw, 32px); font-size: 0.9375rem; font-weight: 500; white-space: nowrap; }
.nav__list a { color: var(--forest); text-decoration: none; }
.nav__list a:hover { color: var(--ember); }
.nav__actions { display: flex; gap: 12px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -8px;
  background: none; border: 0; color: var(--forest); cursor: pointer; position: relative;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 10px; width: 24px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars { top: 21px; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) {
  :root { --header-h: 88px; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__name { font-size: 1.375rem; }
  .brand__place { font-size: 0.6875rem; }
  .nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); flex-grow: 1; justify-content: flex-end; }
}
@media (max-width: 1023px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 40;
    background: var(--white); padding: 24px var(--gutter) 40px;
    display: flex; flex-direction: column; gap: 32px;
    transform: translateX(100%); visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
    overflow-y: auto;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
  .nav__list { flex-direction: column; gap: 0; font-size: 1.25rem; font-family: var(--font-serif); font-weight: 500; }
  .nav__list li { border-bottom: 1px solid var(--sage); }
  .nav__list a { display: block; padding: 18px 0; }
  .nav__actions { flex-direction: column; }
  .nav__actions .btn { min-height: 54px; font-size: 1.0625rem; }
  body.nav-open { overflow: hidden; }
  .site-header--topbar-hidden .nav { inset-block-start: var(--header-h); }
}

/* Hero */
.hero { background: var(--birch); padding: clamp(36px, 6vw, 72px) 0 clamp(32px, 5vw, 64px); }
.hero__inner { display: grid; gap: 32px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 20px; }
.hero__title { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 3.875rem); line-height: 1.04; letter-spacing: -0.015em; }
.hero__title em, .cta em { font-style: italic; font-weight: 400; color: var(--ember); }
.hero__lead { font-size: 1.125rem; line-height: 1.6; color: var(--moss); max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 4px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 20px; border-top: 1px solid var(--sage-2); margin-top: 8px; }
.stats dt { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 600; line-height: 1.1; }
.stats dd { margin: 2px 0 0; font-size: 0.8125rem; font-weight: 500; color: var(--moss-2); }
.hero__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--sage-2); }
.hero__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.availability {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 12px 16px; background: var(--white); border-radius: 8px;
  font-size: 0.875rem; box-shadow: 0 8px 24px rgba(27,51,37,.14);
}
.availability__note { font-size: 0.8125rem; color: var(--moss-2); }
@media (max-width: 899px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__media { order: 1; }
  .hero__media img { aspect-ratio: 4 / 3; }
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); }
  .stats { grid-template-columns: repeat(4, auto); gap: 32px; justify-content: start; }
  .availability { right: auto; left: 24px; bottom: 24px; padding: 14px 18px; }
}

/* Trust chips */
.trust { border-bottom: 1px solid var(--sage); }
.trust__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 40px; padding-block: 20px; font-size: 0.875rem; font-weight: 600; color: var(--moss); }
.trust__list li { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 719px) {
  .trust__list { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* Sections */
.section { padding-block: var(--section); }
.section--tint { background: var(--birch); }
.section--dark { background: var(--forest); color: var(--birch); }
.section--dark .lead { color: var(--sage-3); }

/* Pricing */
.pricing { display: grid; gap: 24px; }
.price-card {
  display: flex; flex-direction: column; gap: 20px;
  padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-lg);
  border: 1.5px solid var(--sage); background: var(--birch);
}
.price-card--featured { border-color: var(--forest); background: var(--white); }
.price-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--sage); }
.price-card h3 { font-size: clamp(1.625rem, 1.3rem + 1vw, 1.875rem); }
.price-card__dims { font-size: 0.9375rem; color: var(--moss-2); margin-top: 4px; }
.price-card__price { font-family: var(--font-serif); font-size: clamp(2.5rem, 2rem + 1.5vw, 3rem); font-weight: 600; line-height: 1; }
.price-card__list { display: flex; flex-direction: column; gap: 10px; font-size: 1rem; color: var(--moss); flex-grow: 1; }
.price-card__list li { padding-left: 18px; position: relative; }
.price-card__list li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 8px; height: 2px; background: var(--ember); }
.pricing__notes { display: flex; flex-wrap: wrap; gap: 8px 40px; margin-top: 24px; font-size: 0.9375rem; color: var(--moss-2); }
.pricing__notes strong { color: var(--forest); }
.cord-photo { margin-top: clamp(32px, 5vw, 56px); display: grid; gap: 16px; align-items: end; }
.cord-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.cord-photo figcaption { font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.4; color: var(--moss); max-width: 360px; }
@media (min-width: 720px) {
  .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cord-photo { grid-template-columns: 1fr 340px; gap: 40px; }
  .cord-photo img { aspect-ratio: 16 / 10; }
}

/* How it works */
.steps { display: grid; gap: 24px; }
.step { padding-top: 20px; border-top: 1px solid var(--moss); display: grid; gap: 8px; }
.step__num { font-family: var(--font-serif); font-style: italic; font-size: 2.25rem; line-height: 1; color: var(--ember-light); }
.step h3 { font-family: var(--font-sans); font-size: 1.25rem; font-weight: 600; color: var(--white); }
.step p { color: var(--sage-3); font-size: 1rem; }
@media (max-width: 719px) {
  .step { grid-template-columns: 48px 1fr; column-gap: 12px; }
  .step__num { grid-row: 1 / 3; font-size: 2rem; }
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.process { display: grid; gap: 20px; margin-top: clamp(40px, 6vw, 64px); }
.process__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.process__item figcaption { margin-top: 12px; font-size: 0.9375rem; font-weight: 500; color: var(--sage-3); }
@media (min-width: 700px) { .process { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* About */
.about { display: grid; gap: 28px; align-items: center; }
.about__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.about__copy { display: flex; flex-direction: column; gap: 18px; }
.about__copy p { color: var(--moss); font-size: 1.0625rem; line-height: 1.6; }
.about__copy p.eyebrow { color: var(--ember); margin: 0; line-height: 1.4; }
.about__actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }
@media (min-width: 900px) {
  .about { grid-template-columns: 440px 1fr; gap: clamp(32px, 5vw, 64px); }
  .about__media img { aspect-ratio: 4 / 5; }
}

/* Service area */
.areas { display: grid; gap: 24px; }
.area-card { background: var(--white); border-radius: var(--radius-lg); border: 1.5px solid var(--sage); padding: clamp(24px, 3vw, 32px); }
.area-card--fast { border-color: var(--ember); }
.area-card h3 { font-size: 1.375rem; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.tag { font-family: var(--font-sans); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); background: var(--ember); padding: 4px 10px; border-radius: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.chips li { font-size: 0.9375rem; font-weight: 500; padding: 8px 14px; border: 1px solid var(--sage); border-radius: 999px; }
@media (min-width: 720px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }

/* Reviews */
.reviews { display: grid; gap: 20px; }
.review { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 32px); border-radius: var(--radius-lg); border: 1.5px solid var(--sage); background: var(--birch); }
.review__stars { color: var(--ember); letter-spacing: 2px; font-size: 1rem; }
.review p:not(.review__stars) { font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.45; }
.review footer { font-size: 0.875rem; font-weight: 500; color: var(--moss-2); }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }

/* FAQ */
.faq { display: grid; gap: 32px; }
.faq__head h2 { margin-bottom: 14px; }
.faq__head .lead { margin-bottom: 24px; }
.faq__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.faq__media figcaption { margin-top: 10px; font-size: 0.875rem; color: var(--moss-2); }
.faq__item { border-top: 1px solid var(--sage-2); }
.faq__item:last-child { border-bottom: 1px solid var(--sage-2); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-size: 1.125rem; font-weight: 600;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--ember); border-bottom: 2px solid var(--ember);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq__item p { padding: 0 0 22px; color: var(--moss); font-size: 1rem; line-height: 1.55; max-width: 62ch; }
@media (max-width: 899px) { .faq__media { display: none; } }
@media (min-width: 900px) { .faq { grid-template-columns: 380px 1fr; gap: clamp(40px, 6vw, 64px); align-items: start; } }

/* Final CTA */
.cta { background: var(--ember); color: var(--white); padding-block: clamp(64px, 8vw, 96px); text-align: center; }
.cta__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cta h2 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.25rem); line-height: 1.08; max-width: 760px; }
.cta em { color: var(--white); }
.cta p { color: var(--ember-tint); font-size: 1.125rem; max-width: 560px; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding-top: 6px; width: 100%; }
@media (max-width: 599px) { .cta__actions .btn { flex: 1 1 100%; } }

/* Footer */
.site-footer { background: var(--forest); color: var(--sage-3); padding: clamp(40px, 6vw, 56px) 0 0; }
.footer__grid { display: grid; gap: 32px; }
.footer__name { font-family: var(--font-serif); font-size: 1.375rem; font-weight: 600; color: var(--birch); margin-bottom: 12px; }
.footer__brand p:not(.footer__name) { font-size: 0.9375rem; max-width: 340px; }
.footer__h { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--birch); margin-bottom: 10px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; font-size: 0.9375rem; }
.footer__links a { color: var(--sage-3); text-decoration: none; }
.footer__links a:hover { color: var(--white); text-decoration: underline; }
.footer__links a strong { color: var(--birch); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-block: 24px; border-top: 1px solid var(--moss); font-size: 0.8125rem; color: var(--moss-3); }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; } }
@media (max-width: 1023px) { .site-footer { padding-bottom: 92px; } }

/* Sticky mobile call bar */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--white); border-top: 1px solid var(--sage);
  box-shadow: 0 -8px 24px rgba(27,51,37,.10);
}
.callbar .btn { min-height: 52px; }
.callbar .btn--outline { flex: 0 0 96px; }
.callbar .btn--primary { flex: 1 1 auto; font-size: 1rem; }
@media (min-width: 1024px) { .callbar { display: none; } }

/* WordPress bits */
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.entry { padding-block: var(--section); }
.entry__inner { max-width: 760px; }
.entry h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.25rem); margin-bottom: 20px; }
.entry :is(h2, h3) { margin-top: 1.6em; margin-bottom: .5em; }
.entry :is(p, ul, ol) { margin-bottom: 1.1em; color: var(--moss); }
.entry ul { list-style: disc; padding-left: 1.3em; }
.entry ol { list-style: decimal; padding-left: 1.3em; }
.entry img { border-radius: var(--radius-lg); }
.town-hero { background: var(--birch); padding-block: clamp(40px, 6vw, 72px); }
.town-hero h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.25rem); margin-bottom: 16px; }
.town-hero .lead { max-width: 640px; margin-bottom: 24px; }
.town-hero .hero__actions { margin-top: 8px; }
.nf-form-cont { max-width: 640px; }
.nf-form-cont .nf-field-element input, .nf-form-cont .nf-field-element textarea { font-family: var(--font-sans); font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--sage-2); border-radius: var(--radius); }
.nf-form-cont .nf-field-element input[type=button] { background: var(--ember); color: #fff; font-weight: 700; border: 0; cursor: pointer; }
.error-404 { text-align: center; }
