@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
  --hunter: #386641;
  --sage: #6A994E;
  --yellow: #A7C957;
  --champagne: #F2E8CF;
  --brick: #BC4749;
}

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

body {
  font-family: 'Poppins', system-ui, sans-serif;
  background-color: var(--champagne);
  color: var(--hunter);
}

/* HERO */
.hero {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
}

.hero .text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
}

.hero h1 {
  font-size: 3rem;
}

nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  background-color: var(--hunter);
  padding: 1rem;
}

nav a {
  background-color: var(--sage);
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

nav a:hover {
  background-color: var(--yellow);
  color: var(--hunter);
  cursor: url('https://cur.cursors-4u.net/cursors/cur-9/cur828.cur'), pointer;
}

main {
  max-width: 850px;
  margin: 2rem auto;
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

h2 {
  color: var(--brick);
  text-align: center;
  margin-bottom: 1rem;
}

p {
  text-align: center;
  margin-bottom: 1rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  justify-items: center;
}

.gallery-item {
  background: white;
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
}

.gallery-item img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  max-width: 160px;
}

.instructions-box {
  background: var(--champagne);
  padding: 2rem;
  border-radius: 20px;
  margin-top: 2rem;
}

ol li {
  text-align: left;
  margin-bottom: 0.7rem;
  line-height: 1.7;
}

footer {
  text-align: center;
  padding: 2rem;
  color: var(--hunter);
}

.ingredient-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.ingredient-list li {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.ingredient-list input {
  margin-right: 8px;
  transform: scale(1.2);
}
.instruction-img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  margin-top: 2rem;
  display: block;
}
.variation-card {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.variation-card img {
  width: 180px;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
}

.variation-card div {
  flex: 1;
}
.about-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.about-gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 16px;
}
@media (max-width: 600px) {
  .hero {
    height: 250px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  nav {
    flex-direction: column;
    align-items: center;
  }

  main {
    margin: 1rem;
    padding: 1.2rem;
  }
}

ul, ol {
  max-width: 600px;
  margin: 0 auto 2rem auto;
  padding-left: 9rem;
}

li {
  margin-bottom: 0.6rem;
  line-height: 1.6;
  text-align: left;
}

/*-------- Instructions-------*/

.instructions-box {
  max-width: 800px;
  margin: 0 auto;
}
.instructions-box img,
.step img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  text-align: center;
}

.step img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  margin-bottom: 1rem;
}

/*--------Nutrition Table--------*/


.nutrition-table {
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  border-collapse: collapse;
  background: var(--champagne);
  border-radius: 12px;
  overflow: hidden;
}

.nutrition-table th,
.nutrition-table td {
  border: 1px solid var(--hunter);
  padding: 12px;
  text-align: center;
  font-size: 0.95rem;
}

.nutrition-table th {
  background-color: var(--sage);
  color: white;
}


.features-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.variation-card p {
  text-align: left;
}

.about-list {
  max-width: 100%;      
  margin: 0 0 2rem 0;   
  padding-left: 1.5rem;
}

.special-box {
  background: var(--champagne);
  padding: 2rem;
  border-radius: 20px;
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.special-box h2 {
  margin-bottom: 1rem;
}

.special-box p {
  text-align: center;
}