/* ==========================================================================
   Keeter's Meat Company — Theme Stylesheet
   Family owned & operated since 1956 · Tulia, Texas
   ========================================================================== */

:root {
  --paper: #f4ede0;        /* butcher paper */
  --paper-dark: #e9dfcc;
  --ink: #221b15;          /* smokehouse charcoal */
  --ink-soft: #4a4036;
  --brand: #8e2a1d;        /* brick red */
  --brand-dark: #6e2016;
  --gold: #c3934f;         /* seared gold */
  --gold-soft: #d9b989;
  --white: #fdfbf6;
  --shadow: 0 10px 30px rgba(34, 27, 21, 0.18);
  --radius: 6px;
  --font-display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}

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

a { color: var(--brand); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--brand-dark); }

.container { width: min(1180px, 92%); margin: 0 auto; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--ink);
  text-transform: uppercase;
}

h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }

.kicker {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.kicker::before, .kicker.rule-both::after {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--gold);
}

.lead { font-size: 1.2rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 2.1rem;
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--white); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.btn--dark { background: var(--ink); border-color: var(--ink); }
.btn--dark:hover { background: #000; border-color: #000; }

/* --------------------------------------------------------------------------
   Announcement bar + Header
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--ink);
  color: var(--gold-soft);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.55rem 1rem;
}
.topbar strong { color: var(--white); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 237, 224, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(34, 27, 21, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 2rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  line-height: 1;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  white-space: nowrap;
}
.logo .logo-mark { color: var(--brand); }
.logo-seal {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: #fff;
  box-shadow: 0 1px 6px rgba(34, 27, 21, 0.3);
}
.logo-text { line-height: 1; }
.logo small {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: var(--ink-soft);
  margin-top: 0.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.2vw, 1.9rem);
  white-space: nowrap;
  list-style: none;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav-links a { color: var(--ink); padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--brand); border-bottom-color: var(--gold); }
.nav-links .nav-cta { background: var(--brand); color: var(--white); padding: 0.7rem 1.4rem; border-radius: var(--radius); border-bottom: none; }
.nav-links .nav-cta:hover { background: var(--brand-dark); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.65;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20, 14, 10, 0.88) 0%, rgba(20, 14, 10, 0.45) 55%, rgba(20, 14, 10, 0.15) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--gold-soft); }
.hero .lead { color: rgba(253, 251, 246, 0.85); max-width: 46ch; margin: 1.4rem 0 2.2rem; }
.hero .kicker { color: var(--gold-soft); }
.hero .kicker::before { background: var(--brand); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.est-badge {
  position: absolute;
  right: 4%;
  bottom: 9%;
  z-index: 2;
  width: 128px;
  height: 128px;
  border: 2px solid var(--gold-soft);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: var(--gold-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(8deg);
}
.est-badge::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(217, 185, 137, 0.6);
  border-radius: 50%;
}
.est-badge .est { font-size: 0.8rem; }
.est-badge .year { font-size: 2.3rem; line-height: 1; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: 5.5rem 0; }
.section--tight { padding: 3.5rem 0; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .lead { color: rgba(244, 237, 224, 0.75); }
.section--paper-dark { background: var(--paper-dark); }

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head.center .kicker::after { content: ""; width: 34px; height: 2px; background: var(--gold); }

/* Feature cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(34, 27, 21, 0.25); }
.card-img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 1.7rem 1.7rem 2rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.card-body p { color: var(--ink-soft); font-size: 0.98rem; flex: 1; }
.card-link {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.card-link::after { content: " →"; }

/* Split section (image + copy) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split.flip > .split-media { order: 2; }
.split-media { position: relative; }
.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.split-media .frame-accent {
  content: "";
  position: absolute;
  inset: -16px 16px 16px -16px;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  z-index: -1;
}
.split-copy .btn { margin-top: 1.6rem; }
.split-copy p + p { margin-top: 1rem; }

/* Checklist */
.checklist { list-style: none; margin-top: 1.4rem; display: grid; gap: 0.8rem; }
.checklist li {
  padding-left: 2rem;
  position: relative;
  font-size: 1.02rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 16px;
  height: 16px;
  background: var(--brand);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

/* Stats band */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-size: 3.4rem;
  color: var(--gold-soft);
  line-height: 1;
}
.stat .label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 237, 224, 0.7);
  margin-top: 0.6rem;
}

/* Testimonial */
.testimonial {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.testimonial blockquote {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.55;
  font-style: italic;
  color: var(--ink);
}
.testimonial blockquote::before { content: "“"; color: var(--brand); font-size: 3rem; line-height: 0; vertical-align: -0.35em; margin-right: 0.3rem; font-style: normal; }
.testimonial cite {
  display: block;
  margin-top: 1.6rem;
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   Store / product cards
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  padding: 7rem 0 5rem;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.page-hero .hero-bg { opacity: 0.35; }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 14, 10, 0.55), rgba(20, 14, 10, 0.85));
}
.page-hero .container { position: relative; z-index: 2; text-align: center; }
.page-hero h1 { color: var(--white); margin: 0 auto; }
.page-hero .kicker { color: var(--gold-soft); justify-content: center; }
.page-hero .kicker::before, .page-hero .kicker::after { content: ""; width: 34px; height: 2px; background: var(--brand); }
.page-hero .lead { color: rgba(253, 251, 246, 0.8); max-width: 56ch; margin: 1.2rem auto 0; }

