/* ============================================================================
 * Bandera Leather · Trade site shared styles
 * Used across index, catalog, product, imprint, request-access pages.
 * ============================================================================ */

/* Self-hosted Playfair Display. Cuts the third-party fonts.googleapis.com +
   fonts.gstatic.com requests on every page load. Files in /fonts/. */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/PlayfairDisplay-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/PlayfairDisplay-500.ttf') format('truetype');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/PlayfairDisplay-600.ttf') format('truetype');
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #F5F1EA;
  color: #1A1A1A;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: transparent; padding: 0; color: inherit; }
input, textarea { font-family: inherit; }

/* ===== TYPE ===== */
.serif { font-family: 'Playfair Display', Georgia, 'Times New Roman', Times, serif; font-weight: 500; letter-spacing: -0.3px; }
.eyebrow {
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 3px;
  color: #5A5A5A;
  text-transform: uppercase;
  font-weight: 500;
}
.eyebrow.accent { color: #A0673A; }
h1.display { font-family: 'Playfair Display', Georgia, serif; font-size: 56px; line-height: 1.1; font-weight: 500; letter-spacing: -0.5px; margin: 0 0 24px; }
h2.display { font-family: 'Playfair Display', Georgia, serif; font-size: 40px; line-height: 1.15; font-weight: 500; letter-spacing: -0.3px; margin: 0 0 24px; }
h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 24px; line-height: 1.25; font-weight: 500; margin: 0 0 12px; letter-spacing: -0.2px; }
p { margin: 0 0 16px; }
.lead { font-size: 17px; line-height: 1.65; color: #1A1A1A; }
.muted { color: #5A5A5A; }
.accent { color: #A0673A; }

/* ===== CONTAINERS ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 40px; }

/* ===== HEADER / NAV ===== */
.nav {
  background: #5E6B3E;
  color: #FFFFFF;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
/* Override .container inside the nav so the logo sits near the far left
   instead of inside the centered 1200px max-width. Each item gets an
   explicit grid-column so the hamburger button injected by nav.js (always
   placed in column 1, but display:none on desktop) never disrupts placement
   of the existing logo / links / CTA. */
.nav .container {
  max-width: none;
  padding: 0 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.nav-logo  { grid-column: 1; grid-row: 1; justify-self: start; }
.nav-links { grid-column: 2; grid-row: 1; justify-self: center; }
.nav-cta   { grid-column: 3; grid-row: 1; justify-self: end; }
.nav-menu-btn { grid-column: 1; grid-row: 1; }
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #FFFFFF;
  font-weight: 500;
}
.nav-logo-img {
  height: 136px;
  width: auto;
  max-width: none;
  display: block;
  flex-shrink: 0;
}
.nav-links { display: flex; gap: 32px; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #FFFFFF;
  opacity: 0.85;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms, opacity 150ms;
}
.nav-links a:hover, .nav-links a.active { border-bottom-color: rgba(255,255,255,0.6); opacity: 1; }
.nav-cta {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 8px 16px;
  color: #FFFFFF;
  background: transparent;
  transition: background 150ms, border-color 150ms;
  cursor: pointer;
  display: inline-block;
}
.nav-cta:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.9); }

/* ===== MOCKUP CALLOUT (home page band) ===== */
.callout { padding: 0 0 80px; }
.callout-band {
  background: #5E6B3E;
  color: #F5F1EA;
  padding: 56px 64px;
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 40px;
  align-items: center;
}
.callout-eyebrow { color: rgba(245, 221, 185, 0.95); margin-bottom: 16px; }
.callout-headline {
  color: #F5F1EA;
  margin: 0 0 14px;
  font-size: 36px;
}
.callout-lead {
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
  max-width: 540px;
  opacity: 0.9;
}
.callout-btn {
  background: #F5DDB9;
  color: #1A1A1A;
  border-color: #F5DDB9;
}
.callout-btn:hover { opacity: 0.9; }
@media (max-width: 768px) {
  .callout-band { grid-template-columns: 1fr; padding: 40px 32px; gap: 24px; }
  .callout-headline { font-size: 28px; }
  .callout-actions { display: flex; }
  .callout-btn { width: 100%; text-align: center; }
}

/* ===== HAMBURGER + SLIDE-OUT DRAWER (injected by nav.js) ===== */
/* Hidden on desktop · the inline .nav-links list handles navigation there.
   Switched on at the ≤900 breakpoint along with .nav-links { display: none }. */
.nav-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #FFFFFF;
}
.nav-menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #FFFFFF;
  border-radius: 1px;
}

