/* Grits & Peper — Southern Made Advertising
   Restrained editorial system: white / black / charcoal (#272727),
   Raleway, square corners, generous whitespace, full-bleed photography. */

:root {
  --charcoal: #272727;
  --near-black: #111111;
  --body-gray: #5c5c5c;
  --light-gray: #f4f4f4;
  --header-h: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  font-family: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  color: var(--charcoal);
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
  margin: 0 0 0.6em;
}
h2 { font-size: clamp(24px, 3.4vw, 34px); }
h3 { font-size: clamp(15px, 1.7vw, 18px); }
p { margin: 0 0 1.2em; color: var(--body-gray); font-size: 16px; }

a { color: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap;
}

.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 200;
  background: var(--near-black); color: #fff; padding: 10px 16px;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px;
  transition: top 180ms ease;
}
.skip-link:focus { top: 8px; }

/* ── Navigation ─────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 24px;
  background: rgba(39, 39, 39, 0.38);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: background 200ms ease, box-shadow 200ms ease, padding 200ms ease;
}
.site-nav.scrolled {
  background: rgba(20, 20, 20, 0.72);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 10px 24px;
}
.nav-inner {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: clamp(12px, 3vw, 32px);
}
.nav-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: clamp(14px, 3vw, 40px);
}
.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; }
.nav-links a {
  color: #fff; text-decoration: none; text-transform: uppercase;
  letter-spacing: 0.22em; font-size: 13px; font-weight: 500;
  padding: 6px 2px;
  transition: opacity 180ms ease;
}
.nav-links a:hover, .nav-links a:focus-visible { opacity: 0.65; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.nav-brand {
  grid-column: 2; justify-self: center;
  color: #fff; text-decoration: none; white-space: nowrap;
  text-transform: uppercase; font-weight: 800;
  letter-spacing: 0.12em; font-size: clamp(19px, 2.4vw, 27px); line-height: 1;
  transition: opacity 180ms ease;
}
.nav-brand:hover, .nav-brand:focus-visible { opacity: 0.8; }

.nav-toggle { display: none; }

@media (max-width: 767px) {
  .nav-inner {
    position: relative; display: flex; flex-wrap: wrap; align-items: center;
  }
  .nav-toggle {
    position: absolute; left: 0; top: 50%; transform: translateY(-50%); z-index: 2;
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: 0; padding: 8px; cursor: pointer;
  }
  .nav-toggle-bar { width: 24px; height: 2px; background: #fff; display: block; }
  .nav-brand { order: 2; flex-basis: 100%; text-align: center; font-size: 19px; }
  .nav-links {
    order: 4; flex-basis: 100%;
    display: none;
    flex-direction: column; align-items: center; gap: 4px;
    padding: 8px 0 4px;
  }
  .nav-links a { display: block; padding: 12px; }
  .site-nav.open { background: rgba(20, 20, 20, 0.9); }
  .site-nav.open .nav-links { display: flex; }
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  background-image: url("/assets/wormsloe-hero.webp");
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  padding: 96px 24px 48px;
}
.hero-logo {
  width: min(780px, 90vw);
  height: auto;
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, 0.35));
}

/* ── Shared section rhythm ──────────────────────────────────── */
section { padding: clamp(64px, 9vw, 120px) 24px; }
.about, .locations { background: #fff; }
.services { background: var(--light-gray); }

/* ── About ──────────────────────────────────────────────────── */
.about-top {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  max-width: 1100px; margin: 0 auto clamp(28px, 4vw, 56px);
}
.about-heading h3 { color: var(--body-gray); font-weight: 400; letter-spacing: 0.2em; }
.about-copy { max-width: 820px; margin: 0 auto; }
.about-tagline { color: var(--charcoal); font-weight: 400; }

.social-row {
  display: flex; justify-content: center; gap: 36px;
  margin-top: clamp(24px, 4vw, 48px);
}
.social-row a {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; text-transform: uppercase;
  letter-spacing: 0.18em; font-size: 12px; font-weight: 500;
  transition: opacity 180ms ease;
}
.social-row a:hover { opacity: 0.6; }
.social-icon { width: 22px; height: 22px; }

@media (max-width: 767px) {
  .about-top { grid-template-columns: 1fr; }
}

/* ── Services ───────────────────────────────────────────────── */
.services h2 { text-align: center; }
.services-intro { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 64px); text-align: center; }
.services-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.5vw, 48px);
  max-width: 1180px; margin: 0 auto;
}
.service img { width: 100%; height: 240px; object-fit: cover; margin-bottom: 20px; }
.service h3 { text-align: center; }
.service p { font-size: 15px; }
@media (max-width: 991px) {
  .services-grid { grid-template-columns: 1fr; max-width: 640px; }
}

