/* ==========================================================================
   Piemonte Ravioli — Design tokens
   ========================================================================== */
:root {
  /* Color */
  --green-deep:    #16321a;   /* darkest green, footer/dark sections */
  --green:         #1e4620;   /* primary brand green */
  --green-mid:     #2f6b34;   /* lighter green for accents on dark */
  --red:           #c0392b;   /* tomato accent */
  --red-deep:      #8f291e;   /* pressed/hover state */
  --cream:         #fbf6ee;   /* base background */
  --parchment:     #f1e9d8;   /* card background */
  --parchment-dark:#e7dcc4;   /* card border/shade */
  --ink:           #2a2420;   /* body text */
  --ink-soft:      #5a4f45;   /* secondary text */
  --white:         #ffffff;

  /* Type */
  --font-display: "Archivo Expanded", "Arial Narrow", sans-serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --wrap: 1180px;
  --radius: 6px;
  --scallop-fill: var(--cream);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: var(--cream);
  padding: 12px 20px;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: var(--green); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; margin-bottom: 0.3em; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--red);
  margin: 0 0 0.8em;
}
.eyebrow-onlight { color: var(--red); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--red);
  color: var(--cream);
  box-shadow: 0 4px 0 var(--red-deep);
}
.btn-primary:hover { background: #d1443a; }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--red-deep); }

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--cream); }

.btn-primary-inverse {
  background: var(--red);
  color: var(--cream);
  box-shadow: 0 4px 0 rgba(0,0,0,0.25);
}
.btn-primary-inverse:hover { background: #d1443a; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 3px solid var(--green);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
}
.wordmark-script {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--red);
  letter-spacing: 0.01em;
}
.wordmark-block {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--green);
  letter-spacing: 0.18em;
  margin-top: 2px;
}

/* Desktop nav is a plain <nav>; mobile nav lives inside a native <details>
   so the menu works with zero JS (browser handles open/close natively).
   JS only adds closing-on-link-click as a polish enhancement. */
.nav-details { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  align-items: center;
  list-style: none;
}
.nav-toggle::-webkit-details-marker { display: none; }
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-details[open] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-details[open] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-details[open] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.site-nav a:hover { color: var(--green); border-color: var(--green); }
.site-nav a.nav-cta {
  background: var(--green);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: var(--radius);
  border-bottom: none;
}
.site-nav a.nav-cta:hover { background: var(--green-mid); }

@media (max-width: 860px) {
  .site-nav-desktop { display: none; }
  .nav-details {
    display: block;
    position: relative;
  }
  .nav-details .nav-toggle { display: flex; }
  .nav-details .site-nav {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    left: auto;
    width: max(240px, 70vw);
    background: var(--cream);
    border: 2px solid var(--green);
    border-radius: var(--radius);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    z-index: 50;
  }
  .nav-details .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--parchment-dark); }
  .nav-details .site-nav a.nav-cta { text-align: center; margin-top: 10px; border-bottom: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 64px 0 0;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 72px;
}

.hero-title {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  color: var(--green);
  margin-bottom: 0.4em;
}
.hero-title-accent { color: var(--red); }

.hero-lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.6em;
}

.hero-specimens {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  position: relative;
}

.specimen {
  margin: 0;
  background: var(--parchment);
  border: 1px solid var(--parchment-dark);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(30, 70, 32, 0.08);
}
.specimen img {
  margin: 0 auto 10px;
  border-radius: 4px;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.specimen figcaption {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}
.specimen-1 { transform: translateY(-8px); }
.specimen-3 { transform: translateY(8px); }

.hero-divider {
  color: var(--green);
  line-height: 0;
  margin-top: -1px;
}
.hero-divider svg { width: 100%; height: 32px; display: block; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-bottom: 48px; }
  .hero { padding-top: 40px; }
  .specimen-1, .specimen-3 { transform: none; }
}

/* ==========================================================================
   Story
   ========================================================================== */
.story {
  background: var(--green);
  color: var(--cream);
  padding: 84px 0;
  position: relative;
}

.story-inner {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  align-items: start;
}

.story-marker-ring {
  display: block;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 10px solid var(--red);
  position: relative;
}
.story-marker-ring::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 4px solid var(--cream);
  opacity: 0.5;
}

.story h2 { color: var(--cream); }
.story-lead { font-size: 1.15rem; }
.story p { color: rgba(251, 246, 238, 0.88); max-width: 62ch; }

