:root {
  --header-bg: #b1d4d8;
  --main-bg: #eaf6f6;
  --footer-bg: #163236;
  --card-bg: rgba(255, 255, 255, 0.3);
  --card-hover: rgba(255, 255, 255, 0.45);
  --text-dark: #163236;
  --text-light: #ffffff;
}

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

body {
  font-family: "Inter", sans-serif;
  background-color: var(--main-bg);
  color: var(--text-dark);
}

/* Header */
.header {
  background-color: var(--header-bg);
  text-align: center;
  padding: 3rem 1rem 2.5rem;
}

.logo {
  max-width: 420px;
  width: 100%;
}
/* Navigation Bar in Header */
.nav-bar {
  margin-top: 2rem;              /* More spacing below logo */
  display: flex;
  flex-wrap: wrap;               /* Allows multiple rows */
  justify-content: center;
  gap: 2rem 3rem;                /* Row gap 2rem, column gap 3rem */
}

.nav-bar a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  transition: background 0.2s ease, color 0.2s ease;
  border-radius: 4px;
  white-space: nowrap;           /* Prevent breaking individual links */
}

.nav-bar a:hover {
  background-color: var(--card-bg);
  color: var(--text-dark);
}

.nav-bar .nav-primary {
  font-weight: 600;
  background-color: var(--card-bg);
  padding: 0.5rem 1rem;
}

.nav-bar .nav-primary:hover {
  background-color: var(--card-hover);
}



/* Category Grid */
.category-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 4vw 4rem;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}


/* Category Cards */
.category-card {
  background: var(--card-bg);
  border-radius: 6px;
  padding: 2.5rem 1.5rem;
  text-align: center;

  text-decoration: none;
  color: var(--text-dark);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;

  transition: background 0.25s ease, transform 0.2s ease;
}

.category-card:hover {
  background: var(--card-hover);
  transform: translateY(-2px);
}

.category-card--primary {
  font-weight: 600;
}

/* Sections */
.site-section {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 2rem 1.5rem;
  text-align: center;
}

.site-section--bright {
  background-color: rgba(177, 212, 216, 0.2); /* soft overlay on main background */
  border-radius: 8px;
}

.content-wrapper {
  max-width: 700px;
  margin: auto;
}
.category-page h1 {
  text-align: center;
  margin-bottom: 2rem;
}
.site-section h2,
.site-section h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.site-section p {
  margin: 1rem 0;
  line-height: 1.6;
}

.site-section .section-image {
  max-width: 100%;
  border-radius: 6px;
  margin: 1.5rem 0;
  display: block;
  object-fit: cover;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 1.5rem;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background-color: #163236;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animate to X */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.recipe-page {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 2rem;
  color: #163236;
  background-color: #eaf6f6;
  border-radius: 8px;
}

.recipe-header h1 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.recipe-author {
  text-align: center;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: #4f86a1;
}

.recipe-image {
  display: block;
  margin: 1rem auto;
  max-width: 100%;
  border-radius: 8px;
}

.recipe-content h3 {
  color: #4f86a1;
  margin-top: 1.5rem;
}

.recipe-content p {
  line-height: 1.6;
  margin: 1rem 0;
}

.recipe-content ul {
  list-style-type: disc;
  padding-left: 2rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.recipe-content ul li {
  margin-bottom: 0.8rem; /* extra spacing between ingredients */
  line-height: 1.8;       /* taller line spacing for readability */
}



/* Footer */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--text-light);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}
.search-input {
  width: 100%;
  max-width: 600px;
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
  border-radius: 10px;
  border: 2px solid #b1d4d8;
  background-color: #ffffff;
  color: #163236;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus state */
.search-input:focus {
  border-color: #163236;
  box-shadow: 0 0 0 3px rgba(22, 50, 54, 0.15);
}

/* Mobile: full width */
@media (max-width: 768px) {
  .search-input {
    font-size: 1.15rem;
    padding: 1.1rem 1.25rem;
  }
}

#search-results {
  margin-top: 1rem;
}

.search-result {
  display: block;
  padding: 0.5rem;
  text-decoration: none;
  color: #163236;
  border-bottom: 1px solid #cfe7e7;
}

.search-result:hover {
  background: #eaf6f6;
}


@media (max-width: 768px) {

  .nav-toggle {
    display: block;
  }

  .nav-bar {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    margin-top: 1.5rem;
    flex-direction: column;
    gap: 1.25rem;

    transition:
      max-height 0.4s ease,
      opacity 0.3s ease;
  }

  .nav-bar.active {
    max-height: 500px; /* enough to fit all links */
    opacity: 1;
  }
}


