/* ========================= */
/* GPT was used to help with some aspects of styling in the css file!     */
/* ========================= */

/* ========================= */
/* Custom Fonts              */
/* ========================= */

@font-face {
  font-family: 'JulienneStandard';
  src: url('assets/fonts/JulienneStandard-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'JulienneBold';
  src: url('assets/fonts/JulienneBold-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'JulienneLight';
  src: url('assets/fonts/JulienneLight-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* ========================= */
/* Unified Color Palette      */
/* ========================= */

:root {
  /* Primary Brand (60%) */
  --bg: #fefcf4ff;        /* Cream Latte — main background */
  --darkBrown: #563D29;    /* Mocha — primary text & dark fill */
  --lightBrown: #786350;   /* Latte — muted / secondary text */
  
  /* Secondary Surfaces (30%) */
  --surface: #B2A99E;     /* Taupe — cards, panels */
  --surfaceAlt: #B1BE89;  /* Sage — alternate surface */
  --tan: #D8C3BF;         /* Rose-Tan — inputs, subtle areas */
  --deepGray: #7B6F67;    /* Truffle — darker section background */
  --border: #D8C3BF;      /* Matches tan for soft borders */
  
  /* Accents (10%) */
  --accent: #FED6DE;      /* Blush — soft highlight, tertiary buttons */
  --accentAlt: #EEAB67;   /* Apricot — warm CTA / secondary buttons */
  
  /* Text Inks */
  --inkPrimary: #563D29;  /* Mocha — used on light surfaces */
  --inkReverse: #FFF9E9;  /* Cream — used on dark surfaces */
  
  /* Legacy mappings for backward compatibility */
  --text: var(--inkPrimary);
  --mutedText: var(--lightBrown);
  --highlight: var(--accent);
  --bg-light: var(--surfaceAlt);
  
  /* Typography Scale */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;    /* 36px */
  --font-size-5xl: 3rem;       /* 48px */
  --font-size-6xl: 3.75rem;    /* 60px */
  
  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
}



/* ========================= */
/*    Universal Styles     */
/* ========================= */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

section {
  position: relative;
  transition: all 0.3s ease;
}

/* Smooth transitions between sections - remove gaps */
section + section {
  margin-top: 0;
}

/* Ensure all sections blend seamlessly */
.hiw + .hiw,
.hiw + .features,
.features + section,
.about-story-section + .custom-footer,
section + .custom-footer {
  margin-top: 0;
}

@media (min-width: 576px) {
  html {
    font-size: 18px;
  }
}

@media (min-width: 992px) {
html {
  font-size: 20px; 
  }
}

.hl {
  background: linear-gradient(transparent 65%, var(--accent) 65%);
  border-radius: .125rem;
  padding: 0 .1em;
}

body {
  font-family: "Fredoka", sans-serif;
  background: var(--bg);
  color: var(--inkPrimary);
  overflow-x: hidden;
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  font-weight: var(--font-weight-normal);
  position: relative;
  margin: 0;
  padding: 0;
}

main {
  margin: 0;
  padding: 0;
}

/* ========================= */
/*    Scroll Animations      */
/* ========================= */

/* Initial state for elements that will animate in */
.scroll-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slide in from left */
.scroll-slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-slide-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide in from right */
.scroll-slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-slide-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale up effect */
.scroll-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger animation delays for items in a group */
.scroll-stagger-1 { transition-delay: 0.1s; }
.scroll-stagger-2 { transition-delay: 0.2s; }
.scroll-stagger-3 { transition-delay: 0.3s; }
.scroll-stagger-4 { transition-delay: 0.4s; }
.scroll-stagger-5 { transition-delay: 0.5s; }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .scroll-fade-in,
  .scroll-slide-left,
  .scroll-slide-right,
  .scroll-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Smooth section transitions with overlap */
section {
  position: relative;
  isolation: isolate;
}

/* Add subtle parallax effect to background gradients */
.hiw::before,
.features::before,
.about-story-section::before {
  will-change: transform;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: none;
  pointer-events: none;
  z-index: 0;
}

/* ========================= */
/*    Typography Scale      */
/* ========================= */

h1, .h1 {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--inkPrimary);
  margin-bottom: 1.25rem;
}

h2, .h2 {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--inkPrimary);
  margin-bottom: 1rem;
}

h3, .h3 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--inkPrimary);
  margin-bottom: 0.875rem;
}

h4, .h4 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
  color: var(--inkPrimary);
  margin-bottom: 0.75rem;
}

h5, .h5 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  color: var(--inkPrimary);
  margin-bottom: 0.5rem;
}

h6, .h6 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  color: var(--inkPrimary);
  margin-bottom: 0.5rem;
}

p {
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--inkPrimary);
  margin-bottom: 1rem;
  font-family: 'JulienneStandard', sans-serif;
  font-size: 1.1rem; /* Increased for Julienne font */
}

.text-muted {
  color: var(--lightBrown) !important;
}

