/**
 * TruOath Nutrition Homepage CSS — Aesop 1:1
 * Sections: Hero, Featured Products, Brand Story, Ingredients, Journal, CTA Banner
 */

/* ==========================================================================
   A. Full-Viewport Hero — Aesop-style (text at bottom center)
   ========================================================================== */

.truoath-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: flex-end;       /* Push content to bottom */
  justify-content: center;
  overflow: hidden;
}

.truoath-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.truoath-hero__overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.55) 0%,
            rgba(0,0,0,0.25) 40%,
            rgba(0,0,0,0.65) 100%
        );

    z-index: 1;
}

.truoath-hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  max-width: 820px;
  padding: 0 5% 80px;    
  text-shadow: 0 4px 30px rgba(0,0,0,0.35);      /* Bottom padding pushes content up from edge */
}


.truoath-hero__eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  opacity: 0.85;
  color: rgba(255,255,255,0.85);
}

.truoath-hero__title {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

.truoath-hero__subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  line-height: 1.65;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.truoath-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  background-color: #252525;
  padding: 16px 32px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  letter-spacing: 0.01em;
}

.truoath-hero__cta:hover {
  background-color: #333;
  text-decoration: none !important;
}

.truoath-hero__cta svg {
  transition: transform 0.3s ease;
}

.truoath-hero__cta:hover svg {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .truoath-hero {
    min-height: 500px;
  }
  .truoath-hero__title {
    font-size: 36px;
  }
  .truoath-hero__content {
    padding-bottom: 50px;
  }
}

/* ==========================================================================
   B. Interactive Flavor Slider (Epic Layout)
   ========================================================================== */

.truoath-flavor-slider-section {
  padding: 60px 0 80px;
  background-color: var(--truoath-cream);
  overflow: hidden;
}

.truoath-flavor-slider__header {
  margin-bottom: 36px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.truoath-flavor-slider__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--truoath-brown);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

.truoath-flavor-slider__drag-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--truoath-warm-grey);
  opacity: 0.7;
}

.truoath-flavor-slider__drag-indicator svg {
  animation: swipeHint 2s infinite ease-in-out;
}

@keyframes swipeHint {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}

.truoath-flavor-slider__track-container {
  width: 100%;
  padding-left: max(5%, calc((100vw - 1200px) / 2)); /* Align with container */
  /* Remove scrollbar */
  -ms-overflow-style: none;  
  scrollbar-width: none;  
}
.truoath-flavor-slider__track-container::-webkit-scrollbar { 
  display: none; 
}

.truoath-flavor-slider__track {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-right: 5%; /* Space at the end */
}

.truoath-flavor-card {
  flex: 0 0 18vw; /* 5 cards visible on desktop */
  min-width: 240px;
  scroll-snap-align: start;
}

.truoath-flavor-card__link {
  display: block;
  text-decoration: none;
}

.truoath-flavor-card__image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  background-color: #E8E3DA;
  overflow: hidden;
  margin-bottom: 24px;
}

.truoath-flavor-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.truoath-flavor-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.truoath-flavor-card__action {
  background: var(--truoath-cream);
  color: var(--truoath-brown);
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transform: translateY(15px);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.truoath-flavor-card__link:hover .truoath-flavor-card__img {
  transform: scale(1.05);
}

.truoath-flavor-card__link:hover .truoath-flavor-card__overlay {
  opacity: 1;
}

.truoath-flavor-card__link:hover .truoath-flavor-card__action {
  transform: translateY(0);
}

.truoath-flavor-card__info {
  padding-right: 20px;
}

.truoath-flavor-card__category {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--truoath-tan);
  margin-bottom: 12px;
}

.truoath-flavor-card__name {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--truoath-brown);
  line-height: 1.2;
  margin-bottom: 20px;
}

.truoath-flavor-card__divider {
  border: none;
  border-top: 1px solid var(--truoath-border);
  margin: 0 0 16px 0;
}

.truoath-flavor-card__price {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--truoath-warm-grey);
}
.truoath-flavor-card__price .amount {
  color: var(--truoath-black);
}

