:root {
  --primary: #1a3d1a;
  --accent: #4caf50;
  --font: 'Inter', Arial, sans-serif;
  --recipe-bg: #f8fbf8;
  --recipe-card-bg: #ffffff;
  --recipe-accent: #4caf50;
  --recipe-accent-secondary: #81c784;
  --recipe-text: #2c3e50;
  --recipe-text-muted: #7f8c8d;
  --recipe-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --recipe-glass: rgba(255, 255, 255, 0.8);
  --recipe-gradient: linear-gradient(135deg, #1a3d1a 0%, #4caf50 100%);
  --nav-height: 80px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: #222;
  background: #fff;
}

a,
a:visited,
a:hover {
  text-decoration: none;
  color: #222;
}

h1 {
  font-size: 2.6rem;
  margin-bottom: 0;
}

h2 {
  font-size: 2.0rem;
  font-weight: 400;
  margin-top: 0;
}

h3 {
  font-size: 2.0rem;
  font-weight: 600;
}

h4 {
  margin-top: 0;
}

.hero {
  position: relative;
  text-align: center;
  color: #fff;
  padding-bottom: 30px;
}

.hero-bg {
  width: 100%;
  height: 350px;
  object-fit: cover;
  filter: brightness(0.6);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 60px 20px 40px 20px;
}

.logo {
  width: 80px;
  margin-bottom: 20px;
}

.logo-top-left {
  position: absolute;
  top: 24px;
  left: 32px;
  width: 200px;
  z-index: 2;
}



main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 40px;
}

.feature:nth-child(even) {
  flex-direction: row-reverse;
}

.feature img {
  width: 250px;
  max-width: 40vw;
}

.cta {
  background: #e0f7e9;
  text-align: center;
  padding: 40px 20px;
  font-size: 2rem;
  font-weight: bold;
  margin: 40px -40px 0 -40px;
}

footer {
  background: #f5f5f5;
  padding: 40px 40px 20px 40px;
  color: #222;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
}

.footer-top div {
  min-width: 150px;
}

.footer-top div a {
  display: block;
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-bottom img {
  width: 40px;
  display: block;
}

@media (max-width: 900px) {
  .features {
    gap: 20px;
  }

  .feature {
    gap: 20px;
  }
}

@media (max-width: 700px) {
  .footer-top {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .feature {
    flex-direction: column !important;
    text-align: center;
  }

  .feature img {
    max-width: 80vw;
  }

  .hero-content {
    padding: 40px 10px 20px 10px;
  }
}

.hero-main {
  text-align: center;
  padding: 60px 20px 40px 20px;
  background: none;
}

.hero-main h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-desc {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-main .app-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 36px;
}

.hero-phones {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 20px;
}

.phone-img {
  width: 220px;
  max-width: 40vw;
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  background: #fff;
}

@media (max-width: 900px) {
  .hero-main h1 {
    font-size: 2.2rem;
  }

  .phone-img {
    width: 150px;
  }
}

@media (max-width: 600px) {
  .hero-main {
    padding: 32px 5px 20px 5px;
  }

  .hero-phones {
    flex-direction: column;
    gap: 16px;
  }

  .phone-img {
    width: 90vw;
    max-width: 300px;
  }
}

.feature-img-crop {
  height: 340px;
  max-width: 300px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.feature-img-crop img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 900px) {
  .feature-img-crop {
    height: 200px;
    width: 150px;
  }
}

@media (max-width: 600px) {
  .feature-img-crop {
    height: auto;
    width: 90vw;
    max-width: 300px;
  }
}

.text-document h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.text-document h2 {
  font-size: 1.2rem;
  font-weight: 700;
}

.text-document h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Contact Form Styles */
.contact-form {
  width: 100%;
}

.contact-form textarea,
.contact-form input[type="email"] {
  width: 100%;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  margin-bottom: 20px;
}

.contact-form textarea:focus,
.contact-form input[type="email"]:focus {
  border-color: #4caf50;
  box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
  outline: none;
}

.contact-form .form-label {
  font-weight: 500;
  margin-bottom: 10px;
  color: #333;
  display: block;
}

/* Cookie Consent Popup */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #ffeccb;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 0;
}

.cookie-content {
  max-width: 420px;
  width: 100%;
  margin: 24px;
  background: #ffeccb;
  border-radius: 24px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  padding: 28px 24px 18px 24px;
  text-align: left;
  font-size: 1.08rem;
  color: #222;
}

.cookie-content h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #253241;
  font-weight: 700;
}

.cookie-content p {
  margin: 0 0 10px 0;
  color: #222;
  font-size: 1.05rem;
}

.cookie-link {
  color: #253241;
  text-decoration: underline;
  font-size: 1rem;
  display: inline-block;
  margin-bottom: 16px;
}