.small, small {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
}

.text-uppercase {
  font-size: var(--font-size-sm);
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  h1, .h1 {
    font-size: var(--font-size-6xl);
  }
  
  h2, .h2 {
    font-size: var(--font-size-5xl);
  }
  
  h3, .h3 {
    font-size: var(--font-size-4xl);
  }
}

/* Solid button */
.btn-primary {
  background-color: #B1BE89;
  border: 2px solid #B1BE89;
  color: var(--inkPrimary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-lg);
  letter-spacing: 0.02em;
  padding: 0.875rem 2rem;
  border-radius: 0.875rem;
  transition: all 0.25s ease-in-out;
}

.btn-primary:hover {
  background-color: #EEAB67;
  border-color: #EEAB67;
  color: var(--inkPrimary);
  box-shadow: 0 4px 14px rgba(238, 171, 103, 0.4);
  transform: translateY(-2px);
}

/* Transparent outlined button */
.btn-outline-dark {
  background-color: transparent;
  color: var(--inkPrimary);
  border: 2px solid var(--inkPrimary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  letter-spacing: 0.02em;
  padding: 0.75rem 1.75rem;
  border-radius: 0.75rem;
  transition: all 0.25s ease-in-out;
}

.btn-outline-dark:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--inkPrimary);
  box-shadow: 0 0 10px rgba(254, 214, 222, 0.3);
}

.underlined {
  background: linear-gradient(transparent 70%, var(--accent) 70%);
  padding: 0 .15em;
  border-radius: .15rem;
}


