/* ── Custom Properties ── */
:root {
  --burgundy-600: #c22744;
  --burgundy-700: #a11532;
  --burgundy-950: #3d0714;
  --blush-200: #ffd9ce;
  --warm-50: #fefaf8;
  --warm-800: #442e25;
  --warm-950: #1a100c;
  --nav-height: 72px;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body { min-height: 100vh; overflow-x: hidden; }

/* ── Navbar ── */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(61, 7, 20, 0.08);
}

.nav-link { transition: color 0.2s, background 0.2s; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--burgundy-600), var(--burgundy-700));
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 16px rgba(194, 39, 68, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(194, 39, 68, 0.4);
  background: linear-gradient(135deg, #d4304e, var(--burgundy-600));
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--burgundy-700);
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  background: rgba(194, 39, 68, 0.08);
  color: var(--burgundy-600);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
}
.badge-light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--blush-200);
}

/* ── Hero Overlay ── */
.hero-overlay {
  background: linear-gradient(
    160deg,
    rgba(61, 7, 20, 0.72) 0%,
    rgba(109, 22, 50, 0.60) 40%,
    rgba(161, 21, 50, 0.45) 70%,
    rgba(194, 39, 68, 0.30) 100%
  );
}

/* ── Cards ── */
.card {
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(61, 7, 20, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(61, 7, 20, 0.12);
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-img-wrapper img {
  transform: scale(1.05);
}
.card-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  display: flex;
  justify-content: flex-end;
}

/* ── Inputs ── */
.input-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e8d5d0;
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--warm-950);
  background: var(--warm-50);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
}
.input-field::placeholder { color: #b89a92; }
.input-field:focus {
  border-color: var(--burgundy-600);
  box-shadow: 0 0 0 3px rgba(194, 39, 68, 0.1);
  background: #fff;
}
.input-field:invalid:not(:placeholder-shown) {
  border-color: #dc2626;
}

/* ── Scroll Animations ── */
.scroll-anim {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-anim[data-delay="1"] { transition-delay: 0.1s; }
.scroll-anim[data-delay="2"] { transition-delay: 0.2s; }
.scroll-anim[data-delay="3"] { transition-delay: 0.3s; }
.scroll-anim[data-delay="4"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: no-preference) {
  .scroll-anim {
    opacity: 0;
    transform: translateY(24px);
  }
  .scroll-anim.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Back to Top ── */
#back-to-top {
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
}
#back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── Mobile Menu ── */
#mobile-menu {
  animation: slideDown 0.25s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-link { transition: all 0.2s; }

/* ── Responsive ── */
@media (max-width: 767px) {
  :root { --nav-height: 64px; }
  .font-serif { line-height: 1.15; }
}
