/* ============================================================
   HERBAL SPACES — Main Stylesheet
   Colour palette: Deep green, earthy beige, soft cream, accent lime
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
  --green-dark:    #1B5E20;
  --green-mid:     #2E7D32;
  --green-light:   #4CAF50;
  --green-accent:  #8BC34A;
  --beige:         #F5F0E8;
  --cream:         #FAFAF5;
  --brown-light:   #D7CCC8;
  --brown-mid:     #8D6E63;
  --text-dark:     #1C2B1A;
  --text-mid:      #3E4E3C;
  --text-light:    #6B7B69;
  --white:         #FFFFFF;
  --shadow-sm:     0 2px 8px rgba(27,94,32,0.08);
  --shadow-md:     0 6px 24px rgba(27,94,32,0.12);
  --shadow-lg:     0 16px 48px rgba(27,94,32,0.16);
  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --transition:    0.3s ease;
  --font-body:     'Poppins', sans-serif;
  --font-display:  'Playfair Display', serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

/* ---- Container ---- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---- Section Spacing ---- */
.section { padding: 96px 0; }

/* ---- Section Headers ---- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-header-light { color: var(--white); }
.section-header-light .section-eyebrow { color: var(--green-accent); }
.section-header-light h2 { color: var(--white); }
.section-header-light .section-intro { color: rgba(255,255,255,0.85); }

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 12px;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.25; }

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: var(--green-dark); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); color: var(--green-dark); }
h4 { font-size: 1.05rem; font-weight: 600; color: var(--text-dark); }

.section-intro {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-top: 16px;
  line-height: 1.8;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
}
.btn-primary:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green-dark);
}
.btn-outline:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-nav {
  background: var(--green-dark);
  color: var(--white) !important;
  padding: 10px 24px;
  font-size: 0.85rem;
}
.btn-nav:hover { background: var(--green-mid); }

.btn-card {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green-dark);
  padding: 10px 22px;
  font-size: 0.85rem;
  width: 100%;
  margin-top: auto;
}
.btn-card:hover { background: var(--green-dark); color: var(--white); }

.btn-lg { padding: 18px 48px; font-size: 1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.8rem; }

/* ---- NAVIGATION ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250,250,245,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27,94,32,0.08);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  color: var(--text-dark);
}
.logo-leaf { font-size: 1.4rem; }
.logo-text strong { color: var(--green-dark); }
.logo-footer { color: var(--white); }
.logo-footer .logo-text { color: rgba(255,255,255,0.9); }
.logo-footer .logo-text strong { color: var(--green-accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
}
.nav-links a:not(.btn):hover { color: var(--green-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('images/hero-banner.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding-top: 72px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,94,32,0.75) 0%, rgba(0,0,0,0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  color: var(--white);
  padding: 80px 0;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-accent);
  margin-bottom: 16px;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 24px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-cta-group .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.hero-cta-group .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.4; }
}

/* ---- TRUST BAR ---- */
.trust-bar {
  background: var(--green-dark);
  padding: 20px 0;
}
.trust-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.9);
  font-size: 0.88rem;
  font-weight: 500;
}
.trust-icon { font-size: 1.2rem; }

/* ---- ABOUT ---- */
.about { background: var(--cream); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-images {
  position: relative;
}
.about-img-main {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
}
.about-img-secondary {
  position: absolute;
  bottom: -32px;
  right: -32px;
  width: 55%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about-text h2 { margin-bottom: 24px; }
.about-text p {
  color: var(--text-mid);
  margin-bottom: 20px;
  line-height: 1.8;
}
.about-text .btn { margin-top: 12px; }

/* ---- PRODUCTS ---- */
.products { background: var(--beige); }

.product-category { margin-bottom: 64px; }
.product-category:last-of-type { margin-bottom: 0; }

.category-title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(27,94,32,0.12);
}
.category-icon { font-size: 1.3rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.product-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.product-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }

.product-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}
.product-card-body h4 { color: var(--green-dark); }
.product-card-body p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
  flex: 1;
}

.products-cta-wrap {
  text-align: center;
  margin-top: 56px;
}

/* ---- INGREDIENTS ---- */
.ingredients { background: var(--cream); }

.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ingredient-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid var(--accent, var(--green-mid));
}
.ingredient-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.ingredient-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.ingredient-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.ingredient-card:hover .ingredient-img-wrap img { transform: scale(1.05); }

.ingredient-body { padding: 24px; }

.ingredient-icon { font-size: 2rem; margin-bottom: 8px; }
.ingredient-body h3 {
  font-size: 1.3rem;
  color: var(--green-dark);
  margin-bottom: 4px;
}
.ingredient-latin {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 16px;
}
.ingredient-benefits {
  list-style: none;
  margin-bottom: 20px;
}
.ingredient-benefits li {
  font-size: 0.88rem;
  color: var(--text-mid);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  line-height: 1.6;
}
.ingredient-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent, var(--green-mid));
  font-weight: 700;
  font-size: 0.8rem;
}

.ingredient-products {
  font-size: 0.82rem;
  color: var(--text-light);
}
.ingredient-products span { font-weight: 600; }
.ingredient-products a {
  color: var(--green-mid);
  font-weight: 500;
}
.ingredient-products a:hover { color: var(--green-dark); text-decoration: underline; }

