/* ============================================================
   Mycelium Pharmacy — Custom Homepage Styles
   Scoped under .myc-homepage to prevent shared template leakage.
   Fonts: Fraunces (headings) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;0,9..144,700;1,9..144,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&display=swap');

html { scroll-behavior: smooth; }
.myc-btn-scroll { display: inline-block; text-decoration: none; text-align: center; cursor: pointer; }

/* ============================================================
   CSS Custom Properties
   ============================================================ */
.myc-homepage {
  --myc-orange: #F7941D;
  --myc-orange-dark: #E8730A;
  --myc-orange-light: #FEF3E2;
  --myc-navy: #1A2340;
  --myc-navy-light: #2D3A5A;
  --myc-cream: #FFFAF4;
  --myc-cream-dark: #F5EFE6;
  --myc-white: #FFFFFF;
  --myc-text: #1A2340;
  --myc-text-muted: #64748B;
  --myc-border: #E8E0D5;
  --myc-font-heading: 'Fraunces', Georgia, serif;
  --myc-font-body: 'DM Sans', sans-serif;
  font-family: var(--myc-font-body);
  color: var(--myc-text);
  background: var(--myc-white);
}

/* ============================================================
   Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .myc-homepage *,
  .myc-homepage *::before,
  .myc-homepage *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   Scroll Fade-Up Animation
   ============================================================ */
.myc-homepage .fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.myc-homepage .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Section Base
   ============================================================ */
.myc-homepage .myc-section {
  padding: 80px 0;
}
.myc-homepage .myc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.myc-homepage .myc-section-label {
  display: inline-block;
  font-family: var(--myc-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--myc-orange);
  margin-bottom: 12px;
}
.myc-homepage .myc-section-title {
  font-family: var(--myc-font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--myc-text);
  line-height: 1.2;
  margin: 0 0 16px;
}
.myc-homepage .myc-section-desc {
  font-size: 17px;
  color: var(--myc-text-muted);
  line-height: 1.65;
  max-width: 560px;
}
.myc-homepage .myc-section-header {
  margin-bottom: 48px;
}

/* ============================================================
   CTA Button
   ============================================================ */
.myc-homepage .myc-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--myc-orange) 0%, var(--myc-orange-dark) 100%);
  color: #fff;
  font-family: var(--myc-font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.myc-homepage .myc-btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: transform 0.5s ease;
}
.myc-homepage .myc-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(247,148,29,0.4);
}
.myc-homepage .myc-btn-primary:hover::after {
  transform: translateX(350%);
}
.myc-homepage .myc-btn-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--myc-navy);
  font-family: var(--myc-font-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, gap 0.2s ease;
}
.myc-homepage .myc-btn-secondary-link:hover {
  color: var(--myc-orange);
  gap: 10px;
}

/* ============================================================
   SECTION 1 — HERO
   Full-width image with gradient overlay + left-aligned text
   ============================================================ */
.myc-homepage .myc-hero {
  position: relative;
  width: 100%;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.myc-homepage .myc-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('/storefront/images/tenants/mycelium/hero-bg1.jpg');
  background-size: contain;
  background-position: right center;
  background-color: #BDB6AD;
  background-repeat: no-repeat;
  transform: scale(1.03);
  transition: transform 8s ease;
}
.myc-homepage .myc-hero:hover .myc-hero__bg {
  transform: scale(1.0);
}
.myc-homepage .myc-hero__overlay {
  display: none;
}
.myc-homepage .myc-hero__image-panel { display: none; }
.myc-homepage .myc-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  background: transparent;
  display: block;
}
.myc-homepage .myc-hero__inner {
  max-width: 600px;
}
.myc-homepage .myc-hero__label {
  display: inline-block;
  font-family: var(--myc-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.myc-homepage .myc-hero__headline {
  font-family: var(--myc-font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--myc-navy);
  margin-bottom: 1.25rem;
}
.myc-homepage .myc-hero__sub {
  font-family: var(--myc-font-body);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.65;
  color: #3D342C;
  margin-bottom: 2rem;
  max-width: 480px;
}
.myc-homepage .myc-hero__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.myc-homepage .myc-hero__link {
  font-family: var(--myc-font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--myc-navy);
  text-decoration: none;
  transition: color 0.2s ease;
}
.myc-homepage .myc-hero__link:hover {
  color: var(--myc-orange);
}
.myc-homepage .myc-hero__badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.myc-homepage .myc-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(26,35,64,0.25);
  border-radius: 100px;
  font-family: var(--myc-font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--myc-navy);
  background: rgba(255,255,255,0.7);
}
.myc-homepage .myc-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--myc-cream);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  z-index: 3;
}
@media (max-width: 768px) {
  .myc-homepage .myc-hero {
    min-height: auto;
    padding: 56px 24px 48px;
    align-items: flex-start;
    background-color: var(--myc-navy);
  }
  /* Hide the photo on mobile — portrait image doesn't work on narrow screens */
  .myc-homepage .myc-hero__bg {
    display: none;
  }
  .myc-homepage .myc-hero__overlay {
    display: none;
  }
  /* White text on navy */
  .myc-homepage .myc-hero__label {
    color: rgba(247,148,29,1);
  }
  .myc-homepage .myc-hero__headline {
    color: #ffffff;
    font-size: clamp(1.9rem, 8vw, 2.8rem);
  }
  .myc-homepage .myc-hero__sub {
    color: rgba(255,255,255,0.80);
    max-width: 100%;
  }
  .myc-homepage .myc-hero__link {
    color: rgba(255,255,255,0.85);
  }
  .myc-homepage .myc-hero__inner {
    max-width: 100%;
  }
  /* Badges: white border on navy */
  .myc-homepage .myc-badge {
    border-color: rgba(255,255,255,0.35);
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.1);
  }
  /* Remove diagonal clip on mobile — looks bad on small screens */
  .myc-homepage .myc-hero::after {
    display: none;
  }
}