/* Logo-over-footage hero variant (Custom Processing) */
.page-hero--logo { padding: 8.5rem 0 7.5rem; }
.page-hero--logo .hero-bg { opacity: 0.9; }
.page-hero--logo .hero-video { opacity: 0.95; }
.page-hero--logo::after {
  background: linear-gradient(180deg, rgba(253, 251, 246, 0.22) 0%, rgba(253, 251, 246, 0.08) 55%, rgba(34, 27, 21, 0.22) 100%);
}
.hero-logo {
  display: block;
  width: min(320px, 58vw);
  margin: 0 auto;
  filter: drop-shadow(0 0 22px rgba(253, 251, 246, 0.85)) drop-shadow(0 2px 8px rgba(253, 251, 246, 0.55));
}

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

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.8rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}
.product-card:hover { transform: translateY(-5px); }
.product-card .product-img-wrap { position: relative; }
.product-card img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  background: var(--brand);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
}
.badge--gold { background: var(--gold); color: var(--ink); }
.product-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.product-body h3 { font-size: 1.35rem; }
.product-meta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.price {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--brand);
  margin-top: auto;
}
.product-body .btn { margin-top: 0.8rem; text-align: center; padding: 0.85rem 1rem; }

.stars { color: var(--gold); font-size: 0.95rem; letter-spacing: 2px; }

/* --------------------------------------------------------------------------
   Process steps
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.step {
  background: var(--white);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow);
}
.step .step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 1;
}
.step h3 { margin: 0.6rem 0 0.5rem; font-size: 1.3rem; }
.step p { color: var(--ink-soft); font-size: 0.97rem; }

/* Price table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-family: var(--font-ui);
  font-size: 0.95rem;
}
.price-table th, .price-table td { padding: 1rem 1.3rem; text-align: left; }
.price-table thead th {
  background: var(--ink);
  color: var(--gold-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.price-table tbody tr:nth-child(even) { background: var(--paper); }
.price-table td:last-child { font-weight: 700; color: var(--brand); white-space: nowrap; }

.note {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.4rem;
}

.form-row { margin-bottom: 1.3rem; }
.form-row label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  color: var(--ink-soft);
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1.5px solid rgba(34, 27, 21, 0.25);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--brand);
}
.form-row textarea { min-height: 150px; resize: vertical; }

.info-list { list-style: none; display: grid; gap: 1.5rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-ico {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}
.info-list h3 { font-size: 1.15rem; margin-bottom: 0.15rem; }
.info-list p { color: var(--ink-soft); font-size: 0.97rem; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  background: var(--brand);
  color: var(--white);
  text-align: center;
  padding: 4.5rem 0;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.08), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(0, 0, 0, 0.18), transparent 45%);
}
.cta-band .container { position: relative; }
.cta-band h2 { color: var(--white); margin-bottom: 0.8rem; }
.cta-band p { color: rgba(253, 251, 246, 0.85); max-width: 52ch; margin: 0 auto 2rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: rgba(244, 237, 224, 0.75);
  padding: 4rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.site-footer .logo { color: var(--white); }
.site-footer .logo small { color: rgba(244, 237, 224, 0.5); }
.footer-grid p { margin-top: 1rem; max-width: 36ch; font-family: var(--font-body); }
.footer-grid h3 {
  color: var(--gold-soft);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.1rem;
}
.footer-grid ul { list-style: none; display: grid; gap: 0.65rem; }
.footer-grid a { color: rgba(244, 237, 224, 0.75); }
.footer-grid a:hover { color: var(--gold-soft); }

.socials { display: flex; gap: 0.8rem; margin-top: 1.4rem; }
.socials a {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(244, 237, 224, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(244, 237, 224, 0.8);
}
.socials a:hover { border-color: var(--gold-soft); color: var(--gold-soft); }

.footer-bottom {
  border-top: 1px solid rgba(244, 237, 224, 0.15);
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(244, 237, 224, 0.5);
}
.footer-bottom ul { list-style: none; display: flex; gap: 1.5rem; }
.footer-bottom a { color: rgba(244, 237, 224, 0.5); }
.footer-bottom a:hover { color: var(--gold-soft); }

/* --------------------------------------------------------------------------
   Utilities & animation
   -------------------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

.center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .split, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .split.flip > .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .est-badge { display: none; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 4% 1.2rem;
    border-bottom: 1px solid rgba(34, 27, 21, 0.12);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.85rem 0.2rem; border-bottom: 1px solid rgba(34, 27, 21, 0.08); }
  .nav-links .nav-cta { margin-top: 0.8rem; text-align: center; }
  .hero { min-height: 72vh; }
  .section { padding: 3.8rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ==========================================================================
   Dark theme — matched to the original keetersmeat.com charcoal/gray look
   ========================================================================== */

