/* ==========================================================================
   Cremerie Alijs — Retro 70s Village Ice Cream Shop
   A warm, playful single-page design
   ========================================================================== */

:root {
  /* Spring/Summer Palette */
  --sage: #B8C87A;
  --sage-light: #c8d68f;
  --olive: #8BA86B;
  --olive-dark: #5C6B4A;
  --cream: #F5F0E1;
  --cream-light: #F9F5EB;
  --cream-warm: #f0e8d5;

  /* Typography */
  --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Sizing */
  --section-padding: clamp(4rem, 10vw, 8rem);
  --content-width: min(90rem, 92vw);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background: var(--sage);
  color: var(--olive-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==========================================================================
   Floating Decorative Shapes — 70s Playfulness
   ========================================================================== */

.floating-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: float 20s ease-in-out infinite;
}

.shape-1 {
  width: clamp(200px, 30vw, 400px);
  height: clamp(200px, 30vw, 400px);
  background: var(--olive);
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}

.shape-2 {
  width: clamp(150px, 20vw, 300px);
  height: clamp(150px, 20vw, 300px);
  background: var(--cream);
  top: 60%;
  right: -3%;
  animation-delay: -5s;
}

.shape-3 {
  width: clamp(100px, 15vw, 200px);
  height: clamp(100px, 15vw, 200px);
  background: var(--olive);
  bottom: 20%;
  left: 10%;
  animation-delay: -10s;
}

.shape-4 {
  width: clamp(80px, 12vw, 160px);
  height: clamp(80px, 12vw, 160px);
  background: var(--cream);
  top: 30%;
  right: 15%;
  animation-delay: -7s;
}

.shape-5 {
  width: clamp(60px, 10vw, 120px);
  height: clamp(60px, 10vw, 120px);
  background: var(--olive);
  top: 5%;
  right: 30%;
  animation-delay: -12s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(20px, -30px) rotate(5deg);
  }
  50% {
    transform: translate(-10px, 20px) rotate(-3deg);
  }
  75% {
    transform: translate(30px, 10px) rotate(3deg);
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, var(--sage-light) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 80%, var(--olive) 0%, transparent 40%),
    var(--sage);
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s var(--ease-out-expo) both;
}

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

.logo-badge {
  width: clamp(180px, 35vw, 320px);
  height: clamp(180px, 35vw, 320px);
  margin: 0 auto 2rem;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 20px 60px -20px rgba(92, 107, 74, 0.4),
    0 0 0 8px var(--cream-light),
    0 0 0 12px var(--olive);
  animation: badgePop 0.8s 0.3s var(--ease-out-back) both;
  position: relative;
}

.logo-badge::before {
  content: '';
  position: absolute;
  inset: -20px;
  border: 2px dashed var(--cream);
  border-radius: 50%;
  opacity: 0.5;
  animation: spin 40s linear infinite;
}

@keyframes badgePop {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.logo {
  width: 75%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(92, 107, 74, 0.2));
}

.tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  animation: fadeInUp 1s 0.5s var(--ease-out-expo) both;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeInUp 1s 1s var(--ease-out-expo) both;
}

.scroll-text {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.7;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--cream), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scaleY(1);
  }
  50% {
    opacity: 0.8;
    transform: scaleY(1.2);
  }
}

/* ==========================================================================
   Sections — General
   ========================================================================== */

.section {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
}

.section-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.section-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  background: var(--olive);
  color: var(--cream);
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.section-about {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.section-about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--sage);
  clip-path: ellipse(60% 100% at 50% 0%);
}

.section-about .section-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  padding-top: 4rem;
}

@media (min-width: 768px) {
  .section-about .section-inner {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.section-about h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--olive-dark);
  margin-bottom: 1.5rem;
  max-width: 16ch;
}

.about-text {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  line-height: 1.8;
  color: var(--olive);
  max-width: 50ch;
}

.ice-cream-illustration {
  display: none;
}

@media (min-width: 768px) {
  .ice-cream-illustration {
    display: block;
    justify-self: center;
  }

  .ice-cream-illustration svg {
    width: clamp(120px, 15vw, 180px);
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(92, 107, 74, 0.2));
    animation: gentleBob 4s ease-in-out infinite;
  }
}

@keyframes gentleBob {
  0%, 100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-15px) rotate(2deg);
  }
}

/* ==========================================================================
   Taste of the Moment Section
   ========================================================================== */

.section-moment {
  background: var(--cream);
  padding-top: 0;
}

.section-moment .section-inner {
  background: var(--sage);
  border-radius: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2rem, 6vw, 4rem);
  box-shadow:
    0 30px 80px -30px rgba(92, 107, 74, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Styles for the dynamically loaded moment content */
.moment {
  display: grid;
  gap: 1rem;
}

.moment-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.8;
}

.moment-name {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.2;
}

/* ==========================================================================
   Opening Hours Section
   ========================================================================== */

.section-hours {
  background: var(--cream);
  position: relative;
}

.section-hours .section-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .section-hours .section-inner {
    grid-template-columns: 1fr auto;
  }
}

.hours-card {
  background: var(--cream-light);
  border: 2px solid var(--sage);
  border-radius: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(2rem, 5vw, 3rem);
  position: relative;
  overflow: hidden;
}

.hours-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 60%;
  height: 150%;
  background: var(--sage);
  opacity: 0.08;
  border-radius: 50%;
}

.today-status {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--olive-dark);
  margin-bottom: 1.5rem;
  position: relative;
}