/* ---- WHY US ---- */
.why-us {
  position: relative;
  padding: 96px 0;
}
.why-us-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.why-us-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.why-us-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,94,32,0.88) 0%, rgba(46,125,50,0.82) 100%);
}
.why-us-content { position: relative; z-index: 1; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.why-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  color: var(--white);
  transition: background var(--transition), transform var(--transition);
}
.why-card:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-4px);
}
.why-icon { font-size: 2.5rem; margin-bottom: 16px; }
.why-card h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.why-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
}

/* ---- QUIZ ---- */
.quiz-section { background: var(--beige); }

.quiz-tabs { max-width: 820px; margin: 0 auto; }

.quiz-tab-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.quiz-tab-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: 2px solid var(--green-dark);
  background: transparent;
  color: var(--green-dark);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.quiz-tab-btn:hover,
.quiz-tab-btn.active {
  background: var(--green-dark);
  color: var(--white);
}

.quiz-panel { display: none; }
.quiz-panel.active { display: block; }

.quiz-container {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.quiz-progress { margin-bottom: 28px; }
.quiz-progress-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  display: block;
  margin-bottom: 8px;
}
.quiz-progress-bar {
  height: 6px;
  background: var(--beige);
  border-radius: 3px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--green-mid);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.quiz-question { display: none; }
.quiz-question.active { display: block; }

.quiz-question h4 {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 24px;
  line-height: 1.6;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.quiz-option {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--brown-light);
  background: var(--cream);
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: all var(--transition);
}
.quiz-option:hover:not(:disabled) {
  border-color: var(--green-mid);
  background: rgba(46,125,50,0.06);
}
.quiz-option.correct {
  border-color: var(--green-mid);
  background: rgba(46,125,50,0.1);
  color: var(--green-dark);
  font-weight: 600;
}
.quiz-option.incorrect {
  border-color: #C62828;
  background: rgba(198,40,40,0.07);
  color: #C62828;
}
.quiz-option:disabled { cursor: default; }

.quiz-feedback {
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 24px;
  margin-bottom: 8px;
}
.quiz-feedback.correct-msg { color: var(--green-mid); }
.quiz-feedback.incorrect-msg { color: #C62828; }

.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}
.btn-quiz-prev,
.btn-quiz-next {
  padding: 12px 28px;
  border-radius: 50px;
  border: 2px solid var(--green-dark);
  background: transparent;
  color: var(--green-dark);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-quiz-next {
  background: var(--green-dark);
  color: var(--white);
}
.btn-quiz-prev:hover:not(:disabled) {
  background: var(--green-dark);
  color: var(--white);
}
.btn-quiz-next:hover { background: var(--green-mid); border-color: var(--green-mid); }
.btn-quiz-prev:disabled { opacity: 0.35; cursor: default; }

.quiz-result {
  text-align: center;
  padding: 24px 0;
}
.quiz-result h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--green-dark);
  margin-bottom: 12px;
}
.quiz-score-text {
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: 24px;
}

/* ---- CTA SECTION ---- */
.cta-section {
  position: relative;
  padding: 120px 0;
  text-align: center;
}
.cta-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(27,94,32,0.65) 100%);
}
.cta-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 640px;
  margin: 0 auto;
}
.cta-eyebrow { color: var(--green-accent); }
.cta-content h2 {
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.cta-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 36px;
  line-height: 1.8;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding: 72px 0 48px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
  color: rgba(255,255,255,0.65);
  max-width: 280px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}
.social-link:hover {
  background: var(--green-mid);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-links h4,
.footer-products h4,
.footer-contact h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-links ul li,
.footer-products ul li {
  margin-bottom: 10px;
}
.footer-links a,
.footer-products a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-links a:hover,
.footer-products a:hover { color: var(--green-accent); }

.footer-contact p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
}
.footer-contact a { color: var(--green-accent); }
.footer-contact a:hover { color: var(--white); }

.footer-shop-btn {
  color: var(--white) !important;
  border-color: rgba(255,255,255,0.4) !important;
  margin-top: 16px;
}
.footer-shop-btn:hover {
  background: var(--green-mid) !important;
  border-color: var(--green-mid) !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 28px 0;
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}
.disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  max-width: 800px;
  line-height: 1.7;
}
.disclaimer strong { color: rgba(255,255,255,0.6); }
.copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   RESPONSIVE — Tablet (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-img-secondary { right: -16px; bottom: -16px; }
  .ingredients-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ============================================================
   RESPONSIVE — Mobile (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 64px 0; }

  /* Nav */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid rgba(27,94,32,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; }

  /* Hero */
  .hero { background-attachment: scroll; }
  .hero-cta-group { flex-direction: column; }
  .hero-cta-group .btn { width: 100%; max-width: 320px; }

  /* Trust bar */
  .trust-bar-inner { gap: 20px; }
  .trust-item { font-size: 0.8rem; }

  /* Products */
  .product-grid,
  .product-grid-3 { grid-template-columns: 1fr; }

  /* Ingredients */
  .ingredients-grid { grid-template-columns: 1fr; }

  /* Why us */
  .why-grid { grid-template-columns: 1fr; }

  /* Quiz */
  .quiz-container { padding: 24px 20px; }
  .quiz-tab-buttons { gap: 6px; }
  .quiz-tab-btn { padding: 8px 16px; font-size: 0.82rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }
}

@media (max-width: 480px) {
  .about-img-secondary { display: none; }
  .hero-content h1 { font-size: 2rem; }
}
