/* ===========================
   CSS Variables / Color Palette
   =========================== */
:root {
  --primary: #7a0c0c;
  --primary-light: rgba(122, 12, 12, 0.1);
  --secondary: #d4af37;
  --secondary-light: rgba(212, 175, 55, 0.1);
  --accent: #1e7f5c;
  --accent-light: rgba(30, 127, 92, 0.1);
  --background: #fff8ee;
  --background-alt: #fef3e2;
  --foreground: #2d1810;
  --foreground-muted: rgba(45, 24, 16, 0.7);
  --card-bg: #ffffff;
  --border: rgba(45, 24, 16, 0.1);
  --white: #ffffff;
  --font-heading: "Cormorant Garamond", serif;
  --font-body: "Inter", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* ===========================
   Utility Classes
   =========================== */
.text-primary {
  color: var(--primary) !important;
}

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

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

.subtitle {
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.section-desc {
  color: var(--foreground-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===========================
   Buttons
   =========================== */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 0.5rem;
}

.btn-primary:hover {
  background-color: #5a0909;
  border-color: #5a0909;
  color: var(--white);
}

.btn-secondary {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--foreground);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 0.5rem;
}

.btn-secondary:hover {
  background-color: #b8982f;
  border-color: #b8982f;
  color: var(--foreground);
}

.btn-outline-secondary {
  border: 2px solid var(--border);
  color: var(--foreground);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 0.5rem;
  background: transparent;
}

.btn-outline-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-filter {
  border: 1px solid var(--border);
  color: var(--foreground);
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  margin: 0.25rem;
  transition: all 0.3s ease;
}

.btn-filter:hover,
.btn-filter.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ===========================
   Navbar
   =========================== */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 248, 238, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

.navbar .logo {
  height: 100px;
  width: auto;
  transition: all 0.3s ease;
}

.navbar.scrolled .logo {
  height: 130px;
}

.navbar-nav .nav-link {
  color: var(--foreground);
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

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

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

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%237A0C0C' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===========================
   Hero Section
   =========================== */
.hero-section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--background) 0%, var(--background-alt) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("/placeholder.svg?height=1080&width=1920") center / cover;
  opacity: 0.05;
}

.hero-content {
  padding-top: 100px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.hero-text {
  font-size: 1.125rem;
  color: var(--foreground-muted);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

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

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--foreground-muted);
}

.hero-image-wrapper {
  position: relative;
}

.hero-logo {
  max-width: 100%;
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(122, 12, 12, 0.2));
}

