/* ============================================
   THE HUNGRY TABLE — Main Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  /* f5eec0 */
  --cream:   #fcf6cb;
  --green:   #6817fe;
  --orange:  #5c011b;
  --dark:    #7941e1;
  --mid:     #3d3d28;
  --light:   #fdf8e8;

  --ff-display: 'Garamond', Georgia, serif;
  --ff-body:    'Garamond', system-ui, sans-serif;

  --header-h: 68px;
  --transition: 0.25s ease;
  --radius: 2px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--light);
  color: var(--dark);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0; 
  left: 0; 
  right: 0;
  z-index: 100;
  background: var(--light);
  /* border-bottom: 1.5px solid var(--dark); */
  transform: translateY(0); 
  transition: transform 0.3s ease;
}


.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  padding: 0 2.5rem;
  max-width: 100%;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.mobile-svg {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  grid-column: 1;
  justify-self: left;
}

.nav-right { justify-content: flex-end; }

.nav-left a {
  font-family: var(--ff-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  transition: color var(--transition);
}

.nav-right a {
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  transition: color var(--transition);
}

.nav-left a:hover, .nav-right a:hover { color: var(--orange); }

.logo {
  font-family: var(--ff-display);
  font-size: clamp(2.1rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--dark);
  letter-spacing: -0.01em;
  text-align: center;
  white-space: nowrap;
}

.btn-subscribe {
  background: var(--orange);
  color: white;
  border: none;
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}

.btn-subscribe:hover {
  background: var(--dark);
  transform: translateY(-1px);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  grid-column: 3;
  justify-self: end;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: transform var(--transition), opacity var(--transition);
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1.5rem 2.5rem 2rem;
  border-top: 1.5px solid var(--dark);
  gap: 1.25rem;
}

.mobile-menu a {
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-menu.open { display: flex; }

.mobile-subscribe {
  margin-top: 0.5rem;
  background: var(--orange);
  color: white !important;
  padding: 10px 20px;
  text-align: center;
  border-radius: var(--radius);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  display: flex;
  flex-direction: column; /* Stacks items vertically so they don't break side-by-side */
  justify-content: flex-start; /* Pushes content to the bottom */
  align-items: center; /* Centers horizontally*/
  flex-grow: 1;
  
  /* height: 750vh; */
  min-height: 10px;
  margin-top: var(--header-h);
  padding-bottom: 5vh; /* Adjust this value to hit the "bottom third" sweet spot */
  padding-top: 1vh;        /* Pushes the H1 down further from the header */
  
  position: relative;
  overflow: hidden;
}

video {
  margin-bottom: 100px; /* Adjust numerical value as needed */
}

/* @keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
} */


.hero-title {
  font-family: var(--ff-display);
  text-align: center;
  font-size: clamp(2rem, 4vw, 5rem);
  line-height: 1.0;
  font-weight: 400;
  color: var(--mid);
  place-items: center;
  padding-left: 5%;
  padding-right: 5%;
  margin-bottom: 1.25rem;
}


/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: white;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background: var(--green);
  /* color: var(--dark); */
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--dark);
}

.btn-dark:hover {
  background: var(--orange);
  color: white;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 0 2rem;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--dark);
  letter-spacing: 0.05em;
}

.see-all {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  transition: color var(--transition);
}

.see-all:hover { color: var(--dark); }

/* ============================================
   FEATURED GRID
   ============================================ */
.featured-grid {
  padding: 5rem 4rem;
  max-width: 100%;
}

.grid-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2px;
  /* border: 1.5px solid var(--dark); */
}

/* Cards — shared */
.card {
  position: relative;
  overflow: hidden;
  /* background: var(--cream); */
}

.card-img-link {
  display: block;
  overflow: hidden;
}

.card-img {
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}

.card-img-link:hover .card-img {
  transform: scale(1.04);
}

.card-body {
  padding: 1.5rem;
}

.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.6rem;
}

.card-title {
  font-family: var(--ff-display);
  font-weight: 500;
  color: var(--dark);
  line-height: 1.2;
}

.card-title a:hover { color: var(--orange); }

.card-desc {
  font-size: 0.9rem;
  color: var(--mid);
  margin-top: 0.6rem;
  line-height: 1.65;
}

/* Big card */
.card--big .card-img-link {
  height: 520px;
  margin: 10px;
}

.card--big .card-title {
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
}

/* Small cards column */
.small-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
  /* border-left: 1.5px solid var(--dark); */
}

.card--small {
  flex: 1;
  display: flex;
  flex-direction: row;
  /* border-bottom: 1.5px solid var(--dark); */
  gap: 5;
}

.card--small:last-child { border-bottom: none; }

.card--small .card-img-link {
  width: 130px;
  min-width: 130px;
  height: auto;
  flex-shrink: 0;
  margin: 10px;
}

.card--small .card-body {
  /* padding: 1.25rem; */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card--small .card-title {
  font-size: 1rem;
}

/* ============================================
   BANNER SPLIT
   ============================================ */
.banner-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  border-top: 1.5px solid var(--dark);
  border-bottom: 1.5px solid var(--dark);
}

.banner-image {
  overflow: hidden;
}

.banner-image img {
  height: 100%;
  transition: transform 0.8s ease;
}

.banner-split:hover .banner-image img {
  transform: scale(1.03);
}

.banner-text {
  background: var(--cream);
  padding: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1.5px solid var(--dark);
}

.banner-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

