/* =====================================
   BASE STYLES
===================================== */
body {
  font-family: 'Helvetica Neue', sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #333;
}

/* Global main content wrapper */
main {
  max-width: 1200px;           /* enough room for recipe grids */
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Global headings (e.g. section titles) */
main > h1,
h2 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #4db6ac;              /* brand teal */
  margin-bottom: 2rem;
}


/* =====================================
   HEADER & NAVIGATION
===================================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  margin: 0;
}

header h1 a {
  text-decoration: none;
  color: #4db6ac;
}

nav {
  display: flex;
  gap: 1.5rem;
  font-size: 1.2em;
  font-family: 'Karma', Georgia, serif;
}

nav a {
  text-decoration: none;
  color: #4db6ac;
  font-weight: normal;
}


/* =====================================
   SOCIAL ICONS
===================================== */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-icons a {
  display: inline-block;
  border: 2px solid #4db6ac;
  background-color: white;
  color: #4db6ac;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  text-align: center;
  line-height: 44px;
  font-size: 22px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: #4db6ac;
  color: white;
}


/* =====================================
   FOOTER
===================================== */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  color: #aaa;
  border-top: 1px solid #eee;
}


/* =====================================
   RECIPE PAGE (SINGLE)
===================================== */
.recipe-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1rem;
}

/* Recipe Title */
.recipe-wrapper h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #4db6ac;
  margin-bottom: 1.5rem;
}

/* Recipe Image */
.recipe-image {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.recipe-image img {
  max-width: 80%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Section Headings */
.recipe-content h2,
.recipe-content h3 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  color: #4db6ac;
  font-size: 2rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: normal;
}

/* Ingredient & Direction Lists */
.recipe-content ul,
.recipe-content ol {
  display: inline-block;
  text-align: left;
  font-family: 'Karma', Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 600px;
}

.recipe-content li::marker {
  color: #4db6ac;
  font-weight: bold;
}

/* Notes Section */
.recipe-content h3#-notes {
  color: #4db6ac;
  font-size: 2rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.recipe-content h3#-notes + p {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-family: 'Karma', Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  text-align: center;
}

/* Optional Highlighted Note */
.recipe-wrapper blockquote {
  font-style: italic;
  color: #4db6ac;
  background: #f9f9f9;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  padding: 1.5rem 2rem;
  margin-top: 4rem;
  font-size: 1.5rem;
  text-align: left;
  font-family: 'Karma', Georgia, serif;
}

/* Optional list cleanup */
#ingredients + ol {
  list-style: none;
  counter-reset: item;
}

#ingredients + ol li::marker {
  content: none;
}

hr {
  display: none;
}


/* =====================================
   RECIPES PAGE GRID (INDEX)
===================================== */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.recipe-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.recipe-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: block;
}

.recipe-card h3 {
  font-family: 'Karma', Georgia, serif;
  font-size: 1.2rem;
  font-weight: normal;
  color: #4db6ac;
  margin: 1rem 0;
  line-height: 1.3;
}

/* Remove underlines for recipe titles */
.recipe-card a,
.recipe-card a:visited,
.recipe-card a:hover,
.recipe-card a:active {
  text-decoration: none;
  color: inherit;
}

.recipe-card a:hover h3 {
  color: #39998c;
}

/* Filter Buttons */
.filters {
  text-align: center;
  margin-bottom: 1rem;
}

.filters button {
  background: #fff;
  border: 1px solid #ddd;
  padding: 0.5rem 1rem;
  margin: 0 0.3rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.filters button:hover {
  background: #4eb6ac;
  color: #fff;
}


/* =====================================
   ABOUT, CONTACT, BUY PAGES
===================================== */
.page-about,
.page-contact,
.page-buy {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 2rem;
  text-align: center;
}

.page-about h1,
.page-contact h1,
.page-buy h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #4db6ac;
  margin-bottom: 2rem;
}

.page-about p,
.page-contact p,
.page-buy p {
  font-family: 'Karma', serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  margin: 0 auto 1.2rem;
  max-width: 750px;
  text-align: center;
}


/* =====================================
   CONTACT FORM
===================================== */
form.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  font-family: 'Karma', Georgia, serif;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form.contact-form label {
  font-weight: bold;
  font-size: 1.2em;
}

form.contact-form input[type='text'],
form.contact-form input[type='email'],
form.contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Karma', Georgia, serif;
  box-sizing: border-box;
}

form.contact-form textarea {
  height: 150px;
  resize: vertical;
}

form.contact-form button {
  background: #4db6ac;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  display: block;
  margin: 1rem auto 0;
}

form.contact-form button:hover {
  background: #39998c;
}


