/* Crabby's PPE — homepage mockup. Colors from the business-card brand: crab red #E31E24, navy #0B2A5B. */

@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #e31e24;
  --red-dark: #c4181e;
  --navy: #0b2a5b;
  --navy-deep: #071c3d;
  --sand: #f6f1e8;
  --sand-2: #efe6d6;
  --ink: #1c2430;
  --muted: #4a5564;
  --line: #d9cfc0;
  --white: #ffffff;
  --max: 70rem;
  --radius: 0.85rem;
  --header-h: 4.25rem;
  --sticky-h: 4.25rem;
  --shadow: 0 0.5rem 1.5rem rgba(11, 42, 91, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  color: var(--ink);
  font-family: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  background: var(--sand);
}

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

a {
  color: var(--navy);
  text-underline-offset: 0.15em;
}

a:hover { color: var(--red); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 200;
  background: var(--white);
  color: var(--navy);
  padding: 0.5rem 0.85rem;
  border-radius: 0.35rem;
  font-weight: 600;
}

.skip:focus { top: 0.75rem; }

.wrap {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.section {
  padding: 3.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin: 0 0 1.75rem;
}

.section-head h2,
.panel h2,
.form-card h2 {
  font-family: "Fredoka", "Source Sans 3", sans-serif;
  font-weight: 650;
  font-size: clamp(1.6rem, 2.4vw, 2.05rem);
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.6rem;
}

.lede { margin: 0; color: var(--muted); font-size: 1.1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--navy);
  color: var(--white);
  border-bottom: 4px solid var(--red);
  min-height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  text-decoration: none;
  min-width: 0;
}

.brand:hover { color: var(--white); }

.brand img {
  width: 3.15rem;
  height: auto;
  flex: none;
}

.brand-name {
  display: block;
  font-family: "Fredoka", sans-serif;
  font-weight: 650;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.brand-tag {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.nav-toggle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.nav-button {
  display: none;
  cursor: pointer;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0.4rem;
  padding: 0.4rem 0.7rem;
  font-weight: 700;
  font-size: 0.95rem;
  align-items: center;
  gap: 0.45rem;
  line-height: 1;
}
.nav-button::before {
  content: "";
  width: 1rem;
  height: 0.7rem;
  flex: none;
  background:
    linear-gradient(#fff, #fff) 0 0 / 100% 2px no-repeat,
    linear-gradient(#fff, #fff) 0 50% / 100% 2px no-repeat,
    linear-gradient(#fff, #fff) 0 100% / 100% 2px no-repeat;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.05rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.site-nav a:hover { color: #ffd6d6; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  border-radius: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1.2;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.btn-red {
  background: var(--red);
  color: var(--white) !important;
  border-color: var(--red);
}

.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn-navy {
  background: var(--navy);
  color: var(--white) !important;
  border-color: var(--navy);
}

.btn-navy:hover { background: var(--navy-deep); }

.btn-outline {
  background: transparent;
  color: var(--navy) !important;
  border-color: var(--navy);
}

.btn-outline:hover { background: var(--navy); color: var(--white) !important; }

.btn-ghost {
  background: transparent;
  color: var(--white) !important;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.site-nav .btn { padding: 0.45rem 0.85rem; font-size: 0.95rem; }

/* Hero */
.hero {
  padding: 2.75rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 16.5rem) minmax(0, 1fr);
  gap: 2rem 2.5rem;
  align-items: center;
}

.hero-logo {
  background: var(--white);
  border-radius: 1.1rem;
  padding: 0.85rem;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-family: "Fredoka", sans-serif;
  font-weight: 650;
  font-size: clamp(2rem, 4.2vw, 3.05rem);
  line-height: 1.12;
  color: var(--navy);
  margin: 0 0 0.85rem;
}

.hero .intro {
  margin: 0 0 1.35rem;
  font-size: 1.18rem;
  color: var(--ink);
  max-width: 40rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.15rem;
}

.hero-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Steps */
.steps {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.35rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: "Fredoka", sans-serif;
  font-weight: 650;
  margin-bottom: 0.65rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  color: var(--navy);
  font-size: 1.15rem;
}

.step p { margin: 0; color: var(--muted); }

/* Products */
.product-groups { display: grid; gap: 1.5rem; }

.product-group h3 {
  margin: 0 0 0.75rem;
  color: var(--navy);
  font-size: 1.2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.05rem 1.1rem;
  box-shadow: var(--shadow);
}

.card h4 {
  margin: 0 0 0.35rem;
  color: var(--navy);
  font-size: 1.05rem;
}

.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.price-note {
  margin: 1.25rem 0 0;
  font-weight: 600;
  color: var(--navy);
}

/* Who we serve */
.serve {
  background: var(--navy);
  color: var(--white);
}

.serve .section-head h2,
.serve .lede { color: var(--white); }

.serve .lede { opacity: 0.9; }

.serve-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
}

.serve-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1rem 0.95rem 1.1rem;
}

.serve-card svg {
  width: 1.7rem;
  height: 1.7rem;
  stroke: #ffffff;
  fill: none;
  stroke-width: 1.8;
  margin-bottom: 0.55rem;
}

.serve-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.serve-card p { margin: 0; font-size: 0.95rem; color: rgba(255, 255, 255, 0.82); }

/* Service area */
.kicker {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}

.town-paragraph {
  max-width: 50rem;
  margin: 0 0 1.5rem;
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.region {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.15rem;
}

.region h3 {
  margin: 0 0 0.45rem;
  color: var(--navy);
  font-size: 1.05rem;
}

.region ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.region li {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: stretch;
}

.about-copy,
.photo-placeholder,
.existing,
.form-card,
.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-copy {
  padding: 1.4rem 1.4rem 1.5rem;
  max-width: 46rem;
}
.about-copy p { margin: 0 0 0.85rem; }
.about-copy p:last-child { margin-bottom: 0; }

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  min-height: 16rem;
  border-style: dashed;
  border-width: 2px;
  background: var(--sand-2);
  box-shadow: none;
  color: var(--navy);
}

.photo-placeholder strong { display: block; font-size: 1.1rem; margin: 0.5rem 0 0.3rem; }
.photo-placeholder p { margin: 0; color: var(--muted); max-width: 16rem; }

/* Existing customers */
.existing {
  padding: 1.35rem 1.4rem 1.5rem;
  border-left: 6px solid var(--red);
}

.existing h2 { margin-top: 0; }
.existing p { margin: 0 0 0.6rem; }
.existing p:last-child { margin-bottom: 0; }
.existing a { font-weight: 700; }

/* FAQ */
.faq-list { display: grid; gap: 0.65rem; }

.faq-list details { padding: 0.15rem 0.2rem; }

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  padding: 0.85rem 1rem;
  list-style-position: outside;
}

.faq-list summary::-webkit-details-marker { color: var(--red); }

.faq-list details p {
  margin: 0;
  padding: 0 1rem 1rem 1rem;
  color: var(--muted);
}

/* Quote + contact */
.quote-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
}

.form-card { padding: 1.35rem 1.4rem 1.55rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}

.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field-full { grid-column: 1 / -1; }

label { font-weight: 700; color: var(--navy); font-size: 0.95rem; }

input, select, textarea {
  font: inherit;
  color: var(--ink);
  border: 1px solid #c9c0b2;
  border-radius: 0.45rem;
  padding: 0.55rem 0.7rem;
  background: var(--white);
  width: 100%;
}

textarea { min-height: 6.5rem; resize: vertical; }

.form-actions { margin-top: 1rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }

#form-note {
  background: var(--sand);
  border-left: 4px solid var(--navy);
  padding: 0.7rem 0.85rem;
  color: var(--navy);
  font-weight: 600;
}