.cookie-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.cookie-btn {
  border: none;
  border-radius: 24px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.cookie-btn.accept {
  background: #253241;
  color: #fff;
}

.cookie-btn.accept:hover {
  background: #253241;
}

.cookie-btn.decline {
  background: #fff;
  color: #888;
  border: 1px solid #ccc;
}

.cookie-btn.decline:hover {
  background: #f5f5f5;
  color: #444;
}

@media (max-width: 600px) {
  .cookie-content {
    max-width: 98vw;
    padding: 18px 6vw 12px 6vw;
    font-size: 0.98rem;
  }

  .cookie-actions {
    flex-direction: column;
    gap: 10px;
  }

  .cookie-btn {
    width: 100%;
    padding: 12px 0;
  }
}

.qa-item {
  margin: 10px 0;
}

.qa-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.qa-question:hover {
  background: #e9ecef !important;
}

.toggle-icon {
  font-size: 0.8em;
  color: #666;
}

.search-form .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.btn-submit,
.btn-submit:visited {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-submit:hover {
  background: var(--accent);
  color: white;
  text-decoration: none;
}

.btn-outline-secondary {
  border-color: #6c757d;
  color: #6c757d;
}

.btn-outline-secondary:hover {
  background-color: #6c757d;
  border-color: #6c757d;
  color: white;
}

/* Recipe Styles */
.recipe-section {
  min-height: 100vh;
  padding-bottom: 80px;
  max-width: none;
  width: 100%;
  padding: 0;
}

.recipe-hero {
  background: var(--recipe-gradient);
  color: white;
  padding: 100px 20px 140px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.recipe-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -1px;
}

.recipe-hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.filter-bar {
  max-width: 1200px;
  margin: -60px auto 40px auto;
  background: var(--recipe-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--recipe-shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 10;
  position: relative;
}

.search-box {
  flex: 1;
  min-width: 250px;
  max-width: 500px;
  position: relative;
}

.search-box input {
  width: 100%;
  box-sizing: border-box;
  padding: 16px 20px 16px 50px;
  border-radius: 16px;
  border: 1px solid #eee;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.search-box input:focus {
  border-color: var(--recipe-accent);
  box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

.search-box i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--recipe-text-muted);
}

.filter-groups {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid #eee;
  background: white;
  color: var(--recipe-text);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--recipe-accent);
  color: white;
  border-color: var(--recipe-accent);
  transform: translateY(-2px);
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.recipe-card {
  background: var(--recipe-card-bg);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--recipe-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.recipe-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-img-container {
  height: 220px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.recipe-card:hover .card-img {
  transform: scale(1.1);
}

.card-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 8px;
}

.badge {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  color: white;
}

.badge-calorie {
  background: rgba(255, 107, 107, 0.8);
}

.badge-time {
  background: rgba(0, 0, 0, 0.5);
}

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--recipe-text);
  line-height: 1.3;
}

.card-teaser {
  font-size: 0.95rem;
  color: var(--recipe-text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #f5f5f5;
}

.macro-stats {
  display: flex;
  gap: 12px;
}

.macro {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
}

.macro-val {
  font-weight: 700;
  color: var(--recipe-text);
}

.macro-label {
  color: var(--recipe-text-muted);
}

.recipe-detail {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.detail-header {
  margin-bottom: 40px;
}

.detail-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: var(--recipe-shadow);
  margin-bottom: 40px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}

@media (max-width: 900px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 24px;
  position: relative;
  padding-left: 20px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 30px;
  background: var(--recipe-accent);
  border-radius: 3px;
}

.prep-step {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.step-number {
  min-width: 40px;
  height: 40px;
  background: var(--recipe-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.ingredient-list {
  list-style: none;
  padding: 0;
}

.ingredient-item {
  padding: 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Main Navigation */
.main-header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  height: var(--nav-height);
}

.nav-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo {
  height: 32px; /* Fixed height for better alignment with text links */
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.nav-logo-link:hover .nav-logo {
  transform: scale(1.05);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-weight: 600;
  color: var(--recipe-text);
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.main-nav a:hover {
  color: var(--accent);
}

.main-nav a:hover::after {
  width: 100%;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--recipe-text);
  margin: 2px 0;
  transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Base Responsive Breakpoint */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    gap: 40px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    z-index: 1000;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav a {
    font-size: 1.5rem;
    width: 100%;
    text-align: center;
  }
  
  body.nav-open {
    overflow: hidden;
  }
}

/* Ensure vertical alignment is perfect even on small screens before collapse */
@media (max-width: 400px) {
  .nav-logo {
    height: 28px;
  }
}
/* Recipe Mobile Improvements */
@media (max-width: 768px) {
  .recipe-hero {
    padding: 80px 20px 100px 20px;
    border-radius: 0;
  }

  .recipe-hero h1 {
    font-size: 2.8rem;
  }

  .filter-bar {
    margin: -50px 20px 30px 20px;
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    border-radius: 16px;
  }

  .search-box {
    max-width: none;
    width: 100%;
    margin: 0;
  }

  .search-box input {
    width: 100% !important;
    box-sizing: border-box;
  }

  .filter-groups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin: 0;
  }

  .filter-btn {
    text-align: center;
    padding: 10px 5px;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
  }

  .recipe-grid {
    padding: 0 20px;
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
