/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ========== CUSTOM PROPERTIES ========== */
:root {
  --burgundy-800: #7B2D3B;
  --burgundy-950: #361017;
  --blush-200: #F9C8C0;
  --cream: #FFF9F5;
  --warm: #5C3A2E;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-3xl: 2.25rem;
  --shadow-sm: 0 1px 3px rgba(123,45,59,0.08), 0 4px 16px rgba(123,45,59,0.06);
  --shadow-md: 0 4px 20px rgba(123,45,59,0.10), 0 8px 32px rgba(123,45,59,0.06);
  --shadow-lg: 0 8px 40px rgba(123,45,59,0.14), 0 16px 64px rgba(123,45,59,0.08);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--burgundy-800);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-xl);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: #632532;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-xl);
  transition: background var(--transition), transform var(--transition);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* ========== INPUTS ========== */
.input-field {
  background: var(--cream);
  border: 1.5px solid rgba(123,45,59,0.15);
  border-radius: var(--radius-xl);
  padding: 0.875rem 1.125rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--warm);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}
.input-field::placeholder { color: rgba(92,58,46,0.4); }
.input-field:hover { border-color: rgba(123,45,59,0.3); }
.input-field:focus {
  border-color: var(--burgundy-800);
  box-shadow: 0 0 0 3px rgba(123,45,59,0.1);
}

/* ========== NAVBAR ========== */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--burgundy-800);
  border-radius: 1px;
  transition: width var(--transition);
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--burgundy-800) !important; }

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

/* Mobile menu */
.mobile-link {
  display: block;
  color: var(--warm);
  text-decoration: none;
  font-weight: 700;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(123,45,59,0.08);
  transition: color var(--transition), padding-left var(--transition);
}
.mobile-link:hover { color: var(--burgundy-800); padding-left: 0.5rem; }

.menu-line { transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
#menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
#menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
#menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) { width: 1.5rem; transform: translateY(-4.5px) rotate(-45deg); }

/* ========== HERO ========== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--burgundy-950) 0%, var(--burgundy-800) 50%, #971d40 100%);
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-img { opacity: 0.28; transform: scale(1.05); }
.hero-overlay {
  background: linear-gradient(
    160deg,
    rgba(54,16,23,0.88) 0%,
    rgba(123,45,59,0.75) 50%,
    rgba(151,29,64,0.65) 100%
  );
}
.hero-blob-1, .hero-blob-2 { will-change: transform; }

.hero-headline { text-shadow: 0 2px 24px rgba(0,0,0,0.3); }
.hero-subtitle { text-shadow: 0 1px 8px rgba(0,0,0,0.2); }

.hero-stats { gap: 1.5rem; }
.hero-stat-num { text-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.hero-stat-label { text-transform: uppercase; letter-spacing: 0.06em; }

.hero-scroll { animation: heroScrollFade 2s ease-in-out infinite; }
@keyframes heroScrollFade {
  0%, 100% { opacity: 0.5; transform: translate(-50%, 0); }
  50% { opacity: 1; transform: translate(-50%, 6px); }
}

/* ========== SECTION HEADERS ========== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--burgundy-800);
  background: rgba(123,45,59,0.07);
  border: 1px solid rgba(123,45,59,0.12);
  padding: 0.4rem 1rem;
  border-radius: 100px;
}
.section-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--burgundy-800);
  line-height: 1.2;
}
.section-desc {
  font-size: 1.0625rem;
  color: rgba(92,58,46,0.65);
  line-height: 1.7;
}

/* ========== PRODUCT CARDS ========== */
.product-card {
  background: #fff;
  border-radius: var(--radius-3xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(123,45,59,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-img-wrap { position: relative; overflow: hidden; }
.product-img { transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.product-card:hover .product-img { transform: scale(1.07); }
.product-name { font-size: 1.125rem; }
.product-desc { font-size: 0.9375rem; }

/* ========== ABOUT ========== */
.about-text { font-size: 1.0625rem; }
.about-value-icon { transition: transform var(--transition); }
.about-value:hover .about-value-icon { transform: scale(1.1) rotate(-3deg); }

/* ========== GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
.gallery-item { position: relative; overflow: hidden; cursor: pointer; }
.gallery-img { transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(54,16,23,0.3) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: inherit;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover .gallery-img { transform: scale(1.08); }

/* ========== VISIT ========== */
.visit-info-card {
  background: #fff;
  border-radius: var(--radius-2xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(123,45,59,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.visit-info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.visit-icon { transition: transform var(--transition); }
.visit-info-card:hover .visit-icon { transform: rotate(-5deg) scale(1.05); }
.map-wrap { position: relative; }

/* ========== FOOTER ========== */
.footer-link {
  font-size: 0.9375rem;
  transition: color var(--transition), padding-left var(--transition);
  display: inline-block;
}
.footer-link:hover { color: #fff; padding-left: 0.375rem; }

/* ========== SCROLL REVEAL (progressive enhancement) ========== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  }
}
.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* ========== FORM SUCCESS ========== */
.form-success {
  background: rgba(123,45,59,0.07);
  border: 1px solid rgba(123,45,59,0.15);
  border-radius: var(--radius-xl);
  padding: 1rem 1.25rem;
  animation: formSuccessIn 0.4s ease-out;
}
@keyframes formSuccessIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
  .hero-stats { gap: 1rem; }
  .hero-stat-num { font-size: 1.75rem !important; }
  .hero-stat-label { font-size: 0.6875rem !important; }
  .hero-stat-divider { display: none; }
}
