:root {
  --blue: #2f7fb5;
  --blue-dark: #205a82;
  --orange: #e08a3c;
  --green: #2f9e5c;
  --red: #d9534f;
  --ink: #1c3a4a;
  --ink-soft: #4c6577;
  --bg-top: #eaf6fb;
  --bg-bottom: #e3f7ef;
  --card-bg: #ffffff;
  --border: #d7e9ef;
  --shadow: 0 10px 30px rgba(31, 90, 120, 0.1);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  line-height: 1.6;
}

h1, h2, h3 {
  color: var(--blue-dark);
  line-height: 1.25;
}

a {
  color: var(--blue);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ---------- Hero ---------- */
.hero-logo {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  display: block;
}

.hero-photo {
  position: relative;
  isolation: isolate;
}

.hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(10, 40, 60, 0.15) 0%, rgba(10, 40, 60, 0.55) 100%);
  color: #fff;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
  color: #eaf6fb;
}

.hero-copy h1 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin: 0 0 0.75rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.hero-sub {
  max-width: 640px;
  margin: 0;
  font-size: 1.05rem;
  color: #eef7fb;
}

.alt-hero-sub {
  text-align: center;
  max-width: 640px;
  margin: 0;
  font-size: 1.05rem;

}

@media (max-width: 500px) {
  .hero-sub {
    display: none;
  }
}
@media (min-width: 501px) {
  .alt-hero-sub {
    display: none;
  }
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section h2 {
  text-align: center;
  font-size: 1.8rem;
  margin: 3rem 0 0.25rem;
}

.section-lede {
  text-align: center;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 2rem;
}

/* ---------- Carousel ---------- */
.carousel-section {
  position: relative;
  padding-bottom: 2.5rem;
}

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

.carousel-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius);
}

.carousel-track {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform 0.45s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  cursor: pointer;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.carousel-slide:hover {
  background: #f5fcff;
}

.slide-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.carousel-slide h3 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.carousel-slide p {
  margin: 0 auto 0.75rem;
  max-width: 480px;
  color: var(--ink-soft);
}

.slide-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
}

.carousel-arrow {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--blue-dark);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.carousel-arrow:hover {
  background: var(--blue);
  color: #fff;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #c3ddea;
  padding: 0;
  cursor: pointer;
}

.carousel-dots button.active {
  background: var(--blue);
  transform: scale(1.2);
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 0 0 2rem;
}

.tab-btn {
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tab-btn:hover {
  box-shadow: var(--shadow);
}

.tab-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.tab-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 3rem;
  border-top: 6px solid var(--blue);
}

.tab-panel.theme-digestion { border-top-color: var(--orange); }
.tab-panel.theme-energy { border-top-color: var(--green); }
.tab-panel.theme-detox { border-top-color: var(--red); }

.panel-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.panel-img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.lede {
  font-size: 1.05rem;
}

.section-heading {
  margin-top: 2rem;
}

.feature-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.feature-list li {
  background: #f6fbfd;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.feature-list h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.bullet-list, .guideline-list {
  padding-left: 1.25rem;
}

.bullet-list li, .guideline-list li {
  margin-bottom: 0.9rem;
}

.cite {
  font-size: 0.75em;
  margin-left: 2px;
}

.cite a {
  text-decoration: none;
}

.disclaimer {
  background: #fff8ec;
  border: 1px solid #f1dfb8;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: #7a5c1e;
  font-size: 0.95rem;
  margin-top: 1.5rem;
}

.refs-details {
  margin-top: 2rem;
}

.refs-summary {
  cursor: pointer;
  color: var(--blue-dark);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.25;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  user-select: none;
}

.refs-summary::-webkit-details-marker {
  display: none;
}

.refs-summary::before {
  content: "▸";
  display: inline-block;
  font-size: 0.8em;
  transition: transform 0.2s ease;
}

.refs-details[open] .refs-summary::before {
  transform: rotate(90deg);
}

.refs-list {
  columns: 2;
  column-gap: 2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding-left: 1.25rem;
  margin-top: 1rem;
}

.refs-list li {
  margin-bottom: 0.4rem;
  break-inside: avoid;
}

.refs-list a {
  word-break: break-word;
}

/* ---------- Contact ---------- */
.contact-section {
  padding-bottom: 1rem;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 700px;
  margin: 0 auto;
  border-top: 6px solid var(--blue);
}

.contact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.contact-label {
  font-weight: 600;
  color: var(--blue-dark);
  margin-right: 0.35rem;
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem 3rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-brand {
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .panel-layout {
    grid-template-columns: 1fr;
  }

  .refs-list {
    columns: 1;
  }

  .tab-panel {
    padding: 1.5rem;
  }

  .carousel-arrow {
    width: 36px;
    height: 36px;
  }
}
