/* ==========================================================================
   Icy Edibles — Frozen Treats Brand Landing Page
   Palette: Cream #FFF9F5 | Cherry #E8193B | Teal #4ECDC4 | Yellow #FFE66D | Brown #2D1B12
   Fonts: Cabin Sketch (display) + Figtree (body)
   ========================================================================== */

:root {
  --cream: #FFF9F5;
  --cherry: #E8193B;
  --cherry-dark: #c01230;
  --teal: #4ECDC4;
  --teal-light: #a8ece7;
  --yellow: #FFE66D;
  --yellow-light: #fff4b8;
  --brown: #2D1B12;
  --brown-light: #5c3d2e;
  --pink-light: #ffe0e6;
  --shadow-sm: 0 2px 8px rgba(45, 27, 18, 0.08);
  --shadow-md: 0 6px 24px rgba(45, 27, 18, 0.12);
  --shadow-lg: 0 12px 48px rgba(45, 27, 18, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Figtree', sans-serif;
  background: var(--cream);
  color: var(--brown);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: 'Cabin Sketch', cursive;
  font-weight: 700;
  line-height: 1.15;
}

h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }

p {
  font-size: 1.05rem;
  max-width: 60ch;
}

/* ---------- Utility ---------- */

.container {
  width: min(90%, 1200px);
  margin: 0 auto;
}

.section-padding {
  padding: 5rem 0;
}

.text-center { text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--cherry);
  color: #fff;
  box-shadow: 0 4px 16px rgba(232, 25, 59, 0.3);
}

.btn-primary:hover {
  background: var(--cherry-dark);
  box-shadow: 0 6px 24px rgba(232, 25, 59, 0.4);
}

.btn-secondary {
  background: var(--teal);
  color: var(--brown);
  box-shadow: 0 4px 16px rgba(78, 205, 196, 0.3);
}

.btn-secondary:hover {
  background: #3db8b0;
  box-shadow: 0 6px 24px rgba(78, 205, 196, 0.4);
}

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

.btn-outline:hover {
  background: var(--cherry);
  color: #fff;
}

/* ---------- Navbar ---------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 249, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45, 27, 18, 0.06);
  padding: 1rem 0;
  transition: box-shadow var(--transition);
}

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

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Cabin Sketch', cursive;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cherry);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-logo .logo-icon {
  font-size: 1.8rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--brown);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--cherry);
}

.nav-cta {
  padding: 0.6rem 1.4rem !important;
  font-size: 0.9rem !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--brown);
  padding: 0.5rem;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 7rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(78, 205, 196, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 50%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(255, 230, 109, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  color: var(--brown);
  margin-bottom: 1rem;
}

.hero-content h1 span {
  color: var(--cherry);
  position: relative;
  display: inline-block;
}

.hero-content h1 span::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--yellow);
  border-radius: 3px;
  transform: rotate(-1deg);
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--brown-light);
  margin-bottom: 2rem;
  max-width: 48ch;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-emoji-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 340px;
}

.emoji-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  font-size: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: float 3s ease-in-out infinite;
}

.emoji-card:nth-child(2) { animation-delay: 0.4s; }
.emoji-card:nth-child(3) { animation-delay: 0.8s; }
.emoji-card:nth-child(4) { animation-delay: 1.2s; }
.emoji-card:nth-child(5) { animation-delay: 1.6s; }
.emoji-card:nth-child(6) { animation-delay: 2.0s; }
.emoji-card:nth-child(7) { animation-delay: 0.2s; }
.emoji-card:nth-child(8) { animation-delay: 0.6s; }
.emoji-card:nth-child(9) { animation-delay: 1.0s; }

.emoji-card:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-md);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- Products Section ---------- */

.products {
  background: #fff;
  position: relative;
}

.products::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cherry), var(--teal), var(--yellow), var(--cherry));
}

.products .section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.products .section-header p {
  margin: 0.75rem auto 0;
  color: var(--brown-light);
  font-size: 1.15rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.product-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(78, 205, 196, 0.3);
}

.product-card-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
}

.product-card h3 {
  margin-bottom: 0.75rem;
  color: var(--cherry);
}

.product-card p {
  color: var(--brown-light);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.product-tag {
  background: var(--yellow-light);
  color: var(--brown);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
}

.product-tag.teal {
  background: var(--teal-light);
}

.product-tag.pink {
  background: var(--pink-light);
}

/* ---------- How It Works ---------- */

.how-it-works {
  background: var(--brown);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(78, 205, 196, 0.1);
}

.how-it-works .section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.how-it-works .section-header h2 {
  color: #fff;
}

.how-it-works .section-header p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0.75rem auto 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--transition), transform var(--transition);
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cherry);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.step-card h3 {
  color: var(--yellow);
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.step-card p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

/* ---------- Menu / Customization ---------- */

.menu-section {
  background: linear-gradient(180deg, var(--cream) 0%, #fff 100%);
}

.menu-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.menu-section .section-header p {
  margin: 0.75rem auto 0;
  color: var(--brown-light);
  font-size: 1.1rem;
}

.menu-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.menu-col h3 {
  color: var(--cherry);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-list {
  list-style: none;
}

.menu-list li {
  padding: 0.75rem 0;
  border-bottom: 1px dashed rgba(45, 27, 18, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 1rem;
}

.menu-list li::before {
  content: '•';
  color: var(--teal);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.4;
}

.menu-list li:last-child {
  border-bottom: none;
}

.menu-note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--yellow-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--brown-light);
}

/* ---------- Order CTA Section ---------- */

.order-cta {
  background: linear-gradient(135deg, var(--cherry) 0%, #d01535 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.order-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 40%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
}

.order-cta h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.order-cta p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto 2rem;
  font-size: 1.15rem;
}

.order-cta .btn {
  background: #fff;
  color: var(--cherry);
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.order-cta .btn:hover {
  background: var(--yellow);
  color: var(--brown);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2);
}

/* ---------- Events Section ---------- */

.events {
  background: #fff;
}

.events .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.events .section-header p {
  margin: 0.75rem auto 0;
  color: var(--brown-light);
  font-size: 1.1rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.event-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2rem;
  border-left: 4px solid var(--teal);
  transition: transform var(--transition), box-shadow var(--transition);
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.event-card h3 {
  color: var(--brown);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.event-card p {
  color: var(--brown-light);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.event-card .event-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  display: block;
}

.events-note {
  text-align: center;
  color: var(--brown-light);
  font-size: 1rem;
  margin-top: 1rem;
}

.events-note a {
  color: var(--cherry);
  text-decoration: underline;
  font-weight: 600;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--brown);
  color: rgba(255, 255, 255, 0.8);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand .nav-logo {
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  max-width: 32ch;
}

.footer-col h4 {
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--yellow);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
  transition: color var(--transition), transform var(--transition);
}

.footer-social a:hover {
  color: var(--teal);
  transform: scale(1.15);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-emoji-grid {
    max-width: 260px;
    margin: 0 auto;
  }

  .menu-columns {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 249, 245, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(45, 27, 18, 0.08);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .section-padding {
    padding: 3.5rem 0;
  }

  .hero {
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 3rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Decorative Sprinkles ---------- */

.sprinkle {
  position: absolute;
  width: 6px;
  height: 20px;
  border-radius: 3px;
  opacity: 0.4;
  pointer-events: none;
}

/* ---------- Scrollbar ---------- */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--teal);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cherry);
}