/* ============================================================
   SECTION 2 — TRUST STRIP
   ============================================================ */
.myc-homepage .myc-trust-strip {
  background: var(--myc-cream);
  padding: 52px 0;
  border-top: 1px solid var(--myc-border);
  border-bottom: 1px solid var(--myc-border);
}
.myc-homepage .myc-trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}
.myc-homepage .myc-trust-strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 32px;
  position: relative;
}
.myc-homepage .myc-trust-strip__item + .myc-trust-strip__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--myc-border);
}
.myc-homepage .myc-trust-strip__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  color: var(--myc-orange);
}
.myc-homepage .myc-trust-strip__label {
  font-family: var(--myc-font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--myc-text);
  margin-bottom: 4px;
}
.myc-homepage .myc-trust-strip__desc {
  font-size: 13px;
  color: var(--myc-text-muted);
  line-height: 1.5;
}

/* ============================================================
   SECTION 3 — TREATMENTS (Product Grid)
   Pharmacy-label card style
   ============================================================ */
.myc-homepage .myc-treatments {
  background: var(--myc-white);
}
.myc-homepage .myc-treatments__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.myc-homepage .myc-product-card {
  background: var(--myc-white);
  border-radius: 12px;
  border: 1px solid var(--myc-border);
  border-left: 4px solid var(--myc-orange);
  overflow: visible;
  position: relative;
  z-index: 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-left-color 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.myc-homepage .myc-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(26,35,64,0.15);
  border-left-color: var(--myc-orange-dark);
  z-index: 10;
}
.myc-homepage .myc-product-card__image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: transparent;
}
.myc-homepage .myc-product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  padding: 20px;
  transition: transform 0.3s ease;
}
.myc-homepage .myc-product-card:hover .myc-product-card__image-wrap img {
  transform: scale(1.04);
}
.myc-homepage .myc-product-card__category {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #F7941D 0%, #E8730A 100%);
  border: none;
  border-radius: 100px;
  padding: 0.3rem 0.75rem;
  box-shadow: 0 2px 8px rgba(247,148,29,0.35);
}
.myc-homepage .myc-product-card__body {
  padding: 20px 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.myc-homepage .myc-product-card__name {
  font-family: var(--myc-font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--myc-text);
  margin: 0 0 8px;
  line-height: 1.3;
}
.myc-homepage .myc-product-card__desc {
  font-size: 13px;
  color: var(--myc-text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.myc-homepage .myc-product-card__price {
  font-size: 13px;
  color: var(--myc-text-muted);
  margin-bottom: 14px;
}
.myc-homepage .myc-product-card__price strong {
  color: var(--myc-text);
  font-size: 15px;
}
.myc-homepage .myc-product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--myc-orange);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}
.myc-homepage .myc-product-card__link:hover {
  color: var(--myc-orange-dark);
  gap: 9px;
}

/* ============================================================
   SECTION 4 — PROCESS (3 steps)
   ============================================================ */
.myc-homepage .myc-process {
  background: var(--myc-cream-dark);
}
.myc-homepage .myc-process__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.myc-homepage .myc-process__steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.67% + 20px);
  right: calc(16.67% + 20px);
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    rgba(26,35,64,0.3) 0,
    rgba(26,35,64,0.3) 8px,
    transparent 8px,
    transparent 16px
  );
}
.myc-homepage .myc-process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 32px;
  animation-fill-mode: both;
}
.myc-homepage .myc-process-step:nth-child(1) { animation-delay: 0s; }
.myc-homepage .myc-process-step:nth-child(2) { animation-delay: 0.15s; }
.myc-homepage .myc-process-step:nth-child(3) { animation-delay: 0.3s; }
.myc-homepage .myc-process-step__number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--myc-navy);
  color: #fff;
  font-family: var(--myc-font-heading);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.myc-homepage .myc-process-step__title {
  font-family: var(--myc-font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--myc-text);
  margin-bottom: 10px;
}
.myc-homepage .myc-process-step__desc {
  font-size: 14px;
  color: var(--myc-text-muted);
  line-height: 1.65;
}

