/* =====================================================
   BIG TABLE — style.css
   Brand by Meg Calloway / Everyone at the table
   ===================================================== */

:root {
  --parchment: #FDF8F2;
  --ink: #2C2416;
  --terracotta: #C4622D;
  --terracotta-light: #F3E3DC;
  --sage: #6B8F5E;
  --cardamom: #2D5C3E;
  --cardamom-light: #D1E1D9;
  --turmeric: #E8C84A;
  --saffron: #D4541A;
  --cream: #F6F1E9;
  --stone: #887D6B;
  --border: #DDD4C8;
  --white: #FFFFFF;
  --shadow: 0 2px 12px rgba(44,36,22,0.08);
  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-pill: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--parchment);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }


/* ── NAVIGATION ───────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  background: var(--parchment);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(44,36,22,0.06);
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.nav-dot--terracotta { background: var(--terracotta); }
.nav-dot--turmeric   { background: var(--turmeric); }
.nav-dot--sage       { background: var(--sage); }

.nav-brand {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.3px;
}

.nav-filters {
  display: flex;
  gap: 10px;
  flex: 1;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.nav-dropdown-btn:hover {
  background: var(--border);
  border-color: var(--stone);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  min-width: 160px;
  overflow: hidden;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-item {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--ink);
  transition: background 0.12s;
  cursor: pointer;
  text-decoration: none;
}

.nav-dropdown-item:hover {
  background: var(--cream);
  color: var(--terracotta);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.15s;
  text-decoration: none;
}

.nav-link:hover { color: var(--terracotta); }

/* ── HERO (HOMEPAGE) ──────────────────────────────── */

.hero {
  position: relative;
  height: 560px;
  background: linear-gradient(135deg, var(--terracotta-light) 0%, #E8D5CB 50%, #F0DDD5 100%);
  overflow: hidden;
}

.hero-accent-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--terracotta);
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(44,36,22,0.75) 0%, transparent 100%);
  z-index: 1;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 0 0 60px 80px;
}

/* Widget floats below the hero — lives outside the hero div
   so overflow:hidden doesn't clip it */
.hero-search-float {
  max-width: 760px;
  margin: -48px auto 0;
  padding: 0 40px;
  position: relative;
  z-index: 20;
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--turmeric);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.hero-headline {
  font-size: 64px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -1px;
  max-width: 600px;
}

.hero-widget-wrap {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  z-index: 10;
  width: 760px;
}

.search-widget-box {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 40px rgba(44,36,22,0.18);
  padding: 20px 24px;
}

.search-widget-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 12px 16px;
  background: var(--parchment);
}

.search-widget-icon {
  color: var(--stone);
  font-size: 18px;
  flex-shrink: 0;
}

.search-widget-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}

.search-widget-input::placeholder { color: var(--stone); }

.search-widget-btn {
  background: var(--terracotta);
  color: var(--white);
  border: none;
  border-radius: var(--radius-btn);
  padding: 10px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}

.search-widget-btn:hover { background: var(--saffron); }

.search-widget-powered {
  text-align: right;
  margin-top: 8px;
  font-size: 11px;
  color: var(--stone);
}

.search-widget-powered a {
  color: var(--terracotta);
  font-weight: 600;
}

/* ── CURSO WIDGET (embedded search) ─────────────── */

.curso-widget-section {
  margin: 40px 0;
}

.curso-widget-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
}

.curso-widget-powered {
  text-align: right;
  font-size: 11px;
  color: var(--stone);
  margin-top: 6px;
}


/* ── INTRO STRIP ─────────────────────────────────── */

.intro-strip {
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 40px 28px;
}

.intro-strip p {
  font-size: 16px;
  color: var(--stone);
  text-align: center;
  max-width: 900px;
  line-height: 1.65;
}


/* ── RECIPE GRID ─────────────────────────────────── */

.recipes-section {
  padding: 80px 40px 60px;
}

.recipes-heading {
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 40px;
  text-align: center;
}

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(3, 380px);
  gap: 40px;
  justify-content: center;
}

.recipe-card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.recipe-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(44,36,22,0.13);
}

.recipe-card-img-wrap {
  position: relative;
  height: 280px;
  background: var(--terracotta-light);
  overflow: hidden;
  flex-shrink: 0;
}

.recipe-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  opacity: 0.3;
}

.recipe-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.recipe-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.recipe-card-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 500;
  width: fit-content;
}

.pill--terracotta {
  background: var(--terracotta-light);
  color: var(--terracotta);
}

.pill--cardamom {
  background: var(--cardamom-light);
  color: var(--cardamom);
}

.pill--saffron {
  background: #FDEADF;
  color: var(--saffron);
}

