:root {
  --primary: #234e70;
  --primary2: #1b3d58;
  --accent: #ffffff;
  --bg1: #f5f8ff;
  --bg2: #e8effa;
  --text: #0f1e2a;
  --muted: rgba(0,0,0,0.12);
}

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

html { font-size: 18px; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.85;
  color: var(--text);
  background: linear-gradient(to bottom, var(--bg1) 0%, var(--bg2) 60%, #ffffff 100%);
  text-rendering: optimizeLegibility;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(0,0,0,0.35);
  outline-offset: 3px;
  border-radius: 8px;
}

.navbar {
  background: linear-gradient(to right, var(--primary) 0%, var(--primary2) 100%);
  padding: 1.1rem 0;
  box-shadow: 0 10px 26px rgba(0,0,0,0.18);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo h1 {
  color: white;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-weight: 650;
  transition: opacity 0.2s ease;
  font-size: 1rem;
  padding: 0.35rem 0.25rem;
}

.nav-links a:hover { opacity: 1; text-decoration: underline; }

.hero {
  background: linear-gradient(135deg, var(--primary2) 0%, var(--primary) 100%);
  color: white;
  padding: 90px 20px;
  text-align: center;
}

.hero-content h2 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
  font-weight: 850;
}

.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

.cta-button {
  display: inline-block;
  background: white;
  color: var(--primary);
  padding: 16px 40px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid rgba(255,255,255,0.25);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.22);
}

.recipes-section { padding: 70px 20px; }
.section-title {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 2.8rem;
  color: var(--primary);
  font-weight: 850;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.recipe-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--muted);
  cursor: pointer;
}

.recipe-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.16);
}

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

.recipe-content { padding: 1.6rem; }
.recipe-content h3 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  color: var(--primary);
  font-weight: 850;
}

.recipe-content p {
  color: rgba(0,0,0,0.72);
  margin-bottom: 1rem;
}

.recipe-meta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  color: rgba(0,0,0,0.75);
  font-weight: 650;
}

.view-recipe-btn {
  margin-top: 1rem;
  padding: 12px 26px;
  background: linear-gradient(to right, var(--primary2) 0%, var(--primary) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.view-recipe-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.16);
}

.recipe-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
  background: rgba(0,0,0,0.03);
}

.recipe-details.active {
  max-height: 2200px;
  padding: 2rem 1.6rem;
  transition: max-height 0.6s ease;
}

.recipe-section { margin-bottom: 1.6rem; }
.recipe-section:last-child { margin-bottom: 0; }
.recipe-section h4 {
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
  font-weight: 850;
}

.recipe-section ul, .recipe-section ol {
  padding-left: 1.4rem;
  color: rgba(0,0,0,0.86);
}

.recipe-section li { margin-bottom: 0.6rem; }

footer {
  background: linear-gradient(to right, var(--primary) 0%, var(--primary2) 100%);
  color: rgba(255,255,255,0.92);
  padding: 3.2rem 20px 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
  margin-bottom: 0.9rem;
  color: white;
  font-weight: 850;
}

.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.6rem; }
.footer-section a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}
.footer-section a:hover { text-decoration: underline; }

.copyright {
  text-align: center;
  padding-top: 1.7rem;
  border-top: 1px solid rgba(255,255,255,0.25);
  font-size: 0.95rem;
}

.legal-page {
  max-width: 920px;
  margin: 50px auto;
  padding: 40px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
  border: 1px solid var(--muted);
}

.legal-page h1 {
  color: var(--primary);
  margin-bottom: 0.8rem;
  font-size: 2rem;
  font-weight: 900;
}

.legal-page h2 {
  color: var(--primary2);
  margin-top: 1.6rem;
  margin-bottom: 0.7rem;
  font-size: 1.25rem;
  font-weight: 850;
}

.legal-page p, .legal-page ul {
  color: rgba(0,0,0,0.82);
  margin-bottom: 0.9rem;
}

.legal-page ul { padding-left: 1.4rem; }
.legal-page li { margin-bottom: 0.5rem; }

.back-link {
  display: inline-block;
  margin-top: 1.8rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 750;
}
.back-link:hover { text-decoration: underline; }

@media (max-width: 768px) {
  html { font-size: 17px; }
  .navbar .container { flex-direction: column; align-items: flex-start; }
  .nav-links { justify-content: flex-start; }
  .hero-content h2 { font-size: 2.1rem; }
  .section-title { font-size: 2rem; }
  .recipe-grid { grid-template-columns: 1fr; }
}
