:root {
  --bg-primary: #f5fff7;
  --bg-secondary: #e7f7eb;
  --bg-alt: #f1fbf3;
  --bg-dark: #0e3b25;

  --green-main: #1f9d55;
  --green-soft: #58c48b;
  --green-deep: #147845;
  --accent: #ffb347;

  --text-main: #133126;
  --text-muted: #6b7280;
  --white: #ffffff;

  --border-soft: #d1e8d6;

  --shadow-soft: 0 10px 30px rgba(17, 90, 50, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::-webkit-scrollbar {
  display: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout helpers */

.section {
  padding: 5rem 1.5rem;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
}

/* Navbar */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(245, 255, 247, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(209, 232, 214, 0.8);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--green-deep);
  letter-spacing: 0.03em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  padding-bottom: 0.2rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 0;
  height: 2px;
  background: var(--green-main);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--green-deep);
}

/* Hamburger */

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  padding: 0.25rem;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */

.hero {
  padding: 6rem 1.5rem 4rem;
  margin-top: 3.5rem;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.3rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-text p {
  max-width: 480px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.chef-illustration {
  position: relative;
  background: radial-gradient(circle at top, #ffffff, #d8f4de);
  border-radius: 1.7rem;
  padding: 5px;
  box-shadow: var(--shadow-soft);
  width: 100%;
  max-width: 320px;
  text-align: center;
}
.chef-illustration img{
    border-radius: 15px;
    pad: 5px;
}
/* .chef-hat {
  width: 60px;
  height: 40px;
  border-radius: 50% 50% 15px 15px;
  background: #ffffff;
  margin: 0 auto -0.6rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
} */



/* .chef-body {
  background: var(--green-main);
  border-radius: 1.2rem;
  padding: 1.4rem 0.5rem 1rem;
  color: #fff;
}

.chef-face {
  font-size: 2.8rem;
}

.chef-caption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
} */

/* Buttons */

.btn {
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease,
    background-color 0.2s ease, color 0.2s ease;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.primary-btn {
  background: var(--green-main);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(31, 157, 85, 0.25);
}

.primary-btn:hover {
  background: var(--green-deep);
  box-shadow: 0 14px 30px rgba(20, 120, 69, 0.3);
}

.full-width {
  width: 100%;
}

/* Recipes */

.recipe-controls {
  max-width: 1100px;
  margin: 0 auto 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.search-wrapper {
  flex: 1 1 220px;
}

#recipe-search {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  font-size: 0.95rem;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#recipe-search:focus {
  border-color: var(--green-main);
  box-shadow: 0 0 0 3px rgba(31, 157, 85, 0.15);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.filter-btn {
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.1s ease;
}

.filter-btn:hover {
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--green-main);
  color: #ffffff;
  border-color: var(--green-main);
}

.recipe-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.recipe-card {
  background: #ffffff;
  border-radius: 1.2rem;
  padding: 1.2rem 1.2rem 1.1rem;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(209, 232, 214, 0.8);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(17, 90, 50, 0.18);
}

.recipe-image-placeholder {
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #cbf2d7, #f5fff7);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
}

.recipe-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.recipe-category {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(31, 157, 85, 0.08);
  color: var(--green-deep);
}

.recipe-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.recipe-card h3 {
  font-size: 1.05rem;
}

.recipe-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.recipe-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.recipe-footer .difficulty {
  color: var(--text-muted);
}

.recipe-card.hidden {
  display: none;
}

/* Services */

.services-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: #ffffff;
  border-radius: 1.2rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid rgba(209, 232, 214, 0.9);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
  text-align: left;
  transition: transform 0.17s ease, box-shadow 0.17s ease,
    border-color 0.17s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--green-main);
  box-shadow: 0 16px 40px rgba(17, 90, 50, 0.16);
}

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(31, 157, 85, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* About */

.about-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 3rem;
  align-items: center;
}

.about-illustration {
  background: radial-gradient(circle at top, #ffffff, #cbf2d7);
  border-radius: 1.7rem;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.about-plate {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.about-illustration p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.about-text h3 {
  margin-bottom: 0.4rem;
}

.mission-list {
  list-style: none;
  padding-left: 0;
}

.mission-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.mission-list li::before {
  content: "•";
  position: absolute;
  left: 0.3rem;
  top: 0;
  color: var(--green-main);
}

/* Testimonials */

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-track {
  position: relative;
  min-height: 150px;
}

.testimonial {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-align: center;
  padding: 0 1rem;
}

.testimonial.active {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-text {
  font-size: 0.98rem;
  margin-bottom: 0.7rem;
}

.testimonial-name {
  font-size: 0.9rem;
  color: var(--green-deep);
  font-weight: 500;
}

.testimonial-controls {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.testimonial-nav {
  border: none;
  background: var(--green-main);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.1s ease;
}

.testimonial-nav:hover {
  background: var(--green-deep);
}

.testimonial-nav:active {
  transform: scale(0.95);
}

.testimonial-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid var(--green-main);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.dot.active {
  background: var(--green-main);
}

/* Contact */

.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 1.2rem;
  padding: 2rem 1.8rem 2.2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(209, 232, 214, 0.9);
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 0.8rem;
  border: 1px solid var(--border-soft);
  font-size: 0.95rem;
  outline: none;
  resize: vertical;
  background: #fdfdfd;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green-main);
  box-shadow: 0 0 0 3px rgba(31, 157, 85, 0.15);
  background: #ffffff;
}

.form-group input.error,
.form-group textarea.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}

.error-message {
  min-height: 1rem;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: #dc2626;
}

.form-status {
  margin-top: 0.8rem;
  font-size: 0.9rem;
}

.form-status.success {
  color: var(--green-deep);
}

.form-status.error {
  color: #dc2626;
}

/* Footer */

.footer {
  background: var(--bg-dark);
  color: #e5f7ec;
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
}

.footer-brand .logo {
  color: #a9f2bf;
}

.footer-brand p {
  font-size: 0.9rem;
  color: #c1e8cf;
  margin-top: 0.4rem;
}

.footer-links h4,
.footer-social h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links a {
  font-size: 0.88rem;
  color: #e5f7ec;
  text-decoration: none;
}

.footer-links li + li {
  margin-top: 0.25rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.social-icons {
  display: flex;
  gap: 0.5rem;
}

.social-icons a {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(226, 255, 236, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #e5f7ec;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
}

.social-icons a:hover {
  background: rgba(30, 200, 120, 0.2);
  transform: translateY(-1px);
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(132, 198, 160, 0.4);
  padding-top: 0.75rem;
  text-align: center;
  font-size: 0.8rem;
  color: #c1e8cf;
}

/* Modal */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 1.5rem;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: #ffffff;
  border-radius: 1.3rem;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
}

.modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr);
  gap: 1.8rem;
  padding: 1.7rem 1.7rem 1.8rem;
}

.modal-image-wrapper img {
  border-radius: 1rem;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.modal-details h3 {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

.modal-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.modal-section {
  margin-top: 0.6rem;
}

.modal-section h4 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

#modal-ingredients,
#modal-steps {
  padding-left: 1.2rem;
  font-size: 0.9rem;
}

#modal-ingredients li + li,
#modal-steps li + li {
  margin-top: 0.15rem;
}

.tip-section {
  background: #f5fff7;
  border-radius: 0.8rem;
  padding: 0.5rem 0.7rem;
}

/* Back to top */

.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: var(--green-main);
  color: #ffffff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 32px rgba(31, 157, 85, 0.4);
  z-index: 55;
  transition: transform 0.15s ease, opacity 0.15s ease,
    background 0.2s ease;
}

.back-to-top.show {
  display: flex;
  opacity: 1;
}

.back-to-top:hover {
  background: var(--green-deep);
  transform: translateY(-2px);
}

.back-to-top:active {
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(245, 255, 247, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 0;
    padding: 0.6rem 1.5rem 0.9rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    border-bottom: 1px solid rgba(209, 232, 214, 0.9);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links li {
    padding: 0.35rem 0;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .recipe-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 5.6rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding-inline: 1rem;
  }

  .hero {
    padding-inline: 1rem;
  }

  .contact-wrapper {
    padding-inline: 1.4rem;
  }
}

/* Ensure sections don't hide behind fixed navbar when jumped */
section {
  scroll-margin-top: 80px;
}


