/* ─── Custom Properties ─── */
:root {
  --burgundy-50: #fdf2f4;
  --burgundy-100: #fce7eb;
  --burgundy-200: #f9cfd9;
  --burgundy-300: #f4a7bb;
  --burgundy-400: #ec749a;
  --burgundy-500: #e04d7c;
  --burgundy-600: #c92d5f;
  --burgundy-700: #a81e48;
  --burgundy-800: #8c1a3e;
  --burgundy-900: #721633;
  --burgundy-950: #3d0a19;

  --blush-50: #fff8f9;
  --blush-100: #ffebef;
  --blush-200: #ffd6de;
  --blush-300: #ffb3c4;
  --blush-400: #ff7ea3;
  --blush-500: #ff4d7c;

  --cream: #faf8f6;
  --cream-dark: #f5f0eb;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Lato', 'Helvetica Neue', sans-serif;
}

/* ─── Base Reset & Typography ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--burgundy-900);
  line-height: 1.7;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ─── Tailwind Custom Theme ─── */
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer components {
  .btn-primary {
    background-color: var(--burgundy-700);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  }
  .btn-primary:hover {
    background-color: var(--burgundy-800);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(114, 22, 51, 0.25);
  }
  .btn-secondary {
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  .btn-secondary:hover {
    transform: translateY(-1px);
  }
}

/* ─── Section Labels ─── */
.section-label {
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ─── Navbar ─── */
#navbar {
  transition: background-color 0.5s ease, padding 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
  background-color: rgba(61, 10, 25, 0.97);
  padding-top: 0;
  padding-bottom: 0;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.15);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--blush-300);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ─── Hero ─── */
.hero-bg {
  will-change: transform;
}

.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(61, 10, 25, 0.72) 0%,
    rgba(114, 22, 51, 0.55) 50%,
    rgba(61, 10, 25, 0.78) 100%
  );
}

.hero-subtitle {
  animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-headline {
  animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero-desc {
  animation: fadeUp 0.8s ease forwards 0.7s;
}

.hero-cta {
  animation: fadeUp 0.8s ease forwards 0.9s;
}

.hero-scroll {
  animation: fadeIn 1s ease forwards 1.4s;
  opacity: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ─── Service Cards ─── */
.service-card {
  background-color: white;
  border-radius: 0;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(114, 22, 51, 0.1);
}

/* ─── Gallery ─── */
.gallery-item {
  overflow: hidden;
  border-radius: 0;
}

.gallery-item img {
  transition: transform 0.7s ease;
}

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

/* ─── Testimonial Cards ─── */
.testimonial-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem;
  border-radius: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 179, 196, 0.2);
}

/* ─── Scroll Reveal ─── */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(32px);
  }
  .reveal-left {
    opacity: 0;
    transform: translateX(-32px);
  }
  .reveal-right {
    opacity: 0;
    transform: translateX(32px);
  }

  .reveal-up.revealed,
  .reveal-left.revealed,
  .reveal-right.revealed {
    opacity: 1;
    transform: none;
  }
}

/* ─── Mobile Navigation ─── */
.mobile-nav-link {
  transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-nav-link:hover {
  transform: scale(1.05);
}

/* ─── Form Styles ─── */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(114, 22, 51, 0.1);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238c1a3e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--cream);
}
::-webkit-scrollbar-thumb {
  background: var(--burgundy-300);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--burgundy-500);
}

/* ─── Selection ─── */
::selection {
  background-color: var(--burgundy-200);
  color: var(--burgundy-950);
}
