/* FP Projects LLC — components on top of Tailwind CDN utilities.
   Brand values come from config/site.php via CSS variables set in the <head>. */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-var.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 767px) { body { padding-bottom: 72px; } } /* room for the mobile action bar */

.display    { font-weight: 800; letter-spacing: -0.015em; line-height: 1.08; }
.display-md { font-weight: 700; letter-spacing: -0.005em; line-height: 1.2; }
.h1 { font-size: clamp(2.1rem, 4.3vw, 3.5rem); }
.h2 { font-size: clamp(1.75rem, 3.3vw, 2.5rem); }
.h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); }

.eyebrow {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--turf-text); margin-bottom: .7rem;
}
.on-dark .eyebrow, .eyebrow-light { color: var(--turf); }

.lead { font-size: clamp(1.02rem, 1.4vw, 1.12rem); line-height: 1.65; color: var(--steel); max-width: 36em; }
.prose-fp p { max-width: 38em; margin-bottom: 1em; }
.prose-fp p:last-child { margin-bottom: 0; }

a { text-underline-offset: 0.18em; }
.link { color: var(--turf-text); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; }
.link:hover { color: var(--ink); }
.link-more { display: inline-flex; align-items: center; gap: .4rem; color: var(--turf-text); font-weight: 700; }
.link-more svg { width: 1rem; height: 1rem; transition: transform .15s ease; }
.link-more:hover svg { transform: translateX(3px); }