.story blockquote {
  margin: 1.6em 0 0;
  padding: 0.9em 0 0.9em 1.3em;
  border-left: 4px solid var(--red);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--cream);
  max-width: 56ch;
}
.story blockquote cite {
  display: block;
  margin-top: 0.6em;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(251, 246, 238, 0.65);
}

@media (max-width: 700px) {
  .story-inner { grid-template-columns: 1fr; }
  .story { padding: 60px 0; }
}

/* ==========================================================================
   Catalog / Product cards
   ========================================================================== */
.catalog { padding: 88px 0; }

.section-head { max-width: 62ch; margin: 0 auto 3.2rem; text-align: center; }
.section-head-left { text-align: left; margin: 0 0 2.8rem; }
.section-sub { color: var(--ink-soft); font-size: 1.05rem; }

.cat-group { margin-bottom: 3.4rem; }
.cat-group:last-of-type { margin-bottom: 2rem; }

.cat-group-title {
  color: var(--green);
  border-bottom: 3px solid var(--parchment-dark);
  padding-bottom: 0.5em;
  margin-bottom: 1.4rem;
}

.cat-group-note {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-top: -0.6rem;
  margin-bottom: 1.4rem;
  max-width: 70ch;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.p-card {
  background: var(--parchment);
  border: 1px solid var(--parchment-dark);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.p-card:hover {
  box-shadow: 0 10px 24px rgba(30, 70, 32, 0.12);
  transform: translateY(-3px);
}
.p-card img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid var(--parchment-dark);
}
.p-card-body { min-width: 0; }
.p-card h4 { color: var(--ink); }
.p-size {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 0.4em;
}
.p-fillings {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 0;
}

.catalog-footnote {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  border-top: 1px solid var(--parchment-dark);
  padding-top: 1.6rem;
  max-width: 68ch;
  margin: 1rem auto 0;
}

/* ==========================================================================
   Wholesale
   ========================================================================== */
.wholesale {
  background: var(--green-deep);
  color: var(--cream);
  padding: 84px 0;
}

.wholesale-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

.wholesale h2 { color: var(--cream); }
.wholesale-copy p { color: rgba(251, 246, 238, 0.85); font-size: 1.05rem; max-width: 52ch; }

.wholesale-facts {
  display: grid;
  gap: 16px;
  background: rgba(251, 246, 238, 0.06);
  border: 1px solid rgba(251, 246, 238, 0.18);
  border-radius: var(--radius);
  padding: 24px;
}
.fact { display: flex; flex-direction: column; gap: 2px; }
.fact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  font-weight: 700;
}
.fact-value { font-size: 1rem; }
.fact-value a { text-decoration: underline; text-decoration-color: rgba(251,246,238,0.4); }

@media (max-width: 780px) {
  .wholesale-inner { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Visit / Locations
   ========================================================================== */
.visit { padding: 88px 0; }

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.location-card {
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--parchment-dark);
}
.location-card-retail {
  background: var(--parchment);
  border-top: 6px solid var(--red);
}
.location-card-warehouse {
  background: var(--white);
  border-top: 6px solid var(--green);
}

.location-tag {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 0.8em;
}
.location-card h3 {
  color: var(--green);
  font-size: 1.8rem;
  margin-bottom: 0.15em;
}
.location-detail { color: var(--ink-soft); margin-bottom: 0.9em; }
.location-hours { font-size: 0.95rem; margin-bottom: 0.9em; }
.location-contact { font-size: 0.95rem; color: var(--ink-soft); }
.location-contact a { text-decoration: underline; }

@media (max-width: 780px) {
  .location-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  background: var(--parchment);
  padding: 84px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--parchment-dark);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-card h3 { color: var(--green); }
.contact-card a { text-decoration: underline; font-weight: 600; }

@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--green-deep);
  color: rgba(251, 246, 238, 0.8);
  padding-top: 56px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(251, 246, 238, 0.15);
}
.footer-wordmark { display: block; }
.footer-brand .wordmark-script { font-size: 1.3rem; }
.footer-brand .wordmark-block { font-size: 0.8rem; }
.footer-brand p { margin-top: 10px; font-size: 0.9rem; color: rgba(251, 246, 238, 0.65); }

.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { text-decoration: none; font-size: 0.92rem; color: rgba(251, 246, 238, 0.8); }
.footer-nav a:hover { color: var(--cream); text-decoration: underline; }

.footer-locations p { font-size: 0.9rem; margin-bottom: 0.6em; }
.footer-locations a { text-decoration: underline; }

.footer-legal {
  padding: 20px 24px;
  font-size: 0.8rem;
  text-align: center;
  color: rgba(251, 246, 238, 0.5);
}

@media (max-width: 780px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
