/* Global variables */
:root {
  /*
   * Colour palette designed to reflect Luxe Bio's brand values: health,
   * sustainability and nutrition. Greens evoke freshness and growth, a warm
   * golden accent hints at the premium caviar offering, and off‑white
   * tones keep the overall feel light and natural. All colours are chosen
   * for good contrast and readability on a light background.
   */
  --primary-color: #fdb515;       /* medium green used for headlines and buttons */
  --accent-color: #fdb515;        /* warm gold accent reminiscent of caviar */
  --secondary-color: #f6f4e8;     /* pale beige/green for nav and footer backgrounds */
  --text-color: #2a3d34;          /* dark green for body text and navigation */
  --background-color: #fbfdfb;    /* very light off‑white for page background */
  --card-bg: #ffffff;             /* white for cards and panels */

}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Playfair Display','Times New Roman',serif ;
  background-color: var(--background-color);
  color: var(--text-color);
  scroll-behavior: smooth;
}

/* Navigation bar */
nav {
  position: fixed;
  height: 64px;
  top: 0;
  left: 0;
  width: 100%;
}


/* ========= LUXE NAV (works with your existing HTML) ========= */

/* Top bar shell */
.navbar-wrapper .navbar.navbar-inverse.navbar-fixed-top{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(246,244,232,0.92);                 /* var(--secondary-color) with translucency */
  -webkit-backdrop-filter: saturate(120%) blur(6px);
  backdrop-filter: saturate(120%) blur(6px);
  border: 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  height: 64px;
}

/* Inner layout */
.navbar-wrapper .navbar-inner{
  position: relative;                                  /* anchor for absolute dropdown */
  height: 64px;
  display: flex;
  align-items: center;
}
.navbar-wrapper .navbar-inner .container{
  display: grid;
  grid-template-columns: 56px 1fr;                     /* left: hamburger, right: menu */
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0 8px;
}

/* Hamburger button (hidden on desktop) */
.navbar-wrapper .btn.btn-navbar{
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  border-radius: 8px;
  display: none;                                       /* shown in mobile via media query */
  align-items: center; justify-content: center;
  cursor: pointer;
}
.navbar-wrapper .btn.btn-navbar .icon-bar{
  width: 22px; height: 2px; border-radius: 2px;
  background: var(--text-color);
  display: block; margin: 0;
}

/* Horizontal menu (desktop) */
.navbar-wrapper nav ul#nav-menu{
  list-style: none; margin: 0; padding: 10px;
  display: flex; gap: 24px;
  justify-content: center; align-items: center;
}
.navbar-wrapper nav li{ display: inline-block; }

.navbar-wrapper nav a{
  position: relative;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600; letter-spacing: .2px;
  /* elegant underline indicator */
  background-image: linear-gradient(var(--primary-color), var(--primary-color));
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 0 100%;
  font-size: 1.4em;
  padding: 6px 12px;
  border-radius: 4px;
  transition: color 0.3s, background-color 0.3s;
}
nav a:hover,
nav a.active{
  color: var(--text-color);
  background-size: 100% 2px;
  background-color: rgba(0, 0, 0, 0.05);
}

/* Keep page content from hiding under fixed bar */
body{ padding-top: 64px; }

/* ---------- MOBILE ---------- */
@media (max-width: 768px){
  /* show hamburger */
  .navbar-wrapper .btn.btn-navbar{ display: inline-flex; 
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;}

  .navbar-wrapper .btn.btn-navbar .icon-bar{
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--text-color);
    display: block;
    margin: 0;
  }

  /* turn menu into dropdown card (collapsed by default) */
  .navbar-wrapper nav ul#nav-menu{
    position: absolute;
    top: 64px;                                          /* sits below the bar */
    left: 8px; right: 8px;
    background: var(--card-bg);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.10);
    display: block;                                     /* we animate height instead of display */
    overflow: hidden;
    max-height: 0;                                      /* collapsed */
    opacity: 0;
    pointer-events: none;
    transform-origin: top;
    transform: scaleY(.98);
    transition: max-height .28s ease, opacity .22s ease, transform .28s ease, padding .2s ease;
    padding-block: 0;
  }

  /* shown when JS toggles .is-open on #nav-menu */
  .navbar-wrapper nav ul#nav-menu.is-open{
    max-height: 70vh;
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
    padding-block: 6px;
  }

  /* full-width comfy tap targets */
  .navbar-wrapper nav li{ display: block; }
  .navbar-wrapper nav a{
    display: block;
    padding: 12px 14px;
    font-size: 1.05rem;
    background-size: 0 0;                               /* disable underline anim inside panel */
  }
  .navbar-wrapper nav li + li a{
    border-top: 1px solid rgba(0,0,0,0.06);
  }
}