/* ========================= */
/*    Nav Bar Stuff     */
/* ========================= */
.navbar {
  background: linear-gradient(180deg,
    rgba(254, 252, 244, 0.98) 0%,
    rgba(254, 252, 244, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.1rem 0;
  box-shadow: 
    0 2px 12px rgba(86, 61, 42, 0.04),
    0 1px 3px rgba(86, 61, 42, 0.02);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(216, 195, 191, 0.2);
}

.navbar-brand {
  color: var(--inkPrimary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-2xl);
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.navbar-brand:hover {
  color: var(--accentAlt);
}

.navbar-logo {
  height: 5rem;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .navbar-logo {
    height: 5.5rem;
  }
}

.navbar-nav {
  gap: 0.5rem;
}

.nav-link {
  color: var(--inkPrimary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
}

.nav-link:hover {
  color: var(--accentAlt);
  background-color: rgba(254, 214, 222, 0.2);
}

.nav-link:focus {
  color: var(--accentAlt);
  outline: none;
}

/* Active state for current page */
.nav-link.active {
  color: var(--accentAlt);
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0.25rem;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--accentAlt);
  border-radius: 2px;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(254, 214, 222, 0.4);
  outline: none;
}

.navbar-toggler-icon {
  background-image: url('assets/hamburger.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

@media (max-width: 991px) {
  .navbar-collapse {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
  }
  
  .navbar-nav {
    align-items: center;
    text-align: center;
  }
  
  .nav-link {
    padding: 0.75rem 1rem;
  }
}

.tagline {
  text-transform: uppercase;
  color: var(--inkPrimary);
  border-radius: 0.375rem;
  display: inline-block;
  padding: 5px;
  text-align: center;
  background: linear-gradient(135deg, var(--accentAlt) 0%, var(--surface) 100%);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}


/* ========================= */
/*    Header    */
/* ========================= */ 
.introduction {
  font-weight: 200;
}

.subtitle {
  color: var(--inkPrimary);
  font-weight: var(--font-weight-semibold);
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background: none;
  font-size: 3rem;
}

@media (min-width: 576px) {
  .subtitle {
    font-size: 3.3rem;
  }
}

@media (min-width: 768px) {
  .subtitle {
    font-size: 3.5rem;
  }
}

.introduction {
  font-weight: var(--font-weight-light);
  font-size: 1.1rem;
  line-height: var(--line-height-relaxed);
  color: var(--lightBrown);
  font-size: 1.3rem; /* Increased base size for Julienne font */
}

.introduction.julienne-standard {
  font-family: 'JulienneStandard', sans-serif;
  line-height: 1.3;
}

@media (min-width: 576px) {
  .introduction {
    font-size: 1.3rem;
  }
}

@media (min-width: 768px) {
  .introduction {
    font-size: var(--font-size-2xl);
  }
}

/* ========================= */
/*    About Page Header    */
/* ========================= */

/* Main header on index page */
header.min-vh-100 {
  background: linear-gradient(180deg,
    rgba(254, 252, 244, 0.85) 0%,
    rgba(254, 252, 244, 0.7) 30%,
    rgba(254, 252, 244, 0.55) 60%,
    rgba(254, 252, 244, 0.45) 85%,
    rgba(177, 190, 137, 0.08) 100%);
  position: relative;
  overflow: hidden;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  min-height: 95vh;
}

/* Hero section animations on load */
.hero-content-left {
  opacity: 0;
  animation: slideInLeft 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.hero-content-right {
  opacity: 0;
  animation: slideInRight 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.hero-content-bottom {
  opacity: 0;
  animation: slideInLeft 1s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content-left,
  .hero-content-right,
  .hero-content-bottom {
    opacity: 1;
    animation: none;
  }
}

header.min-vh-100::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at top left, rgba(254, 214, 222, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(238, 171, 103, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

header.min-vh-100 > * {
  position: relative;
  z-index: 1;
}

.about-header {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  position: relative;
  background: linear-gradient(180deg,
    rgba(254, 252, 244, 0.6) 0%,
    rgba(254, 252, 244, 0.75) 40%,
    rgba(254, 252, 244, 0.5) 80%,
    rgba(254, 252, 244, 0.3) 100%);
  overflow: hidden;
}

.about-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 40% at 30% 20%, rgba(254, 214, 222, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 30% at 70% 80%, rgba(238, 171, 103, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.about-header > * {
  position: relative;
  z-index: 1;
}

.about-story-section {
  background: linear-gradient(180deg,
    rgba(254, 252, 244, 0.30) 0%,
    rgba(254, 252, 244, 0.35) 20%,
    rgba(254, 252, 244, 0.40) 50%,
    rgba(177, 190, 137, 0.15) 85%,
    rgba(177, 190, 137, 0.20) 100%);
  position: relative;
  overflow: hidden;
  margin-top: -1px; /* Remove any gap */
}

.about-story-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at top right, rgba(254, 214, 222, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(177, 190, 137, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.about-story-section > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .about-header {
    min-height: 80vh;
    padding: 6rem 0;
  }
}

.about-header-content {
  padding: 2rem 1rem;
}

.about-header-title {
  margin: 0;
  line-height: 1.2;
}

.about-header-title .subtitle {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 600;
  display: block;
  letter-spacing: -0.02em;
}

.about-header-subtitle {
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: var(--font-weight-light);
  color: var(--lightBrown);
  margin: 0;
  line-height: var(--line-height-relaxed);
}

@media (min-width: 768px) {
  .about-header-subtitle {
    font-weight: 200;
  }
}

.profile {
  position: relative;
  width: 100%;
  height: auto;
  max-width: 85%;
  margin: 0 auto;
  border-radius: 1.5rem;
  background: transparent;
  object-fit: contain;
  display: block;
}

/* ========================= */
/*    Cat Sprite Animation   */
/* ========================= */
.cat-sprite {
  width: 100%;
  max-width: clamp(420px, 100vw, 100%);
  aspect-ratio: 1;
  background-image: url('assets/home.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 0 auto;
  background-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(86, 61, 42, 0.15));
  /* Makes black backgrounds transparent on light backgrounds */
  mix-blend-mode: lighten;
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

.cat-sprite.loaded {
  opacity: 1;
}

/* ========================= */
/*  Cali Cat Decoration      */
/* ========================= */
.cali-wrapper {
  height: 0;
  overflow: visible;
  z-index: 1;
}

.cali-decoration {
  position: absolute;
  left: -150px;
  top: -250px;
  transform: translateY(0) rotate(15deg);
  width: clamp(400px, 35vw, 600px);
  height: auto;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(6px 6px 16px rgba(86, 61, 42, 0.25));
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.cali-decoration.is-visible {
  opacity: 0.85;
  transform: translateY(0) rotate(15deg) translateX(0);
}

/* Hide on tablet and mobile */
@media (max-width: 1199px) {
  .cali-decoration {
    display: none;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .cali-decoration {
    left: -130px;
    width: clamp(350px, 32vw, 550px);
  }
}

@media (min-width: 576px) {
  .cat-sprite {
    max-width: 90%;
  }
}

@media (min-width: 768px) {
  .cat-sprite {
    max-width: 26rem;
  }
}

@media (min-width: 992px) {
  .cat-sprite {
    max-width: 32rem;
  }
}

@media (min-width: 1200px) {
  .cat-sprite {
    max-width: 38rem;
  }
}

@media (min-width: 576px) {
  .profile {
    border-radius: 2rem;
    max-width: 75%;
  }
}

@media (min-width: 768px) {
  .profile {
    max-width: 20rem;
    border-radius: 2rem;
  }
}

@media (min-width: 992px) {
  .profile {
    max-width: 24rem;
    border-radius: 2.5rem;
  }
}

@media (min-width: 1200px) {
  .profile {
    max-width: 28rem;
    border-radius: 3rem;
  }
}


/* ========================= */
/* How Catena Works (HIW)    */
/* ========================= */
.hiw {
  background: linear-gradient(180deg,
    rgba(177, 190, 137, 0.08) 0%,
    rgba(177, 190, 137, 0.12) 20%,
    rgba(177, 190, 137, 0.16) 45%,
    rgba(177, 190, 137, 0.18) 65%,
    rgba(177, 190, 137, 0.14) 80%,
    rgba(254, 252, 244, 0.32) 92%,
    rgba(254, 252, 244, 0.30) 97%,
    rgba(254, 252, 244, 0.28) 100%);
  padding-top: 4rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.hiw::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at top, rgba(254, 214, 222, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at bottom, rgba(177, 190, 137, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hiw > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .hiw {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

@media (min-width: 992px) {
  .hiw {
  padding-top: 10rem;
  padding-bottom: 10rem;
  }
}

.hiw.text-center {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background: linear-gradient(180deg,
    rgba(254, 252, 244, 0.28) 0%,
    rgba(254, 252, 244, 0.30) 3%,
    rgba(254, 252, 244, 0.32) 15%,
    rgba(254, 252, 244, 0.38) 35%,
    rgba(254, 252, 244, 0.4) 50%,
    rgba(254, 252, 244, 0.38) 65%,
    rgba(254, 252, 244, 0.32) 85%,
    rgba(177, 190, 137, 0.10) 100%);
  position: relative;
  overflow: hidden;
  margin-top: -2px; /* Remove any gap */
}

.hiw.text-center::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 40% at 50% 30%, rgba(254, 214, 222, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 60% 30% at 50% 70%, rgba(238, 171, 103, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hiw.text-center > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .hiw.text-center {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

@media (min-width: 992px) {
.hiw.text-center {
  padding-top: 10rem;
  padding-bottom: 10rem;
  }
}

.hiw-step {
  background: linear-gradient(135deg,
    rgba(254, 252, 244, 0.95) 0%,
    rgba(254, 252, 244, 0.85) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(216, 195, 191, 0.3);
  border-radius: 1.25rem;
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 360px; /* Increased to match tallest box */
  box-shadow: 
    0 2px 8px rgba(86, 61, 42, 0.04),
    0 1px 3px rgba(86, 61, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hiw .row {
  align-items: stretch;
}

/* Ensure all columns have equal height on mobile */
.hiw .col {
  display: flex;
}

@media (min-width: 768px) {
  .hiw-step {
    padding: 2rem 1rem;
    min-height: 380px; /* Increased for desktop */
  }
}

.hiw-icon {
  width: 100%;
  max-width: 130px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
  margin: 0 auto 1rem;
}

/* Apply JulienneStandard font to How it Works section */
.hiw-step h5 {
  line-height: 1.3;
  font-size: 1.1rem; /* Smaller on mobile to prevent wrapping */
  /* Using default Fredoka font */
}

.hiw-step p {
  font-family: 'JulienneStandard', sans-serif;
  line-height: 1.3;
  font-size: 1.15rem; /* Increased for better readability */
}

@media (min-width: 768px) {
  .hiw-step h5 {
    font-size: 1.3rem; /* Moderate size on desktop to fit on one line */
  }
}

@media (min-width: 1200px) {
  .hiw-step h5 {
    font-size: 1.4rem; /* Slightly larger on very large screens */
  }
}

@media (min-width: 576px) {
  .hiw-icon {
    max-width: 150px;
  }
}

@media (min-width: 768px) {
  .hiw-icon {
    max-width: 170px;
  }
}

@media (min-width: 992px) {
  .hiw-icon {
    max-width: 190px;
  }
}




/* ========================= */
/*    Psychology Section      */
/* ========================= */

.soft-card {
  max-width: 820px;
  background: linear-gradient(135deg,
    rgba(254, 252, 244, 0.95) 0%,
    rgba(254, 252, 244, 0.85) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 
    0 8px 32px rgba(86, 61, 42, 0.08),
    0 2px 8px rgba(86, 61, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(216, 195, 191, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.soft-card:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 40px rgba(86, 61, 42, 0.12),
    0 4px 12px rgba(86, 61, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}


.paw-bg {
  background-image: url("assets/paw_print.png");
  background-repeat: no-repeat;
  background-position: center 20%;  
  background-size: clamp(350px, 55vw, 650px);
  opacity: 0.12; 
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.research-fan {
  width: min(900px, 100%);
  height: clamp(240px, 55vw, 420px);
  position: relative;
  isolation: isolate;            
  margin: 0 auto;
  padding: 0 1rem;
}

.research-fan .paper {
  position: absolute;
  top: 0;
  left: 50%;
  transform-origin: bottom center;
  transition: filter 0.25s ease, box-shadow 0.25s ease;
  touch-action: manipulation; /* Better mobile touch handling */
}

.research-fan .paper img {
  width: clamp(150px, 38vw, 380px);
  max-width: 100%;
  height: auto;
  border: 2px solid var(--inkPrimary);
  border-radius: 0.5rem;
  box-shadow: 0 8px 20px rgba(86, 61, 42, 0.12);
  display: block;
  will-change: filter;
}

@media (min-width: 576px) {
  .research-fan {
    height: clamp(260px, 50vw, 420px);
  }
  .research-fan .paper img {
    width: clamp(180px, 35vw, 380px);
    border-width: 3px;
    border-radius: 0.75rem;
  }
}

@media (min-width: 768px) {
  .research-fan {
    height: clamp(280px, 50vw, 420px);
    padding: 0;
  }
  .research-fan .paper img {
    width: clamp(200px, 35vw, 380px);
    border-width: 4px;
  }
}

@media (min-width: 992px) {
  .research-fan .paper img {
    border-width: 5px;
  }
}

/* ========================= */
/*    FAQ Section           */
/* ========================= */
.faq-section {
  background: linear-gradient(180deg,
    rgba(254, 252, 244, 0.35) 0%,
    rgba(254, 252, 244, 0.5) 20%,
    rgba(177, 190, 137, 0.10) 40%,
    rgba(177, 190, 137, 0.15) 60%,
    rgba(177, 190, 137, 0.20) 80%,
    rgba(177, 190, 137, 0.25) 100%);
  position: relative;
  overflow: hidden;
  margin-top: -1px;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* FAQ Accordion Styles */
.faq-accordion-item {
  background: linear-gradient(135deg,
    rgba(254, 252, 244, 0.95) 0%,
    rgba(254, 252, 244, 0.85) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(216, 195, 191, 0.3);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 
    0 2px 8px rgba(86, 61, 42, 0.04),
    0 1px 3px rgba(86, 61, 42, 0.02);
  transition: all 0.3s ease;
}

.faq-accordion-item:hover {
  box-shadow: 
    0 4px 12px rgba(86, 61, 42, 0.08),
    0 2px 6px rgba(86, 61, 42, 0.04);
}

.faq-accordion-button {
  background: transparent;
  border: none;
  color: var(--inkPrimary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  padding: 1.25rem 1.5rem;
  transition: all 0.3s ease;
}

.faq-accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--accentAlt);
  box-shadow: none;
}

.faq-accordion-button:hover {
  background: rgba(177, 190, 137, 0.1);
}

.faq-accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.faq-accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23563D29'%3e%3cpath d='M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z'/%3e%3c/svg%3e");
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: auto;
  transition: transform 0.2s ease;
}

.faq-accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23EEAB67'%3e%3cpath d='M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8z'/%3e%3c/svg%3e");
  transform: none;
}

.faq-accordion-body {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--inkPrimary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  font-family: 'JulienneStandard', sans-serif;
  font-size: 1.1rem; /* Increased for Julienne font */
}

@media (min-width: 768px) {
  .faq-accordion-button {
    font-size: var(--font-size-xl);
    padding: 1.5rem 2rem;
  }
  
  .faq-accordion-body {
    padding: 0 2rem 2rem 2rem;
  }
}

/* ========================= */
/*    Feedback Page         */
/* ========================= */
.feedback-section {
  background: linear-gradient(180deg,
    rgba(254, 252, 244, 0.35) 0%,
    rgba(254, 252, 244, 0.5) 20%,
    rgba(177, 190, 137, 0.10) 40%,
    rgba(177, 190, 137, 0.15) 60%,
    rgba(177, 190, 137, 0.20) 80%,
    rgba(177, 190, 137, 0.25) 100%);
  position: relative;
  overflow: hidden;
  margin-top: -1px;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.feedback-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at top left, rgba(254, 214, 222, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(177, 190, 137, 0.08) 0%, transparent 50%);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.feedback-form-wrapper {
  background: linear-gradient(135deg,
    rgba(254, 252, 244, 0.95) 0%,
    rgba(254, 252, 244, 0.85) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(216, 195, 191, 0.3);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  box-shadow:
    0 4px 16px rgba(86, 61, 42, 0.06),
    0 2px 4px rgba(86, 61, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.feedback-form .form-label {
  color: var(--inkPrimary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  margin-bottom: 0.5rem;
}

.feedback-form .form-control,
.feedback-form .form-select {
  background-color: rgba(254, 252, 244, 0.95);
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  color: var(--inkPrimary);
  font-size: var(--font-size-base);
  padding: 0.75rem 1rem;
  transition: all 0.25s ease-in-out;
  font-family: "Fredoka", sans-serif;
}

.feedback-form .form-control:focus,
.feedback-form .form-select:focus {
  background-color: rgba(254, 252, 244, 1);
  border-color: var(--accentAlt);
  color: var(--inkPrimary);
  box-shadow: 0 0 0 0.2rem rgba(238, 171, 103, 0.25);
  outline: none;
}

.feedback-form .form-text {
  color: var(--lightBrown);
}

@media (min-width: 768px) {
  .feedback-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .feedback-form-wrapper {
    padding: 2.5rem 2rem;
  }
}

.faq-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(ellipse at top left, rgba(254, 214, 222, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(177, 190, 137, 0.08) 0%, transparent 50%);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.faq-section h1 {
  position: relative;
  z-index: 1;
}

.faq-content {
  position: relative;
  z-index: 1;
}

.faq-item {
  padding: 1.5rem;
  background: linear-gradient(135deg,
    rgba(254, 252, 244, 0.7) 0%,
    rgba(254, 252, 244, 0.5) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(216, 195, 191, 0.3);
  border-radius: 1rem;
  box-shadow: 
    0 2px 8px rgba(86, 61, 42, 0.04),
    0 1px 3px rgba(86, 61, 42, 0.02);
}

.faq-question {
  font-size: var(--font-size-lg);
  color: var(--inkPrimary);
  line-height: var(--line-height-relaxed);
}

.faq-answer {
  font-size: var(--font-size-base);
  color: var(--inkPrimary);
  line-height: var(--line-height-relaxed);
}

@media (min-width: 768px) {
  .faq-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  
  .faq-item {
    padding: 2rem;
  }
  
  .faq-question {
    font-size: var(--font-size-xl);
  }
}

/* ========================= */
/*    About Page            */
/* ========================= */
.about-header {
  padding-top: 4rem;
  padding-bottom: 3rem;
  min-height: auto;
}

.about-header-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
}

.about-header-subtitle {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--lightBrown);
}

.about-story-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.matcha-image {
  max-width: 280px;
  width: 100%;
  filter: drop-shadow(0 4px 12px rgba(86, 61, 42, 0.12));
}

@media (min-width: 576px) {
  .matcha-image {
    max-width: 350px;
  }
}

@media (min-width: 768px) {
  .about-header {
    padding-top: 6rem;
    padding-bottom: 4rem;
  }
  
  .about-header-title {
    font-size: var(--font-size-5xl);
  }
  
  .about-header-subtitle {
    font-size: var(--font-size-3xl);
  }
  
  .about-story-section {
    padding-top: 5rem;
    padding-bottom: 4rem;
  }
  
  .matcha-image {
    max-width: 420px;
  }
}

@media (min-width: 992px) {
  .matcha-image {
    max-width: 500px;
  }
}

/* ========================= */
/*    Terms Page            */
/* ========================= */
.terms-section {
  background: linear-gradient(180deg,
    rgba(254, 252, 244, 0.35) 0%,
    rgba(254, 252, 244, 0.5) 20%,
    rgba(177, 190, 137, 0.10) 40%,
    rgba(177, 190, 137, 0.15) 60%,
    rgba(177, 190, 137, 0.20) 80%,
    rgba(177, 190, 137, 0.25) 100%);
  position: relative;
  overflow: hidden;
  margin-top: -1px;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.terms-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(ellipse at top left, rgba(254, 214, 222, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(177, 190, 137, 0.08) 0%, transparent 50%);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.terms-section h1 {
  position: relative;
  z-index: 1;
}

.terms-content {
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
}

.terms-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--inkPrimary);
}

.terms-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--inkPrimary);
}

.terms-content p {
  margin-bottom: 1rem;
  line-height: var(--line-height-relaxed);
  color: var(--inkPrimary);
}

.terms-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.terms-content li {
  margin-bottom: 0.5rem;
  line-height: var(--line-height-relaxed);
}

.terms-content a {
  color: var(--accentAlt);
  text-decoration: none;
  transition: color 0.3s ease;
}

.terms-content a:hover {
  color: var(--darkBrown);
  text-decoration: underline;
}

@media (min-width: 768px) {
  .terms-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  
  .terms-content h2 {
    font-size: var(--font-size-3xl);
    margin-top: 2.5rem;
  }
  
  .terms-content h3 {
    font-size: var(--font-size-2xl);
  }
}

/* Mobile: Stack papers more vertically for better visibility */
.paper-left  { 
  transform: translateX(-70%) rotate(-5deg); 
  z-index: 1; 
}
.paper-center{ 
  transform: translateX(-50%) rotate(0deg);  
  z-index: 3; 
}
.paper-right { 
  transform: translateX(-30%) rotate(5deg);  
  z-index: 2; 
}

@media (min-width: 576px) {
  .paper-left  { transform: translateX(-72%) rotate(-6deg); }
  .paper-right { transform: translateX(-28%) rotate(6deg); }
}

@media (min-width: 768px) {
  .paper-left  { transform: translateX(-80%) rotate(-8deg); }
  .paper-right { transform: translateX(-20%) rotate(8deg); }
}

.research-fan .paper:hover img {
  filter: brightness(1.1);
  box-shadow: 0 0 16px rgba(254, 214, 222, 0.5);
}


.bg-main {
  background: linear-gradient(180deg,
    rgba(254, 252, 244, 0.3) 0%,
    rgba(254, 252, 244, 0.5) 50%,
    rgba(254, 252, 244, 0.3) 100%);
  position: relative;
}

.section-kicker {
  color: var(--accentAlt);
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'JulienneBold', sans-serif;
  font-size: 0.85rem; /* Increased for Julienne font */
}

@media (min-width: 576px) {
  .section-kicker {
    font-size: 0.85rem;
  }
}

@media (min-width: 768px) {
  .section-kicker {
    font-size: var(--font-size-sm);
  }
}


/* ========================= */
/*    Timeline      */
/* ========================= */

.timeline-section {
  background-color: var(--bg);
}

.timeline {
  position: relative;
  max-width: 800px;
  padding-left: 2rem;
  border-left: 3px solid var(--accentAlt);
  color: var(--inkPrimary);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  
}

.timeline-dot {
  position: absolute;
  left: -0.75rem;
  top: 1.2rem;
  width: 1rem;
  height: 1rem;
  background-color: var(--accentAlt);
  border-radius: 50%;
}

.timeline-content {
  background-color: var(--surfaceAlt);
}


/* ========================= */
/*    Features section     */
/* ========================= */

.features {
  background: linear-gradient(180deg,
    rgba(177, 190, 137, 0.10) 0%,
    rgba(254, 252, 244, 0.28) 15%,
    rgba(254, 252, 244, 0.35) 40%,
    rgba(254, 252, 244, 0.38) 60%,
    rgba(254, 252, 244, 0.35) 80%,
    rgba(254, 252, 244, 0.30) 100%);
  position: relative;
  overflow: hidden;
  margin-top: -1px; /* Remove any gap */
}

.features::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at top left, rgba(254, 214, 222, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(177, 190, 137, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.features > * {
  position: relative;
  z-index: 1;
}

.features .card {
  padding-top: 0.5rem;
  background: linear-gradient(135deg,
    rgba(254, 252, 244, 0.9) 0%,
    rgba(254, 252, 244, 0.7) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(216, 195, 191, 0.4);
  color: var(--inkPrimary);
  box-shadow: 
    0 4px 16px rgba(86, 61, 42, 0.06),
    0 2px 4px rgba(86, 61, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.features .card-body {
  padding: 0.25rem 1.25rem 1.5rem;
  text-align: center;
}

.features .card-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0.5rem;
  font-size: 1.45rem; /* Increased size */
  /* Using default Fredoka font */
}

.features .card-text {
  font-size: var(--font-size-base);
  color: var(--lightBrown);
  line-height: 1.4;
  font-family: 'JulienneStandard', sans-serif;
  font-size: 1.1rem; /* Increased for Julienne font */
}

@media (min-width: 768px) {
  .features .card {
    padding-top: 0.75rem;
  }
  
  .features .card-body {
    padding: 0.25rem 1.5rem 2rem;
  }
}

.features .card-img-top {
  width: 100%;
  height: clamp(340px, 52vw, 540px);
  object-fit: contain;
  padding: 0.5rem 1rem 0.25rem;
  display: block;
  margin: 0 auto 0.25rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.features-grid-item {
  display: flex;
  flex-direction: column;
  grid-column: span 2;
}

/* Make last two items centered in the second row (desktop only) */
@media (min-width: 992px) {
  .features-grid-item:nth-child(4) {
    grid-column: 2 / 4;
  }

  .features-grid-item:nth-child(5) {
    grid-column: 4 / 6;
  }
}

@media (max-width: 991px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .features-grid-item {
    grid-column: span 1;
  }
  
  .features-grid-item:nth-child(4),
  .features-grid-item:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 575px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .features-grid-item {
    grid-column: span 1;
  }
  
  .features-grid-item:nth-child(4),
  .features-grid-item:nth-child(5) {
    grid-column: span 1;
  }
}



/* ========================= */
/*    Footer Section      */
/* ========================= */

.custom-footer {
  background: linear-gradient(180deg,
    rgba(177, 190, 137, 0.20) 0%,
    rgba(177, 190, 137, 0.23) 25%,
    rgba(177, 190, 137, 0.26) 50%,
    rgba(177, 190, 137, 0.29) 75%,
    rgba(177, 190, 137, 0.32) 100%);
  color: var(--inkPrimary);
  position: relative;
  overflow: hidden;
  margin: -2px 0 0 0 !important;
  padding-top: 0;
  padding-bottom: 2rem;
}

.custom-footer .navbar-brand {
  color: var(--inkPrimary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-2xl);
}

.footer-heading {
  color: var(--inkPrimary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-link {
  color: var(--inkPrimary);
  transition: color 0.3s ease;
  font-size: var(--font-size-base);
}

.footer-link:hover {
  color: var(--accentAlt);
  text-decoration: none;
}

@media (max-width: 767px) {
  .custom-footer {
    padding-bottom: 2.5rem;
  }
  
  .custom-footer .navbar-brand {
    font-size: var(--font-size-3xl);
  }
}

/* ========================= */
/*    Team Section      */
/* ========================= */

.team-section {
  background: linear-gradient(180deg,
    rgba(254, 252, 244, 0.35) 0%,
    rgba(254, 252, 244, 0.5) 20%,
    rgba(177, 190, 137, 0.10) 40%,
    rgba(177, 190, 137, 0.15) 60%,
    rgba(177, 190, 137, 0.20) 80%,
    rgba(177, 190, 137, 0.25) 100%);
  position: relative;
  overflow: hidden;
  margin-top: -1px;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.team-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(254, 214, 222, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(177, 190, 137, 0.08) 0%, transparent 50%);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.team-member-card {
  position: relative;
  z-index: 1;
  text-align: center;
}

.team-member-image-wrapper {
  position: relative;
  display: inline-block;
  margin: 0 auto 1.5rem;
  width: 100%;
  max-width: 280px;
}

.team-member-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 1rem;
  filter: drop-shadow(0 4px 16px rgba(86, 61, 42, 0.15));
  display: block;
  margin: 0 auto;
}

.team-member-name {
  color: var(--inkPrimary);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  margin: 0;
  text-align: center;
}

@media (min-width: 576px) {
  .team-member-image-wrapper {
    max-width: 320px;
  }
  
  .team-member-name {
    font-size: var(--font-size-3xl);
  }
}

@media (min-width: 768px) {
  .team-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  
  .team-member-image-wrapper {
    max-width: 280px;
  }
}

@media (min-width: 992px) {
  .team-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
  
  .team-member-image-wrapper {
    max-width: 300px;
  }
}

@media (max-width: 767px) {
  .team-member-image-wrapper {
    max-width: 240px;
  }
  
  .team-member-name {
    font-size: var(--font-size-xl);
  }
}

/* ========================= */
/*    Waitlist Page         */
/* ========================= */

.waitlist-hero {
  background: linear-gradient(180deg,
    rgba(254, 252, 244, 0.85) 0%,
    rgba(254, 252, 244, 0.7) 20%,
    rgba(177, 190, 137, 0.08) 40%,
    rgba(177, 190, 137, 0.12) 60%,
    rgba(177, 190, 137, 0.16) 80%,
    rgba(177, 190, 137, 0.20) 100%);
  position: relative;
  min-height: 95vh !important;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .waitlist-hero {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

.waitlist-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at top left, rgba(254, 214, 222, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(177, 190, 137, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Floating food decorations */
.food-decoration {
  position: absolute;
  opacity: 0.25;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 2px 8px rgba(86, 61, 42, 0.1));
  animation: 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 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);
  }
}

/* Hide food decorations on small screens to avoid clutter */
@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%;
  }
}

/* ========================= */
/*    Waitlist Form         */
/* ========================= */

.waitlist-form-wrapper {
  background: linear-gradient(135deg,
    rgba(254, 252, 244, 0.95) 0%,
    rgba(254, 252, 244, 0.85) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(216, 195, 191, 0.3);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  box-shadow: 
    0 4px 16px rgba(86, 61, 42, 0.06),
    0 2px 4px rgba(86, 61, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
  .waitlist-form-wrapper {
    padding: 2.5rem 2rem;
  }
}

.waitlist-form .form-label {
  color: var(--inkPrimary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  margin-bottom: 0.5rem;
}

.waitlist-form .form-control {
  background-color: rgba(254, 252, 244, 0.9);
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  color: var(--inkPrimary);
  font-size: var(--font-size-base);
  padding: 0.75rem 1rem;
  transition: all 0.25s ease-in-out;
}

.waitlist-form .form-control:focus {
  background-color: rgba(254, 252, 244, 1);
  border-color: var(--accentAlt);
  color: var(--inkPrimary);
  box-shadow: 0 0 0 0.2rem rgba(238, 171, 103, 0.25);
  outline: none;
}

.waitlist-form .form-control::placeholder {
  color: var(--lightBrown);
  opacity: 0.6;
}

@media (min-width: 768px) {
  .waitlist-form-wrapper {
    padding: 3rem 2.5rem;
  }
}

@media (max-width: 767px) {
  .waitlist-form-wrapper {
    padding: 2rem 1.5rem;
  }
}

/* ========================= */
/*    Inline Waitlist Form (Homepage) */
/* ========================= */

.waitlist-inline-form .waitlist-email-input {
  background-color: rgba(254, 252, 244, 0.95);
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  color: var(--inkPrimary);
  font-size: var(--font-size-base);
  padding: 0.75rem 1rem;
  transition: all 0.25s ease-in-out;
  font-family: "Fredoka", sans-serif;
}

.waitlist-inline-form .waitlist-email-input:focus {
  background-color: rgba(254, 252, 244, 1);
  border-color: var(--accentAlt);
  color: var(--inkPrimary);
  box-shadow: 0 0 0 0.2rem rgba(238, 171, 103, 0.25);
  outline: none;
}

.waitlist-inline-form .waitlist-email-input::placeholder {
  color: var(--lightBrown);
  opacity: 0.6;
}

@media (max-width: 575px) {
  .waitlist-inline-form .d-flex {
    width: 100%;
  }
  
  .waitlist-inline-form .waitlist-email-input {
    max-width: 100% !important;
    width: 100%;
  }
  
  .waitlist-inline-form .btn {
    width: 100%;
  }
}