.floating {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator a {
  color: var(--primary);
  font-size: 1.5rem;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ===========================
   About Section
   =========================== */
.about-section {
  background-color: var(--background-alt);
  padding: 6rem 0;
}

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

.about-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image-border {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 100%;
  height: 100%;
  border: 4px solid var(--secondary);
  border-radius: 1rem;
  z-index: -1;
}

.about-text p {
  color: var(--foreground-muted);
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.decorative-divider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.divider-1 {
  height: 4px;
  width: 4rem;
  background-color: var(--secondary);
  border-radius: 2px;
}

.divider-2 {
  height: 4px;
  width: 2rem;
  background-color: var(--primary);
  border-radius: 2px;
}

.divider-3 {
  height: 4px;
  width: 1rem;
  background-color: var(--accent);
  border-radius: 2px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-icon.primary {
  background-color: var(--primary-light);
  color: var(--primary);
}

.feature-icon.secondary {
  background-color: var(--secondary-light);
  color: var(--secondary);
}

.feature-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.feature-item p {
  font-size: 0.875rem;
  color: var(--foreground-muted);
  margin: 0;
}

/* ===========================
   Sweets Section
   =========================== */
.sweets-section {
  background-color: var(--background);
  padding: 6rem 0;
}

.sweet-card {
  background: var(--card-bg);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  height: 100%;
}

.sweet-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.sweet-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.sweet-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sweet-card:hover .sweet-image img {
  transform: scale(1.1);
}

.sweet-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sweet-card:hover .sweet-overlay {
  opacity: 1;
}

.sweet-overlay .btn {
  width: 100%;
}

.sweet-content {
  padding: 1.25rem;
}

.sweet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.sweet-header h3 {
  font-size: 1.125rem;
  margin: 0;
  transition: color 0.3s ease;
}

.sweet-card:hover .sweet-header h3 {
  color: var(--primary);
}

.sweet-price {
  color: var(--secondary);
  font-weight: 600;
}

.sweet-content p {
  font-size: 0.875rem;
  color: var(--foreground-muted);
  margin: 0;
}

/* Filter Animation */
.sweet-item {
  transition: all 0.4s ease;
}

.sweet-item.hide {
  opacity: 0;
  transform: scale(0.8);
  display: none !important;
}

/* ===========================
   Specialties Section
   =========================== */
.specialties-section {
  background-color: var(--background-alt);
  background-image: url("/placeholder.svg?height=100&width=100");
  background-size: 200px;
  background-repeat: repeat;
  padding: 6rem 0;
  position: relative;
}

.specialties-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 248, 238, 0.95);
}

.specialties-section .container {
  position: relative;
  z-index: 1;
}

.specialty-image-wrapper {
  position: relative;
}

.specialty-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.rating-badge {
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-bg);
  padding: 0.5rem 1.5rem;
  border-radius: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

.rating-badge .stars {
  color: var(--secondary);
  font-size: 0.875rem;
}

.rating-badge span {
  font-size: 0.875rem;
  font-weight: 500;
}

.specialty-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.specialty-desc {
  color: var(--foreground-muted);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.specialty-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.specialty-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--foreground-muted);
}

.check-icon {
  width: 24px;
  height: 24px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ===========================
   Gallery Section
   =========================== */
.gallery-section {
  background-color: var(--background-alt);
  padding: 6rem 0;
}

.gallery-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
}

.gallery-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-image.tall {
  height: 250px;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.1);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 0.2;
}

/* Lightbox Modal */
#lightboxModal .modal-content {
  background: transparent;
}

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

.contact-form-wrapper {
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
}

.contact-form-wrapper h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-form-wrapper .form-control {
  background: var(--background);
  border: 1px solid var(--border);
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.contact-form-wrapper .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.contact-info-wrapper {
  background: var(--primary-light);
  border-radius: 1rem;
  padding: 2rem;
}

.contact-info-wrapper h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-icon.primary {
  background: var(--primary-light);
  color: var(--primary);
}

.contact-icon.secondary {
  background: var(--secondary-light);
  color: var(--secondary);
}

.contact-icon.accent {
  background: var(--accent-light);
  color: var(--accent);
}

.contact-info-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  font-size: 0.9375rem;
  color: var(--foreground-muted);
  margin: 0;
}

.map-wrapper {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ===========================
   Footer
   =========================== */
.footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 5rem 0 0;
}

.footer-logo-img {
  height: 100px;
  width: auto;
  filter: brightness(1.1);
  margin-bottom: 1.5rem;
}

.footer-text {
  color: rgba(255, 255, 255, 0.8);
  max-width: 400px;
  margin-bottom: 1.5rem;
}

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

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--secondary);
  color: var(--foreground);
}

.footer-title {
  color: var(--secondary);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

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

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.footer-bottom-links a:hover {
  color: var(--secondary);
}

/* ===========================
   Responsive Styles
   =========================== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--background);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

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

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

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

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

  .about-image {
    height: 300px;
  }

  .about-image-border {
    display: none;
  }

  .specialty-image {
    height: 280px;
  }
}

@media (max-width: 767.98px) {
  .hero-logo {
    width: 300px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .specialty-title {
    font-size: 2rem;
  }

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

@media (max-width: 575.98px) {
  .hero-buttons .btn {
    width: 100%;
  }

  .gallery-image,
  .gallery-image.tall {
    height: 150px;
  }
}