p {
  font-size: 1.4em;
}

strong {
  color: #8a5a00;
}

/* Elegant full-width rule that sits alone on its line */
hr {
  display: block;
  width: min(800px, 92%);
  margin: 2.25rem auto;
  border: none;
  height: 2px;
  clear: both;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(42, 61, 52, 0.18) 15%,
    var(--accent-color) 50%,
    rgba(42, 61, 52, 0.18) 85%,
    transparent 100%
  );
  opacity: 0.9;
}

/* Center jewel accent */
hr::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: -6px auto 0;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow:
    0 0 0 4px var(--background-color),
    0 2px 8px rgba(0,0,0,0.12);
}


/* Alternate sections: use site secondary background */
body > section.section:nth-of-type(even) {
  --stripe-color: var(--secondary-color);
  background-color: var(--secondary-color);
}

/* Disable previous pseudo-element stripe */
body > section.section::before { content: none !important; }

/* Full-bleed alternating background that covers side margins */
body > section.section {
  --stripe-color: transparent;
  position: relative;
  box-shadow: 0 0 0 100vmax var(--stripe-color);
  clip-path: inset(0 -100vmax);
}

/* Even sections use the site secondary color */
body > section.section:nth-of-type(even) {
  --stripe-color: var(--secondary-color);
}

/* Hero section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  background-color: var(--secondary-color);
  overflow: hidden;
  isolation: isolate; /* create stacking context so z-indexes don't affect rest of page */
}
.hero h1 {
  font-family: cursive;
  font-size: 5rem;
  font-weight: 700;
  margin: 0;
  color: var(--primary-color);
  letter-spacing: 3px;
}
 /* Hero tagline highlight */
.hero .tagline {
   font-family: 'Poppins', 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
   font-size: 1.8em;
   font-weight: 700;
   letter-spacing: 0.3px;
   display: inline-block;
   padding: 10px 18px;
   color: #fff;
   background:
     linear-gradient(90deg, rgba(201,164,74,0.22), rgba(201,164,74,0.12)),
     rgba(0,0,0,0.28);
   border: 1px solid rgba(201,164,74,0.45);
   border-radius: 9999px;
   text-shadow: 0 1px 2px rgba(0,0,0,0.4);
   backdrop-filter: blur(2px);
   -webkit-backdrop-filter: blur(2px);
}

.hero p {
  font-size: 1.6rem;
  margin-top: 20px;
  color: #ffffff; /* light text over dark hero background */
  line-height: 1.3;
  max-width: 800px;
}
.cta-button {
  margin-top: 40px;
  padding: 12px 28px;
  /* Use the warm gold accent for the call‑to‑action button to evoke the
     luxurious nutritional nature of the product */
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  font-size: 1.8rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
}
.cta-button:hover {
  /* On hover the button fills with the accent colour and switches text to white */
  background: var(--accent-color);
  color: #ffffff;
}

/* Generic section styling */
.section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--primary-color);
  letter-spacing: -1px;
}

.section-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.section-content .text {
  flex: 1 1 400px;
  max-width: 600px;
  padding: 10px;
  line-height: 1.6;
  font-size: 1rem;
  color: var(--text-color);
}
.section-content .text h3 {
  margin-top: 0;
  color: var(--primary-color);
}
.section-content .image {
  flex: 1 1 400px;
  max-width: 600px;
  padding: 10px;
}
.section-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}


/* Fade-in animation classes */
/* Default: visible (no-JS friendly). When JS adds .js to <html>, we animate. */
.fade-in { opacity: 1; transform: none; }
html.js .fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
html.js .fade-in.visible { opacity: 1; transform: translateY(0); }

/* Product tabs styling */
.product-tabs {
  text-align: center;
  margin-bottom: 30px;
}
.product-tab {
  background: none;
  border: none;
  padding: 12px 24px;
  margin: 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}
.product-tab:hover {
  color: var(--primary-color);
}
.product-tab.active {
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.product-content {
  display: none;
}
.product-content.active {
  display: block;
}
.product-content ul {
  list-style: none;
  padding-left: 0;
}
.product-content li {
  margin-bottom: 6px;
  padding-left: 20px;
  position: relative;
}
.product-content li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-size: 1.2rem;
  line-height: 1;
}

