/* CSS Custom Properties for colors */
:root {
  /* Light theme colors */
  --background: #FEFCF8;
  --foreground: #2C2C2C;
  --muted: #F5E6D3;
  --muted-foreground: #737373;
  --primary: #8B4513; /* tiramisu-brown */
  --primary-foreground: #FEFCF8;
  --accent: #F2E6D4; /* light beige */
  --accent-foreground: #2C2C2C;
  --border: #E5D5C8;
  --card: #FEFCF8;
  --card-foreground: #2C2C2C;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-playfair {
  font-family: 'Baloo 2', cursive;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(254, 252, 248, 0.95);
  backdrop-filter: blur(8px);
  z-index: 50;
  transition: box-shadow 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .nav-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .nav-container {
    padding: 0 2rem;
  }
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.logo-text {
  font-family: 'Baloo 2', cursive;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-bold {
  font-weight: 800;
}

.nav-menu {
  display: none;
  align-items: baseline;
  gap: 2rem;
  margin-left: 2.5rem;
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  background: none;
  border: none;
  color: var(--foreground);
  font-family: 'Baloo 2', cursive;
  font-weight: 600;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--primary);
}

.mobile-menu-button {
  display: block;
}

@media (min-width: 768px) {
  .mobile-menu-button {
    display: none;
  }
}

.menu-btn {
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem;
}

.menu-btn:hover {
  color: var(--primary);
}

.menu-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.mobile-menu {
  display: none;
  background: var(--background);
  border-top: 1px solid var(--border);
}

.mobile-menu.active {
  display: block;
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu-content {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  background: none;
  border: none;
  color: var(--foreground);
  font-family: 'Baloo 2', cursive;
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.mobile-nav-link:hover {
  color: var(--primary);
}

/* Main Content */
.main-content {
  padding-top: 4rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 44, 44, 0.7) 0%, rgba(139, 69, 19, 0.8) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-title {
  font-family: 'Baloo 2', cursive;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-accent {
  color: var(--accent);
}

.hero-subtitle {
  font-family: 'Baloo 2', cursive;
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 2rem;
  line-height: 1.6;
}

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

.hero-button {
  background: var(--accent);
  color: var(--accent-foreground);
  border: none;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.hero-button:hover {
  background: rgba(242, 230, 212, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Section Styles */
.section-title {
  font-family: 'Baloo 2', cursive;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-subtitle {
  font-family: 'Baloo 2', cursive;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--muted-foreground);
  max-width: 48rem;
  margin: 0 auto;
  line-height: 1.6;
}

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

/* About Section */
.about-section {
  padding: 5rem 0;
  background: var(--background);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-paragraph {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.about-image-container {
  position: relative;
}

.about-image {
  border-radius: 1rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.about-image:hover {
  transform: translateY(-5px);
}

.heart-icon {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 6rem;
  height: 6rem;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.heart-svg {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
}

/* Our Flavours Section */
.flavours-section {
  padding: 5rem 0;
  background: var(--background);
  background: #FEFCF8; /* Fallback for browsers that don't support CSS variables */
  /* Ensure section is always visible */
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.flavours-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

/* Fallback for older browsers that don't support gap */
.flavours-grid > * + * {
  margin-top: 2rem;
}

/* CSS Grid for modern browsers */
@supports (display: grid) {
  .flavours-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    gap: 2rem;
    -webkit-box-orient: initial;
    -webkit-box-direction: initial;
    -ms-flex-direction: initial;
    flex-direction: initial;
  }
  
  .flavours-grid > * + * {
    margin-top: 0;
  }
}

@media (min-width: 768px) {
  .flavours-grid {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    gap: 3rem;
  }
  
  .flavours-grid > * + * {
    margin-top: 0;
    margin-left: 3rem;
  }
  
  .flavours-grid > * {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
  }
  
  @supports (display: grid) {
    .flavours-grid {
      -ms-grid-columns: 1fr 3rem 1fr;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      -webkit-box-orient: initial;
      -webkit-box-direction: initial;
      -ms-flex-direction: initial;
      flex-direction: initial;
    }
    
    .flavours-grid > * + * {
      margin-left: 0;
    }
    
    .flavours-grid > * {
      -webkit-box-flex: initial;
      -ms-flex: initial;
      flex: initial;
    }
  }
}

.flavour-card {
  border-radius: 1rem;
  overflow: hidden;
  -webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  cursor: pointer;
  height: 500px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  opacity: 1;
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
  /* Ensure visibility in all browsers */
  visibility: visible;
  position: relative;
}

.flavour-card:hover {
  -webkit-transform: translateY(-15px);
  -ms-transform: translateY(-15px);
  transform: translateY(-15px);
  -webkit-animation: bounce 0.6s ease;
  animation: bounce 0.6s ease;
  -webkit-box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

@-webkit-keyframes bounce {
  0%, 20%, 60%, 100% {
    -webkit-transform: translateY(-15px);
    transform: translateY(-15px);
  }
  40% {
    -webkit-transform: translateY(-25px);
    transform: translateY(-25px);
  }
  80% {
    -webkit-transform: translateY(-20px);
    transform: translateY(-20px);
  }
}

@keyframes bounce {
  0%, 20%, 60%, 100% {
    -webkit-transform: translateY(-15px);
    transform: translateY(-15px);
  }
  40% {
    -webkit-transform: translateY(-25px);
    transform: translateY(-25px);
  }
  80% {
    -webkit-transform: translateY(-20px);
    transform: translateY(-20px);
  }
}

.traditional-card {
  background: #F2E6D4; /* Fallback */
  background: -webkit-linear-gradient(135deg, #F2E6D4 0%, #E5D5C8 100%);
  background: -o-linear-gradient(135deg, #F2E6D4 0%, #E5D5C8 100%);
  background: linear-gradient(135deg, #F2E6D4 0%, #E5D5C8 100%);
  color: var(--primary);
  color: #8B4513; /* Fallback for browsers that don't support CSS variables */
}

.oreo-card {
  background: #ffffff;
  color: #2C2C2C;
}

.flavour-image-container {
  position: relative;
  height: 380px;
  margin: 1rem 1rem 0.5rem 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #f5f5f5;
}

.flavour-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
}

.flavour-card:hover .flavour-image {
  transform: scale(1.05);
}

.flavour-content {
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  text-align: center;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
}

.flavour-title {
  font-family: 'Baloo 2', cursive;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.traditional-card .flavour-title {
  color: var(--primary);
}

.oreo-card .flavour-title {
  color: #2C2C2C;
}

/* Order Info Section */
.order-info-section {
  padding: 5rem 0;
  background: var(--muted);
}

.order-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .order-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.order-card {
  background: var(--card);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.order-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.order-icon {
  width: 4rem;
  height: 4rem;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.icon-svg {
  width: 2rem;
  height: 2rem;
  color: white;
}

.order-card-title {
  font-family: 'Baloo 2', cursive;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.order-card-text {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Specials Section */
.specials-section {
  padding: 5rem 0;
  background: var(--background);
}

.specials-title {
  color: var(--foreground);
}


/* Contact Section */
.contact-section {
  padding: 5rem 0;
  background: var(--foreground);
  color: var(--background);
}

.contact-title {
  color: var(--background);
}

.contact-subtitle {
  font-family: 'Baloo 2', cursive;
  font-weight: 400;
  color: #d1d5db;
}

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

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

.contact-card {
  text-align: center;
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-icon {
  width: 5rem;
  height: 5rem;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: background-color 0.3s ease;
}

.contact-card:hover .contact-icon {
  background: var(--accent);
}

.contact-card-title {
  font-family: 'Baloo 2', cursive;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.instagram-btn {
  background: linear-gradient(to right, #8b5cf6, #ec4899);
  color: white;
}

.instagram-btn:hover {
  background: linear-gradient(to right, #7c3aed, #db2777);
}

.email-btn {
  background: var(--accent);
  color: var(--accent-foreground);
}

.email-btn:hover {
  background: rgba(242, 230, 212, 0.9);
}

.phone-btn {
  background: var(--accent);
  color: var(--accent-foreground);
}

.phone-btn:hover {
  background: rgba(242, 230, 212, 0.9);
}

/* Footer */
.footer {
  background: var(--background);
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

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

.footer-title {
  font-family: 'Baloo 2', cursive;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.footer-text {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.footer-copyright {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-top: 1.5rem;
}

/* Utility Classes */
.hover-lift {
  transition: transform 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
}

.section-transition {
  transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
  .flavour-card {
    height: 450px;
  }
  
  .flavour-image-container {
    height: 320px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1.125rem;
  }
  
  .flavour-card {
    height: 400px;
  }
  
  .flavour-image-container {
    height: 280px;
    margin: 0.75rem;
  }
  
  .flavour-content {
    padding: 0.75rem 1rem 1rem 1rem;
  }
  
  .flavour-title {
    font-size: 1.25rem;
  }
} 