.hours-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.hours-list li {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 400;
  color: var(--olive);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(139, 168, 107, 0.2);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

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

.hours-decoration {
  display: none;
}

@media (min-width: 768px) {
  .hours-decoration {
    display: block;
    position: relative;
    width: 150px;
    height: 150px;
  }

  .deco-circle {
    position: absolute;
    border-radius: 50%;
    border: 3px solid var(--sage);
  }

  .deco-circle-1 {
    width: 100%;
    height: 100%;
    animation: pulse 4s ease-in-out infinite;
  }

  .deco-circle-2 {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    animation: pulse 4s 0.5s ease-in-out infinite;
  }

  .deco-circle-3 {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    background: var(--sage);
    animation: pulse 4s 1s ease-in-out infinite;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

/* ==========================================================================
   Location Section
   ========================================================================== */

.section-location {
  background: var(--sage);
  position: relative;
}

.section-location::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--cream);
  clip-path: ellipse(60% 100% at 50% 0%);
}

.section-location .section-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-top: 4rem;
}

@media (min-width: 900px) {
  .section-location .section-inner {
    grid-template-columns: 1fr 1.5fr;
    align-items: center;
  }
}

.section-location .section-badge {
  background: var(--cream);
  color: var(--olive-dark);
}

.location-content {
  color: var(--cream);
}

.address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 2rem;
}

.street {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.city {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 300;
  opacity: 0.9;
}

.directions-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  background: var(--olive);
  border-radius: 100px;
  transition: all 0.3s var(--ease-out-expo);
}

.directions-link:hover,
.directions-link:focus-visible {
  background: var(--olive-dark);
  transform: translateX(5px);
}

.map-container {
  border-radius: clamp(1rem, 3vw, 2rem);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(92, 107, 74, 0.4);
  aspect-ratio: 16 / 10;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

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

.site-footer {
  background: var(--olive-dark);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.footer-wave {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(-99%);
}

.footer-wave svg {
  display: block;
  width: 100%;
  height: auto;
}

.footer-wave path {
  fill: var(--olive-dark);
}

.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.footer-logo {
  width: clamp(80px, 15vw, 120px);
  height: auto;
  filter: brightness(0) invert(0.95);
  opacity: 0.9;
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(245, 240, 225, 0.3);
  border-radius: 100px;
  transition: all 0.3s var(--ease-out-expo);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.social-link:hover,
.social-link:focus-visible {
  background: rgba(245, 240, 225, 0.1);
  border-color: rgba(245, 240, 225, 0.5);
  transform: translateY(-2px);
}

.copyright {
  font-size: 0.85rem;
  font-weight: 300;
  opacity: 0.6;
}

/* ==========================================================================
   Focus & Accessibility
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   Utility — Smooth reveal on scroll (optional JS enhancement)
   ========================================================================== */

.section {
  animation: revealSection 0.8s var(--ease-out-expo) both;
}

@keyframes revealSection {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Pillars Section — How We Work
   ========================================================================== */

.section-pillars {
  background: var(--cream);
  padding-top: 0;
}

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

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

.pillar {
  text-align: center;
  padding: 2rem 1.5rem;
}

.pillar-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  color: var(--olive);
}

.pillar-icon svg {
  width: 100%;
  height: 100%;
}

.pillar h3 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--olive-dark);
  margin-bottom: 0.75rem;
}

.pillar p {
  font-size: 1rem;
  font-weight: 400;
  color: var(--olive);
  line-height: 1.7;
}

/* ==========================================================================
   Treats Section — Other Sweet Things
   ========================================================================== */

.section-treats {
  background: var(--cream);
}

.section-treats h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--olive-dark);
  margin-bottom: 2.5rem;
}

.treats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .treats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.treat {
  background: var(--cream-light);
  border: 2px solid var(--sage);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
}

.treat:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(92, 107, 74, 0.25);
}

.treat h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--olive-dark);
  margin-bottom: 0.5rem;
}

.treat p {
  font-size: 0.95rem;
  color: var(--olive);
  line-height: 1.6;
}

/* ==========================================================================
   Orders Section — Custom Orders CTA
   ========================================================================== */

.section-orders {
  background: var(--cream);
  padding-bottom: 0;
}

.orders-card {
  background: var(--sage);
  border-radius: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.orders-card h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 1rem;
}

.orders-card p {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--cream);
  opacity: 0.9;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.order-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--olive-dark);
  text-decoration: none;
  padding: 0.875rem 2rem;
  background: var(--cream);
  border-radius: 100px;
  transition: all 0.3s var(--ease-out-expo);
}

.order-link:hover,
.order-link:focus-visible {
  background: var(--cream-light);
  transform: translateX(5px);
}

/* ==========================================================================
   Contact Details in Location Section
   ========================================================================== */

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cream);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  opacity: 1;
}

.contact-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   Flavors Section
   ========================================================================== */

.section-flavors {
  background: var(--cream);
}

.section-flavors h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--olive-dark);
  margin-bottom: 2rem;
}

.flavor-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 2rem;
  margin-bottom: 3rem;
}

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

@media (min-width: 900px) {
  .flavor-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flavor-list li {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--olive-dark);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(139, 168, 107, 0.2);
  position: relative;
  padding-left: 1.25rem;
}

.flavor-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--sage);
  border-radius: 50%;
}

.flavor-extras {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.flavor-extra {
  background: var(--cream-light);
  border: 2px solid var(--sage);
  border-radius: 1.5rem;
  padding: 2rem;
}

.flavor-extra h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--olive-dark);
  margin-bottom: 0.75rem;
}

.flavor-extra p {
  font-size: 1rem;
  color: var(--olive);
  line-height: 1.7;
}