/* Competitors section */
.competitor-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.competitor-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 20px;
  flex: 1 1 280px;
  min-width: 260px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  border: 1px solid #e2ebe4;
  transition: transform 0.3s ease;
}
.competitor-card:hover {
  transform: translateY(-4px);
}
.competitor-card h3 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 1.3rem;
}
.competitor-card p {
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--text-color);
}

/* Contact section */
.contact-info {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}
.contact-info li {
  margin-bottom: 8px;
}
.contact-info a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.contact-info a:hover {
  border-color: var(--primary-color);
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: var(--text-color);
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}


/* Ensure hero text/buttons sit above the overlay */
.hero > * {
  position: relative;
  z-index: 2;
}


/* Background video inside hero */
.hero .bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}


/* Grid overlay to soften/dim the video */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.4); /* dull/darken the video */
  backdrop-filter: blur(6px);           /* blur the video behind */
  -webkit-backdrop-filter: blur(6px);   /* Safari support */
  pointer-events: none;
}

/* Why Luxe Bio emblem above heading */
.why-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.icon-why-circle {
  width: clamp(80px, 12vw, 140px);
  height: auto;
}

.section-title {
  text-align: center;
  margin-top: 0;
}


/* for the support page */
/* Brand font (moved from inline) */
@font-face {
  font-family: 'baguet-script-regular';
  src: url('font/baguet-script-regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* Keep content clear of fixed navbar */
body { padding-top: 60px; }

/* Navbar aligned to site palette */
.navbar-inverse .navbar-inner {
  background: var(--secondary-color) !important;
  background-image: none !important;
  border: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.navbar-inverse .nav > li > a {
  color: var(--text-color) !important;
  font-weight: 600;
}

.navbar-inverse .nav > li > a:hover,
.navbar-inverse .nav > li > a:focus {
  color: var(--primary-color) !important;
  background: rgba(0,0,0,0.05) !important;
}

/* Brand mark */
h1.brand a {
  font-family: 'baguet-script-regular', cursive !important;
  color: var(--primary-color) !important;
}


/* Cards for supporters (moved from inline) */
.team-members .team-member.card {
  border: 1px solid #e2ebe4;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.06);
  background: var(--card-bg);
}

/* Shrinks logos/photos as the viewport narrows */
.team-members .team-member img {
  display: block;
  margin: 12px auto 0;
  max-width: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  /* scales between 120px (small screens) and 200px (large) */
  max-height: clamp(120px, 18vw, 200px);
}

/* Mobile layout */
@media (max-width: 768px) {
  body { padding-top: 56px; }

  /* Navbar: readable on small screens */
  .navbar-inverse .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 8px 12px;
  }
  .navbar-inverse .nav > li {
    float: none;
  }
  .navbar-inverse .nav > li > a {
    padding: 6px 10px;
    line-height: 1.2;
  }

  /* Containers */
  .container { padding: 0 16px; }
}


/* team page */

.page-team .team-members .team-member {
  background: var(--card-bg);
  border: 1px solid #e2ebe4;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  padding: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-team .team-members .team-member:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.10);
}

/* Neutralize any legacy floats/widths */
.page-team .team-members .span6,
.page-team .team-members .pull-right {
  float: none;
  width: auto;
}

/* Neutralize legacy floats/widths from old classes */
.page-team .team-members .span6,
.page-team .team-members .pull-right {
  float: none !important;
  width: auto !important;
}

/* Responsive breakpoints for team page only */
@media (max-width: 992px) {
  .page-team .team-members .section {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 600px) {
  .page-team .team-members .section {
    grid-template-columns: 1fr !important;
  }
}


#team_detail {
  --stripe-color: var(--secondary-color);
  background-color: var(--secondary-color);
}
#supporters {
  --stripe-color: var(--secondary-color);
  background-color: var(--secondary-color);
}

/* Scope the fixed nav to the homepage only; release it on team/support pages */

body.page-team,
body.page-support {
  padding-top: 0;
}

/* Team page: single, consolidated grid + responsive */
.page-team .team-members .section {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 992px) {
  .page-team .team-members .section { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .page-team .team-members .section { grid-template-columns: 1fr; }
  .page-team .team-members .team-member img { max-height: 160px; }
}

/* Neutralize legacy floats from old template classes on team page only */
.page-team .team-members .span6,
.page-team .team-members .pull-right {
  float: none !important;
  width: auto !important;
}

