/* simple.css - Single stylesheet for all pages */

/* ========== Variables ========== */
:root {
  --brand-yellow: #f5c542;
  --accent-dark: #2b2b2b;
  --muted: #6b6b6b;
  --bg: rgb(206, 235, 245);
  --card: #fffaf4;
  --max-width: 1100px;
  --radius: 12px;
  --page-padding: 1.25rem;
  --serif: "Playfair Display", serif;
  --sans: "Inter", system-ui, Arial, sans-serif;
}

/* ========== Basic Reset ========== */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--accent-dark);
  background: linear-gradient(180deg, rgb(206, 235, 245), #f5c542);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  font-size: 16px;
}

/* Accessibility utils */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem var(--page-padding);
}
.sr-only {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* ========== Header ========== */
.site-header {
  border-bottom: 1px solid rgba(11, 99, 210, 0.06);
  background: linear-gradient(180deg, rgb(206, 235, 245), #f5c542);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.brand {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
  font-size: clamp(28px, 5vw, 45px);
  font-style: italic;
}
.brand.small {
  font-size: 0.85rem;
}
.brand.small:hover {
  text-decoration: underline 1px black;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: clamp(15px, 2vw, 18px);
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--accent-dark);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  transition: font-weight 0.1s;
}
.main-nav a:hover {
  text-decoration: underline 2px black;
  font-weight: bold;
}
.main-nav a.active {
  background-color: var(--brand-yellow);
  font-weight: bold;
  pointer-events: none;
}

/* mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

/* ========== Hero ========== */
.hero {
  padding: 2.5rem 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 2rem;
  align-items: center;
}
.hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  margin: 0 0 0.6rem;
}
.lead {
  color: var(--muted);
  margin-top: 0.25rem;
}
.hero-image img {
  width: 100%;
  height: 420px;
  border-radius: 12px;
  object-fit: cover;
  /* BUG FIX: removed 90px paddings that were squishing the image */
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  border: 2px solid transparent;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn.primary {
  background: var(--brand-yellow);
  color: var(--accent-dark);
  box-shadow: 0 6px 18px rgba(37, 37, 37, 0.06);
}
.btn.primary:hover {
  background-color: black;
  color: var(--brand-yellow);
  border-color: black;
}
.btn.ghost {
  background: transparent;
  color: var(--accent-dark);
}
.btn.ghost:hover {
  border-color: black;
  text-decoration: underline;
}
.btn.outline {
  background: var(--brand-yellow);
  border: 1px solid #ddd;
  padding: 0.5rem 0.7rem;
}
.btn.outline:hover {
  background-color: black;
  color: var(--brand-yellow);
  border-color: black;
}

/* ========== About page join section ========== */
.join {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 1.5rem;
  /* BUG FIX: removed fixed height: 180px which clipped content */
}
.about-hero {
  flex: 1;
}
.about-hero p,
.mission p,
.process li {
  font-size: 15px;
  color: var(--muted);
}
.join img {
  /* BUG FIX: was height:30rem width:50% margin-left:80px — not responsive */
  width: 45%;
  max-width: 400px;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}

/* ========== About team ========== */
.about-team {
  padding: 2rem 0;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.team-card {
  background: linear-gradient(180deg, rgba(245, 197, 66, 0.03), transparent);
  padding: 1rem;
  border-radius: var(--radius);
  text-align: center;
}
.team-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

/* ========== Values & newsletter ========== */
.values {
  padding: 1rem 0 0;
}
.values h2 {
  /* BUG FIX: was padding: 4rem 0 0 3rem — overflowed on mobile */
  padding-top: 2rem;
  text-decoration: underline;
}
.newsletter {
  padding: 1rem 0;
}
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 600px;
  flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 180px;
  padding: 0.7rem;
  border-radius: 8px;
  border: 1px solid #e7e2d7;
}

/* ========== Shop ========== */
.shop-page {
  padding: 1.5rem 0;
}
.shop-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.shop-controls input,
.shop-controls select {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
}
.shop-controls input {
  flex: 1;
  min-width: 160px;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.product-card {
  background-color: antiquewhite;
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.09);
}
.product-image img {
  /* BUG FIX: was width:200px height:100px — now fully responsive */
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}
.product-body h3 {
  margin: 0.5rem 0;
}
.product-price {
  font-weight: 700;
  margin-top: 0.25rem;
}
.product-actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ========== Modal ========== */
/* BUG FIX: removed opacity:0 + transition on display:none — transitions
   don't fire on display:none elements. Using popup keyframe instead. */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  padding: 40px 15px;
}
.modal.show {
  display: block;
}
.modal-content {
  max-width: 420px;
  margin: auto;
  background: rgba(30, 30, 30, 0.92);
  border-radius: var(--radius);
  padding: 20px;
  animation: popup 0.3s ease;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
@keyframes popup {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.close-modal {
  position: absolute;
  right: 18px;
  top: 12px;
  font-size: 26px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}
.close-modal:hover {
  color: var(--brand-yellow);
}
.modal-img {
  text-align: center;
  margin-bottom: 15px;
}
.modal-img img {
  width: 100%;
  max-height: 270px;
  object-fit: cover;
  border-radius: 10px;
}
#modalName {
  margin-top: 5px;
  font-size: 1.4rem;
  font-weight: 700;
  color: antiquewhite;
}
#modalDesc {
  margin: 8px 0 12px;
  color: antiquewhite;
  font-size: 0.95rem;
  line-height: 1.5;
}
.modal-price {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--brand-yellow);
}
.modal .btn.primary {
  width: 100%;
  padding: 12px 0;
  background: var(--brand-yellow);
  color: black;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.modal .btn.primary:hover {
  background: black;
  color: var(--brand-yellow);
}

/* ========== Footer ========== */
.site-footer {
  border-top: 1px solid #f1ead6;
  padding: 1.25rem 0;
  margin-top: 2rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.attribution {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.muted {
  color: var(--muted);
}

/* ========== Responsive — Tablet (≤900px) ========== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-image img {
    height: 300px;
  }
  .nav-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    width: 100%;
  }
  .main-nav[data-open="true"] {
    display: block;
    padding: 0.75rem 0;
  }
  .main-nav[data-open="true"] ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .join {
    flex-direction: column;
  }
  .join img {
    width: 100%;
    max-width: 100%;
  }
}

/* ========== Responsive — Mobile (≤480px) ========== */
@media (max-width: 480px) {
  :root {
    font-size: 15px;
  }
  .hero-copy h1 {
    font-size: 1.4rem;
  }
  .hero-image img {
    height: 220px;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-form input[type="email"],
  .newsletter-form .btn {
    width: 100%;
  }
  .modal-content {
    padding: 16px;
  }
  .shop-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .shop-controls select {
    width: 100%;
  }
}
