/* --- 1. GLOBAL SETTINGS --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #fdfbf7; /* A very soft, warm off-white */
  color: #333333;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Keeps the footer at the bottom */
}

/* --- 2. HEADER & NAVIGATION --- */
header {
  background-color: #e6b800; /* A nice plantain-golden yellow */
  color: #3e2723; /* Dark brown text */
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Site logo (header) - cropped to a circle and centered */
.site-logo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  display: inline-block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: #3e2723;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ffffff; /* Turns white when you hover over it */
}

/* --- 3. MAIN CONTENT AREA --- */
/* give the main section a comfortable, centered layout
   with plenty of horizontal breathing room. this is a
   more 'standard' position for readable content. */
main {
  flex: 1; /* fill remaining vertical space */
  padding: 3rem 5%; /* top + side padding for whitespace */
  max-width: 1200px; /* constrain width on large screens */
  margin: 0 auto; /* center horizontally */
  width: 100%; /* ensure it can shrink on small viewports */
}

h1 {
  color: #d35400; /* Burnt orange for main headings */
  margin-bottom: 1rem;
}

p {
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* --- 4. CONTACT FORM STYLING --- */
form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 500px;
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

label {
  font-weight: bold;
  color: #555;
}

input,
textarea {
  padding: 0.8rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 1rem;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #e6b800;
  box-shadow: 0 0 5px rgba(230, 184, 0, 0.5);
}

button {
  padding: 1rem;
  background-color: #d35400;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #a04000;
}

/* --- 5. FOOTER --- */
footer {
  background-color: #3e2723;
  color: #ffffff;
  padding: 2rem;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #5a3a2f;
}

.footer-section h4 {
  color: #e6b800;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section p {
  color: #ddd;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.footer-section a {
  color: #e6b800;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #e6b800;
  color: #3e2723;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.2rem;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

.social-links a:hover {
  background-color: #d35400;
  transform: translateY(-3px);
}

/* Icon buttons: when using official SVGs keep original logo colors */
.social-links a.icon-btn {
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  padding: 0;
  display: inline-flex;
}

.social-icon {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.footer-bottom {
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
  margin: 0 auto;
  max-width: 1200px;
  line-height: 1.4;
}

.footer-bottom p:first-child {
  font-size: 0.85rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
/* --- 6. PRODUCT CARDS --- */
.products-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap; /* Allows cards to drop to the next line on small screens */
  margin-top: 2rem;
  justify-content: space-between; /* distribute extra space so 4 items fit nicely */
}

.card {
  background-color: #ffffff;
  border: 2px solid #fdfbf7;
  border-radius: 8px;
  padding: 1.5rem;
  /* allow four cards side-by-side using flex basis; subtract gaps to avoid overflow */
  flex: 0 1 calc(25% - 1.5rem);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px; /* ensure consistent height across cards */
}

.card:hover {
  transform: translateY(
    -5px
  ); /* Makes the card float up slightly when you hover */
  border-color: #e6b800;
}

.card h3 {
  color: #3e2723;
  margin-bottom: 0.5rem;
}

.card .price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #d35400; /* burnt orange to stand out */
}

.card img {
  width: 100%;
  height: 150px;
  display: block;
  margin: 0 auto 1rem;
  border-radius: 4px;
  object-fit: cover;
  margin-bottom: 0.8rem;
}

/* --- 7. CART PAGE STYLING --- */
#cart-items table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#cart-items th,
#cart-items td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

#cart-items th {
  background-color: #e6b800;
  color: #3e2723;
  font-weight: bold;
}

#cart-items tr:hover {
  background-color: #fdfbf7;
}

#cart-items button {
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  background-color: #d35400;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

#cart-items button:hover {
  background-color: #a04000;
}

.quantity-input {
  width: 60px;
  padding: 0.5rem;
  margin: 0 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
  font-size: 1rem;
  font-weight: bold;
}

.quantity-input:focus {
  outline: none;
  border-color: #e6b800;
  box-shadow: 0 0 5px rgba(230, 184, 0, 0.5);
}

.cart-total {
  color: #d35400;
  text-align: right;
  font-size: 1.3rem;
}

#cart-items > button {
  margin-top: 1.5rem;
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

#cart-items a {
  color: #d35400;
  text-decoration: none;
  font-weight: bold;
}

#cart-items a:hover {
  text-decoration: underline;
}

/* --- 8. HOME PAGE SECTIONS --- */
.hero {
  background: linear-gradient(135deg, #e6b800 0%, #d35400 100%);
  color: #ffffff;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 3rem;
}

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

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: #fdfbf7;
}

