/* --- Custom Properties (Variables) --- */
:root {
  --color-primary: #932a37;
  --color-secondary: #8A5016;
  --color-text: #635E53;
  --color-bg: #F7DDD6;
  --color-white: #ffffff;
  --color-light: #fef5f3;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --transition-speed: 0.3s;
  --shadow-sm: 0 2px 4px rgba(99, 94, 83, 0.1);
  --shadow-md: 0 4px 12px rgba(99, 94, 83, 0.15);
  --shadow-lg: 0 12px 24px rgba(99, 94, 83, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed);
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-speed);
  cursor: pointer;
  border: none;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--color-white);
}

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

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 18px 0;
  z-index: 1000;
  transition: all var(--transition-speed);
  background-color: var(--color-primary);
}

.navbar.scrolled {
  background-color: rgba(147, 42, 55, 0.97);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-bg);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.logo i {
  color: var(--color-bg);
  font-size: 1.4rem;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  color: rgba(247, 221, 214, 0.85);
  position: relative;
  padding: 5px 0;
  transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--color-white);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-bg);
  transition: width var(--transition-speed);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1002;
  padding: 5px;
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background-color: var(--color-bg);
  border-radius: 3px;
  transition: all 0.3s;
  display: block;
}

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s;
}
.nav-overlay.active {
  display: block;
  opacity: 0.8;
}

/* --- Gallery Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
.lightbox.show { display: flex; }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  z-index: 2;
}
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
  transition: background 0.3s;
}
.lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,0.5);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-content-wrapper {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#lightbox-media-container img, #lightbox-media-container video {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 10px;
}
.lightbox-caption {
  color: #fff;
  margin-top: 15px;
  font-size: 1.1rem;
  text-align: center;
  max-width: 600px;
}

/* --- Hero Section --- */
.hero {
  display: block;
  position: relative;
  padding-top: 80px;
  background-color: var(--color-primary);
  color: var(--color-bg);
  overflow: hidden;
}

.hero .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 50px;
}

.hero-content {
  flex: 1 1 400px;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--color-bg);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 28px;
  max-width: 500px;
  color: rgba(247, 221, 214, 0.9);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1 1 350px;
  max-width: 550px;
  z-index: 1;
}

.hero-image img {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

/* Swiper override for hero */
.hero-slider {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
  overflow: hidden;
}

.hero-slider .swiper-slide img,
.hero-slider .swiper-slide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slider Nav Arrows */
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: #fff;
  transition: all 0.3s ease;
}

.hero-slider .swiper-button-next:after,
.hero-slider .swiper-button-prev:after {
  font-size: 1.2rem;
  font-weight: bold;
}

.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

/* Slider Progress Bar */
.slider-progress-bar-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 10;
}

.slider-progress-bar {
  height: 100%;
  background: var(--color-bg);
  width: 0%;
  border-radius: 0 5px 5px 0;
}

/* --- About Section --- */
.about {
  padding: 100px 0;
  background-color: var(--color-white);
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

.about-image img {
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--color-secondary);
}

/* --- Featured Menu Section --- */
.featured {
  padding: 100px 0;
}

.featured .section-title {
  text-align: center;
  display: block;
  margin-bottom: 50px;
}

.featured .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  text-align: center;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.product-img {
  height: 220px;
  overflow: hidden;
}

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

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

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--color-secondary);
}

.product-info p {
  font-size: 0.9rem;
  margin-bottom: 15px;
}

/* --- Gallery Section --- */
.gallery {
  padding: 100px 0;
  background-color: var(--color-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  aspect-ratio: 1;
  cursor: pointer;
}

.gallery-item img, .gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img, .gallery-item:hover video {
  transform: scale(1.05);
}

/* --- Contact Section --- */
.contact {
  padding: 100px 0;
  background-color: var(--color-bg);
}

.contact .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 35px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.contact-info h2 {
  color: var(--color-white);
}

.contact-info h4 {
  color: var(--color-bg);
  margin-bottom: 3px;
  font-size: 0.95rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.info-item i {
  font-size: 1.3rem;
  color: var(--color-bg);
  margin-top: 3px;
}

.contact-form {
  background-color: var(--color-white);
  padding: 35px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 18px;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(99, 94, 83, 0.2);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition-speed);
  background: #fff;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--color-primary);
}

.form-group textarea {
  height: 120px;
  resize: none;
}

/* --- Footer --- */
footer {
  background-color: var(--color-primary);
  color: var(--color-bg);
  text-align: center;
  padding: 25px 0;
}

footer p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 992px) {
  .hero .container {
    justify-content: center;
    text-align: center;
  }

  .hero-content {
    flex-basis: 100%;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-image {
    flex-basis: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .about .container {
    grid-template-columns: 1fr;
  }
  .about-image { order: 2; }
  .about-content { order: 1; }

  .contact .container {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100vh;
    background-color: var(--color-primary);
    flex-direction: column;
    padding: 100px 30px 30px;
    align-items: flex-start;
    gap: 0;
    box-shadow: -5px 0 25px rgba(0,0,0,0.3);
    transition: right 0.35s cubic-bezier(.4,0,.2,1);
    z-index: 1001;
    overflow-y: auto;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(247,221,214,0.1);
    width: 100%;
  }
  .nav-links a::after {
    display: none;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }
  .hero-content p {
    font-size: 0.95rem;
  }

  .hero-slider {
    border-radius: 14px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .about {
    padding: 60px 0;
  }
  .featured {
    padding: 60px 0;
  }
  .gallery {
    padding: 60px 0;
  }
  .contact {
    padding: 60px 0;
  }

  .contact-info, .contact-form {
    padding: 25px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero .container {
    padding-top: 20px;
    padding-bottom: 30px;
    gap: 20px;
  }
  .hero-content h1 {
    font-size: 1.5rem;
  }
  .hero-content p {
    font-size: 0.85rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    padding: 10px 24px;
    font-size: 0.8rem;
  }
  .hero-slider {
    border-radius: 10px;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .gallery-item {
    height: 150px;
  }
}