:root {
  --paper: #262321;          /* page background: dark charcoal */
  --paper-dark: #211e1c;     /* alternate band */
  --ink: #171513;            /* deepest surfaces: topbar, footer, dark bands */
  --ink-soft: #b3aca2;       /* muted copy on dark */
  --text: #eeeae3;           /* main text */
  --surface: #2f2b28;        /* cards */
  --gold: #8b8680;           /* slate-taupe from the original site's banner */
  --gold-soft: #c9c3ba;
  --brand-soft: #d08f73;     /* readable red accent on dark */
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body { color: var(--text); }
h1, h2, h3, .display { color: var(--text); }
a { color: var(--brand-soft); }
a:hover { color: #e0a98f; }
.kicker { color: var(--brand-soft); }
.lead { color: var(--ink-soft); }

.topbar { background: #121010; }
.site-header {
  background: rgba(32, 29, 27, 0.97);
  border-bottom: 1px solid rgba(238, 234, 227, 0.08);
}
.logo, .nav-links a { color: var(--text); }
.nav-links a:hover, .nav-links a.active { color: var(--gold-soft); }
.nav-links .nav-cta { color: var(--white); }
.nav-toggle span { background: var(--text); }
.logo-seal { box-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }

.card, .product-card, .step, .contact-card, .price-table { background: var(--surface); }
.price-table tbody tr:nth-child(even) { background: #28241f; }
.price, .product-body .price { color: var(--brand-soft); }

.form-row input, .form-row textarea, .form-row select {
  background: #211e1c;
  border-color: rgba(238, 234, 227, 0.2);
  color: var(--text);
}
.form-row label { color: var(--ink-soft); }

.btn--dark { background: transparent; border-color: var(--gold-soft); color: var(--gold-soft); }
.btn--dark:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: #171513; }

.testimonial blockquote { color: var(--text); }
.testimonial cite { color: var(--brand-soft); }
.stat .num { color: var(--gold-soft); }

@media (max-width: 760px) {
  .nav-links { background: #201d1b; border-bottom-color: rgba(238, 234, 227, 0.08); }
  .nav-links a { border-bottom-color: rgba(238, 234, 227, 0.08); }
}

/* ==========================================================================
   Board hero (homepage): props fall onto the engraved cutting board on load
   ========================================================================== */

.hero--board { min-height: 88vh; background: #d9cdb8; }
.hero--board .hero-bg { opacity: 1; }
.hero--board::after { background: none; }

.board-item {
  position: absolute;
  z-index: 2;
  height: auto;
  opacity: 0;
  animation: board-drop 0.75s cubic-bezier(0.2, 0.75, 0.3, 1.1) forwards;
}
.board-item--cleaver { width: clamp(120px, 17vw, 270px); left: 10%; top: 5%; --rot: -6deg; animation-delay: 0.25s; }
.board-item--coaster { width: clamp(110px, 16vw, 250px); right: 7%; top: 5%; --rot: 7deg; animation-delay: 0.7s; }
.board-item--ribeye  { width: clamp(170px, 25vw, 400px); right: 9%; bottom: 7%; --rot: -3deg; animation-delay: 1.15s; }

@keyframes board-drop {
  0% {
    opacity: 0;
    transform: scale(2.3) rotate(calc(var(--rot, 0deg) - 12deg));
    filter: blur(7px) drop-shadow(0 90px 70px rgba(23, 15, 8, 0));
  }
  55% {
    opacity: 1;
    transform: scale(0.97) rotate(var(--rot, 0deg));
    filter: blur(0) drop-shadow(0 8px 10px rgba(23, 15, 8, 0.45));
  }
  75% { transform: scale(1.02) rotate(var(--rot, 0deg)); }
  100% {
    opacity: 1;
    transform: scale(1) rotate(var(--rot, 0deg));
    filter: blur(0) drop-shadow(0 16px 20px rgba(23, 15, 8, 0.35));
  }
}

.board-cta {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 3rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: board-cta-in 0.6s ease 1.8s forwards;
}
@keyframes board-cta-in { to { opacity: 1; } }

.btn--ink { background: #171513; border-color: #171513; color: var(--white); }
.btn--ink:hover { background: #000; border-color: #000; color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  .board-item, .board-cta { animation: none; opacity: 1; }
  .board-item { transform: rotate(var(--rot, 0deg)); filter: drop-shadow(0 16px 20px rgba(23, 15, 8, 0.35)); }
}
@media (max-width: 760px) {
  .hero--board { min-height: 62vh; }
  .board-cta { bottom: 1.6rem; }
}

/* Board hero: after the props land, snap to the real photograph */
.board-final {
  position: absolute;
  inset: 0;
  z-index: 4;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  animation: board-final-in 0.9s ease 2.05s forwards;
}
@keyframes board-final-in {
  0% { opacity: 0; transform: scale(1.06); }
  30% { opacity: 1; }
  100% { opacity: 1; transform: scale(1); }
}

.board-flash {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  animation: board-flash 0.4s ease 1.95s;
}
@keyframes board-flash {
  0% { opacity: 0; }
  35% { opacity: 0.9; }
  100% { opacity: 0; }
}

.board-cta { z-index: 6; animation-delay: 2.7s; }

@media (prefers-reduced-motion: reduce) {
  .board-final { animation: none; opacity: 1; transform: none; }
  .board-flash { animation: none; }
  .board-item { display: none; }
}

/* Board hero now driven by the real drop video: plays once, holds last frame */
.hero--board .hero-video { opacity: 1; }
.board-cta { animation-delay: 4.9s; }

/* Clickable topbar + faint scroll-down mouse cue */
a.topbar { display: block; color: var(--gold-soft); text-decoration: none; transition: filter 0.2s ease; }
a.topbar:hover { filter: brightness(1.25); color: var(--gold-soft); }
a.topbar strong { color: var(--white); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2.1rem;
  transform: translateX(-50%);
  z-index: 6;
  opacity: 0;
  animation: scroll-cue-in 1s ease 4.9s forwards;
}
@keyframes scroll-cue-in { to { opacity: 1; } }
.scroll-cue .mouse {
  display: block;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(253, 251, 246, 0.45);
  border-radius: 14px;
  position: relative;
  transition: border-color 0.2s ease;
}
.scroll-cue .wheel {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: rgba(253, 251, 246, 0.55);
  animation: scroll-wheel 1.8s ease-in-out infinite;
}
.scroll-cue:hover .mouse { border-color: rgba(253, 251, 246, 0.85); }
@keyframes scroll-wheel {
  0% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(13px); opacity: 0; }
  56% { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; opacity: 0.8; }
  .scroll-cue .wheel { animation: none; }
}

/* Map section (bottom of homepage) */
.map-section { padding-bottom: 5.5rem; }
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(238, 234, 227, 0.1);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}
@media (max-width: 760px) {
  .map-wrap iframe { height: 320px; }
}

/* Full-bleed map flush against the footer */
.map-section { padding-bottom: 0; }
.map-wrap--full {
  border-radius: 0;
  border: none;
  border-top: 1px solid rgba(238, 234, 227, 0.1);
  box-shadow: none;
  width: 100%;
}
.map-wrap--full iframe { height: 460px; }
@media (max-width: 760px) {
  .map-wrap--full iframe { height: 340px; }
}

/* Small jerky button in the announcement bar */
.topbar-btn {
  display: inline-block;
  margin-left: 0.9rem;
  padding: 0.28rem 0.9rem;
  background: var(--brand);
  color: var(--white);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.15s ease;
}
.topbar-btn:hover { background: var(--brand-dark); color: var(--white); transform: translateY(-1px); }

/* Cart icon in nav + cart page */
.nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.2rem;
}
.nav-cart svg { display: block; }
.cart-count {
  position: absolute;
  top: -2px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--brand);
  color: var(--white);
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.cart-table td, .cart-table th { vertical-align: middle; }
.cart-table .cart-name { font-family: var(--font-body); }
.cart-qty { white-space: nowrap; }
.cart-qty span { display: inline-block; min-width: 2ch; text-align: center; margin: 0 0.3rem; }
.qty-btn, .cart-remove {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(238, 234, 227, 0.3);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.qty-btn:hover, .cart-remove:hover { background: rgba(238, 234, 227, 0.12); }
.cart-remove { border-color: transparent; color: var(--ink-soft); font-size: 1.1rem; }
.cart-summary { margin-top: 1.6rem; text-align: right; }
.cart-subtotal { font-family: var(--font-ui); font-size: 1.05rem; margin-bottom: 1.1rem; }
.cart-subtotal strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--brand-soft); margin-left: 0.6rem; }
.cart-actions { display: flex; justify-content: flex-end; gap: 0.9rem; flex-wrap: wrap; }
.cart-summary .note { text-align: right; margin-top: 1rem; }

/* Gently drifting photo (Our Story) */
.media-clip {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.media-clip img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}
.img-drift {
  transform: scale(1.16);
  will-change: transform;
  animation: img-drift 18s ease-in-out infinite alternate;
}
@keyframes img-drift {
  from { transform: scale(1.16) translateY(5%); }
  to { transform: scale(1.16) translateY(-5%); }
}
@media (prefers-reduced-motion: reduce) {
  .img-drift { animation: none; transform: scale(1.0); }
}

/* Taller Our Story photo */
.media-clip img { aspect-ratio: 5 / 6; }
.img-drift { transform: scale(1.1); }
@keyframes img-drift {
  from { transform: scale(1.1) translateY(4%); }
  to { transform: scale(1.1) translateY(-4%); }
}

/* Homepage: transparent header over the hero video, darkens on scroll */
body.home .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(12, 10, 9, 0.55) 0%, rgba(12, 10, 9, 0) 100%);
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  transition: background 0.35s ease, border-color 0.35s ease;
}
body.home .site-header.is-scrolled {
  background: rgba(32, 29, 27, 0.97);
  border-bottom-color: rgba(238, 234, 227, 0.08);
}

/* No hairline under the header — let it blend */
.site-header,
body.home .site-header,
body.home .site-header.is-scrolled {
  border-bottom: none;
}

/* Header fully invisible at top: shade lives on the hero and fades out mid-video */
body.home .site-header { background: none; }
body.home .site-header.is-scrolled { background: rgba(32, 29, 27, 0.97); }
.hero--board::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 200px;
  background: linear-gradient(180deg, rgba(12, 10, 9, 0.55) 0%, rgba(12, 10, 9, 0.28) 40%, rgba(12, 10, 9, 0) 100%);
  z-index: 3;
  pointer-events: none;
}

