/* ==========================================================================
   Peterborough Epoxy Flooring - site styles (hand-written, not generated)
   Recreates the SitePanda layout of the original peterboroughepoxyflooring.com:
   lime + charcoal palette, Rubik headings, photo hero with a white diagonal,
   lime card bands, photo/text splits and a charcoal footer.
   After editing, rerun build.py so the ?v= fingerprint in every page updates.
   ========================================================================== */

:root {
  --color-lime: #C9D356;          /* brand lime from the original site */
  --color-lime-dark: #5F6B12;     /* lime family, dark enough for text on white (5.8:1) */
  --color-dark: #333333;          /* header on scroll + footer (theme-color) */
  --color-text: #353535;          /* body text, 12.3:1 on white */
  --color-muted: #555555;         /* big phone numbers, 7.5:1 on white */
  --color-well: #F2F2F2;          /* form fields, FAQ items */
  --color-border-strong: #8A8A8A; /* input borders, 3.45:1 on white */
  --color-white: #FFFFFF;
  --font-head: "Rubik", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Lato", "Helvetica Neue", Arial, sans-serif;
  --container: 1140px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--color-white); color: var(--color-text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--color-lime-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--color-text); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--color-text); line-height: 1.25; margin: 0 0 .6em; font-weight: 500; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3 { font-size: clamp(1.4rem, 2.3vw, 1.85rem); }
h4 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 900px; }
.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: -9999px; top: 8px; z-index: 200; background: var(--color-lime); color: #1f1f1f; padding: 8px 14px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--color-lime-dark); outline-offset: 2px; }

