/* ===== Base & Utilities ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #801329;
  color: #FDF8F6;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
}

.section-eyebrow {
  display: block;
  margin-bottom: 0.25rem;
}

.section-title {
  margin-bottom: 1.5rem;
}

/* ===== Navigation ===== */
#site-header {
  background: rgba(253, 248, 246, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

#site-header.scrolled {
  border-bottom-color: rgba(128, 19, 41, 0.08);
  box-shadow: 0 1px 20px rgba(128, 19, 41, 0.06);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #801329;
  transition: width 0.3s ease;
}

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

/* Mobile menu */
#mobile-menu.open {
  opacity: 1 !important;
  pointer-events: all !important;
}

#mobile-menu.open .mobile-nav-link {
  animation: fadeUp 0.4s ease forwards;
}

#mobile-menu .mobile-nav-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu .mobile-nav-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu .mobile-nav-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu .mobile-nav-link:nth-child(4) { animation-delay: 0.2s; }

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

/* Menu toggle animation */
#menu-toggle.active .menu-line:first-child {
  transform: rotate(45deg);
  top: 8px;
}

#menu-toggle.active .menu-line:last-child {
  transform: rotate(-45deg);
  top: 8px;
}

/* ===== Hero ===== */
.hero-headline {
  letter-spacing: -0.02em;
}

.hero-eyebrow {
  animation: heroFade 0.8s ease forwards;
}

.hero-headline {
  animation: heroSlideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

.hero-subtext {
  animation: heroSlideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  opacity: 0;
  transform: translateY(30px);
}

.hero-ctas {
  animation: heroSlideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
  opacity: 0;
  transform: translateY(30px);
}

.hero-trust {
  animation: heroSlideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
  opacity: 0;
  transform: translateY(30px);
}

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

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

.hero-image-wrapper {
  animation: heroImageIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
  opacity: 0;
  transform: translateX(30px);
}

@keyframes heroImageIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero-floating-card {
  animation: heroFloat 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
  opacity: 0;
  transform: translateY(20px);
}

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

.scroll-indicator {
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.5; }
}

/* ===== Buttons ===== */
.btn-primary, .btn-secondary, .btn-cta, .btn-submit {
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary::before, .btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.btn-primary:hover::before, .btn-submit:hover::before {
  opacity: 1;
}

/* ===== Divider ===== */
.divider-line {
  margin-top: 0;
  margin-bottom: 0;
}

/* ===== Tags ===== */
.tag-pill {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(128, 19, 41, 0.06);
  border: 1px solid rgba(128, 19, 41, 0.12);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #801329;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
}

.tag-pill:hover {
  background: rgba(128, 19, 41, 0.1);
  border-color: rgba(128, 19, 41, 0.25);
}

/* ===== Service Cards ===== */
.service-card {
  opacity: 1;
}

.service-card-inner {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Visit Cards ===== */
.visit-card {
  opacity: 1;
}

.visit-card-inner {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Form ===== */
.form-input, .form-textarea {
  background: #FDF8F6;
  border: 1.5px solid rgba(128, 19, 41, 0.12);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  color: #3a070f;
  transition: all 0.25s ease;
  outline: none;
  width: 100%;
}

.form-input::placeholder, .form-textarea::placeholder {
  color: #c9a8a8;
}

.form-input:focus, .form-textarea:focus {
  border-color: #801329;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(128, 19, 41, 0.08);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.btn-submit {
  border-radius: 100px;
}

/* ===== Scroll Reveal (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal-up {
    transform: translateY(32px);
  }

  .reveal-left {
    transform: translateX(-32px);
  }

  .reveal-right {
    transform: translateX(32px);
  }

  .reveal-up.revealed,
  .reveal-left.revealed,
  .reveal-right.revealed {
    opacity: 1;
    transform: translate(0, 0);
  }
}

/* Fallback: always visible if JS disabled */
.no-js .reveal-up,
.no-js .reveal-left,
.no-js .reveal-right {
  opacity: 1;
  transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
  html {
    scroll-padding-top: 72px;
  }

  .hero-headline {
    font-size: 2.5rem;
    line-height: 1.15;
  }

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

  .hero-floating-card {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 1rem;
    max-width: 100%;
  }

  .hero-image-wrapper {
    margin-bottom: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-headline {
    font-size: 3.5rem;
  }
}

/* ===== Print ===== */
@media print {
  #site-header, .scroll-indicator {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}
