/* ============================================================
   COMPONENTS — nav, cards, stat chips, testimonials, footer
   ============================================================ */

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px clamp(var(--space-5), 5vw, var(--space-8));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(254, 252, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(161,138,109,0.12);
  transition: box-shadow var(--transition-normal);
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.nav__logo-img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  mix-blend-mode: multiply;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav__link {
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav__link:hover {
  color: var(--color-accent-orange);
}

.nav__link--active {
  color: var(--color-accent-orange);
}

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: 0.15rem;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-accent-orange);
  border-radius: 2px;
}

.nav__cta {
  background: var(--color-surface-sage);
  color: var(--color-header);
  padding: 10px 22px;
  border-radius: 0.75rem;
  font-family: var(--font-display);
  font-size: var(--text-small);
  font-weight: 500;
  transition: background var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
}

.nav__cta:hover {
  background: var(--color-accent-orange);
  transform: translateY(-1px);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-header);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ---- MOBILE NAV ---- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-cream);
  display: flex;
  flex-direction: column;
  padding: 100px var(--space-6) var(--space-7);
  gap: var(--space-5);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav__link {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: var(--weight-semibold);
  color: var(--color-header);
  display: block;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(161,138,109,0.15);
  transition: color var(--transition-fast);
}

.mobile-nav__link:hover {
  color: var(--color-accent-orange);
}

.mobile-nav__cta {
  display: inline-flex;
  margin-top: var(--space-4);
  background: var(--color-accent-orange);
  color: white;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-size: 18px;
  font-weight: var(--weight-semibold);
  align-self: flex-start;
}

.nav__hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- STAT CHIPS ---- */
.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-white);
  border: 1px solid var(--color-tan-light);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--color-header);
  box-shadow: var(--shadow-sm);
}

.stat-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---- HOW IT WORKS STEP CARD ---- */
.step-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1.5px solid rgba(161,138,109,0.18);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.step-card__number {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: var(--weight-semibold);
  line-height: 1;
  opacity: 0.12;
  position: absolute;
  top: var(--space-4);
  right: var(--space-5);
  color: var(--color-header);
}

.step-card__screen {
  aspect-ratio: 9 / 12;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  background: var(--color-cream);
  border: 1.5px solid rgba(161,138,109,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  overflow: hidden;
}

.step-card__screen span {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--color-inactive);
}

.step-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.step-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
  color: var(--color-header);
  line-height: 1.3;
}

.step-card__desc {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  line-height: 1.35;
}

/* ---- FEATURE PILL ---- */
.feature-pill {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  border: 1.5px solid rgba(161,138,109,0.15);
  box-shadow: var(--shadow-sm);
}

.feature-pill__icon {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-pill__marker {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--marker-color) 18%, white);
  color: var(--marker-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
  border: 1.5px solid color-mix(in srgb, var(--marker-color) 28%, white);
  margin-top: 2px;
}

.feature-pill__title {
  font-weight: var(--weight-semibold);
  font-size: var(--text-body);
  margin-bottom: var(--space-1);
  color: var(--color-header);
}

.feature-pill__desc {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

/* ---- TESTIMONIAL CARD ---- */
.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1.5px solid rgba(161,138,109,0.15);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.testimonial-card__quote {
  font-size: var(--text-body);
  color: var(--color-header);
  line-height: 1.65;
  font-style: italic;
}

.testimonial-card__quote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 0;
  vertical-align: -18px;
  color: var(--color-accent-orange);
  margin-right: 4px;
  font-style: normal;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: var(--weight-semibold);
  font-size: var(--text-small);
  color: var(--color-header);
}

.testimonial-card__school {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

/* ---- APP MOCKUP FRAME ---- */
.app-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(161,138,109,0.15);
  background: var(--color-surface-yellow);
  aspect-ratio: 9 / 19;
  max-width: 280px;
  margin: 0 auto;
}

.app-frame__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-7);
  text-align: center;
  background: linear-gradient(160deg, #FFF9F0 0%, #FEF4E4 100%);
}

.app-frame__placeholder-icon {
  font-size: 64px;
}

.app-frame__placeholder-text {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--color-header);
  font-weight: var(--weight-semibold);
}

/* ---- FOOTER ---- */
.footer {
  background: linear-gradient(
    180deg,
    #e8edd9 0%,
    #e4e9d4 45%,
    #dfe5ce 100%
  );
  color: var(--color-header);
  padding: var(--space-8) 0;
  margin-top: -2px;
  position: relative;
  overflow: hidden;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(var(--space-5), 5vw, var(--space-8));
  position: relative;
  z-index: 1;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(86, 61, 41, 0.12);
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: var(--weight-semibold);
  color: var(--color-header);
  margin-bottom: var(--space-3);
}

.footer__brand-desc {
  font-size: var(--text-small);
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 280px;
}

.footer__brand-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.footer__brand-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__col-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-header);
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-accent-orange);
}

.footer__socials {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(254, 252, 244, 0.65);
  border: 1px solid rgba(86, 61, 41, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.footer__social-link:hover {
  background: rgba(254, 252, 244, 0.95);
  border-color: var(--color-accent-orange);
}

.footer__social-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: none;
  opacity: 0.75;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-5);
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

.footer__legal-links {
  display: flex;
  gap: var(--space-4);
}

.footer__legal-link {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.footer__legal-link:hover {
  color: var(--color-accent-orange);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .footer__top {
    grid-template-columns: 1fr;
  }
}

/* ---- Floating food decorations (home + team) ---- */
.food-decoration {
  position: absolute;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 2px 8px rgba(86, 61, 42, 0.1));
  animation: food-float 6s ease-in-out infinite;
}

.food-1 {
  top: 8%;
  left: 12%;
  width: clamp(60px, 8vw, 100px);
  animation-delay: 0s;
}

.food-2 {
  top: 12%;
  right: 15%;
  width: clamp(70px, 9vw, 110px);
  animation-delay: 1s;
}

.food-3 {
  top: 45%;
  left: 8%;
  width: clamp(65px, 8.5vw, 105px);
  animation-delay: 2s;
}

.food-4 {
  bottom: 20%;
  right: 12%;
  width: clamp(75px, 10vw, 120px);
  animation-delay: 1.5s;
}

.food-5 {
  bottom: 12%;
  left: 15%;
  width: clamp(70px, 9vw, 115px);
  animation-delay: 0.5s;
}

.food-6 {
  top: 35%;
  right: 10%;
  width: clamp(60px, 8vw, 95px);
  animation-delay: 2.5s;
}

.food-7 {
  top: 25%;
  left: 35%;
  width: clamp(65px, 8.5vw, 105px);
  animation-delay: 1.2s;
}

.food-8 {
  top: 60%;
  right: 25%;
  width: clamp(70px, 9vw, 110px);
  animation-delay: 1.8s;
}

.food-9 {
  bottom: 35%;
  left: 50%;
  width: clamp(68px, 9vw, 108px);
  animation-delay: 0.8s;
}

@keyframes food-float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(2deg);
  }
  50% {
    transform: translateY(-5px) rotate(-2deg);
  }
  75% {
    transform: translateY(-12px) rotate(1deg);
  }
}

@media (max-width: 768px) {
  .food-decoration {
    opacity: 0.15;
  }

  .food-1, .food-3, .food-5, .food-7, .food-9 {
    left: 2%;
  }

  .food-2, .food-4, .food-6, .food-8 {
    right: 2%;
  }
}
