/* ========= Global Styles ========= */
:root {
  --primary: #e67e22;      /* Warm orange for accents */
  --secondary: #2c3e50;    /* Dark navy for text/background contrast */
  --light: #f9f9f9;        /* Light background */
  --text: #333;            /* Default text */
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: var(--light);
  color: var(--text);
}

/* ========= Header ========= */
header {
  background: var(--secondary);
  color: #fff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

#menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* ========= Hero ========= */
.hero {
  background: url('../images/hero.png') center/cover no-repeat;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 2rem;
}

.hero-content {
  max-width: 600px;
  background: rgba(44, 62, 80, 0.7);
  padding: 2rem;
  border-radius: 12px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  margin-bottom: 1.5rem;
}

.btn {
  background: var(--primary);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #cf711f;
}

/* ========= Recipes ========= */
.recipes {
  padding: 4rem 2rem;
  text-align: center;
}

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

.recipe-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 1rem;
  transition: transform 0.3s ease;
}

.recipe-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.recipe-card:hover {
  transform: translateY(-5px);
}

/* ========= About ========= */
.about {
  padding: 4rem 2rem;
  background: var(--light);
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  max-width: 1000px;
  margin: auto;
}

.about-image img {
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.about-text {
  flex: 1;
}

/* ========= Testimonials ========= */
.testimonials {
  padding: 4rem 2rem;
  background: var(--secondary);
  color: #fff;
  text-align: center;
}

.testimonial {
  max-width: 600px;
  margin: auto;
  font-style: italic;
  margin-bottom: 2rem;
}

/* ========= Contact ========= */
.contact {
  padding: 4rem 2rem;
  background: #fff;
  text-align: center;
}

.contact form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact input,
.contact textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.contact button {
  align-self: center;
}

.error-message {
  color: red;
  font-size: 0.9rem;
  margin-top: 10px;
  display: none; /* hidden by default */
}

/* ========= Footer ========= */
footer {
  background: var(--secondary);
  color: #fff;
  text-align: center;
  padding: 1rem;
}

/* ========= Responsive ========= */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--secondary);
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 1rem;
    border-radius: 8px;
  }

  .nav-links.show {
    display: flex;
  }

  #menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }
}
