:root {
  --green: #A26953; /* supporting colour */
  --deep: #111a0f;
  --leaf: #A26953;
  --gold: #D4A373; /* hero colour */
  --oil: #e4b33c;
  --ivory: #F4F1DE; /* neutral base */
  --soft: #F4F1DE; /* neutral base */
  --clay: #A26953; /* supporting colour */
  --ink: #1d2118;
  --muted: #6d6f63;
  --line: rgba(162,105,83,0.14);
  --shadow: 0 24px 70px rgba(17, 26, 15, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: #0d0d0d !important; /* near-black */
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

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

h1,
h2,
h3,
.navbar-brand,
.footer-brand {
  font-family: Georgia, "Times New Roman", serif;
  color: #0b0b0b !important;
  font-weight: 700;
}

.navbar {
  background: rgba(246, 239, 228, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.navbar-brand,
.footer-brand {
  color: var(--green);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.navbar-brand span,
.footer-brand span {
  color: var(--gold);
}

.site-logo {
  max-height: 76px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.2rem;
}

.navbar-brand img.site-logo {
  max-height: 76px;
}

/* ── Footer logo: one clean rule, no cascading conflicts ── */
.footer-brand img.site-logo {
  display: block;
  height: 90px;
  width: auto;
  max-width: 240px;
  background: transparent !important;
  border: none !important;
  padding: 0;
  box-shadow: none !important;
  object-fit: contain;
}

.favicon-safe {
  display: inline-block;
  width: 16px;
  height: 16px;
}

.nav-link {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.nav-link:hover {
  color: var(--clay);
}

.btn-brand,
.btn-dark-green {
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  padding: 0.82rem 1.35rem;
}

.btn-brand:hover,
.btn-dark-green:hover {
  background: var(--clay);
  color: #fff;
}

.hero-section {
  min-height: 100vh;
  padding: 140px 0 80px;
  background:
    /* subtle hero colour wash + readable dark overlay */
    linear-gradient(115deg, rgba(212,163,115,0.12) 0%, rgba(17,26,15,0.78) 48%, rgba(162,105,83,0.08) 100%),
    url("../images/baobab-brand-campaign.jpg") center/cover no-repeat;
  color: #fff;
}

.hero-section.layout-landing {
  position: relative;
  color: #111; /* darker text for readability */
}

.hero-section.layout-landing::before {
  content: '';
  position: absolute;
  inset: 0;
  /* lighter warm overlay plus subtle darkening on the left for contrast */
  background: none !important;
}

.hero-section.layout-landing .eyebrow {
  color: #A26953;
  font-weight: 700;
}

.hero-section.layout-landing .hero-display {
  color: #060606; /* near-black for maximum contrast */
  font-weight: 700;
  text-shadow: 0 6px 20px rgba(0,0,0,0.25);
  font-size: clamp(1.9rem, 4.2vw, 2.6rem) !important;
  line-height: 1.05;
}

.hero-section.layout-landing .lead,
.hero-section.layout-landing p {
  color: #111;
}

.hero-section.layout-landing .highlight {
  background: linear-gradient(90deg, rgba(211,150,100,0.12), rgba(162,105,83,0.12));
  padding: 0 6px;
  border-radius: 4px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--clay);
}

.hero-section h1,
.page-hero h1 {
  max-width: 760px;
  margin: 0 0 1.2rem;
  font-size: clamp(3.2rem, 7vw, 6.7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy,
.page-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2rem 0;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.trust-row span,
.benefit-list span,
.status-pill {
  border-radius: 999px;
  border: 1px solid rgba(240, 199, 120, 0.34);
  background: rgba(240, 199, 120, 0.12);
  color: #ffe2a4;
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-product-card {
  position: relative;
  width: min(440px, 100%);
  margin-left: auto;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ivory);
  box-shadow: var(--shadow);
}

.hero-product-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.launch-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  padding: 0.6rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-pad {
  padding: 92px 0;
}

.muted {
  background: var(--ivory);
  color: #222 !important;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.4rem;
}

.section-heading h2,
.product-feature h2,
.product-panel h2,
.section-pad h2 {
  color: var(--green);
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.02;
}

.value-card,
.benefit-card,
.category-card,
.product-panel,
.contact-card,
.usage-box,
.product-card {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ivory);
  padding: 1.6rem;
  box-shadow: 0 16px 42px rgba(17, 26, 15, 0.06);
}

.product-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.value-card span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--clay);
  font-weight: 900;
}

.value-card h3,
.benefit-card h3,
.usage-box h3 {
  color: var(--green);
  font-size: 1.32rem;
}

.value-card p,
.benefit-card p,
.product-feature p,
.product-panel p,
.contact-card p,
.section-pad p {
  color: var(--muted);
  line-height: 1.8;
}

.product-feature {
  padding: 92px 0;
  background: linear-gradient(180deg, var(--ivory), var(--soft));
}

.rounded-image,
.gallery,
.gallery > img {
  border-radius: 8px;
}

.rounded-image {
  box-shadow: var(--shadow);
}

.benefit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.6rem 0;
}

.benefit-list span {
  color: var(--green);
  border-color: var(--line);
  background: var(--ivory);
}

.story-band {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

.story-band img {
  width: 100%;
  height: 620px;
  object-fit: cover;
}

.story-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem max(1.25rem, calc((100vw - 1140px) / 2));
  background: linear-gradient(90deg, rgba(17, 26, 15, 0.86), rgba(17, 26, 15, 0.16));
  color: #fff;
}

.story-overlay h2 {
  max-width: 680px;
  font-size: clamp(2.1rem, 4.5vw, 4.8rem);
  line-height: 1.02;
}

.waitlist-section {
  padding: 92px 0;
  background: var(--soft);
}

.waitlist-box {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
  border-radius: 8px;
  background: var(--ivory);
  padding: clamp(1.5rem, 5vw, 3.5rem);
  box-shadow: var(--shadow);
}

.waitlist-box h2 {
  color: var(--green);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
}

.waitlist-form {
  display: grid;
  gap: 0.85rem;
}

.form-control,
.waitlist-form input,
.contact-form .form-control {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  min-height: 52px;
  padding: 0.85rem 1rem;
}

.form-control:focus,
.waitlist-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(201, 153, 66, 0.16);
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.page-hero {
  padding: 150px 0 96px;
  background:
    linear-gradient(115deg, rgba(17, 26, 15, 0.9), rgba(35, 54, 29, 0.58)),
    url("../images/baobab-brand-campaign.jpg") center/cover no-repeat;
  color: #fff;
}

.page-hero.compact {
  min-height: 480px;
  display: flex;
  align-items: center;
}

.gallery {
  overflow: hidden;
  background: var(--ivory);
  box-shadow: var(--shadow);
}

.gallery > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.thumb-row {
  display: flex;
  gap: 0.75rem;
  padding: 0.9rem;
  overflow-x: auto;
}

.thumb-button {
  width: 92px;
  height: 74px;
  flex: 0 0 92px;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  background: transparent;
}

.thumb-button.active {
  border-color: var(--gold);
}

.thumb-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-pill {
  display: inline-block;
  color: var(--green);
  border-color: var(--line);
  background: var(--ivory);
  margin-bottom: 1rem;
}

.product-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.product-meta div,
.ingredient-grid div,
.category-grid div,
.values-strip span {
  border-radius: 8px;
  background: var(--ivory);
  padding: 1rem;
}

.product-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-meta strong {
  color: var(--green);
}

.small-note {
  margin: 1rem 0 0;
  font-size: 0.86rem;
}

.drop-icon {
  width: 36px;
  height: 48px;
  margin-bottom: 1rem;
  border: 2px solid var(--gold);
  border-radius: 60% 60% 70% 70%;
  transform: rotate(45deg);
}

.ingredient-grid,
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.usage-box {
  margin-top: 1rem;
  position: relative; /* for pseudo-element positioning */
  transition: margin-left 180ms ease;
}

@media (min-width: 768px) {
  /* make room for the bottle and place it to the left of the box */
  .usage-box {
    margin-left: 140px; /* space for the bottle */
  }

  .usage-box::before {
    content: '';
    position: absolute;
    left: -140px; /* sit in the space we created */
    top: 8px;
    width: 120px;
    height: 260px;
    background-image: url("../images/baobab-product-bottle.jpg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    pointer-events: none;
    z-index: 6; /* above section border but below interactive elements if needed */
  }
}

@media (max-width: 767px) {
  .usage-box {
    margin-left: 0; /* no offset on small screens */
  }

  .usage-box::before {
    display: none; /* hide decorative bottle on small screens */
  }
}

.values-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.5rem;
}

.values-strip span,
.category-grid div,
.ingredient-grid div {
  color: var(--green);
  font-weight: 900;
}

.contact-card {
  background: var(--green);
}

.contact-card h2,
.contact-card p {
  color: #fff;
}

.site-footer {
  padding: 78px 0 28px;
  background: var(--deep);
  color: #fff;
}

.site-footer p,
.site-footer a,
.footer-bottom {
  color: rgba(255, 255, 255, 0.68);
}

.site-footer a {
  display: block;
  margin-bottom: 0.5rem;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold);
}

.site-footer h3 {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.social-icons {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.social-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0 !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.social-icon:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #1d2118;
}

.site-footer .footer-brand {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
}

.site-footer .footer-brand .brand-text {
  font-size: 1.1rem;
  white-space: nowrap;
}

@media (min-width: 992px) {
  .footer-tagline {
    text-align: center;
  }
}

.footer-bottom {
  display: block;
  text-align: center;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom span {
  display: inline-block;
  color: rgba(255,255,255,0.72);
}

.nav-tools {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  color: var(--green);
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--green);
  text-decoration: none;
}

.nav-icon:hover {
  background: rgba(35, 54, 29, 0.06);
}

.category-tile {
  background: var(--ivory);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.category-tile h2 {
  margin: 1rem 0 0.6rem;
  color: var(--green);
}

.btn-dark-green {
  background: linear-gradient(90deg, var(--leaf), var(--green));
  border: 0;
  color: #fff;
}

/* Carousel size adjustments so images fit without causing vertical scroll */
.category-tile .carousel-inner,
.category-tile .carousel-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(280px, 38vh, 420px); /* reduce length and adapt to viewport */
}

.category-tile .carousel-inner img {
  max-height: 100%;
  width: auto;
  object-fit: contain; /* ensure whole image is visible */
  display: block;
}

/* Featured carousel styling */
#featuredCarousel {
  margin: 2.5rem 0;
}

.carousel-image {
  height: clamp(280px, 40vh, 420px);
  object-fit: cover;
  width: 100%;
}

.carousel-caption h3 {
  color: #fff;
  text-shadow: 0 6px 22px rgba(0,0,0,0.6);
}

.carousel-caption a.btn {
  margin-top: 0.75rem;
}

@media (max-width: 767px) {
  .category-tile .carousel-inner,
  .category-tile .carousel-item {
    height: clamp(220px, 30vh, 300px);
  }

  .carousel-caption {
    display: none; /* hide captions on small screens to keep layout simple */
  }
}

@media (max-width: 991px) {
  .navbar-collapse {
    padding: 1rem 0;
  }

  .hero-product-card {
    margin: 0;
  }

  .waitlist-box {
    grid-template-columns: 1fr;
  }

  .shop-section-wrapper { margin-top: -3rem; }
}

@media (max-width: 767px) {
  .hero-section {
    padding-top: 120px;
  }

  .nav-tools {
    gap: 0.5rem;
  }

  .product-meta,
  .ingredient-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .story-band,
  .story-band img {
    min-height: 520px;
    height: 520px;
  }
}

/* Shop section wrapper creates a lifted card feel overlapping the hero */
.shop-section-wrapper {
  margin-top: -6rem; /* pulls section up into the hero */
  padding: 0 1rem;
  position: relative; /* create a stacking context so we can sit above the page separator */
  z-index: 5; /* sit above the border so the separator doesn't visually cut through cards */
}

.shop-categories .category-tile {
  border-radius: 12px;
  overflow: hidden;
  transform: translateY(0);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.shop-categories .category-tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(17,26,15,0.12);
}

.section-pad.separated {
  margin-top: 4rem;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(246,239,228,0.45));
  padding-top: 6rem;
}

/* Section separators */
main > section {
  position: relative;
}

/* keep the subtle top border but place it behind overlapping content by using z-index */
main > section + section {
  border-top: 1px solid rgba(17,26,15,0.06);
  padding-top: clamp(32px, 4vw, 72px);
  position: relative;
  z-index: 1; /* lower than overlapping cards which have higher z-index */
}

/* Make the story-band stand out more as a full-width block  */
.story-band + section,
.section-pad + .story-band {
  border-top: none;
}

/* Make every piece of text inside the footer white for contrast */
footer, .site-footer, .footer {
  color: #fff !important;
}
footer * , .site-footer * , .footer * {
  color: #fff !important;
  fill: #fff !important; /* svg icons */
  stroke: #fff !important;
}
footer a, .site-footer a, .footer a,
footer a:hover, .site-footer a:hover, .footer a:hover,
footer .btn, .site-footer .btn, .footer .btn,
footer .btn:hover, .site-footer .btn:hover, .footer .btn:hover {
  color: #fff !important;
}

/* ── Founding Circle Styles ── */
.founding-card {
  background: var(--ivory);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.founding-form .form-label {
  font-weight: 700;
  color: var(--green);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.founding-confirmation .confirmation-icon svg {
  display: inline-block;
}

.founding-benefit-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ivory);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.founding-benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(17, 26, 15, 0.08);
}

.founding-benefit-card .benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ivory);
}