/* Slim highlights strip under the hero */
.intro-strip {
  background: var(--ink);
  padding: 1.15rem 0;
}
.intro-strip-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem 2.6rem;
  flex-wrap: wrap;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  text-align: center;
}
.intro-strip-row span { display: inline-flex; align-items: center; gap: 2.6rem; }
.intro-strip-row span + span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-soft);
}
#what-we-do { padding-top: 4rem; }

/* Taller homepage hero: show more of the drop video */
.hero--board { min-height: 96vh; }
@media (max-width: 760px) {
  .hero--board { min-height: 70vh; }
}

/* Kill the white paint flash behind the drifting Our Story photo */
.media-clip,
.media-clip img {
  background: #211e1c;
}
.img-drift { backface-visibility: hidden; }

/* Full-height hero: the fold lands exactly at the end of the video */
.hero--board { min-height: 100vh; min-height: 100svh; }
@media (max-width: 760px) {
  .hero--board { min-height: 100vh; min-height: 100svh; }
}

/* Our Story photo: stable composited layer, no reveal-transition flashes */
.img-drift { will-change: auto; }
.media-clip {
  transform: translateZ(0);
  isolation: isolate;
}

/* Our Story drift: join the animation mid-swing so it's already moving on arrival */
.img-drift { animation-delay: -4.5s; }

