/* -------------------------------------- */
/* GLOBAL RESET                           */
/* -------------------------------------- */
body, html {
  margin-top: 0 !important;
  padding-top: 0 !important;
  scrollbar-width: auto;      /* Firefox base: auto | thin */
  -ms-overflow-style: auto;   /* Old IE/Edge */
}

/* Reserve space to avoid layout shift when scrollbars appear */
html {
  overflow-y: auto;
  scrollbar-gutter: stable;
}

/* Firefox colors (thumb | track) and thin width */
html {
  scrollbar-width: auto;
  scrollbar-color: #F16629 #FFEAE0;
}

/* Chrome/Edge/Safari */
html::-webkit-scrollbar {
  width: 10px;                /* adjust 8–12px */
}
html::-webkit-scrollbar-track {
  background: #FFEAE0;        /* track color */
}
html::-webkit-scrollbar-thumb {
  background: #F16629;        /* thumb color */
  border-radius: 8px;         /* subtle rounding */
}
/* Optional hover shade (1 extra rule) */
html::-webkit-scrollbar-thumb:hover {
  background: #D4571F;
}

/* -------------------------------------- */
/* HERO (orange half‑moon)                */
/* -------------------------------------- */
.brand-hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 15rem;  /* space for cards and bottom */
  padding-top: 11rem;  /* space for cards and bottom */
  margin-top: -10vh;
}
.brand-hero-section::before {
  content: '';
  position: absolute;
  top: -120%;
  left: 50%;
  width: 120%;
  height: 190%;
  background-color: #F16629;
  border-radius: 90%;
  transform: translateX(-50%);
  z-index: 0;
}
.brand-hero-section .container {
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
}
.brand-hero-overlay {
  position: relative;
  z-index: 1;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.intro {
  text-align: center;
  max-width: 200rem;
  margin: 0 auto;
  color: #333;
}
.small-heading {
  color: #fff;
}
.large-heading {
  color: #fff;
  font-weight: 700;
  margin-top: 0.5rem;
}
.body-text p {
  margin: 1rem auto;
  max-width: 50rem;
  line-height: 1.6;
  color: #ffffff;
}

/* -------------------------------------- */
/* OVERLAPPING STORY CARDS                */
/* -------------------------------------- */
.cards-row {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 1rem; 
  margin-top: 2rem;
  padding: 0 1rem;
}
.story-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 1rem;  
  border-radius: 0.75rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  flex: 0 0 18rem;
  max-width: 18rem;
  height: 26rem;
}
.story-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 0.5rem;
  flex: none;
}
.story-card h5 {
  margin-top: auto;    
  padding-top: 0.1rem;  
  font-size: 1.1rem;
  font-weight: 600;
  color: #F16629;
  text-align: center;
}

/* Animate headings and intro text */
.brand-story-page .small-heading,
.brand-story-page .large-heading,
.brand-story-page .body-text p {
  opacity: 0;
  transform: translateY(32px);
  animation: fadeSlideUp 0.9s cubic-bezier(.4,0,.2,1) forwards;
}

.brand-story-page .small-heading {
  animation-delay: 0.1s;
}
.brand-story-page .large-heading {
  animation-delay: 0.25s;
}
.brand-story-page .body-text p:nth-child(1) {
  animation-delay: 0.4s;
}
.brand-story-page .body-text p:nth-child(2) {
  animation-delay: 0.55s;
}

.brand-story-page .cards-row .story-card {
  opacity: 0;
  transform: scale(0.92) translateY(32px);
  animation: cardPopIn 1s cubic-bezier(.4,0,.2,1) forwards;
}
.brand-story-page .cards-row .story-card:nth-child(1) { animation-delay: 0.9s; }
.brand-story-page .cards-row .story-card:nth-child(2) { animation-delay: 0.9s; }
.brand-story-page .cards-row .story-card:nth-child(3) { animation-delay: 0.9s; }
.brand-story-page .cards-row .story-card:nth-child(4) { animation-delay: 0.9s; }
.brand-story-page .cards-row .story-card:nth-child(5) { animation-delay: 0.9s; }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(32px);}
  to   { opacity: 1; transform: translateY(0);}
}
@keyframes cardPopIn {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(32px);
  }
  70% {
    opacity: 1;
    transform: scale(1.08) translateY(0); /* grow slightly bigger */
  }
  85% {
    transform: scale(0.97) translateY(0); /* shrink a bit for bounce */
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);    /* settle at normal size */
  }
}
/* -------------------------------------- */
/* BRANDSTORY PAGE NAVBAR CUSTOMIZATION   */
/* -------------------------------------- */
.brand-story-page .navbar {
  color: #fff !important;
  background: rgba(255,255,255,0.95) !important;
  box-shadow: none !important;
}