.nav-drawer {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 200;
}
.nav-drawer.open {
  opacity: 1;
  pointer-events: auto;
}
.nav-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(86vw, 360px);
  background: #5E6B3E;
  color: #F5F1EA;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transform: translateX(-100%);
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow-y: auto;
}
.nav-drawer.open .nav-drawer-panel { transform: translateX(0); }

.nav-drawer-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  font-size: 26px;
  line-height: 1;
  background: transparent;
  border: none;
  color: #F5F1EA;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 150ms;
}
.nav-drawer-close:hover { opacity: 1; }

.nav-drawer-wordmark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(245, 241, 234, 0.18);
}

.nav-drawer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.nav-drawer-links li { }
.nav-drawer-links a {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  letter-spacing: -0.2px;
  color: #F5F1EA;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: color 150ms, border-color 150ms, padding-left 200ms;
}
.nav-drawer-links a:hover,
.nav-drawer-links a:focus {
  color: #F5DDB9;
  padding-left: 6px;
}
.nav-drawer-links a.current {
  color: #F5DDB9;
  border-bottom-color: rgba(245, 221, 185, 0.4);
}

.nav-drawer-meta {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.75;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 241, 234, 0.18);
}
.nav-drawer-meta a { color: #F5F1EA; }
.nav-drawer-asi { letter-spacing: 2.5px; }

.nav-drawer-legal {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.6;
  display: flex;
  gap: 10px;
  padding-top: 8px;
}
.nav-drawer-legal a { color: #F5F1EA; }
.nav-drawer-legal a:hover { opacity: 1; }

/* When the drawer is open, lock body scroll behind it */
body.no-scroll { overflow: hidden; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: #1A1A1A;
  color: #F5F1EA;
  border: 1px solid #1A1A1A;
  padding: 14px 28px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: opacity 150ms;
  display: inline-block;
  text-align: center;
}
.btn-primary:hover { opacity: 0.85; }
.btn-ghost {
  background: transparent;
  color: #1A1A1A;
  border: 1px solid #1A1A1A;
  padding: 14px 28px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background 150ms, color 150ms;
  display: inline-block;
  text-align: center;
}
.btn-ghost:hover { background: #1A1A1A; color: #F5F1EA; }
.link-accent {
  color: #A0673A;
  border-bottom: 1px solid #A0673A;
  padding-bottom: 1px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ===== HOME · HERO ===== */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}
.hero h1 { max-width: 760px; margin-left: auto; margin-right: auto; margin-bottom: 28px; }
.hero .lead { max-width: 540px; margin: 0 auto 40px; color: #1A1A1A; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-image-wrap {
  margin: 0 auto 80px;
  max-width: 1200px;
  padding: 0 40px;
}
.hero-image {
  width: 100%;
  height: 640px;
  background: #E5DFD3 50% 60%/cover no-repeat;
  border: 2px solid #5E6B3E;
}

/* ===== HOME · STORY ===== */
.story { padding: 80px 0; background: #FFFFFF; }
.story .container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.story-image { aspect-ratio: 4 / 3; background: #E5DFD3 50% 50%/cover no-repeat; }

/* ===== HOME · FEATURED GRID ===== */
.featured { padding: 100px 0 80px; text-align: center; }
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.featured-tile { text-align: left; }
.featured-tile-image {
  aspect-ratio: 1 / 1;
  background: #FFFFFF;
  margin-bottom: 16px;
  border: 1px solid #E5DFD3;
  overflow: hidden;
}
.featured-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  display: block;
}
.featured-tile-name { font-family: 'Playfair Display', serif; font-size: 18px; margin-bottom: 4px; }
.featured-tile-meta { font-size: 12px; color: #5A5A5A; letter-spacing: 1px; }

/* ===== CATALOG PAGE ===== */
.catalog-header { padding: 80px 0 32px; text-align: center; }
.catalog-search { display: flex; justify-content: center; padding: 8px 0 24px; }
.catalog-search-field {
  position: relative;
  width: 100%;
  max-width: 520px;
}
.catalog-search-field::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A5A5A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='10.5' cy='10.5' r='6.5'/><path d='m21 21-5.5-5.5'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 150ms;
}
.catalog-search-field:focus-within::before { opacity: 1; }
.catalog-search input {
  width: 100%;
  padding: 16px 22px 16px 56px;
  font-size: 15px;
  letter-spacing: 0.3px;
  border: 1px solid #E5DFD3;
  border-radius: 999px;
  background: #FFFFFF;
  color: #1A1A1A;
  font-family: inherit;
  box-shadow: 0 1px 0 rgba(26, 26, 26, 0.02);
  transition: border-color 180ms, box-shadow 180ms;
}
.catalog-search input::placeholder { color: #8A8478; }
.catalog-search input:hover { border-color: #C5BFB0; }
.catalog-search input:focus {
  outline: none;
  border-color: #A0673A;
  box-shadow: 0 0 0 4px rgba(160, 103, 58, 0.12);
}
.catalog-empty {
  text-align: center;
  color: #5A5A5A;
  padding: 60px 0 100px;
  font-size: 15px;
}
.catalog-filters {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 16px 0 56px;
  border-bottom: 1px solid #E5DFD3;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.catalog-filter {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 0;
  color: #5A5A5A;
  border-bottom: 1px solid transparent;
  transition: color 150ms, border-color 150ms;
}
.catalog-filter:hover, .catalog-filter.active { color: #1A1A1A; border-bottom-color: #A0673A; }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
  padding-bottom: 100px;
}
.product-tile {
  cursor: pointer;
  display: block;
  color: inherit;
}
.product-tile-image {
  aspect-ratio: 1 / 1;
  background: #FFFFFF;
  margin-bottom: 16px;
  border: 1px solid #E5DFD3;
  transition: border-color 150ms;
  overflow: hidden;
}
.product-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.product-tile:hover .product-tile-image { border-color: #A0673A; }
.product-tile-eyebrow { font-size: 10px; letter-spacing: 2px; color: #5A5A5A; text-transform: uppercase; margin-bottom: 4px; }
.product-tile-name { font-family: 'Playfair Display', serif; font-size: 19px; line-height: 1.25; margin-bottom: 4px; }
.product-tile-price { font-size: 13px; color: #5A5A5A; }

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail { padding: 56px 0 80px; background: #FFFFFF; }
.product-detail .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: start; }
.product-breadcrumb {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #5A5A5A;
  margin-bottom: 32px;
}
.product-breadcrumb a { color: #5A5A5A; transition: color 150ms; }
.product-breadcrumb a:hover { color: #A0673A; }
.product-gallery .primary {
  aspect-ratio: 1 / 1;
  background: #F5F1EA center/contain no-repeat;
  border: 1px solid #E5DFD3;
  margin-bottom: 12px;
}
.product-gallery .thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.product-gallery .thumbs > button {
  aspect-ratio: 1 / 1;
  background: #F5F1EA center/contain no-repeat;
  border: 1px solid #E5DFD3;
  cursor: pointer;
  padding: 0;
}
.product-gallery .thumbs > button.active,
.product-gallery .thumbs > button:hover { border-color: #A0673A; }
.product-info .eyebrow { margin-bottom: 12px; }
.product-info h2 { margin-bottom: 24px; }
.product-info p.product-description { color: #1A1A1A; line-height: 1.7; }
.product-specs {
  margin: 32px 0;
  border-top: 1px solid #E5DFD3;
}
.product-specs dl { display: grid; grid-template-columns: 1fr 2fr; margin: 0; gap: 0; }
.product-specs dt, .product-specs dd { padding: 12px 0; border-bottom: 1px solid #E5DFD3; margin: 0; font-size: 14px; }
.product-specs dt { color: #5A5A5A; letter-spacing: 1px; text-transform: uppercase; font-size: 11px; padding-top: 14px; }
.product-specs dd { color: #1A1A1A; }
.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid #E5DFD3;
  margin-bottom: 32px;
}
.product-price-label { font-size: 11px; letter-spacing: 2px; color: #5A5A5A; text-transform: uppercase; }
.product-price-value { font-family: 'Playfair Display', serif; font-size: 28px; }
.product-price-meta { font-size: 12px; color: #5A5A5A; }

/* Tier pricing, locked state */
.tier-locked {
  background: #F5F1EA;
  border: 1px solid #E5DFD3;
  padding: 28px;
  margin-bottom: 32px;
  text-align: center;
}
.tier-locked .eyebrow { margin-bottom: 12px; }
.tier-locked h4 { font-family: 'Playfair Display', serif; font-size: 20px; margin: 0 0 8px; font-weight: 500; }
.tier-locked p { font-size: 14px; color: #5A5A5A; margin-bottom: 16px; }

/* Tier pricing, unlocked state */
.tier-unlocked {
  display: none;  /* hidden by default; JS reveals after password */
  border: 2px solid #5E6B3E;
  padding: 24px;
  margin-bottom: 32px;
}
body.unlocked .tier-locked { display: none; }
body.unlocked .tier-unlocked { display: block; }
.tier-unlocked .eyebrow { margin-bottom: 12px; }
.tier-unlocked table { width: 100%; border-collapse: collapse; }
.tier-unlocked th { font-size: 10px; letter-spacing: 2px; color: #5A5A5A; text-transform: uppercase; text-align: left; padding: 8px 12px; border-bottom: 1px solid #E5DFD3; font-weight: 500; }
.tier-unlocked td { padding: 12px; font-size: 14px; border-bottom: 1px solid #E5DFD3; }
.tier-unlocked tr:last-child td { border-bottom: none; }
.tier-unlocked .net-price { font-weight: 600; }

/* Quantity calculator inside the unlocked pricing block */
.qty-calc {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #E5DFD3;
}
.qty-calc-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #5A5A5A;
  margin-bottom: 12px;
}
.qty-calc-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.qty-calc-row input {
  width: 100px;
  padding: 10px 12px;
  border: 1px solid #1A1A1A;
  background: #FFFFFF;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #1A1A1A;
}
.qty-calc-row input:focus {
  outline: none;
  border-color: #5E6B3E;
}
.qty-calc-result {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  font-size: 13px;
  color: #5A5A5A;
}
.qty-calc-tier {
  background: #5E6B3E;
  color: #F5F1EA;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.qty-calc-net {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  color: #A0673A;
  margin-right: 4px;
}
.qty-calc-total {
  font-size: 13px;
  color: #1A1A1A;
}
.qty-calc-error {
  color: #B23B3B;
  font-size: 13px;
}

.product-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== IMPRINT METHODS PAGE ===== */
.imprint { padding: 100px 0; }
.imprint-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.imprint-grid-two { grid-template-columns: repeat(2, 1fr); gap: 48px; max-width: 880px; margin-left: auto; margin-right: auto; }
.imprint-card-image {
  aspect-ratio: 4 / 3;
  background: #FFFFFF;
  border: 1px solid #E5DFD3;
  margin-bottom: 20px;
  overflow: hidden;
}
.imprint-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.imprint-card h3 { font-size: 22px; margin-bottom: 8px; }
.imprint-card p { font-size: 14px; line-height: 1.65; color: #5A5A5A; }

/* ===== REQUEST ACCESS FORM ===== */
.request { padding: 100px 0; }
.request-form {
  max-width: 540px;
  margin: 56px auto 0;
  background: #FFFFFF;
  padding: 48px;
  border: 1px solid #E5DFD3;
}
.form-row { margin-bottom: 24px; }
.form-row label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  color: #5A5A5A;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #E5DFD3;
  background: #F5F1EA;
  font-family: inherit;
  font-size: 15px;
  color: #1A1A1A;
  transition: border-color 150ms;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: #5E6B3E;
}
.form-submit {
  width: 100%;
  background: #1A1A1A;
  color: #F5F1EA;
  border: none;
  padding: 16px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 8px;
}
.form-help { font-size: 13px; color: #5A5A5A; text-align: center; margin-top: 16px; }
.form-success {
  background: #5E6B3E;
  color: #F5F1EA;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
  display: none;
}
.form-success.visible { display: block; }

/* ===== PASSWORD MODAL ===== */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.6);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.modal-backdrop.visible { display: flex; }
.modal {
  background: #F5F1EA;
  padding: 48px 40px;
  max-width: 440px;
  width: calc(100% - 40px);
  border: 2px solid #5E6B3E;
}
.modal h3 { font-family: 'Playfair Display', serif; font-size: 22px; margin: 0 0 8px; font-weight: 500; }
.modal p { font-size: 13px; color: #5A5A5A; margin-bottom: 20px; }
.modal input { width: 100%; padding: 12px 14px; border: 1px solid #E5DFD3; background: #FFFFFF; font-size: 15px; margin-bottom: 16px; }
.modal-actions { display: flex; gap: 12px; }
.modal-actions button { flex: 1; padding: 12px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.modal-error { color: #B23B3B; font-size: 12px; margin-top: -8px; margin-bottom: 16px; min-height: 16px; }

/* ===== FOOTER ===== */
.footer {
  background: #5E6B3E;
  color: #F5F1EA;
  padding: 64px 0 48px;
  margin-top: 80px;
}
.footer .container { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand { }
.footer-wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-tagline { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: 0.7; }
.footer-col h5 { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: 0.7; margin: 0 0 16px; font-weight: 500; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; font-size: 13px; }
.footer-col a { opacity: 0.85; }
.footer-col a:hover { opacity: 1; border-bottom: 1px solid rgba(245,241,234,0.6); padding-bottom: 1px; }
.footer-base {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(245,241,234,0.2);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
}

/* Honeypot field hidden from humans. Bots fill it and Netlify drops the submission. */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===== RESPONSIVE ===== */

/* Tablets · ≤900px */
@media (max-width: 900px) {
  .container, .container-narrow { padding: 0 24px; }
  /* Mobile nav layout: hamburger (col 1) | logo centered (col 2) | CTA (col 3) */
  .nav .container {
    padding: 0 20px;
    gap: 12px;
  }
  .nav-menu-btn { display: flex; grid-column: 1; justify-self: start; }
  .nav-logo { grid-column: 2; justify-self: center; }
  .nav-cta { grid-column: 3; justify-self: end; }
  .nav-logo-img { height: 48px; }
  .nav-links { display: none; }

  h1.display { font-size: 38px; }
  h2.display { font-size: 28px; }

  .story .container,
  .product-detail .container,
  .footer .container { grid-template-columns: 1fr; gap: 32px; }

  .featured-grid, .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .imprint-grid { grid-template-columns: 1fr; gap: 32px; }
  .request-form { padding: 32px 24px; }

  .hero { padding: 60px 0 40px; }
  .hero-image-wrap { padding: 0 24px; }
  .hero-image { height: 320px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; }

  .product-specs dl { grid-template-columns: 1fr 1fr; }
  .footer-base { flex-direction: column; gap: 12px; }

  .mockup-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Phones · ≤600px. The site lived at desktop-density type and padding which
   reads as cramped on phones. This block dials everything down: smaller logo,
   tighter padding, scaled headings, full-width CTAs, and a horizontal scroll
   wrapper for the wholesale tier table so it never blows out narrow viewports. */
@media (max-width: 600px) {
  .container, .container-narrow { padding: 0 20px; }

  /* Nav · slim down for phone. CTA is hidden on phones since the drawer
     surfaces every nav link. Logo goes centered between the hamburger (col 1)
     and an empty col 3 of equal width so visual centering holds. */
  .nav { padding: 10px 0; }
  .nav .container {
    padding: 0 16px;
    gap: 8px;
    grid-template-columns: 40px 1fr 40px;
  }
  .nav-cta { display: none; }
  .nav-logo { grid-column: 2; justify-self: center; }
  .nav-logo-img { height: 52px; }

  /* Type · scale down headings, body, eyebrows */
  body { font-size: 14px; line-height: 1.55; }
  h1.display { font-size: 30px; line-height: 1.15; margin-bottom: 18px; }
  h2.display { font-size: 24px; line-height: 1.2; margin-bottom: 18px; }
  h3 { font-size: 19px; }
  .lead { font-size: 15px; line-height: 1.6; }
  .eyebrow { font-size: 10px; letter-spacing: 2px; }

  /* Buttons · full-width, tap-friendly */
  .btn-primary, .btn-ghost { padding: 13px 20px; font-size: 12px; }

  /* Hero */
  .hero { padding: 40px 0 24px; }
  .hero .lead { margin-bottom: 24px; }
  .hero-image { height: 240px; }
  .hero-image-wrap { margin-bottom: 48px; padding: 0 20px; }

  /* Story */
  .story { padding: 56px 0; }
  .story .container { gap: 24px; }
  .story-image { aspect-ratio: 4 / 3; }

  /* Featured & catalog tiles */
  .featured { padding: 56px 0; }
  .featured-grid, .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; padding-bottom: 56px; }
  .featured-tile-name, .product-tile-name { font-size: 15px; }
  .featured-tile-meta, .product-tile-eyebrow { font-size: 10px; }
  .product-tile-price { font-size: 12px; }

  /* Catalog header & filters */
  .catalog-header { padding: 48px 0 16px; }
  .catalog-search { padding: 0 0 10px; }
  .catalog-search input { padding: 10px 14px; font-size: 16px; /* prevents iOS zoom on focus */ }
  .catalog-filters {
    gap: 18px;
    padding: 12px 0 32px;
    margin-bottom: 28px;
  }
  .catalog-filter { font-size: 11px; padding: 6px 0; letter-spacing: 1.5px; }

  /* Product detail page */
  .product-detail { padding: 32px 0 48px; }
  .product-detail .container { gap: 28px; }
  .product-breadcrumb { font-size: 11px; }
  .product-info .display { font-size: 26px; line-height: 1.2; margin-bottom: 14px; }
  .product-description { font-size: 14px; }
  .product-price-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .product-price-meta { margin-top: 4px; }
  .product-price-value { font-size: 22px; }
  .product-actions { flex-direction: column; gap: 10px; }
  .product-actions a { width: 100%; }

  /* Tier pricing table · horizontal scroll on narrow viewports so 4 numeric
     columns + dollar amounts don't overflow or compress unreadably */
  .tier-unlocked { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tier-unlocked table { min-width: 460px; font-size: 13px; }
  .tier-unlocked th,
  .tier-unlocked td { padding: 10px 8px; }

  /* Quantity calculator */
  .qty-calc-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .qty-calc-row input { width: 100%; font-size: 16px; }

  /* Imprint methods page */
  .imprint { padding: 48px 0; }
  .imprint-card h3 { font-size: 18px; }

  /* Forms */
  .form-row { margin-bottom: 16px; }
  .form-row label { font-size: 11px; }
  .form-row input,
  .form-row textarea,
  .form-row select { font-size: 16px; padding: 12px 14px; /* 16px prevents iOS zoom */ }

  /* Modal · fit viewport with margin */
  .modal { padding: 32px 24px; width: 100%; max-width: 92vw; }
  .modal h3 { font-size: 18px; }
  .modal p { font-size: 13px; }

  /* Footer · already 1 col under 900px; tighten spacing on phones */
  .footer { padding: 48px 0 32px; margin-top: 56px; }
  .footer .container { gap: 28px; }
  .footer-base { font-size: 10px; gap: 8px; text-align: center; }

  /* Mockup tool */
  .mockup-wrap { padding: 32px 0 56px; }
  .mockup-header { margin-bottom: 28px; }
  .mockup-header h1 { font-size: 28px; }
  .mockup-header p { font-size: 14px; }
  .controls-section { padding-bottom: 16px; }
  .controls h4 { font-size: 10px; }
}

/* Very narrow phones · ≤380px (older iPhones, small Android). Drop catalog
   and featured tiles to a single column so each tile is properly readable. */
@media (max-width: 380px) {
  .featured-grid, .catalog-grid { grid-template-columns: 1fr; gap: 20px; }
  h1.display { font-size: 26px; }
  .nav-logo-img { height: 42px; }
  .nav-drawer-panel { padding: 28px 24px; }
}