@media (max-width: 1024px) {
  .truoath-flavor-card {
    flex: 0 0 45vw;
  }
}

@media (max-width: 768px) {
  .truoath-flavor-slider__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .truoath-flavor-slider__title {
    font-size: 36px;
  }
  .truoath-flavor-card {
    flex: 0 0 80vw;
  }
  .truoath-flavor-slider-section {
    padding: 60px 0;
  }
}


/* ==========================================================================
   C. Brand Story Editorial Section
   ========================================================================== */

.truoath-story {
  padding: var(--spacing-section-y) 0;
  background-color: var(--truoath-cream);
}

.truoath-story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.truoath-story__image-wrap {
  overflow: hidden;
  background-color: #e8e3da;
}

.truoath-story__image-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.truoath-story__heading {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  color: var(--truoath-brown);
  margin-bottom: 32px;
}

.truoath-story__text p {
  font-size: var(--text-base);
  color: var(--truoath-warm-grey);
  line-height: 1.8;
  margin-bottom: 20px;
}

.truoath-story__link {
  font-size: var(--text-sm);
  color: var(--truoath-black);
  border-bottom: 1px solid var(--truoath-black);
  padding-bottom: 2px;
  margin-top: 16px;
  display: inline-block;
  text-decoration: none;
}

.truoath-story__link:hover {
  opacity: 0.6;
  text-decoration: none;
}

@media (max-width: 768px) {
  .truoath-story__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .truoath-story__heading {
    font-size: var(--text-3xl);
  }
}

/* ==========================================================================
   D. Ingredients Philosophy (Dark Section)
   ========================================================================== */

.truoath-ingredients {
  background-color: var(--truoath-brown);
  color: var(--truoath-cream);
  padding: 80px 0; /* Reduced from 120px */
}

.truoath-ingredients__heading {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  color: var(--truoath-cream);
  text-align: center;
  margin-bottom: 40px; /* Reduced from 70px */
}

.truoath-ingredients__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px; /* Reduced from 50px */
  text-align: center;
}

.truoath-ingredients__icon {
  width: 60px; /* Increased from 48px */
  height: 60px; /* Increased from 48px */
  margin: 0 auto 20px;
  opacity: 0.85;
}

.truoath-ingredients__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--truoath-tan);
}

.truoath-ingredients__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--truoath-cream);
  margin-bottom: 12px;
}

.truoath-ingredients__desc {
  font-size: var(--text-sm);
  color: rgba(245, 240, 232, 0.7);
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .truoath-ingredients__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .truoath-ingredients__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .truoath-ingredients__heading {
    font-size: var(--text-3xl);
  }
}

/* ==========================================================================
   F. Full-Width Banner CTA
   ========================================================================== */

.truoath-cta-banner {
  background-color: var(--truoath-tan);
  padding: 80px 0;
  text-align: center;
}

.truoath-cta-banner__heading {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  color: var(--truoath-brown);
  margin-bottom: 16px;
}

.truoath-cta-banner__sub {
  font-size: var(--text-base);
  color: var(--truoath-brown);
  opacity: 0.8;
  margin-bottom: 36px;
}

.truoath-cta-banner__btn {
  display: inline-block;
  border: 1px solid var(--truoath-brown);
  color: var(--truoath-brown);
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 36px;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.truoath-cta-banner__btn:hover {
  background: var(--truoath-brown);
  color: var(--truoath-cream);
  text-decoration: none;
}

@media (max-width: 768px) {
  .truoath-cta-banner__heading {
    font-size: var(--text-3xl);
  }
}

/* ==========================================================================
   HOME PAGE — Typographic Refinements
   ========================================================================== */

/* Hero headline — tighter, more impactful */
.truoath-hero__title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* Hero subtext — refined */
.truoath-hero__subtitle {
  font-size: 15px;
  letter-spacing: 0.04em;
  line-height: 1.8;
  opacity: 0.82;
}

/* Section label (eyebrow text) — refined */
.truoath-section-label,
.truoath-eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 18px;
}

/* Section headings on homepage */
.truoath-section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 48px;
}