.recipe-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.recipe-card-meta {
  font-size: 12px;
  color: var(--stone);
}

.recipe-card-link {
  font-size: 14px;
  font-weight: 600;
  margin-top: auto;
}

.link--terracotta { color: var(--terracotta); }
.link--cardamom   { color: var(--cardamom); }
.link--saffron    { color: var(--saffron); }

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.btn-ghost {
  padding: 14px 40px;
  border: 2px solid var(--border);
  border-radius: var(--radius-btn);
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
  display: inline-block;
}

.btn-ghost:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  background: var(--terracotta-light);
}


/* ── FOOTER ─────────────────────────────────────── */

.footer {
  background: var(--ink);
  padding: 48px 80px 28px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(253,248,242,0.12);
  gap: 32px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--parchment);
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-link {
  font-size: 14px;
  color: rgba(253,248,242,0.65);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-link:hover { color: var(--parchment); }

.footer-powered {
  font-size: 13px;
  font-weight: 600;
  color: var(--terracotta);
}

.footer-bottom {
  padding-top: 20px;
  font-size: 13px;
  color: var(--stone);
}


/* ── RECIPE PAGE: HERO ───────────────────────────── */

.recipe-hero {
  position: relative;
  height: 500px;
  background: linear-gradient(135deg, var(--terracotta-light) 0%, #E8D5CB 100%);
  overflow: hidden;
}

.recipe-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.recipe-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,36,22,0.82) 0%, rgba(44,36,22,0.3) 60%, transparent 100%);
  z-index: 1;
}

.recipe-hero-content {
  position: absolute;
  bottom: 48px;
  left: 80px;
  right: 80px;
  z-index: 3;
}

.recipe-hero-breadcrumb {
  font-size: 14px;
  color: rgba(253,248,242,0.75);
  margin-bottom: 16px;
}

.recipe-hero-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.recipe-hero-breadcrumb a:hover { color: var(--turmeric); }

.recipe-hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  background: var(--terracotta);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}

.recipe-hero-title {
  font-size: 56px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  max-width: 800px;
}

.recipe-hero-byline {
  font-size: 15px;
  color: rgba(253,248,242,0.8);
}


/* ── META STRIP ──────────────────────────────────── */

.meta-strip {
  background: var(--cream);
  height: 88px;
  display: flex;
  align-items: center;
  padding: 0 80px;
  border-bottom: 1px solid var(--border);
}

.meta-strip-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  width: 100%;
}

.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid var(--border);
}

.meta-item:last-child { border-right: none; }

.meta-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.meta-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}


/* ── RECIPE BODY ─────────────────────────────────── */

.recipe-body-wrap {
  background: var(--parchment);
  padding: 60px 0 80px;
}

.recipe-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.recipe-body p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 20px;
}

.recipe-pull-quote {
  border-left: 4px solid var(--sage);
  margin: 36px 0;
  padding: 4px 0 4px 24px;
}

.recipe-pull-quote p {
  font-size: 18px;
  font-style: italic;
  color: var(--cardamom);
  line-height: 1.6;
  margin-bottom: 0;
}

.recipe-section-heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin: 48px 0 24px;
}

.ingredients-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.ingredients-list li {
  font-size: 16px;
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.ingredients-list li::before {
  content: '·';
  color: var(--terracotta);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.recipe-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

.method-steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 40px;
}

.method-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.method-step-img {
  width: 100px;
  height: 100px;
  background: var(--terracotta-light);
  border-radius: var(--radius-btn);
  flex-shrink: 0;
  overflow: hidden;
}

.method-step-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.method-step-content {
  flex: 1;
  padding-top: 4px;
}

.method-step-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.method-step-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}


/* ── UTILITIES ───────────────────────────────────── */

.text-center { text-align: center; }
.mt-80 { margin-top: 80px; }

@media (max-width: 1200px) {
  .recipes-grid {
    grid-template-columns: repeat(2, 380px);
  }
}

@media (max-width: 900px) {
  .nav { padding: 0 20px; gap: 16px; }
  .hero-headline { font-size: 40px; }
  .hero-content { padding-bottom: 220px; padding-left: 32px; }
  .hero-widget-wrap { width: calc(100% - 48px); }
  .recipes-grid { grid-template-columns: 1fr; }
  .recipes-section { padding: 60px 20px; }
  .recipe-hero-title { font-size: 36px; }
  .recipe-hero-content { left: 24px; right: 24px; }
  .meta-strip { padding: 0 24px; height: auto; padding: 20px 24px; }
  .meta-strip-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .meta-item { border-right: none; align-items: flex-start; text-align: left; }
  .recipe-body { padding: 0 20px; }
  .footer { padding: 40px 24px 24px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
