/* 
* Foodberryx - Main Stylesheet
* Author: Claude
* Version: 1.0
*/

/* ===== Base Styles ===== */
:root {
  --color-bg: #FFF8E7;
  --color-primary: #6B8E23;
  --color-secondary: #FFCCBC;
  --color-text: #37474F;
  --font-heading: 'Arvo', serif;
  --font-body: 'Karla', sans-serif;
  --container-width: 1200px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  margin-bottom: 2rem;
}

h2:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 3px;
  background-color: var(--color-primary);
}

.text-center h2:after {
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #556B2F;
}

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.text-center {
  text-align: center;
}

section {
  padding: 4rem 0;
}

section:nth-child(even) {
  background-color: #f9f4e8;
}

/* ===== Buttons ===== */
.btn, button[type="submit"] {
  display: inline-block;
  background-color: var(--color-primary);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn:hover, button[type="submit"]:hover {
  background-color: #556B2F;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* ===== Header & Navigation ===== */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  max-width: 220px;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: var(--color-text);
  font-weight: 600;
  position: relative;
}

nav ul li a:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition);
}

nav ul li a:hover:after,
nav ul li a.active:after {
  width: 100%;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-text);
  transition: var(--transition);
}

/* ===== Banner ===== */
#banner {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/img10.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 6rem 1rem;
}

#banner h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: white;
}

#banner p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* ===== Team Section ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  text-align: center;
  transition: var(--transition);
}

.team-member img {
  border-radius: 50%;
  width: 200px;
  height: 200px;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid var(--color-secondary);
}

.team-member:hover {
  transform: translateY(-10px);
}

/* ===== Programs Section ===== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.program {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.program:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.icon {
  width: 50px;
  height: 50px;
  fill: var(--color-primary);
  margin-bottom: 1rem;
}

/* ===== Focus Areas Section ===== */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.focus-area {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.focus-area:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ===== Testimonials Section ===== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.testimonial img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--color-secondary);
}

.testimonial blockquote {
  font-style: italic;
  position: relative;
  margin-bottom: 1rem;
}

.testimonial blockquote:before,
.testimonial blockquote:after {
  content: '"';
  font-size: 1.5rem;
  color: var(--color-primary);
}

.testimonial cite {
  font-style: normal;
  font-weight: 700;
  color: var(--color-primary);
}

/* ===== Resources Section ===== */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.resource {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.resource:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.resource .btn-small {
  margin-top: 1rem;
}

/* ===== Recipes Section ===== */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.recipe {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

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

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

.recipe h3, .recipe p, .recipe-meta {
  padding: 0 1.5rem;
}

.recipe h3 {
  margin-top: 1rem;
}

.recipe-meta {
  display: flex;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  color: #6B8E23;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== Contact Section ===== */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-info {
  background-color: var(--color-secondary);
  border-radius: 8px;
  padding: 2rem;
}

.icon-small {
  width: 20px;
  height: 20px;
  fill: var(--color-primary);
  vertical-align: middle;
  margin-right: 8px;
}

.contact-form {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(107, 142, 35, 0.2);
}

/* ===== Footer ===== */
footer {
  background-color: #333;
  color: white;
  padding: 3rem 0 1rem;
}

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

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo img {
  max-width: 180px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-links h3,
.footer-nav h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-links ul,
.footer-nav ul {
  list-style: none;
  margin: 0;
}

.footer-links ul li,
.footer-nav ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a,
.footer-nav ul li a {
  color: #ccc;
}

.footer-links ul li a:hover,
.footer-nav ul li a:hover,
.footer-links ul li a.active {
  color: var(--color-secondary);
}

.copyright {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #999;
}

/* ===== Back to Top Button ===== */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top svg {
  width: 24px;
  height: 24px;
  fill: white;
}

#back-to-top:hover {
  background-color: #556B2F;
  transform: translateY(-5px);
}

/* ===== Policy Pages ===== */
#policy-content {
  padding: 4rem 0;
}

#policy-content h1 {
  margin-bottom: 2rem;
}

.policy-section {
  margin-bottom: 2.5rem;
}

.policy-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.policy-section h3 {
  font-size: 1.4rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.policy-date {
  font-style: italic;
  color: #777;
  margin-top: 3rem;
}

/* ===== Success Page ===== */
#success {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.success-message {
  max-width: 600px;
  margin: 0 auto;
}

.icon-large {
  width: 80px;
  height: 80px;
  fill: var(--color-primary);
  margin-bottom: 1.5rem;
}

/* ===== Media Queries ===== */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  #banner {
    padding: 4rem 1rem;
  }
  
  #banner h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  header .container {
    padding: 0.8rem;
  }
  
  nav ul {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
  
  nav ul.active {
    display: flex;
  }
  
  nav ul li {
    margin: 0;
    border-bottom: 1px solid #f2f2f2;
  }
  
  nav ul li a {
    display: block;
    padding: 1rem;
  }
  
  .hamburger-menu {
    display: flex;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  #banner h1 {
    font-size: 2rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .team-grid,
  .programs-grid,
  .focus-grid,
  .testimonials,
  .resources-grid,
  .recipes-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  #banner h1 {
    font-size: 1.8rem;
  }
  
  #banner p {
    font-size: 1rem;
  }
  
  #back-to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
  }
  
  #back-to-top svg {
    width: 20px;
    height: 20px;
  }
}

.map {
  border-radius: 0.5rem;
  overflow: hidden;
}

.map iframe {
  display: block;
}