.cta-button {
  display: inline-block;
  background-color: #3e2723;
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
  cursor: pointer;
}

.cta-button:hover {
  background-color: #2a1810;
  transform: translateY(-3px);
}

.featured-section {
  margin: 3rem 0;
  text-align: center;
}

.featured-section h2 {
  color: #d35400;
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.featured-section > p {
  color: #666;
  margin-bottom: 2rem;
}

.featured-products {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.featured-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  flex: 0 1 calc(33.33% - 1.35rem);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-align: center;
}

.featured-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.featured-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.featured-card h3 {
  color: #3e2723;
  margin-bottom: 0.5rem;
}

.featured-card p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.product-link {
  color: #d35400;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.product-link:hover {
  color: #a04000;
}

.why-choose-us {
  background-color: #fdfbf7;
  padding: 3rem 2rem;
  border-radius: 8px;
  margin: 3rem 0;
}

.why-choose-us h2 {
  color: #d35400;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

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

.feature {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.feature h3 {
  color: #3e2723;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.feature p {
  color: #666;
  line-height: 1.6;
}

.testimonials {
  margin: 3rem 0;
  text-align: center;
}

.testimonials h2 {
  color: #d35400;
  margin-bottom: 2rem;
  font-size: 2rem;
}

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

.testimonial {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid #e6b800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.testimonial p {
  color: #333;
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.testimonial .author {
  color: #d35400;
  font-weight: bold;
  font-style: normal;
  margin: 0;
}

.final-cta {
  background: linear-gradient(135deg, #d35400 0%, #e6b800 100%);
  color: #ffffff;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 8px;
  margin: 3rem 0;
}

.final-cta h2 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.final-cta p {
  color: #fdfbf7;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 5%;
  }

  header h2 {
    font-size: 1.1rem;
    line-height: 1.3;
  }

  nav {
    width: 100%;
  }

  nav ul {
    width: 100%;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  nav li {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 140px;
  }

  nav a {
    display: block;
    width: 100%;
    padding: 0.55rem 0.6rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 0.95rem;
    text-align: center;
  }

  main {
    padding: 2rem 5%;
  }

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

  .hero p {
    font-size: 1.1rem;
  }

  .featured-card {
    flex: 0 1 calc(50% - 1rem);
  }

  .products-container {
    gap: 1.2rem;
    justify-content: center;
  }

  .card {
    flex: 1 1 calc(50% - 0.8rem);
    min-height: auto;
  }

  #cart-items {
    overflow-x: auto;
  }

  #cart-items table {
    min-width: 680px;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 520px) {
  nav li {
    flex: 1 1 100%;
    min-width: 0;
  }

  h1 {
    font-size: 1.65rem;
  }

  .hero {
    padding: 2.6rem 1rem;
  }

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

  .hero p {
    font-size: 1rem;
  }

  .featured-card,
  .card {
    flex: 1 1 100%;
  }

  .story-content,
  .story-image,
  .mission-card,
  .vision-card,
  .why-us-item {
    min-width: 0;
  }

  .final-cta,
  .values-section,
  .why-choose-us {
    padding: 2rem 1rem;
  }

  .social-links {
    flex-wrap: wrap;
  }
}

/* --- 9. ABOUT PAGE SECTIONS --- */
.story-section {
  display: flex;
  gap: 3rem;
  align-items: center;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.story-content {
  flex: 1;
  min-width: 300px;
}

.story-content h2 {
  color: #d35400;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.story-content p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.story-image {
  flex: 1;
  min-width: 300px;
}

.story-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.mission-vision {
  display: flex;
  gap: 2rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.mission-card,
.vision-card {
  flex: 1;
  min-width: 280px;
  background: linear-gradient(135deg, #e6b800 0%, #d35400 100%);
  color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mission-card h3,
.vision-card h3 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.mission-card p,
.vision-card p {
  color: #fdfbf7;
  line-height: 1.7;
}

.values-section {
  background-color: #fdfbf7;
  padding: 3rem 2rem;
  border-radius: 8px;
  margin: 3rem 0;
}

.values-section h2 {
  color: #d35400;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

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

.value-item {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #e6b800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.value-item h4 {
  color: #d35400;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.value-item p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}

.why-us-section {
  margin: 3rem 0;
}

.why-us-section h2 {
  color: #d35400;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.why-us-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.why-us-item {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  border-top: 4px solid #e6b800;
}

.why-us-item h4 {
  color: #3e2723;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.why-us-item p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}

.why-us-item:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
  transition: all 0.3s ease;
}