/* Find Us: motion-blurred storefront behind the heading */
.map-section {
  position: relative;
  background: url("../img/storefront-blur.jpg") center 35% / cover no-repeat;
}
.map-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 21, 19, 0.88) 0%, rgba(23, 21, 19, 0.62) 60%, rgba(23, 21, 19, 0.5) 100%);
}
.map-section .container,
.map-section .map-wrap--full {
  position: relative;
  z-index: 1;
}

/* Let the storefront show through a bit more */
.map-section::before {
  background: linear-gradient(180deg, rgba(23, 21, 19, 0.72) 0%, rgba(23, 21, 19, 0.42) 60%, rgba(23, 21, 19, 0.3) 100%);
}
.map-section { background-position: center 42%; }

/* Find Us: sharp storefront photo, a touch more breathing room */
.map-section {
  background-image: url("../img/storefront.jpg");
  background-position: center 30%;
  padding-top: 6.5rem;
}
.map-section::before {
  background: linear-gradient(180deg, rgba(23, 21, 19, 0.68) 0%, rgba(23, 21, 19, 0.38) 60%, rgba(23, 21, 19, 0.28) 100%);
}
.map-section .section-head { margin-bottom: 3.6rem; }

/* Sit the storefront photo much lower in the Find Us band */
.map-section { background-position: center top; }

/* Raise the storefront in the Find Us band */
.map-section { background-position: center 40%; }

/* Bottom-anchor the storefront: building up, sky gone */
.map-section { background-position: center bottom; }

/* Sky cropped out of the image itself; building fills the band */
.map-section { background-position: center 25%; }

/* True zoom-out: show the widened canvas at full width on desktop */
.map-section {
  background-size: 100% auto;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-color: #141210;
}
@media (max-width: 900px) {
  .map-section {
    background-size: cover;
    background-position: center 25%;
  }
}

/* Anchor the storefront just above the map, not behind it */
.map-section { background-position: center calc(100% - 460px); }
@media (max-width: 900px) {
  .map-section { background-position: center 25%; }
}

/* Storefront as a real element behind Find Us: exact size, no sky, no viewport math */
.map-section {
  background-image: none;
  background-color: #171513;
  padding-top: 5rem;
}
.storefront-ghost {
  position: absolute;
  left: 50%;
  top: 3.4rem;
  transform: translateX(-50%);
  width: min(880px, 78vw);
  height: auto;
  opacity: 0.8;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  z-index: 0;
  pointer-events: none;
}
.map-section::before { z-index: 1; }
.map-section .container,
.map-section .map-wrap--full { z-index: 2; }
.map-section .section-head { margin-bottom: 5rem; }

/* Let the building read clearly */
.storefront-ghost { opacity: 1; }
.map-section::before {
  background: linear-gradient(180deg, rgba(23, 21, 19, 0.5) 0%, rgba(23, 21, 19, 0.22) 55%, rgba(23, 21, 19, 0.18) 100%);
}
.map-section h2, .map-section .lead { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65); }

/* Full-bleed storefront across the whole band (file has no sky, so cover is safe) */
.storefront-ghost { display: none; }
.map-section {
  background: #171513 url("../img/storefront-building.jpg") center top / cover no-repeat;
}
.map-section::before {
  background: linear-gradient(180deg, rgba(23, 21, 19, 0.62) 0%, rgba(23, 21, 19, 0.35) 55%, rgba(23, 21, 19, 0.3) 100%);
}

/* Find Us: slow zoom-out from the sign to the full building on scroll-in */
.map-section { background-image: none; }
.map-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  opacity: 1 !important;
  transform: none !important;
}
.map-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.35);
  transform-origin: center 22%;
  transition: transform 10s cubic-bezier(0.22, 0.6, 0.2, 1);
}
.map-bg.in img { transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .map-bg img { transform: none; transition: none; }
}

/* Lower the starting camera framing: more building in view during the zoom */
.map-bg img { transform-origin: center 48%; object-position: center 30%; }