/* ============================================================
   SECTION 5 — PHARMACY DIFFERENCE (dark navy)
   ============================================================ */
.myc-homepage .myc-difference {
  background: var(--myc-navy);
  color: var(--myc-white);
}
.myc-homepage .myc-difference__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.myc-homepage .myc-difference .myc-section-label {
  color: var(--myc-orange);
}
.myc-homepage .myc-difference__title {
  font-family: var(--myc-font-heading);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--myc-white);
  line-height: 1.2;
  margin: 0 0 20px;
}
.myc-homepage .myc-difference__body {
  font-size: 15px;
  color: rgba(255,255,255,0.78);
  line-height: 1.75;
  margin-bottom: 32px;
}
.myc-homepage .myc-difference__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.myc-homepage .myc-difference__point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: rgba(255,255,255,0.88);
  line-height: 1.55;
}
.myc-homepage .myc-difference__point-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--myc-orange);
}
.myc-homepage .myc-difference__image-wrap {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.myc-homepage .myc-difference__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
  min-height: 400px;
}
.myc-homepage .myc-difference__image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(247,148,29,0.15), transparent 60%);
  pointer-events: none;
}

/* ============================================================
   SECTION 6 — TRUST CARDS
   ============================================================ */
.myc-homepage .myc-trust-cards {
  background: var(--myc-white);
}
.myc-homepage .myc-trust-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.myc-homepage .myc-trust-card {
  background: var(--myc-cream);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--myc-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.myc-homepage .myc-trust-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(26,35,64,0.1);
}
.myc-homepage .myc-trust-card__icon {
  width: 48px;
  height: 48px;
  color: var(--myc-orange);
  margin: 0 auto 16px;
}
.myc-homepage .myc-trust-card__title {
  font-family: var(--myc-font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--myc-text);
  margin-bottom: 10px;
}
.myc-homepage .myc-trust-card__desc {
  font-size: 14px;
  color: var(--myc-text-muted);
  line-height: 1.65;
}

/* ============================================================
   SECTION 7 — CTA BAND
   ============================================================ */
.myc-homepage .myc-cta-band {
  background: linear-gradient(135deg, var(--myc-orange-light) 0%, var(--myc-cream) 100%);
  padding: 96px 0;
  text-align: center;
}
.myc-homepage .myc-cta-band__title {
  font-family: var(--myc-font-heading);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  color: var(--myc-text);
  margin-bottom: 14px;
}
.myc-homepage .myc-cta-band__sub {
  font-size: 17px;
  color: var(--myc-text-muted);
  margin-bottom: 36px;
}
.myc-homepage .myc-cta-band .myc-btn-primary {
  font-size: 17px;
  padding: 18px 44px;
  margin-bottom: 16px;
}
.myc-homepage .myc-cta-band__privacy {
  font-size: 13px;
  color: var(--myc-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ============================================================
   RESPONSIVE — Tablet (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .myc-homepage .myc-hero__content {
    padding: 48px 32px 48px 40px;
  }
  .myc-homepage .myc-treatments__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .myc-homepage .myc-trust-cards__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .myc-homepage .myc-difference__grid {
    gap: 40px;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  .myc-homepage .myc-section {
    padding: 56px 0;
  }
  .myc-homepage .myc-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: unset;
  }
  .myc-homepage .myc-hero__image-panel {
    min-height: 45vw;
    order: -1;
  }
  .myc-homepage .myc-hero__content {
    padding: 40px 24px 48px;
  }
  .myc-homepage .myc-hero__inner {
    max-width: 100%;
  }
  .myc-homepage .myc-hero__sub {
    max-width: 100%;
  }
  .myc-homepage .myc-trust-strip__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .myc-homepage .myc-trust-strip__item + .myc-trust-strip__item::before {
    display: none;
  }
  .myc-homepage .myc-trust-strip__item:nth-child(2n+1) {
    border-right: 1px solid var(--myc-border);
    padding-right: 24px;
  }
  .myc-homepage .myc-treatments__grid {
    grid-template-columns: 1fr;
  }
  .myc-homepage .myc-process__steps {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .myc-homepage .myc-process__steps::before {
    display: none;
  }
  .myc-homepage .myc-difference__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .myc-homepage .myc-difference__image-wrap {
    order: -1;
  }
  .myc-homepage .myc-difference__image-wrap img {
    min-height: 280px;
  }
  .myc-homepage .myc-trust-cards__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .myc-homepage .myc-cta-band {
    padding: 64px 0;
  }
}