/* ── Divider ────────────────────────────────────────────────── */
.divider {
  height: clamp(280px, 46vw, 560px);
  background-size: cover; background-position: center;
}

/* ── Locations ──────────────────────────────────────────────── */
.locations-hero { width: min(80%, 900px); margin: 0 auto clamp(36px, 5vw, 72px); }
.locations-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
  max-width: 1000px; margin: 0 auto;
}
.location { text-align: center; }
.location p { margin-bottom: 0.3em; }
.location a { text-decoration: none; }
.map-wrap { margin-top: 18px; aspect-ratio: 4 / 3; background: var(--light-gray); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 767px) {
  .locations-grid { grid-template-columns: 1fr; }
}

/* ── Contact ────────────────────────────────────────────────── */
.contact { background: var(--light-gray); text-align: center; }
.contact-hello { width: min(420px, 70vw); margin: 0 auto clamp(28px, 4vw, 48px); }
.contact-statement {
  max-width: 860px; margin: 0 auto clamp(36px, 5vw, 60px);
  text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 14px; line-height: 2;
}
.contact-form { max-width: 640px; margin: 0 auto; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.16em; margin-bottom: 7px; color: var(--charcoal);
}
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid #cfcfcf; background: #fff;
  font: inherit; color: var(--charcoal);
  border-radius: 0;
}
.form-field input:focus-visible, .form-field textarea:focus-visible {
  outline: 2px solid var(--near-black); outline-offset: 1px;
}
.form-field input[aria-invalid="true"], .form-field textarea[aria-invalid="true"] {
  border-color: #b3261e;
}
.hp-field { position: absolute; left: -9999px; height: 1px; overflow: hidden; }
.submit-btn {
  display: inline-block; background: var(--near-black); color: #fff;
  border: 0; border-radius: 0; cursor: pointer;
  padding: 14px 46px; font: inherit; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 13px;
  transition: opacity 180ms ease;
}
.submit-btn:hover { opacity: 0.8; }
.submit-btn[disabled] { opacity: 0.5; cursor: wait; }
.form-status { min-height: 24px; margin-top: 14px; font-size: 14px; }
.form-status.ok { color: #1e6b34; }
.form-status.err { color: #b3261e; }
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--charcoal); color: #cfcfcf;
  text-align: center; padding: 34px 24px 90px;
}
.site-footer p { color: #cfcfcf; font-size: 13px; letter-spacing: 0.1em; margin: 0; }
.footer-social { margin: 0 0 14px; }
.footer-social a {
  color: #cfcfcf; font-size: 11px; text-decoration: none;
  text-transform: uppercase; letter-spacing: 0.18em;
}

/* ── Cookie bar ─────────────────────────────────────────────── */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: #fafafa; border-top: 1px solid #ddd;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 12px 18px; flex-wrap: wrap;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; font-size: 12.5px; color: var(--charcoal); }
.cookie-bar button {
  background: var(--near-black); color: #fff; border: 0; border-radius: 0;
  padding: 8px 26px; font: inherit; font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; cursor: pointer;
}