/* =====================================
   BUY PAGE
===================================== */
.page-buy img {
  display: block;
  margin: 2rem auto;
  max-width: 300px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.page-buy blockquote {
  font-family: 'Karma', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: #444;
  background: #f9f9f9;
  border-left: 4px solid #4db6ac;
  margin: 1.5rem auto;
  padding: 1rem 1.5rem;
  max-width: 600px;
  line-height: 1.6;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.buy-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: #4db6ac;
  color: white;
  font-family: 'Karma', serif;
  font-size: 1.2rem;
  text-decoration: none;
  border-radius: 8px;
  margin-top: 2rem;
  transition: background-color 0.3s ease;
}

.buy-button:hover {
  background: #39998c;
}


/* =====================================
   HOME PAGE
===================================== */

/* =====================================
   HERO BANNER
===================================== */

.hero {
  position: relative;
  width: 100vw;                    /* full viewport width on desktop */
  margin: 0 calc(50% - 50vw);      /* break out of centered <main> on desktop */
  height: 60vh;                    /* tall hero for desktop */
  overflow: hidden;
  padding: 0;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;                  /* no inline gaps */
  filter: brightness(70%);
}

/* Overlay text */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  max-width: 90%;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;                  /* desktop heading */
  margin-bottom: 0.5rem;
}

.hero-text p {
  font-family: 'Karma', serif;
  font-size: 1.3rem;                 /* desktop subtext */
  margin-bottom: 1.5rem;
}

.hero-btn {
  text-decoration: none;
  background: #4db6ac;
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.hero-btn:hover {
  background: #39998c;
}


/* Featured Recipes Section */
.featured-recipes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.featured-card {
  text-align: center;
}

.featured-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.featured-card h3 {
  font-family: 'Karma', serif;
  font-size: 1.2rem;
  font-weight: bold;
  color: #4db6ac;
  margin-top: 0.8rem;
}

/* Remove underline for featured recipe titles */
.featured-card a,
.featured-card a:visited,
.featured-card a:hover,
.featured-card a:active {
  text-decoration: none;
  color: inherit;
}

.featured-card a:hover h3 {
  color: #39998c;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
  text-align: center;
}

.category-card {
  display: block;
  padding: 2rem 1rem;
  background: #f9f9f9;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #4db6ac;
  font-family: 'Karma', serif;
  font-size: 1.1rem;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.category-card:hover {
  background: #4db6ac;
  color: white;
}

/* CTA Banner */
.cta-banner {
  text-align: center;
  background: #f3f7f6;
  padding: 3rem 1rem;
  margin-top: 3rem;
  border-radius: 8px;
}

.cta-banner h2 {
  font-family: 'Playfair Display', serif;
  color: #4db6ac;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-family: 'Karma', serif;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.cta-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: #4db6ac;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-family: 'Karma', serif;
  transition: background-color 0.3s ease;
}

.cta-btn:hover {
  background: #39998c;
}

/* =====================================
   FIX: Remove extra spacing above hero
===================================== */

/* Remove default margin/padding between nav and hero on home page */
.page-home {
  margin-top: 0;        /* ensure the main wrapper starts at top */
  padding-top: 0;       /* no extra padding at top */
}

.page-home .hero {
  margin-top: 0;        /* hero flush with navbar */
  padding-top: 0;
}

header {
  margin-bottom: 0;     /* remove any bottom gap from header */
}



/* =====================================
   MOBILE RESPONSIVENESS
   ===================================== */

@media (max-width: 768px) {

  /* ----- GLOBAL TEXT ----- */
  html, body {
    margin: 0;
    padding: 0;
  }
  body {
    font-size: 16px;            /* base font for readability */
  }

  main {
    padding: 1rem;              /* reduce side padding */
  }

  h1, h2 {
    font-size: 2rem;            /* scale down big headings */
  }

  /* ----- HEADER / NAV ----- */
  header {
    flex-direction: column;     /* stack logo and nav vertically */
    align-items: center;
    gap: 0.5rem;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  /* ----- HERO BANNER ----- */
  .hero {
    width: 100%;                     /* ✅ keep fully inside mobile viewport */
    margin: 0;                        /* ✅ remove calc() trick on mobile */
    height: 40vh;                      /* ✅ shorter hero for small screens */
    overflow: hidden;
  }

  .hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .hero-text h1 {
    font-size: 1.8rem;                 /* ✅ smaller headline on mobile */
  }

  .hero-text p {
    font-size: 0.95rem;                /* ✅ smaller subtext on mobile */
  }

  .hero-btn {
    padding: 0.5rem 1.2rem;            /* ✅ slightly smaller button */
    font-size: 0.95rem;
  }

  /* ----- FEATURED RECIPES GRID ----- */
  .featured-recipes {
    grid-template-columns: 1fr; /* single column */
    gap: 1.5rem;
  }

  .featured-card img {
    height: auto;               /* allow image to resize naturally */
    max-height: 200px;
  }

  /* ----- CATEGORY GRID ----- */
  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
  }

  .category-card {
    padding: 1rem;
    font-size: 1rem;
  }

  /* ----- CTA BANNER ----- */
  .cta-banner {
    padding: 2rem 1rem;
  }

  .cta-banner h2 {
    font-size: 1.8rem;
  }

  .cta-banner p {
    font-size: 1rem;
  }

  /* ----- ABOUT / CONTACT / BUY PAGES ----- */
  .page-about,
  .page-contact,
  .page-buy {
    padding: 0 1rem;
  }

  .page-about h1,
  .page-contact h1,
  .page-buy h2 {
    font-size: 2rem;
  }

  .page-about p,
  .page-contact p,
  .page-buy p {
    font-size: 1rem;
    line-height: 1.6;
  }

  form.contact-form {
    width: 100%;
  }

  form.contact-form button {
    width: 100%;                 /* full-width button for easy tap */
    font-size: 1rem;
  }
}

