/* Vibble Foods — style.css
   Main stylesheet: brand tokens, layout, components
   Mobile-first. All brand colours as CSS custom properties.
   Last updated: 2026-05-09
*/

/* =============================================
   BRAND TOKENS
   ============================================= */
:root {
  /* Colours — verify hex values against logo file before finalising */
  --color-orange:   #FF6B2C;
  --color-cream:    #FFF9F4;
  --color-white:    #FFFFFF;
  --color-green:    #5BB55A;
  --color-mustard:  #F5A623;
  --color-charcoal: #1A1A1A;
  --color-grey:     #6B6B6B;

  /* Typography */
  --font-headline: 'Nunito', sans-serif;
  --font-body:     'Inter', sans-serif;

  /* Spacing scale */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Max content width */
  --max-width: 1200px;
}

/* =============================================
   CSS RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-charcoal);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4 {
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3 {
  font-family: var(--font-headline);
  line-height: 1.1;
  font-weight: 900;
}

.headline-xl {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1.05;
}

.headline-lg {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  line-height: 1.1;
}

.headline-md {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(1.4rem, 4vw, 2rem);
  line-height: 1.15;
}

.body-lg {
  font-size: 1.125rem;
  line-height: 1.7;
}

.body-sm {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
}

.section {
  padding: var(--space-lg) 0;
}

@media (min-width: 1024px) {
  .section {
    padding: var(--space-xl) 0;
  }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
}

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

.btn-white {
  background-color: var(--color-white);
  color: var(--color-orange);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

/* =============================================
   SECTION: HERO
   ============================================= */
.hero {
  min-height: 100svh;
  background-color: var(--color-orange);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg) var(--space-sm);
  position: relative;
  overflow: hidden;
}

.hero__logo {
  width: clamp(140px, 40vw, 240px);
  margin-bottom: var(--space-md);
}

.hero__badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 1.2rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.4);
  margin-bottom: var(--space-sm);
}

.hero__tagline {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.hero__loading {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-md);
  min-height: 1.5rem;
}

.hero__cta {
  margin-bottom: var(--space-md);
}

/* =============================================
   SECTION: THE TEASE
   ============================================= */
.tease {
  background-color: var(--color-cream);
}

.tease__lines {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-align: center;
}

.tease__line {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.2;
  color: var(--color-charcoal);
}

.tease__line span {
  color: var(--color-orange);
}

/* =============================================
   SECTION: MYSTERY MOMENT
   ============================================= */
.mystery {
  background-color: var(--color-charcoal);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mystery__copy {
  color: var(--color-white);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.mystery__illustrations {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: var(--space-md);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.mystery__char {
  width: clamp(120px, 30vw, 200px);
  filter: brightness(0) invert(1);
  opacity: 0.15;
}

/* =============================================
   SECTION: WHY WE EXIST
   ============================================= */
.why {
  background-color: var(--color-white);
  text-align: center;
}

.why__headline {
  color: var(--color-orange);
  margin-bottom: var(--space-md);
}

.why__points {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 640px;
  margin: 0 auto;
}

.why__point {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  text-align: left;
  font-size: 1.05rem;
  line-height: 1.6;
}

.why__point-icon {
  color: var(--color-green);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* =============================================
   SECTION: WAITLIST FORM
   ============================================= */
.waitlist {
  background-color: var(--color-orange);
  text-align: center;
}

.waitlist__headline {
  color: var(--color-white);
  margin-bottom: var(--space-xs);
}

.waitlist__sub {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-md);
  font-size: 1.05rem;
}

.waitlist__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 480px;
  margin: 0 auto;
}

@media (min-width: 540px) {
  .waitlist__form {
    flex-direction: row;
  }
}

.waitlist__input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  font-size: 1rem;
  color: var(--color-charcoal);
  background-color: var(--color-white);
  outline: none;
  transition: border-color var(--transition-fast);
}

.waitlist__input:focus {
  border-color: var(--color-charcoal);
}

.waitlist__input.error {
  border-color: #e53e3e;
}

/* Honeypot — hidden from real users */
.waitlist__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  tab-index: -1;
}

.waitlist__message {
  margin-top: var(--space-sm);
  font-size: 0.9rem;
  min-height: 1.5rem;
}