/* Keep the zooming photo out of the map area; solid backing while the map loads */
.map-bg { bottom: 460px; }
@media (max-width: 760px) {
  .map-bg { bottom: 340px; }
}
.map-wrap--full { background: #171513; }

/* Raise the framing: full building in view */
.map-bg img { object-position: center 12%; transform-origin: center 40%; }

/* --------------------------------------------------------------------------
   Devin Keeter chat bubble (coded helper — no AI service)
   Devin is a pose-swapping cartoon: waves, thinks, points, shrugs.
   -------------------------------------------------------------------------- */
.devin-chat { position: fixed; right: 1.1rem; bottom: 1rem; z-index: 999; display: flex; flex-direction: column; align-items: flex-end; }
.devin-figure { background: none; border: 0; padding: 0; cursor: pointer; width: 150px; position: relative; z-index: 2; margin-bottom: -16px; filter: drop-shadow(0 10px 18px rgba(0,0,0,0.45)); animation: devin-bob 4.5s ease-in-out infinite; }
.devin-figure img { width: 100%; display: block; transform-origin: 50% 92%; }
@keyframes devin-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
.devin-chat.pose-wave .devin-figure img { animation: devin-wave 2.4s ease-in-out; }
@keyframes devin-wave {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(-5deg); }
  35% { transform: rotate(4deg); }
  55% { transform: rotate(-4deg); }
  75% { transform: rotate(2deg); }
}
.devin-chat.pose-think .devin-figure img { animation: devin-tilt 2.2s ease-in-out infinite; }
@keyframes devin-tilt { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-2.5deg); } }
.devin-chat.pose-talk .devin-figure img,
.devin-chat.pose-point .devin-figure img,
.devin-chat.pose-thumbs .devin-figure img { animation: devin-pop 0.45s ease; }
@keyframes devin-pop { 0% { transform: scale(0.96); } 55% { transform: scale(1.04); } 100% { transform: scale(1); } }
.devin-chat.pose-shrug .devin-figure img { animation: devin-shrug 0.6s ease; }
@keyframes devin-shrug { 0% { transform: translateY(0); } 40% { transform: translateY(-5px); } 100% { transform: translateY(0); } }
.devin-panel {
  width: min(340px, calc(100vw - 2rem));
  background: var(--surface); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 18px 48px rgba(0,0,0,0.5); position: relative; z-index: 1;
}
.devin-panel[hidden] { display: none; }
.devin-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 0.85rem; background: var(--ink); }
.devin-head strong { display: block; color: var(--text); font-size: 0.95rem; line-height: 1.15; }
.devin-head small { color: var(--gold); font-size: 0.72rem; display: block; }
.devin-close { margin-left: auto; background: none; border: 0; color: var(--gold); font-size: 1.35rem; cursor: pointer; line-height: 1; padding: 0.2rem 0.3rem; }
.devin-close:hover { color: var(--text); }
.devin-msgs { padding: 0.8rem; display: flex; flex-direction: column; gap: 0.5rem; overflow-y: auto; max-height: 300px; min-height: 130px; }
.devin-msg { max-width: 86%; padding: 0.5rem 0.72rem; border-radius: 12px; font-size: 0.86rem; line-height: 1.45; }
.devin-msg--bot { background: var(--ink); color: var(--text); border-bottom-left-radius: 4px; align-self: flex-start; }
.devin-msg--bot a { color: var(--brand-soft); text-decoration: underline; }
.devin-msg--user { background: var(--brand-soft); color: #241a14; border-bottom-right-radius: 4px; align-self: flex-end; }
.devin-typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: 3px; animation: devin-blink 1s infinite; }
.devin-typing span:nth-child(2) { animation-delay: 0.18s; }
.devin-typing span:nth-child(3) { animation-delay: 0.36s; margin-right: 0; }
@keyframes devin-blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.devin-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 0.8rem 0.6rem; }
.devin-chip { background: none; border: 1px solid var(--gold); color: var(--text); border-radius: 999px; padding: 0.3rem 0.7rem; font-size: 0.75rem; cursor: pointer; }
.devin-chip:hover { border-color: var(--brand-soft); color: var(--brand-soft); }
.devin-form { display: flex; border-top: 1px solid rgba(255,255,255,0.08); }
.devin-form input { flex: 1; background: none; border: 0; padding: 0.75rem 0.85rem; color: var(--text); font-size: 0.88rem; outline: none; min-width: 0; }
.devin-form input::placeholder { color: var(--gold); }
.devin-send { background: none; border: 0; color: var(--brand-soft); padding: 0 0.95rem; cursor: pointer; font-size: 1.05rem; }
@media (max-width: 480px) { .devin-msgs { max-height: 40vh; } .devin-figure { width: 118px; } }
@media (prefers-reduced-motion: reduce) { .devin-figure, .devin-figure img, .devin-typing span { animation: none !important; } }
.devin-chat.pose-pull .devin-figure img,
.devin-chat.pose-hold .devin-figure img { animation: devin-pop 0.4s ease; }
.devin-chat.pose-bite .devin-figure img { animation: devin-pop 0.35s ease; }
.devin-chat.pose-chew .devin-figure img { animation: devin-munch 0.55s ease-in-out 2; }
@keyframes devin-munch { 0%, 100% { transform: rotate(0deg) translateY(0); } 50% { transform: rotate(-1.5deg) translateY(2px); } }
.devin-chat.pose-bag-pull .devin-figure img,
.devin-chat.pose-bag-take .devin-figure img,
.devin-chat.pose-sausage-hold .devin-figure img,
.devin-chat.pose-sausage-bite .devin-figure img,
.devin-chat.pose-grill-done .devin-figure img,
.devin-chat.pose-steak .devin-figure img,
.devin-chat.pose-selfie .devin-figure img,
.devin-chat.pose-cow .devin-figure img,
.devin-chat.pose-pig .devin-figure img { animation: devin-pop 0.4s ease; }
.devin-chat.pose-grill-cook .devin-figure img { animation: devin-tilt 2.2s ease-in-out infinite; }
.devin-chat.pose-box .devin-figure img { animation: devin-walk 0.9s ease-in-out infinite; }
@keyframes devin-walk { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(3px) rotate(1.5deg); } }
.devin-chat.pose-phone .devin-figure img,
.devin-chat.pose-text .devin-figure img,
.devin-chat.pose-note .devin-figure img { animation: devin-nod 2s ease-in-out infinite; }
@keyframes devin-nod { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-1.2deg) translateY(1px); } }
.devin-chat.pose-chop-down .devin-figure img { animation: devin-jab 0.3s ease; }
@keyframes devin-jab { 0% { transform: translateY(-4px); } 100% { transform: translateY(0); } }
.devin-chat.pose-season .devin-figure img { animation: devin-sprinkle 0.7s ease-in-out infinite; }
@keyframes devin-sprinkle { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.8deg); } }