.banner-heading {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.banner-heading em {
  font-style: italic;
  color: var(--orange);
}

.banner-text p {
  font-size: 1rem;
  color: var(--mid);
  max-width: 400px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* ============================================
   MORE RECIPES ROW
   ============================================ */
.more-recipes {
  padding: 5rem 4rem;
}

.row-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  /* border: 1.5px solid var(--dark); */
}

.row-card {
  padding: 0 0 1.5rem;
  /* border-right: 1.5px solid var(--dark); */
  overflow: hidden;
}

.row-card-img-wrap {
  height: 280px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.row-card-img-wrap img {
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}

.row-card:hover .row-card-img-wrap img { transform: scale(1.05); }

.row-card .card-tag {
  display: block;
  padding: 0 1.25rem 0.4rem;
}

.row-card-title {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.25;
  padding: 0 1.25rem;
}

.row-card-desc {
  font-family: var(--ff-display);
  line-height: 1.25;
  padding: 1.1rem 1.25rem;
}

.row-card-title a:hover { color: var(--orange); }

/* ============================================
   NEWSLETTER BAND
   ============================================ */
.newsletter-band {
  background: var(--orange);
  padding-top: 1.5rem;
  padding-left: 3rem;
  padding-right: 3rem;
  text-align: center;
  border-top: .5px solid var(--dark);
  border-bottom: .5px solid var(--dark);
}

.newsletter-band h2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--cream);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.newsletter-band h2 em {
  color: var(--dark);
}

.newsletter-band p {
  color: rgba(245,235,182,0.85);
  max-width: 440px;
  margin: 0 auto 1rem;
  font-size: 1rem;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 15px 20px;
  max-width: 240px;
  margin: auto auto;
  border: 1.5px solid var(--dark);
  border-radius: var(--radius);
  overflow: hidden;
}

.newsletter-form input {
  flex: 1;
  padding: 15px 20px;
  font-family: var(--ff-body);
  font-size: 14px;
  background: var(--cream);
  border: none;
  outline: none;
  color: var(--dark);
}

.newsletter-form input::placeholder { color: rgba(26,26,18,0.45); }

.newsletter-form button {
  background: var(--dark);
  color: var(--cream);
  border: none;
  font-family: var(--ff-body);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 28px;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.newsletter-form button:hover { background: var(--green); color: var(--light); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--dark);
  color: var(--cream);
  padding: 4rem 4rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(245,235,182,0.15);
  gap: 3rem;
}

.footer-logo {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 1rem;
  color: var(--cream) !important;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.55;
  max-width: 220px;
  line-height: 1.7;
}

.footer-nav {
  display: flex;
  gap: 4rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  color:var(--cream);
  gap: 0.75rem;
}

.footer-col strong {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 0.25rem;
}

.footer-col a {
  font-size: 0.95rem;
  opacity: 0.8;
  transition: opacity var(--cream), color var(--cream);
}

.footer-col a:hover { opacity: 1; color: var(--green); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: 12px;
  color:var(--cream);
  opacity: 0.35;
  letter-spacing: 0.05em;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1300px) {
  .featured-grid { padding: 4rem 2rem; }
  .more-recipes, .newsletter-band { padding: 1rem 1rem; }
  .banner-text { padding: 3rem; }
  .row-cards { grid-template-columns: repeat(2, 1fr); }
  .row-card:nth-child(2) { border-right: none; }
  .row-card:nth-child(3) { border-top: none; }
  .row-card:nth-child(4) { border-top: none; }
}

@media (max-width: 1200px) {
  :root { --header-h: 60px; }

  .nav-left, .nav-right { display: none; }
  .burger { display: flex; }

  .mobile-svg {
    display: flex;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
    padding: 0 1.5rem;
  }

  .logo { grid-column: 2; display:flex; justify-content: center; align-items: center; }

  .grid-layout { grid-template-columns: 1fr; }
  .small-cards { border-left: none; border-top: 1.5px solid var(--dark); }
  .card--small { flex-direction: column; border-right: none; }
  .card--small .card-img-link { width: 100%; height: 200px; }

  .banner-split { grid-template-columns: 1fr; }
  .banner-image { height: 360px; }
  .banner-text { border-left: none; border-top: 1.5px solid var(--dark); padding: 3rem 2rem; }

  .hero-text { padding: 0 2rem 4rem; }
  .featured-grid { padding: 3rem 1.5rem; }
  .more-recipes { padding: 3rem 1.5rem; }
  .newsletter-band { padding: 1rem 1rem; }
  .site-footer { padding: 3rem 1.5rem 0; }
  .footer-inner { flex-direction: column; gap: 1rem; }
}

@media (max-width: 600px) {
  .row-cards { grid-template-columns: 1fr; }
  .row-card { border-right: none; border-bottom: none ; }
  .row-card:last-child { border-bottom: none; }
  .row-card:nth-child(n) { border-top: none; border-right: none; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { padding: 14px; }
  .footer-nav { flex-direction: column; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}

/* Print recipe */
@media print {
  .site-header, .site-footer, .more-recipes, .btn-print { display: none !important; }
  .recipe-main { margin-top: 0; }
}

/* ============================================
   DROPDOWN MENU
   ============================================ */
/* Container must be relative so the menu positions under it */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Hide the menu by default */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;       /* sits just below the trigger link */
  left: 0;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-width: 160px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 1000;
}

/* Show the menu when hovering the container */
.dropdown:hover .dropdown-menu {
  display: block;
}

/* Style the dropdown links */
.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: #333;
}

.dropdown-menu a:hover {
  background-color: #f5f5f5;
}