/* =========================
   InforMOO-tive Cuts
   Rustic Butcher-Block Theme
   ========================= */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@600;700&family=Oswald:wght@400;500;600&family=Playfair+Display:ital,wght@0,700;1,400&display=swap');

/* ── CSS Variables ── */
:root {
  --wood-dark:    #2b1a0e;
  --wood-mid:     #5c3317;
  --wood-warm:    #8b5e3c;
  --wood-light:   #c49a6c;
  --amber:        #c97b2e;
  --amber-bright: #e8952e;
  --parchment:    #fdf6ec;
  --cream:        #f5e9d6;
  --charcoal:     #1a1108;
  --red-meat:     #8b1a1a;
  --text-on-dark: #f0dfc0;
}

/* ── Wood texture body background ── */
html {
  height: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Oswald', sans-serif;
  color: var(--charcoal);
  background-color: var(--wood-dark);
  background-image: url('images/wood-bg.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* dark tint so light wood textures look warm and rich */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(30, 12, 2, 0.45);
  pointer-events: none;
  z-index: 0;
}

header, main, footer {
  position: relative;
  z-index: 1;
}

main {
  flex: 1;
}

/* ── HEADER ── */
.site-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 2.5rem;
  background: var(--wood-dark);
  border-bottom: 5px solid var(--amber);
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);

  /* subtle header wood overlay */
  background-image:
    repeating-linear-gradient(
      93deg,
      transparent,
      transparent 4px,
      rgba(255,255,255,0.015) 4px,
      rgba(255,255,255,0.015) 7px
    ),
    linear-gradient(180deg, #3b2008, #1a0d04);
}

/* Decorative rule below amber border */
.site-header::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--wood-mid);
  opacity: 0.5;
}

.logo img {
  height: 100px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  transition: transform 0.2s ease;
}
.logo img:hover {
  transform: scale(1.04);
}

.header-text h1,
.site-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin: 0;
  color: var(--text-on-dark);
  letter-spacing: 0.04em;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

.header-text p {
  margin: 0.25rem 0 0;
  color: var(--wood-light);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ── HOME MAIN ── */
.home-main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2.5rem 2rem;
  position: relative;
}

.cow-diagram {
  max-width: 90%;
  border: 6px solid var(--wood-light);
  border-radius: 10px;
  background: var(--cream);
  box-shadow:
    0 0 0 2px var(--amber),
    0 8px 40px rgba(0,0,0,0.6),
    inset 0 0 30px rgba(196,154,108,0.08);
  transition: box-shadow 0.3s ease;
}
.cow-diagram:hover {
  box-shadow:
    0 0 0 2px var(--amber-bright),
    0 12px 50px rgba(0,0,0,0.7),
    inset 0 0 30px rgba(196,154,108,0.1);
}

/* ── TOOLTIP ── */
#tooltip {
  position: absolute;
  background: var(--wood-dark);
  color: var(--text-on-dark);
  padding: 7px 13px;
  border-radius: 5px;
  font-size: 0.85rem;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: none;
  border: 1px solid var(--amber);
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  pointer-events: none;
  z-index: 100;
}

/* ── CUT DETAIL PAGE ── */
.cut-page {
  max-width: 860px;
  margin: 2.5rem auto;
  padding: 2.5rem 3rem;
  background: var(--parchment);
  border-radius: 10px;
  border: 3px solid var(--wood-light);
  box-shadow:
    0 0 0 1px var(--amber),
    0 10px 40px rgba(0,0,0,0.55);

  /* parchment texture */
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 28px,
    rgba(139,94,60,0.06) 28px,
    rgba(139,94,60,0.06) 29px
  );
}

.cut-page h2 {
  font-family: 'Playfair Display', serif;
  color: var(--wood-mid);
  font-size: 1.5rem;
  margin-top: 1.75rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--wood-light);
  letter-spacing: 0.02em;
}

.cut-page p,
.cut-page ul {
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #3a2010;
}

.cut-page ul {
  padding-left: 1.4rem;
}

.cut-page ul li {
  margin-bottom: 0.35rem;
}

.cut-page ul li::marker {
  color: var(--amber);
}

.cut-page img {
  width: 100%;
  border-radius: 8px;
  border: 4px solid var(--wood-mid);
  margin: 1.2rem 0;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
  display: block;
}

/* ── NUTRITION BLOCK ── */
.nutrition {
  background: var(--wood-dark);
  background-image: linear-gradient(135deg, #3b2008, #1e0f04);
  padding: 1.2rem 1.5rem;
  border-left: 6px solid var(--amber);
  border-radius: 0 8px 8px 0;
  margin-top: 1.8rem;
  box-shadow: 2px 4px 16px rgba(0,0,0,0.3);
}

.nutrition h2 {
  color: var(--amber-bright) !important;
  border-bottom-color: var(--amber) !important;
  font-family: 'Playfair Display', serif;
}

.nutrition ul {
  color: var(--text-on-dark) !important;
  margin: 0;
  padding-left: 1.2rem;
}

.nutrition ul li::marker {
  color: var(--amber-bright);
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 1.2rem;
  background: var(--charcoal);
  color: var(--wood-light);
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-top: 3px solid var(--amber);
}

/* ── PRINT STYLES ── */
@media print {
  header, footer { display: none; }
  body { background: white; color: black; }
  .cut-page {
    box-shadow: none;
    border: 1px solid #ccc;
    background: white;
    background-image: none;
  }
  img { max-width: 100%; border: none; box-shadow: none; }
}