/* Store CTA with real counter-spread photo behind it */
.cta-band--photo { background: #171513; }
.cta-band--photo .cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center 38%; opacity: 0.38; }
.cta-band--photo::before { background: linear-gradient(rgba(23, 21, 19, 0.5), rgba(23, 21, 19, 0.62)); }
.cta-band--photo h2, .cta-band--photo p { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }

/* Legal pages + FAQ */
.legal-body { max-width: 760px; margin: 0 auto; }
.legal-body h3 { margin: 2.1rem 0 0.6rem; }
.legal-body p { margin-bottom: 0.9rem; }
.legal-body ul { padding-left: 1.2rem; margin: 0.6rem 0 1rem; }
.legal-body li { margin-bottom: 0.4rem; }
.legal-body a { color: var(--brand-soft); text-decoration: underline; }
.faq-item { max-width: 760px; margin: 0 auto 1rem; background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px; padding: 1.15rem 1.35rem; }
.faq-item h3 { margin-bottom: 0.45rem; }
.faq-item p { margin: 0; }
.faq-item a { color: var(--brand-soft); text-decoration: underline; }

/* Cut sheet (custom processing) */
.cut-sheet-wrap { max-width: 920px; }
.sheet-toggle { display: flex; gap: 0.6rem; justify-content: center; margin-bottom: 2rem; }
.sheet-toggle button { padding: 0.7rem 2.4rem; border-radius: 999px; border: 1px solid var(--gold); background: none; color: var(--text); font-weight: 700; font-size: 1rem; cursor: pointer; }
.sheet-toggle button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.cut-form { background: var(--surface); border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; padding: 1.7rem 1.9rem 2rem; }
.cut-form[hidden] { display: none; }
.cut-form h3 { margin: 2rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.cut-form h3:first-child { margin-top: 0; }
.cut-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.6rem; }
.cut-grid .wide, .cut-field.wide { grid-column: 1 / -1; }
.cut-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; }
.cut-field input, .cut-field textarea { width: 100%; background: var(--ink); border: 1px solid rgba(255,255,255,0.12); color: var(--text); padding: 0.6rem 0.7rem; border-radius: 8px; font: inherit; font-size: 0.92rem; }
.cut-field input:focus, .cut-field textarea:focus { outline: none; border-color: var(--brand-soft); }
.choice { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice legend { font-weight: 600; font-size: 0.85rem; margin-bottom: 0.45rem; padding: 0; }
.choice .opts { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.choice .opts label { border: 1px solid var(--gold); border-radius: 999px; padding: 0.32rem 0.85rem; font-size: 0.82rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; }
.choice .opts label:has(input:checked) { background: var(--brand); border-color: var(--brand); color: #fff; }
.choice .opts input { accent-color: var(--brand); margin: 0; }
.sheet-note { background: var(--ink); border-left: 3px solid var(--brand-soft); border-radius: 8px; padding: 0.7rem 0.9rem; font-size: 0.85rem; margin-bottom: 1.1rem; color: var(--gold); }
@media (max-width: 700px) { .cut-grid { grid-template-columns: 1fr; } .cut-form { padding: 1.2rem 1rem 1.5rem; } }

/* Second review under What Folks Say */
.testimonial .testimonial-more { margin-top: 2.4rem; }

/* Rotating reviews */
.testimonial-slides { display: grid; }
.testimonial-slide { grid-area: 1 / 1; opacity: 0; transition: opacity 0.9s ease; pointer-events: none; }
.testimonial-slide.active { opacity: 1; pointer-events: auto; }
.testimonial-dots { display: flex; gap: 0.55rem; justify-content: center; margin-top: 1.7rem; }
.testimonial-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--gold); opacity: 0.45; cursor: pointer; padding: 0; }
.testimonial-dots button.active { background: var(--brand-soft); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .testimonial-slide { transition: none; } }

/* Our Story newspaper clipping: show the full scan, no crop */
.split-media img.img-clipping { aspect-ratio: auto; object-fit: contain; }

/* About hero: same slow zoom-out of the storefront as the homepage map section */
.hero-bg--zoom { overflow: hidden; opacity: 0.35 !important; transform: none !important; transition: none !important; }
.hero-bg--zoom img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; transform: scale(1.35); transform-origin: center 40%; transition: transform 10s cubic-bezier(0.22, 0.6, 0.2, 1); }
.hero-bg--zoom.in img { transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .hero-bg--zoom img { transform: none; transition: none; } }