.waitlist__message--success {
  color: var(--color-white);
  font-weight: 600;
}

.waitlist__message--error {
  color: #ffe0d0;
}

.waitlist__success-state {
  display: none;
  color: var(--color-white);
}

.waitlist__success-state.visible {
  display: block;
}

/* =============================================
   SECTION: MOOD STRIP
   ============================================= */
.mood {
  background-color: var(--color-cream);
  text-align: center;
}

.mood__headline {
  margin-bottom: var(--space-md);
  color: var(--color-charcoal);
}

.mood__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
  .mood__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mood__card {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mood__card--orange {
  background-color: var(--color-orange);
}

.mood__card--green {
  background-color: var(--color-green);
}

.mood__card--mustard {
  background-color: var(--color-mustard);
}

.mood__card--charcoal {
  background-color: var(--color-charcoal);
}

.mood__card-text {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--color-white);
  padding: var(--space-sm);
  text-align: center;
  line-height: 1.2;
}

.mood__instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-headline);
  font-weight: 700;
  color: var(--color-orange);
  font-size: 1.05rem;
  transition: color var(--transition-fast);
}

.mood__instagram:hover {
  color: var(--color-charcoal);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background-color: var(--color-charcoal);
  color: var(--color-white);
  padding: var(--space-lg) 0 var(--space-md);
  text-align: center;
}

.footer__logo {
  width: 100px;
  margin: 0 auto var(--space-md);
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.footer__link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

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

.footer__social {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.footer__social-link:hover {
  background-color: var(--color-orange);
  color: var(--color-white);
  border-color: var(--color-orange);
}

.footer__legal {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.5);
}

.footer__legal a:hover {
  color: var(--color-white);
}

/* =============================================
   WHATSAPP FLOATING BUTTON
   ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background-color: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  color: var(--color-white);
  font-size: 1.5rem;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

/* =============================================
   HERO EXTRAS
   ============================================= */
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 1;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.hero__blob--1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
}

.hero__blob--2 {
  width: 300px;
  height: 300px;
  bottom: -60px;
  left: -80px;
}

.hero__scroll {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

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

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

/* =============================================
   TEASE SECTION EXTRAS
   ============================================= */
.tease__sub {
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-grey);
  margin-top: var(--space-md);
  font-style: italic;
}

/* =============================================
   MYSTERY SECTION EXTRAS
   ============================================= */
.mystery__eyebrow {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: var(--space-sm);
}

.mystery__headline {
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.mystery__char-wrap {
  position: relative;
}

.mystery__hint {
  margin-top: var(--space-md);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}

/* =============================================
   WHY SECTION EXTRAS
   ============================================= */
.why__eyebrow {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: var(--space-sm);
  text-align: center;
}

.why__headline {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.why__point-title {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-charcoal);
  margin-bottom: 0.4rem;
}

.why__point-text {
  font-size: 0.95rem;
  color: var(--color-grey);
  line-height: 1.65;
}

/* =============================================
   WAITLIST SECTION EXTRAS
   ============================================= */
.waitlist__eyebrow {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-sm);
}

.btn-dark {
  background-color: var(--color-charcoal);
  color: var(--color-white);
  flex-shrink: 0;
}

.waitlist__success-state {
  text-align: center;
  padding: var(--space-md);
}

.waitlist__success-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--color-white);
  margin: 0 auto var(--space-sm);
}

.waitlist__success-title {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.waitlist__success-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.7;
}

/* =============================================
   MOOD SECTION EXTRAS
   ============================================= */
.mood__sub {
  text-align: center;
  color: var(--color-grey);
  margin-bottom: var(--space-lg);
  font-size: 1.05rem;
}

.mood__card--orange-light {
  background-color: #fff0e8;
}

.mood__card--orange-light .mood__card-text {
  color: var(--color-orange);
}

.mood__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.3);
}

.mood__social {
  text-align: center;
  margin-top: var(--space-md);
}

/* =============================================
   FOOTER EXTRAS
   ============================================= */
.footer__tagline {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-md);
}

/* =============================================
   RESPONSIVE — TABLET & DESKTOP
   ============================================= */
@media (min-width: 768px) {
  .why__points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
  }

  .why__point {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
