/* ===================================
   PROTEIN & THYME — SHARED STYLES
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=DM+Sans:wght@300;400;500;600&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --cream: #faf8f3;
  --warm-white: #fff9f2;
  --sage: #7a8c6e;
  --deep-sage: #4a5c3e;
  --rust: #c4622d;
  --terracotta: #b85c38;
  --gold: #c9a84c;
  --charcoal: #2c2c2c;
  --mid-gray: #6b6b6b;
  --light-gray: #e8e4dc;
  --soft-tan: #f0ebe0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== ANNOUNCEMENT BAR ===== */
.announce-bar {
  background: var(--rust);
  color: white;
  text-align: center;
  padding: 8px 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.announce-bar a { color: white; font-weight: 700; }

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--light-gray);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
}
.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.65rem;
  color: var(--charcoal);
  text-decoration: none;
  line-height: 1;
}
.logo span {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  margin-top: 2px;
}
nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}
nav a {
  text-decoration: none;
  color: var(--charcoal);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}
nav a:hover { color: var(--rust); }
nav a.active { color: var(--rust); }
nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--rust);
  border-radius: 2px;
}
.nav-cta {
  background: var(--rust) !important;
  color: white !important;
  padding: 0.45rem 1.1rem;
  border-radius: 2rem;
}
.nav-cta:hover { background: var(--terracotta) !important; }
.nav-cta.active::after { display: none; }

/* ===== MOBILE NAV ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--cream);
  padding: 1rem 2rem 2rem;
  border-top: 1px solid var(--light-gray);
  gap: 1rem;
}
.mobile-nav a {
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--charcoal);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--light-gray);
}
.mobile-nav.open { display: flex; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary { background: var(--rust); color: white; }
.btn-primary:hover { background: var(--terracotta); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--charcoal); border: 2px solid var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: white; }
.btn-sage { background: var(--deep-sage); color: white; }
.btn-sage:hover { background: var(--sage); }

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header.left { text-align: left; }
.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  color: var(--charcoal);
}
.section-header p {
  color: var(--mid-gray);
  margin-top: 0.75rem;
  font-size: 1rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}
.section-header.left p { margin-left: 0; }

/* ===== RECIPE CARD ===== */
.recipe-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.11);
}
.card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
  display: block;
}
.recipe-card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 1.25rem; }
.card-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rust);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}
.card-body p {
  font-size: 0.84rem;
  color: var(--mid-gray);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.74rem;
  color: var(--mid-gray);
  flex-wrap: wrap;
}

/* ===== PROTEIN BADGE ===== */
.protein-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: var(--rust);
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 2px 10px rgba(196,98,45,0.45);
  z-index: 2;
}
.protein-badge strong { font-size: 0.95rem; font-weight: 700; line-height: 1; }

/* ===== AD UNITS ===== */
.ad-unit {
  background: var(--light-gray);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid-gray);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ad-leaderboard { height: 90px; width: 100%; max-width: 728px; margin: 0 auto; }
.ad-rectangle { width: 100%; height: 250px; }
.ad-wrap { padding: 1.5rem 0; text-align: center; }

/* ===== SIDEBAR LAYOUT ===== */
.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
.sidebar { display: flex; flex-direction: column; gap: 2rem; }
.sidebar-widget {}
.sidebar-widget h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--rust);
  display: inline-block;
}

/* ===== EMAIL SIGNUP ===== */
.email-widget {
  background: linear-gradient(135deg, var(--deep-sage), var(--sage));
  border-radius: 18px;
  padding: 2rem;
  text-align: center;
  color: white;
}
.email-widget h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.email-widget p { font-size: 0.86rem; opacity: 0.85; margin-bottom: 1.2rem; line-height: 1.6; }
.email-widget input {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 2rem;
  border: none;
  margin-bottom: 0.6rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  outline: none;
}
.email-widget button {
  width: 100%;
  padding: 0.7rem;
  background: var(--gold);
  color: var(--charcoal);
  border: none;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
}
.email-widget button:hover { background: #d4b05c; }
.email-widget small { font-size: 0.68rem; opacity: 0.6; margin-top: 0.5rem; display: block; }

/* ===== CAT PILLS ===== */
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  background: white;
  border: 1.5px solid var(--light-gray);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--charcoal);
  white-space: nowrap;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--rust);
  border-color: var(--rust);
  color: white;
}

/* ===== STAT BOXES ===== */
.stat-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.stat-box {
  flex: 1;
  min-width: 80px;
  background: white;
  border-radius: 12px;
  padding: 0.8rem;
  text-align: center;
}
.stat-box strong {
  display: block;
  font-size: 1.3rem;
  color: var(--rust);
  font-weight: 700;
}
.stat-box small {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--mid-gray);
}

/* ===== PILL CATEGORY STRIP ===== */
.pill-strip {
  background: var(--soft-tan);
  padding: 1.2rem 0;
  overflow-x: auto;
}
.pill-strip-inner {
  display: flex;
  gap: 0.75rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  white-space: nowrap;
}

/* ===== FOOTER ===== */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.65);
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2rem;
}
.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: white;
  text-decoration: none;
  display: block;
  margin-bottom: 0.75rem;
}
.footer-bio { font-size: 0.86rem; line-height: 1.7; max-width: 240px; }
.social-row { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 0.8rem;
  transition: border-color 0.2s, background 0.2s;
}
.social-row a:hover { border-color: var(--gold); background: rgba(201,168,76,0.15); }
.footer-col h5 {
  color: white;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col ul a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeUp 0.65s ease both; }
.fade-in-1 { animation: fadeUp 0.65s 0.1s ease both; }
.fade-in-2 { animation: fadeUp 0.65s 0.2s ease both; }
.fade-in-3 { animation: fadeUp 0.65s 0.35s ease both; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .two-col-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 0.9rem 1.25rem; }
  .container { padding: 0 1.25rem; }
}