.brand-story-page .navbar .nav-link,
.brand-story-page .navbar .navbar-brand {
  color: #fff !important;
  font-weight: 500;
}

.brand-story-page .navbar .nav-link:hover,
.brand-story-page .navbar .nav-link:focus {
  color: #F16629 !important;
  background: #fff !important;
  border-radius: 0.3em;
}

.brand-story-page .dropdown-menu {
  background: #fff3ea;
  border-radius: 0.5em;
  border: none;
}

.brand-story-page .dropdown-item {
  color: #F16629 !important;
  font-weight: 500;
}

.brand-story-page .dropdown-item:hover,
.brand-story-page .dropdown-item:focus {
  background: #F16629 !important;
  color: #fff !important;
}

/* -------------------------------------- */
/*   MOBILE PORTRAIT ADJUSTMENTS         */
/* -------------------------------------- */
@media (max-width: 430px) and (orientation: portrait) {
  body, html {
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* Old IE/Edge */
  }
  .brand-hero-section {
    padding-bottom: 5rem !important;
    padding-top: 9rem !important; /* bring orange moon down */
  }
  .brand-hero-section::before {
    top: -55%;           /* bring orange moon lower */
    width: 110%;
    height: 120%;        /* extend orange moon further down */
  }
  .intro {
    max-width: 17rem !important;
    margin: 0 auto !important;
    padding: 0 0.5rem !important;
  }
  .small-heading {
    font-size: 1rem !important;
    font-weight: 500 !important;
    margin-bottom: 0.3rem !important;
    opacity: 0;
    transform: translateY(16px);
    animation: brandFadeIn 0.8s cubic-bezier(.4,0,.2,1) 0.1s forwards;
  }
  .large-heading {
    font-size: 2rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.7rem !important;
    margin-top: 0.1rem !important;
    opacity: 0;
    transform: translateY(16px);
    animation: brandFadeIn 0.8s cubic-bezier(.4,0,.2,1) 0.25s forwards;
  }
  .body-text p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    max-width: 16rem !important;
    margin: 0.4rem auto !important;
    color: #fff !important;
    text-align: center !important;
    opacity: 0;
    transform: translateY(16px);
    animation: brandFadeIn 0.8s cubic-bezier(.4,0,.2,1) 0.4s forwards;
  }
  .body-text p:nth-child(2) {
    animation-delay: 0.55s;
  }
  .cards-row .story-card img {
    max-height: 6rem;
    margin-bottom: 0.25rem;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .cards-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    gap: 0.5rem;
    margin-top: 1rem !important;
    padding: 0 !important;
  }
  .cards-row .story-card {
    justify-content: flex-start !important;
    width: 100%;
    max-width: 10rem;
    height: auto !important;
    min-height: 0 !important;
    padding: 0.5rem;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(32px);
    animation: cardFadeIn 1.1s cubic-bezier(.4,0,.2,1) forwards;
  }
  .cards-row .story-card:nth-child(1),
  .cards-row .story-card:nth-child(2) {
    animation-delay: 0.25s;
  }
  .cards-row .story-card:nth-child(3),
  .cards-row .story-card:nth-child(4) {
    animation-delay: 0.55s;
  }
  .cards-row .story-card:nth-child(5) {
    animation-delay: 0.85s;
  }

  .cards-row .story-card:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
  }

  @keyframes brandFadeIn {
    from { opacity: 0; transform: translateY(16px);}
    to   { opacity: 1; transform: translateY(0);}
  }
  @keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(32px);}
    to   { opacity: 1; transform: translateY(0);}
  }
}