/* ----- buttons ----- */
.btn {
  display: inline-block; background: var(--color-lime); color: #1f1f1f;
  font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: .02em;
  text-transform: uppercase; text-decoration: none; text-align: center;
  padding: 13px 64px; border-radius: 999px; border: 0; cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover { background: #B7C23F; color: #1f1f1f; transform: translateY(-1px); }
.btn-wrap { text-align: center; margin: 1.2em 0; }
.big-phone { text-align: center; font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2rem); margin: .3em 0 0; }
.big-phone a { color: var(--color-muted); text-decoration: none; }

/* ----- header / nav ----- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .25s, box-shadow .25s; }
.site-header.is-scrolled, .site-header.is-open { background: var(--color-dark); box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.site-header__inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: center; min-height: 72px; }
.site-header.is-scrolled .site-header__inner { min-height: 52px; }
.site-header__brand { display: none; color: #fff; font-family: var(--font-head); font-weight: 700; text-decoration: none; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; align-items: center; }
.nav__list > li { position: relative; display: flex; align-items: center; }
.nav__link { color: #fff; font-family: var(--font-head); font-weight: 500; font-size: 1rem; text-decoration: none; padding: 10px 12px; text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.nav__link:hover, .nav__link.is-active { color: var(--color-lime); }
.nav__toggle { background: none; border: 0; width: 22px; height: 30px; margin-left: -8px; cursor: pointer; position: relative; }
.nav__toggle::after { content: ""; position: absolute; left: 6px; top: 10px; width: 6px; height: 6px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.nav__submenu { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 250px; background: var(--color-dark); box-shadow: 0 8px 20px rgba(0,0,0,.25); display: none; }
.nav__item--has-menu:hover .nav__submenu, .nav__item--has-menu:focus-within .nav__submenu, .nav__submenu.is-open { display: block; }
.nav__submenu a { display: block; padding: 8px 18px; color: #fff; text-decoration: none; font-size: .95rem; }
.nav__submenu a:hover, .nav__submenu a[aria-current="page"] { color: var(--color-lime); }
.nav-burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-burger span { display: block; height: 2px; background: #fff; margin: 5px 0; }

/* ----- hero ----- */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; background: #2a2a2a; }
.hero__media, .hero__media picture { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 150px; background: #fff; clip-path: polygon(0 100%, 100% 25%, 100% 100%); }
.hero__inner { position: relative; z-index: 1; padding: 120px var(--gutter) 170px; }
.hero__title, .hero__brand { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0; line-height: 1.15; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.hero__phone { display: block; font-family: var(--font-head); font-weight: 700; color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); text-decoration: none; margin: 4px 0 18px; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.hero__phone:hover { color: var(--color-lime); }
.hero--plain { min-height: 320px; background: var(--color-dark); }
.hero--plain .hero__inner { padding: 110px var(--gutter) 110px; }

/* ----- rows ----- */
.row { position: relative; }
.row--intro { padding: 30px 0 60px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.prose h1 { font-weight: 400; }
.prose h1 + h4, .prose h2 + h4 { margin-top: 1.2em; }
.prose h4 { margin-top: 1.6em; }
.prose ul { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin: .25em 0; }
.list-2col { columns: 2; column-gap: 40px; }
.row--center { padding: 30px 0 50px; }
.row--center .prose h4 { margin-top: 0; }
.row--center .prose h4 + p, .row--center .prose { text-align: left; }
.row--prose { padding: 60px 0 40px; font-size: 1rem; }
.row--twocol { padding: 70px 0 70px; }
.twocol h2 { font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.twocol h2::after { content: ""; display: block; width: 40px; height: 2px; background: #bbb; margin-top: 18px; }

/* split: photo half + text half */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: #fff; }
.split__media { min-height: 380px; position: relative; }
.split__media picture, .split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__text { padding: 60px clamp(24px, 5vw, 70px); align-self: center; max-width: 640px; }
.split--img-right .split__media { order: 2; }
.split h2, .split h3 { font-weight: 400; }

/* call band */
.callband { padding: 40px 0 30px; text-align: center; border-bottom: 1px solid #ddd; }
.callband .btn-wrap { margin: 0 0 .4em; }

/* lime card band */
.cardband { padding-top: 40px; }
.cards-head { text-align: center; font-weight: 400; margin: 10px 0 30px; }
.cardband__lime { background: var(--color-lime); padding: 90px 0 110px; clip-path: polygon(0 60px, 100% 0, 100% calc(100% - 60px), 0 100%); }
.cards3 { background: #fff; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; padding: 40px 34px 30px; box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.card3 { text-align: center; font-size: .95rem; }
.card3 svg { margin: 0 auto 10px; color: var(--color-text); }
.card3 h4 { margin-top: 0; }

/* photo band with dark overlay and white diagonals */
.photoband { position: relative; color: #fff; text-align: center; padding: 140px 0; overflow: hidden; margin: 20px 0; }
.photoband__media, .photoband__media picture { position: absolute; inset: 0; }
.photoband__media img { width: 100%; height: 100%; object-fit: cover; }
.photoband__media::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.photoband::before, .photoband::after { content: ""; position: absolute; left: 0; right: 0; height: 90px; background: #fff; z-index: 1; }
.photoband::before { top: -1px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.photoband::after { bottom: -1px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.photoband__inner { position: relative; z-index: 2; }
.photoband h2 { color: #fff; font-weight: 700; }
.photoband p { color: #fff; font-weight: 700; }
.photoband a:not(.btn) { color: var(--color-lime); }

/* FAQ */
.faqband__head { position: relative; text-align: center; color: #fff; padding: 60px var(--gutter); overflow: hidden; }
.faqband__media, .faqband__media picture { position: absolute; inset: 0; }
.faqband__media img { width: 100%; height: 100%; object-fit: cover; }
.faqband__media::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.faqband__title { position: relative; z-index: 1; }
.faqband__title h2 { color: #fff; font-weight: 700; margin-bottom: .3em; }
.faqband__title p { color: #fff; font-family: var(--font-head); font-size: 1.2rem; margin: .4em 0 0; }
.rule { display: block; width: 50px; height: 2px; background: var(--color-lime); margin: 0 auto; }
.faq { padding: 40px var(--gutter) 60px; }
.faq__item { background: var(--color-well); margin-bottom: 10px; }
.faq__q { margin: 0; font-size: 1rem; }
.faq__trigger { width: 100%; text-align: left; background: none; border: 0; padding: 16px 48px 16px 18px; font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--color-text); cursor: pointer; position: relative; }
.faq__trigger::after { content: ""; position: absolute; right: 22px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--color-lime-dark); border-bottom: 2px solid var(--color-lime-dark); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq__trigger[aria-expanded="true"]::after { transform: translateY(-30%) rotate(-135deg); }
.faq__panel { padding: 0 18px 12px; font-size: .95rem; }

/* map row */
.maprow { padding: 30px 0 60px; }
.map { max-width: 700px; margin: 24px auto 0; aspect-ratio: 16 / 10; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ----- quote form (the lime FREE QUOTE box) ----- */
.quote-box { border: 8px solid var(--color-lime); background: #fff; }
.quote-box__head { background: var(--color-dark); padding: 26px 16px 22px; text-align: center; border-bottom: 6px solid var(--color-lime); }
.quote-box__head span { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: .03em; color: var(--color-lime); text-transform: uppercase; }
.lead-form { padding: 22px 22px 26px; }
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-family: var(--font-head); font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--color-text); background: var(--color-well); border: 1px solid var(--color-border-strong); border-radius: 2px; padding: 9px 10px; }
.field textarea { resize: vertical; min-height: 100px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B00020; }
.field__error { display: block; color: #B00020; font-size: .85rem; min-height: 0; }
.btn--submit { display: block; margin: 8px 0 0 auto; padding: 11px 50px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { display: none; margin: 18px 22px 0; padding: 14px 16px; background: #F4F7D9; border-left: 5px solid var(--color-lime-dark); }
.form-success.is-visible { display: block; }
.form-success p { margin: 0; }

/* ----- footer ----- */
.footer-band { height: 110px; position: relative; overflow: hidden; }
.footer-band picture, .footer-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.site-footer { background: var(--color-dark); color: #fff; padding: 60px 0 20px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; }
.footer-h { color: var(--color-lime); font-size: 1.05rem; font-weight: 500; margin-bottom: 1em; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--color-lime); }
.footer-links, .footer-sub { list-style: none; margin: 0; padding: 0; }
.footer-links > li { margin-bottom: 8px; }
.footer-sub { padding: 6px 0 0 14px; font-size: .88rem; }
.footer-sub li { margin-bottom: 4px; }
.footer-co { line-height: 1.8; }
.footer-legal { border-top: 1px solid #4a4a4a; margin-top: 40px; padding-top: 16px; font-size: .82rem; color: #ccc; }
.footer-legal a { text-decoration: underline; }
.mobile-call { display: none; }

/* ----- responsive ----- */
@media (max-width: 900px) {
  .site-header { background: var(--color-dark); }
  .site-header__inner { justify-content: space-between; min-height: 58px; }
  .site-header__brand { display: block; }
  .nav-burger { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-dark); padding: 8px 0 16px; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { flex-wrap: wrap; }
  .nav__link { flex: 1; padding: 12px var(--gutter); text-shadow: none; }
  .nav__toggle { width: 52px; height: 46px; margin: 0; }
  .nav__toggle::after { left: 20px; top: 16px; }
  .nav__submenu { position: static; width: 100%; box-shadow: none; display: none; }
  .nav__item--has-menu:hover .nav__submenu { display: none; }
  .nav__submenu.is-open, .nav__item--has-menu:focus-within .nav__submenu.is-open { display: block; }
  .nav__submenu a { padding-left: calc(var(--gutter) + 14px); }
  .hero { min-height: 500px; }
  .hero__inner { padding: 110px var(--gutter) 130px; }
  .hero::after { height: 80px; }
  .grid-2, .split, .footer-grid, .cards3 { grid-template-columns: 1fr; }
  .grid-2 { gap: 36px; }
  .split--img-right .split__media { order: 0; }
  .split__media { min-height: 260px; }
  .split__text { padding: 36px var(--gutter); }
  .cards3 { padding: 30px 22px; }
  .cardband__lime { padding: 60px 0 80px; clip-path: polygon(0 30px, 100% 0, 100% calc(100% - 30px), 0 100%); }
  .photoband { padding: 100px 0; }
  .photoband::before, .photoband::after { height: 50px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .btn { padding: 13px 40px; }
  .btn--submit { width: 100%; }
  body { padding-bottom: 56px; }
  .mobile-call { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--color-lime); color: #1f1f1f; text-align: center; font-family: var(--font-head); font-weight: 700; padding: 15px; text-decoration: none; box-shadow: 0 -2px 10px rgba(0,0,0,.2); }
}
@media (max-width: 520px) {
  .list-2col { columns: 1; }
  .quote-box { border-width: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .site-header { transition: none; }
}
