/* ============================================
   ENDORSE BEAUTY — Components
   ============================================ */

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 2.5rem;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  border-radius: 2px;
  transition: all var(--duration-sm) var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-charcoal);
  color: var(--color-ivory);
}

.btn--primary:hover {
  background: var(--color-muted-rose);
  transform: translateY(-1px);
}

.btn--outline {
  border: 1px solid var(--color-charcoal);
  color: var(--color-charcoal);
}

.btn--outline:hover {
  background: var(--color-charcoal);
  color: var(--color-ivory);
  transform: translateY(-1px);
}

.btn--outline-light {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--color-ivory);
}

.btn--outline-light:hover {
  background: var(--color-ivory);
  color: var(--color-charcoal);
  border-color: var(--color-ivory);
}

/* ---- Cards ---- */
.card {
  background: var(--color-warm-white);
  border-radius: 2px;
  padding: var(--space-lg);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
  transition: transform var(--duration-sm) var(--ease-out),
              box-shadow var(--duration-sm) var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  color: var(--color-muted-rose);
}

.card__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.card__title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  margin-bottom: var(--space-xs);
  color: var(--color-charcoal);
}

.card__text {
  font-size: var(--text-small);
  color: var(--color-warm-grey);
  line-height: var(--leading-relaxed);
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
  transition: background var(--duration-md) var(--ease-out),
              box-shadow var(--duration-md) var(--ease-out);
}

.nav--transparent {
  background: transparent;
}

.nav--solid {
  background: rgba(44, 44, 44, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  height: 48px;
  transition: opacity var(--duration-sm) var(--ease-out);
}

.nav__logo:hover {
  opacity: 0.7;
}

.nav__logo img {
  height: 100%;
  width: auto;
  transition: filter var(--duration-md) var(--ease-out);
}

.nav--solid .nav__logo img {
  filter: brightness(2);
}

.nav__links {
  display: flex;
  gap: var(--space-lg);
}

.nav__link {
  font-size: var(--text-nav);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  position: relative;
  transition: color var(--duration-sm) var(--ease-out);
}

.nav--transparent .nav__link {
  color: var(--color-ivory);
}

.nav--solid .nav__link {
  color: var(--color-ivory);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--color-muted-rose);
  transition: width var(--duration-sm) var(--ease-out),
              left var(--duration-sm) var(--ease-out);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
  left: 0;
}

.nav__link--active {
  color: var(--color-muted-rose) !important;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  transition: all var(--duration-sm) var(--ease-out);
}

.nav--transparent .nav__hamburger span {
  background: var(--color-ivory);
}

.nav--solid .nav__hamburger span {
  background: var(--color-ivory);
}

.nav__hamburger.is-open span {
  background: var(--color-ivory) !important;
}

.nav__hamburger.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.nav__mobile {
  position: fixed;
  inset: 0;
  background: var(--color-deep-charcoal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-sm) var(--ease-out),
              visibility var(--duration-sm);
  z-index: 999;
}

.nav__mobile.is-open {
  opacity: 1;
  visibility: visible;
}

.nav__mobile a {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  color: var(--color-ivory);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity var(--duration-md) var(--ease-out),
              transform var(--duration-md) var(--ease-out),
              color var(--duration-sm) var(--ease-out);
}

.nav__mobile.is-open a {
  opacity: 1;
  transform: translateX(0);
}

.nav__mobile a:hover {
  color: var(--color-muted-rose);
}

@media (max-width: 899px) {
  .nav {
    height: 64px;
  }

  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }
}

/* ---- Page Hero ---- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding: 120px var(--container-pad) var(--space-xl);
  overflow: hidden;
}

.hero--medium {
  min-height: 60vh;
}

.hero--short {
  min-height: 45vh;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero__title {
  font-size: var(--text-display);
  color: var(--color-ivory);
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.8s var(--ease-out) 0.3s forwards;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--leading-relaxed);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.8s var(--ease-out) 0.5s forwards;
}

.hero__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.8s var(--ease-out) 0.7s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0;
  animation: heroFadeUp 0.8s var(--ease-out) 1s forwards;
}

.hero__scroll span {
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.4);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* ---- Footer ---- */
.footer {
  background: var(--color-deep-charcoal);
  color: var(--color-light-grey);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand-logo {
  height: 48px;
  margin-bottom: var(--space-md);
  opacity: 0.7;
}

.footer__brand-logo img {
  height: 100%;
  width: auto;
  filter: brightness(2);
}

.footer__brand p {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.45);
  max-width: 280px;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-ivory);
  margin-bottom: var(--space-md);
}

.footer__links li {
  margin-bottom: var(--space-xs);
}

.footer__links a {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--duration-sm) var(--ease-out);
}

.footer__links a:hover {
  color: var(--color-muted-rose);
}

.footer__contact p,
.footer__contact a {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: var(--space-xs);
}

.footer__contact a:hover {
  color: var(--color-muted-rose);
}

.footer__bottom {
  padding-top: var(--space-md);
  text-align: center;
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 899px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* ---- Stat Block ---- */
.stat {
  text-align: center;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  color: var(--color-muted-rose);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat__label {
  font-size: var(--text-small);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* ---- Numbered Item ---- */
.numbered-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}

.numbered-item__number {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  color: var(--color-muted-rose);
  line-height: 1;
}

.numbered-item__title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  margin-bottom: var(--space-xs);
  color: var(--color-charcoal);
}

.numbered-item__text {
  font-size: var(--text-small);
  color: var(--color-warm-grey);
}

/* ---- Quote Block ---- */
.quote-block {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.quote-block__text {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  color: var(--color-charcoal);
  line-height: var(--leading-tight);
  font-style: italic;
}

.quote-block__accent {
  width: 40px;
  height: 2px;
  background: var(--color-muted-rose);
  margin: var(--space-md) auto 0;
}

/* ---- CTA Banner ---- */
.cta-banner {
  text-align: center;
  padding: var(--space-2xl) var(--container-pad);
  background: var(--color-cream);
}

.cta-banner h2 {
  margin-bottom: var(--space-lg);
}

/* ---- Image Card (Product Grid) ---- */
.image-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 1;
  cursor: pointer;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-md) var(--ease-out);
}

.image-card:hover img {
  transform: scale(1.05);
}

.image-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 28, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-sm) var(--ease-out);
}

.image-card:hover .image-card__overlay {
  background: rgba(28, 28, 28, 0.2);
}

.image-card__label {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  color: var(--color-ivory);
  letter-spacing: var(--tracking-wide);
}

/* ---- Callout ---- */
.callout {
  border: 1px solid var(--color-border);
  border-radius: 2px;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-warm-white);
}

.callout p {
  font-size: var(--text-small);
  font-style: italic;
}

/* ---- Steps ---- */
.steps {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

.step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-muted-rose);
  color: var(--color-ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin: 0 auto var(--space-sm);
}

.step__title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  margin-bottom: var(--space-xs);
}

.step__text {
  font-size: var(--text-small);
  color: var(--color-warm-grey);
}

.step::after {
  content: '';
  position: absolute;
  top: 24px;
  right: calc(-1 * var(--space-lg) / 2 - 20px);
  width: 40px;
  height: 1px;
  background: var(--color-border);
}

.step:last-child::after {
  display: none;
}

@media (max-width: 639px) {
  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step::after {
    display: none;
  }
}
