/* ==========================================================================
   SteakWorld — shared stylesheet
   ========================================================================== */
:root {
  --fire: #E84C1E;
  --fire-dark: #B33710;
  --gold: #F5A623;
  --cream: #FDF6ED;
  --cream-2: #F6ECDD;
  --dark: #1A0A00;
  --charcoal: #2E1A0E;
  --charcoal-2: #241209;
  --muted: #7A5C44;
  --line: #eddfc8;
  --line-2: #f0e6d8;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--cream);
  color: var(--dark);
  min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- NAV ---------- */
nav {
  background: var(--charcoal);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.logo span { color: #fff; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.nav-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: #fff; }
.nav-cta {
  background: var(--fire);
  color: #fff !important;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}
.nav-cta:hover { background: #ff5c2e; color: #fff !important; }

/* ---------- HERO ---------- */
.hero {
  background: var(--charcoal);
  background-image: repeating-linear-gradient(
    45deg, transparent, transparent 40px,
    rgba(255,255,255,0.015) 40px, rgba(255,255,255,0.015) 80px);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(232,76,30,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero-tag {
  display: inline-block;
  background: var(--fire);
  color: #fff;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 20px; margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: #fff; line-height: 1.15; margin-bottom: 1rem;
  position: relative;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p {
  color: #bbb; font-size: 1.05rem; max-width: 560px;
  margin: 0 auto 2rem; line-height: 1.7; position: relative;
}
.hero-stats { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; position: relative; }
.stat { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--gold); }
.stat-label { font-size: 0.8rem; color: #888; text-transform: uppercase; letter-spacing: 0.08em; }

.hero-btns { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; position: relative; margin-bottom: 2.25rem; }
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500;
  padding: 12px 26px; border-radius: 26px; border: none; transition: all 0.2s;
}
.btn-primary { background: var(--fire); color: #fff; }
.btn-primary:hover { background: #ff5c2e; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #eee; border: 1.5px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- LAYOUT ---------- */
main { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem; }
.section-header { margin-bottom: 2rem; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--charcoal); }
.section-header p { color: var(--muted); margin-top: 0.4rem; max-width: 620px; }
.section-eyebrow {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--fire); font-weight: 500; margin-bottom: 0.5rem;
}

/* ---------- HOME: category tiles ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; margin-bottom: 4rem; }
.tile {
  display: block; text-decoration: none; background: #fff;
  border: 1.5px solid var(--line); border-radius: 16px; padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s; position: relative; overflow: hidden;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(26,10,0,0.12); }
.tile-ic { font-size: 2rem; margin-bottom: 0.75rem; }
.tile h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--charcoal); margin-bottom: 0.4rem; }
.tile p { font-size: 0.9rem; color: #666; line-height: 1.6; margin-bottom: 0.9rem; }
.tile .go { font-size: 0.82rem; font-weight: 500; color: var(--fire); letter-spacing: 0.03em; }

/* ---------- FILTER BAR ---------- */
.filter-bar {
  background: #fff; border-bottom: 2px solid var(--line-2);
  padding: 0 2rem; display: flex; gap: 0; overflow-x: auto;
  position: sticky; top: 64px; z-index: 50;
}
.filter-btn {
  padding: 1rem 1.25rem; border: none; background: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 0.875rem; font-weight: 500;
  color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; transition: all 0.2s;
}
.filter-btn.active { color: var(--fire); border-bottom-color: var(--fire); }
.filter-btn:hover:not(.active) { color: var(--dark); }

/* ---------- STEAK GRID + CARDS ---------- */
.steak-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-bottom: 4rem; }
.steak-card {
  background: #fff; border-radius: 16px; overflow: hidden;
  border: 1.5px solid var(--line); transition: transform 0.2s, box-shadow 0.2s; cursor: pointer;
}
.steak-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(26,10,0,0.12); }
.steak-card:focus-visible { outline: 3px solid var(--fire); outline-offset: 3px; }
.card-visual { height: 180px; display: flex; align-items: center; justify-content: center; position: relative; }
.cut-art { display: block; filter: drop-shadow(0 5px 6px rgba(58,20,11,0.28)); }
.card-visual .cut-art { height: 134px; width: auto; }
.detail-header .cut-art { height: 150px; width: auto; }
.card-visual, .detail-header { overflow: hidden; }
.cut-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.cut-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cut-photo-scaled { position: relative; inset: auto; object-fit: contain; }
.country-flag {
  position: absolute; top: 12px; right: 12px; font-size: 1.5rem;
  background: rgba(255,255,255,0.9); border-radius: 8px; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
}
.doneness-badge {
  position: absolute; bottom: 12px; left: 12px; font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; color: #fff;
}
.primal-badge {
  position: absolute; bottom: 12px; right: 12px; font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.05em; padding: 3px 10px; border-radius: 20px;
  background: rgba(46,26,14,0.82); color: var(--gold);
}
.card-body { padding: 1.25rem; }
.card-body h3 { font-family: 'Playfair Display', serif; font-size: 1.25rem; color: var(--charcoal); margin-bottom: 0.25rem; }
.card-origin { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.75rem; }
.card-desc { font-size: 0.875rem; color: #555; line-height: 1.6; margin-bottom: 0.9rem; }
.card-sides {
  font-size: 0.78rem; color: var(--muted); border-top: 1px solid var(--line-2);
  padding-top: 0.75rem; margin-bottom: 0.9rem; line-height: 1.5;
}
.card-sides b { color: var(--charcoal); font-weight: 500; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 0.72rem; font-weight: 500; padding: 3px 10px; border-radius: 20px; letter-spacing: 0.04em; }
.tag-breed { background: #FFF3E0; color: #E65100; }
.tag-cook { background: #E8F5E9; color: #1B5E20; }
.tag-flavor { background: #E3F2FD; color: #0D47A1; }

/* ---------- DETAIL MODAL ---------- */
.detail-overlay {
  display: none; position: fixed; inset: 0; background: rgba(26,10,0,0.6);
  z-index: 200; align-items: center; justify-content: center; padding: 1rem;
}
.detail-overlay.open { display: flex; }
.detail-panel {
  background: #fff; border-radius: 20px; max-width: 640px; width: 100%;
  max-height: 92vh; overflow-y: auto; position: relative;
}
.detail-header {
  height: 190px; display: flex; align-items: center; justify-content: center;
  position: relative; border-radius: 20px 20px 0 0;
}
.close-btn {
  position: absolute; top: 1rem; right: 1rem; background: rgba(255,255,255,0.92);
  border: none; border-radius: 50%; width: 36px; height: 36px; cursor: pointer;
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center; color: var(--charcoal);
}
.detail-body { padding: 1.75rem; }
.detail-body h2 { font-family: 'Playfair Display', serif; font-size: 1.75rem; color: var(--charcoal); margin-bottom: 0.25rem; }
.detail-origin-line { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; }
.detail-section { margin-bottom: 1.25rem; }
.detail-section h4 {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--fire); font-weight: 500; margin-bottom: 0.5rem;
}
.detail-section p { font-size: 0.9rem; color: #444; line-height: 1.7; }

/* ---- Pro-locked (blurred) content ---- */
.pro-tag {
  display: inline-block; background: var(--fire); color: #fff;
  font-size: 0.58rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 20px; margin-left: 8px; vertical-align: middle;
}
.pro-locked { position: relative; border-radius: 10px; overflow: hidden; }
.pro-locked p { filter: blur(5px); -webkit-user-select: none; user-select: none; pointer-events: none; margin: 0; }
.pro-unlock {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 0 1rem; text-align: center; text-decoration: none;
  font-size: 0.85rem; font-weight: 500; line-height: 1.4;
  color: var(--fire-dark); background: rgba(253,246,237,0.45);
}
.pro-unlock:hover { background: rgba(253,246,237,0.2); color: var(--fire); }
.detail-specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  background: var(--cream); border-radius: 12px; padding: 1rem; margin-bottom: 1.25rem;
}
.spec-item label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; display: block; margin-bottom: 3px; }
.spec-item span { font-size: 0.9rem; font-weight: 500; color: var(--charcoal); }

/* ---------- COW / BUTCHER DIAGRAM (prominent in modal) ---------- */
.cow-block {
  background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
  border: 1.5px solid var(--line); border-radius: 16px;
  padding: 1.25rem 1.25rem 1.5rem; margin-bottom: 1.5rem; text-align: center;
}
.cow-block .cow-svg { width: 100%; max-width: 420px; height: auto; margin: 0.25rem auto 0.75rem; display: block; }
.cow-primal-name {
  font-family: 'Playfair Display', serif; font-size: 1.35rem; color: var(--fire-dark); margin-bottom: 0.2rem;
}
.cow-primal-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.6; max-width: 460px; margin: 0 auto; }

/* ---------- SIDES ---------- */
.sides-list { display: flex; flex-wrap: wrap; gap: 8px; }
.side-chip {
  background: #fff; border: 1.5px solid var(--line); border-radius: 22px;
  padding: 6px 14px; font-size: 0.82rem; color: var(--charcoal); font-weight: 500;
}

/* ---------- DONENESS GUIDE ---------- */
.doneness-guide { background: var(--charcoal); border-radius: 20px; padding: 2.5rem; margin-bottom: 3rem; color: #fff; }
.doneness-guide h2 { font-family: 'Playfair Display', serif; font-size: 1.75rem; margin-bottom: 0.5rem; color: var(--gold); }
.doneness-guide > p { color: #aaa; margin-bottom: 2rem; font-size: 0.9rem; max-width: 640px; }
.doneness-levels { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 0.5rem; }
.level { min-width: 140px; background: rgba(255,255,255,0.06); border-radius: 12px; padding: 1rem; border: 1px solid rgba(255,255,255,0.1); text-align: center; }
.level-dot { width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 0.75rem; border: 3px solid rgba(255,255,255,0.2); }
.level-name { font-weight: 500; font-size: 0.875rem; color: #fff; margin-bottom: 4px; }
.level-temp { font-size: 0.75rem; color: var(--gold); margin-bottom: 6px; }
.level-desc { font-size: 0.72rem; color: #999; line-height: 1.5; }
.tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.25rem; }
.tip-card { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 1.4rem; }
.tip-card .tip-ic { font-size: 1.6rem; margin-bottom: 0.6rem; }
.tip-card h4 { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--charcoal); margin-bottom: 0.4rem; }
.tip-card p { font-size: 0.86rem; color: #555; line-height: 1.6; }

/* ---------- BREEDS ---------- */
.breed-hero-cow { width: 100%; max-width: 460px; height: auto; margin: 0 auto 1rem; display: block; }
.breed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.breed-card {
  background: #fff; border: 1.5px solid var(--line); border-radius: 18px;
  padding: 1.5rem; transition: transform 0.2s, box-shadow 0.2s;
}
.breed-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(26,10,0,0.1); }
.breed-top { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.9rem; }
.breed-cow-ic {
  width: 64px; height: 48px; flex: none; background: var(--cream);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.breed-cow-ic svg { width: 52px; height: 40px; }
.breed-card h4 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--charcoal); line-height: 1.2; }
.breed-card .breed-origin { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px; }
.breed-card p { font-size: 0.86rem; color: #555; line-height: 1.65; margin-bottom: 1rem; }
.breed-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.breed-chip { font-size: 0.72rem; font-weight: 500; padding: 4px 11px; border-radius: 20px; background: var(--cream-2); color: var(--muted); }
.breed-chip b { color: var(--charcoal); font-weight: 500; }

/* ---------- PRO / COMING SOON ---------- */
.pro-hero { text-align: center; }
.soon-pill {
  display: inline-block; background: rgba(245,166,35,0.15); color: var(--gold);
  border: 1px solid rgba(245,166,35,0.4); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 5px 16px; border-radius: 20px; margin-bottom: 1.4rem;
}
.pro-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 1.25rem; margin: 1rem 0 3rem; }
.pro-feature { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 1.5rem; }
.pro-feature .pf-ic { font-size: 1.8rem; margin-bottom: 0.7rem; }
.pro-feature h4 { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--charcoal); margin-bottom: 0.4rem; }
.pro-feature p { font-size: 0.86rem; color: #666; line-height: 1.6; }
.notify {
  background: var(--charcoal); border-radius: 20px; padding: 2.5rem; text-align: center; color: #fff; margin-bottom: 3rem;
}
.notify h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--gold); margin-bottom: 0.5rem; }
.notify p { color: #bbb; font-size: 0.9rem; margin-bottom: 1.5rem; }
.notify-form { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; max-width: 460px; margin: 0 auto; }
.notify-form input {
  flex: 1; min-width: 200px; padding: 12px 18px; border-radius: 26px; border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06); color: #fff; font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
}
.notify-form input::placeholder { color: #999; }
.notify-note { font-size: 0.8rem; color: var(--gold); margin-top: 1rem; min-height: 1.2em; }
.price-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.25rem; margin-bottom: 3rem; }
.price-card { background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 1.75rem; text-align: center; position: relative; }
.price-card.featured { border-color: var(--fire); box-shadow: 0 12px 40px rgba(232,76,30,0.14); }
.price-card .price-name { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--charcoal); margin-bottom: 0.4rem; }
.price-card .price-amt { font-size: 2.2rem; font-weight: 700; color: var(--fire); }
.price-card .price-amt small { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.price-card ul { list-style: none; margin: 1.1rem 0 1.3rem; text-align: left; }
.price-card li { font-size: 0.85rem; color: #555; padding: 6px 0 6px 24px; position: relative; }
.price-card li::before { content: '🔥'; position: absolute; left: 0; font-size: 0.8rem; }
.price-tag-ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--fire); color: #fff; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 20px;
}

/* ---------- FOOTER ---------- */
footer { background: var(--charcoal); color: #888; text-align: center; padding: 2.5rem; font-size: 0.85rem; }
footer .footer-logo { font-family: 'Playfair Display', serif; font-size: 1.25rem; color: var(--gold); margin-bottom: 0.5rem; }
footer .footer-links { display: flex; gap: 1.25rem; justify-content: center; margin: 0.9rem 0; flex-wrap: wrap; }
footer .footer-links a { color: #aaa; text-decoration: none; font-size: 0.82rem; }
footer .footer-links a:hover { color: var(--gold); }

/* ---------- ANIMATION ---------- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.steak-card { animation: fadeIn 0.4s ease both; }

@media (max-width: 560px) {
  nav { padding: 0 1rem; }
  .nav-links { gap: 0.9rem; }
  main { padding: 2rem 1rem; }
  .detail-body, .doneness-guide, .notify { padding: 1.4rem; }
}