.founding-benefit-card .card-title {
  color: var(--green);
  font-size: 1.15rem;
}

.founding-benefit-card .card-text {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Countdown timer */
.countdown-timer {
  font-family: Georgia, "Times New Roman", serif;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.countdown-number {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  letter-spacing: 0.02em;
}

.countdown-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--clay);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 0.4rem;
}

.countdown-sep {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--clay);
  align-self: flex-start;
  padding-top: 0.15em;
  opacity: 0.5;
}

/* Form modal overlay */
.founding-form-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(17, 26, 15, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  animation: popupFadeIn 0.3s ease;
}

.founding-form-modal {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 500px;
  width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 32px 72px rgba(17, 26, 15, 0.3);
  animation: popupScaleIn 0.35s ease;
}

.founding-form-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  line-height: 1;
  transition: color 0.2s ease, background 0.2s ease;
}

.founding-form-close:hover {
  color: var(--green);
  background: var(--ivory);
}

/* Pop-up overlay */
.founding-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(17, 26, 15, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  animation: popupFadeIn 0.3s ease;
}

.founding-popup {
  background: var(--ivory);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 460px;
  width: 90vw;
  position: relative;
  box-shadow: 0 32px 72px rgba(17, 26, 15, 0.3);
  animation: popupScaleIn 0.35s ease;
}

.founding-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  line-height: 1;
  transition: color 0.2s ease, background 0.2s ease;
}

.founding-popup-close:hover {
  color: var(--green);
  background: var(--ivory);
}

.founding-popup-cta {
  display: inline-block;
}

@keyframes popupFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popupScaleIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Founding hero responsive */
@media (max-width: 767px) {
  .founding-card {
    padding: 1.5rem;
  }
  .founding-form-modal {
    padding: 2rem 1.5rem;
  }
  .founding-popup {
    padding: 2rem 1.5rem;
  }
}