:focus-visible { outline: 3px solid var(--turf); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .75rem 1.6rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--turf-deep); color: #fff; border: 2px solid var(--turf-deep); }
.btn-primary:hover { background: #24631B; border-color: #24631B; }
.btn-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.9); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-outline { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; border: 2px solid var(--ink); }
.btn-dark:hover { background: #000; }
.btn-sm { min-height: 44px; padding: .55rem 1.3rem; font-size: .95rem; }

/* ---------- Header / nav ---------- */
.site-header { background: #fff; box-shadow: 0 1px 0 var(--line); }
.nav-link { font-weight: 500; color: var(--ink); padding: .5rem .1rem; border-bottom: 2px solid transparent; }
.nav-link:hover, .nav-link.is-active { border-bottom-color: var(--turf); }
.dropdown-panel {
  position: absolute; left: -1rem; top: calc(100% + .8rem); width: 22rem; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .5rem;
  box-shadow: 0 18px 40px -12px rgba(18,22,25,.25);
}
.dropdown-item { display: block; padding: .75rem .9rem; border-radius: 8px; }
.dropdown-item:hover, .dropdown-item.is-active { background: var(--mist); }
[aria-expanded="true"] [data-dropdown-icon] { transform: rotate(180deg); }
.mobile-link { display: block; padding: .9rem 0; font-weight: 700; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
.mobile-link.is-active { color: var(--turf-text); }
.action-bar { box-shadow: 0 -1px 0 var(--line); }

/* <picture> wrappers fill their media box */
.hero-media picture, .svc-media picture, .areas-photo picture { display: block; width: 100%; height: 100%; }

/* ---------- Hero (photo + charcoal fade) ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 55%; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(18,22,25,.96) 0%, rgba(18,22,25,.88) 34%, rgba(18,22,25,.45) 56%, rgba(18,22,25,0) 76%),
    linear-gradient(0deg, rgba(18,22,25,.35), rgba(18,22,25,0) 40%);
}
@media (max-width: 767px) { .hero-shade { background: rgba(18,22,25,.78); } }
.hero .lead { color: rgba(255,255,255,.88); }

/* ---------- Trust strip ---------- */
.trust li { display: flex; align-items: center; justify-content: center; gap: .9rem; font-weight: 500; }
.trust svg { color: var(--turf); width: 2.1rem; height: 2.1rem; flex: none; }
@media (min-width: 768px) { .trust li + li { border-left: 1px solid var(--line); } }

/* ---------- Service cards ---------- */
.svc-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 2px rgba(18,22,25,.06), 0 10px 28px -14px rgba(18,22,25,.22); display: flex; flex-direction: column; }
.svc-media { position: relative; aspect-ratio: 2.15 / 1; background: linear-gradient(135deg, #2F4A2A, var(--ink)); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-badge {
  position: absolute; left: 1.4rem; bottom: -1.75rem; width: 3.5rem; height: 3.5rem; border-radius: 999px;
  background: var(--turf-deep); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px #fff;
}
.svc-badge svg { width: 1.6rem; height: 1.6rem; }
.svc-body { padding: 2.6rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.svc-body hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }
.svc-summary { flex-grow: 1; color: var(--steel); font-size: .95rem; }

/* ---------- Areas + brand + form split ---------- */
.areas-panel { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.areas-photo { display: none; }
.areas-copy { padding: 3rem 1.25rem; }
@media (min-width: 640px) {
  .areas-photo { display: block; position: absolute; inset: 0 auto 0 0; width: 36%; clip-path: polygon(0 0, 100% 0, 58% 100%, 0 100%); }
  .areas-copy { padding: 3.25rem 2.5rem 3.25rem calc(36% + .5rem); }
}
.areas-list { columns: 2; column-gap: 1.5rem; font-size: .9rem; }
@media (min-width: 1100px) { .areas-list { columns: 3; } }
.areas-list li { break-inside: avoid; padding: .2rem 0; color: rgba(255,255,255,.9); }
.brand-panel { background: #0D1012; color: #fff; border-top: 1px solid rgba(255,255,255,.08); }
.brand-rule { width: 3rem; height: 3px; background: var(--turf); border-radius: 2px; }

/* Full-bleed split panels aligned to the 76rem container */
@media (min-width: 1024px) {
  .bleed-l { padding-left: max(2rem, calc((100vw - 76rem) / 2 + 2rem)) !important; }
  .bleed-r { padding-right: max(2rem, calc((100vw - 76rem) / 2 + 2rem)) !important; }
}

/* ---------- Checks list (about page) ---------- */
.checks li { position: relative; padding-left: 1.8rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.1rem; height: 1.1rem; border-radius: 999px; background: var(--turf-deep);
}
.checks li::after {
  content: ""; position: absolute; left: .38rem; top: calc(.3em + .2rem); width: .34rem; height: .6rem;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ---------- Season chart (service pages) ---------- */
.season { --cell-h: 1.9rem; }
.season-grid { display: grid; grid-template-columns: minmax(7rem, 8.5rem) repeat(12, 1fr); align-items: center; column-gap: 3px; row-gap: .5rem; }
.season-month { font-size: .75rem; font-weight: 600; color: var(--steel); text-align: center; padding-bottom: .25rem; }
.season-month.is-now { color: var(--ink); font-weight: 800; }
.season-label { font-weight: 700; font-size: .92rem; line-height: 1.2; padding-right: .6rem; }
.season-label a:hover { color: var(--turf-text); }
.season-cell { height: var(--cell-h); background: var(--mist); }
.season-cell.on { background: var(--turf); }
.season-cell.on.snow { background: var(--ink); }
.season-cell.is-now { box-shadow: 0 0 0 2px var(--ink); position: relative; z-index: 1; }
.season-cell.on.first { border-top-left-radius: 999px; border-bottom-left-radius: 999px; }
.season-cell.on.last  { border-top-right-radius: 999px; border-bottom-right-radius: 999px; }
@media (max-width: 479px) {
  .season-grid { grid-template-columns: 5.4rem repeat(12, 1fr); column-gap: 2px; }
  .season-label { font-size: .8rem; } .season-month { font-size: .64rem; } .season { --cell-h: 1.5rem; }
}

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 999px; background: var(--turf-deep); position: relative; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: .7rem; height: 2px; background: #fff; transform: translate(-50%, -50%); }
.faq summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s ease; }
.faq details[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq details > div { padding: 0 0 1.2rem; max-width: 40em; color: var(--steel); }

/* ---------- Form ---------- */
.field-label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .45rem; }
.field-label .opt { font-weight: 400; color: var(--steel); }
.field {
  width: 100%; background: #fff; color: var(--ink);
  border: 1px solid #C9CFC6; border-radius: 4px; padding: .7rem .85rem; font-size: .95rem; line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field::placeholder { color: #737A70; opacity: 1; }
.field:hover { border-color: var(--steel); }
.field:focus { outline: none; border-color: var(--turf-deep); box-shadow: 0 0 0 3px rgba(94,186,79,.35); }
.field[aria-invalid="true"] { border-color: #B42318; }
.field-help { font-size: .85rem; color: var(--steel); margin-top: .35rem; }
.field-error { font-size: .85rem; color: #B42318; font-weight: 600; margin-top: .35rem; }

.choice {
  display: flex; align-items: center; gap: .65rem; cursor: pointer; user-select: none;
  border: 1px solid #C9CFC6; border-radius: 4px; background: #fff; padding: .62rem .75rem; font-size: .875rem; font-weight: 500; white-space: nowrap;
}
.choice:hover { border-color: var(--steel); }
.choice input { appearance: none; -webkit-appearance: none; flex: none; width: 1.05rem; height: 1.05rem; border: 1.5px solid #8A9187; border-radius: 3px; background: #fff; display: grid; place-content: center; }
.choice input::after { content: ""; width: .32rem; height: .58rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; }
.choice input:checked { background: var(--turf-deep); border-color: var(--turf-deep); }
.choice input:checked::after { opacity: 1; }
.choice:has(input:checked) { border-color: var(--turf-deep); background: #F1F8EF; }
.choice:has(input:focus-visible) { outline: 3px solid var(--turf); outline-offset: 2px; }
fieldset[aria-invalid="true"] .choice { border-color: #B42318; }

.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-left: 4px solid #B42318; background: #FEF3F2; padding: .8rem 1rem; font-weight: 600; font-size: .92rem; }
.spinner { width: 1.1em; height: 1.1em; border-radius: 999px; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.grecaptcha-badge { visibility: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--turf); }
@media (min-width: 768px) { .footer-col + .footer-col { border-left: 1px solid rgba(255,255,255,.14); } }
.footer-contact svg { color: #fff; width: 1.05rem; height: 1.05rem; flex: none; margin-top: .2rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