/* Contact form: green send button */
.contact-card form .btn { background: #4e7a45; border-color: #4e7a45; }
.contact-card form .btn:hover { background: #5d8f53; border-color: #5d8f53; }

/* Contact hero: pull back so more of the engraved board logo shows */
.page-hero--board .hero-bg { background-size: 66% auto; background-position: center 32%; background-repeat: no-repeat; background-color: #2a2622; }
@media (max-width: 760px) { .page-hero--board .hero-bg { background-size: cover; background-position: center; } }

/* Cut sheet submit buttons: green like the contact form */
.cut-form .btn { background: #4e7a45; border-color: #4e7a45; }
.cut-form .btn:hover { background: #5d8f53; border-color: #5d8f53; }

/* Contact hero: panning board video */
.page-hero--banner .hero-video { opacity: 0.5; }
.page-hero--banner .hero-bg { opacity: 0.5; }

/* Contact hero: buttery CSS pan across the full-res board photo (no video) */
.page-hero--banner .hero-pan { position: absolute; inset: 0; overflow: hidden; opacity: 0.5; }
.page-hero--banner .hero-pan img { width: 135%; max-width: none; height: 100%; object-fit: cover; object-position: center 42%; animation: hero-pan 90s ease-in-out infinite alternate; animation-delay: -45s; will-change: transform; }
@keyframes hero-pan { from { transform: translateX(0); } to { transform: translateX(-25.9%); } }
@media (prefers-reduced-motion: reduce) { .page-hero--banner .hero-pan img { animation: none; } }

/* Contact page: direct phone/email line */
.contact-direct { font-size: 0.9rem; color: var(--gold); margin-bottom: 1.4rem; }
.contact-direct a { color: var(--brand-soft); text-decoration: underline; }

/* Mobile tap-to-call button (homepage) */
.call-fab { display: none; }
@media (max-width: 760px) {
  .call-fab {
    display: inline-flex; align-items: center; gap: 0.45rem;
    position: fixed; left: 1rem; bottom: 1.1rem; z-index: 998;
    background: var(--brand); color: #fff; font-weight: 700; font-size: 0.92rem;
    padding: 0.7rem 1.1rem; border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45); text-decoration: none;
  }
  .call-fab:active { transform: scale(0.97); }
}

/* Cart page: product-spread photo behind the cart */
.cart-bg { position: fixed; inset: 0; z-index: -1; background-size: cover; background-position: center 30%; opacity: 0.16; }
.cart-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(23,21,19,0.2), rgba(23,21,19,0.6)); }

/* Cart background: a touch more present */
.cart-bg { opacity: 0.24; }

/* Page-level h1 shown at section-heading scale (semantics without the size jump) */
h1.h-page { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }

/* 'Other' custom thickness: type-in appears when picked */
.choice .other-input { display: none; margin-top: 0.55rem; width: 100%; background: var(--ink); border: 1px solid rgba(255,255,255,0.12); color: var(--text); padding: 0.5rem 0.65rem; border-radius: 8px; font: inherit; font-size: 0.88rem; }
.choice:has(input[value="Other"]:checked) .other-input { display: block; }
.choice .other-input:focus { outline: none; border-color: var(--brand-soft); }

/* WooCommerce shop grid: 3 across (5 products = 3 on top, 2 under), centered */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 2rem; width: 100%; margin: 0 auto 2.5rem; float: none; }
.woocommerce ul.products li.product { width: 100% !important; float: none !important; margin: 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
@media (max-width: 900px) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .woocommerce ul.products { grid-template-columns: 1fr; } }

/* Shop grid: bottom row of two sits centered under the top three */
.woocommerce ul.products { grid-template-columns: repeat(6, 1fr) !important; }
.woocommerce ul.products li.product { grid-column: span 2; }
.woocommerce ul.products li.product:nth-child(4):nth-last-child(2) { grid-column: 2 / span 2; }
.woocommerce ul.products li.product:nth-child(5):nth-last-child(1) { grid-column: 4 / span 2; }
@media (max-width: 900px) {
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
  .woocommerce ul.products li.product { grid-column: auto !important; }
}
@media (max-width: 560px) {
  .woocommerce ul.products { grid-template-columns: 1fr !important; }
}

/* Shop grid: rein in the size — narrower grid, shorter image crop */
.woocommerce ul.products { max-width: 1020px; margin-left: auto !important; margin-right: auto !important; gap: 1.6rem; }
.woocommerce ul.products li.product img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* --------------------------------------------------------------------------
   WooCommerce (store, cart, checkout)
   -------------------------------------------------------------------------- */

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.woocommerce ul.products li.product {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}
.woocommerce ul.products li.product:hover { transform: translateY(-5px); }
.woocommerce ul.products li.product img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  margin: 0 !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 1.2rem 1.4rem 0.2rem;
}
.woocommerce ul.products li.product .price {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--brand) !important;
  padding: 0 1.4rem;
}
.woocommerce ul.products li.product .star-rating { margin: 0.4rem 1.4rem; color: var(--gold); }
.woocommerce ul.products li.product .button,
.woocommerce a.button, .woocommerce button.button,
.woocommerce #respond input#submit, .woocommerce input.button,
.wc-block-components-button {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--brand) !important;
  color: var(--white) !important;
  border-radius: var(--radius);
  padding: 0.85rem 1.4rem;
}
.woocommerce ul.products li.product .button { margin: 0.9rem 1.4rem 1.4rem; text-align: center; }
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--brand-dark) !important; }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  margin-bottom: 1.6rem;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  font-family: var(--font-ui);
}