.hours {
  margin: 0 0 0.85rem;
  font-weight: 700;
  color: var(--navy);
}

.contact-aside h2 { margin-top: 0; }

.people { display: grid; gap: 0.85rem; }

.person {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.person h3 { margin: 0 0 0.15rem; color: var(--navy); }
.person .title { margin: 0 0 0.5rem; color: var(--muted); font-size: 0.95rem; }
.person p { margin: 0.15rem 0; }
.person a { font-weight: 700; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 2rem 0 2.4rem;
  border-top: 4px solid var(--red);
}

.site-footer a { color: var(--white); }
.site-footer a:hover { color: #ffd0d0; }

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
}

.footer-brand img {
  width: 6.5rem;
  background: var(--white);
  border-radius: 0.7rem;
  padding: 0.3rem;
}

.footer-name {
  font-family: "Fredoka", sans-serif;
  font-weight: 650;
  color: var(--white);
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.site-footer p { margin: 0 0 0.4rem; }

.site-footer .hours {
  color: var(--white);
  font-weight: 700;
}
.footer-legal { margin-top: 0.8rem !important; font-size: 0.9rem; opacity: 0.8; }

/* Sticky click-to-call / text — prominent on mobile */
.sticky-contact {
  display: none;
}

@media (max-width: 860px) {
  .hero-grid,
  .about-grid,
  .quote-grid,
  .region-grid {
    grid-template-columns: 1fr;
  }

  .hero-logo { max-width: 16rem; margin-inline: auto; }

  .step-grid { grid-template-columns: 1fr; }

  .card-grid { grid-template-columns: 1fr 1fr; }

  .serve-grid { grid-template-columns: 1fr 1fr; }

  .nav-button { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    border-bottom: 4px solid var(--red);
    padding: 0.75rem 1rem 1rem;
  }

  .nav-toggle:checked ~ .site-nav { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }

  .site-nav a { display: block; padding: 0.35rem 0; }

  .header-call { display: none; }
}

@media (max-width: 720px) {
  .sticky-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
    background: var(--navy);
    border-top: 3px solid var(--red);
    box-shadow: 0 -0.4rem 1.2rem rgba(7, 28, 61, 0.25);
  }

  .sticky-contact .btn { width: 100%; min-height: 2.75rem; }

  .hero {
    padding-bottom: calc(2rem + var(--sticky-h));
  }

  .hero-logo { max-width: 12.5rem; }

  .hero-actions .btn-outline { display: none; }

  .site-footer {
    padding-bottom: calc(2.4rem + var(--sticky-h) + env(safe-area-inset-bottom));
  }

  .form-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .card-grid,
  .serve-grid { grid-template-columns: 1fr; }

  .hero { padding-top: 1.75rem; }
}


/* Honeypot: visually hidden, still in the form for bots */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
