/* ── Base & Utilities ── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #d4a84b;
  color: #1e3a5f;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Header Scroll State ── */
#site-header.scrolled {
  background: rgba(254, 252, 243, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(30, 58, 95, 0.06), 0 8px 32px rgba(30, 58, 95, 0.06);
}

/* ── Mobile Menu ── */
.mobile-link {
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #d4a84b;
  transition: width 0.3s ease;
}

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

/* ── Hero Floating Card Animation ── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.floating-card {
  animation: float 4s ease-in-out infinite;
}

/* ── Custom Cursor Glow (desktop only) ── */
@media (hover: hover) {
  .gold-hover:hover {
    color: #d4a84b;
  }
}

/* ── Image Hover Zoom ── */
img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Form Focus Styles ── */
input:focus,
textarea:focus {
  outline: none;
}

/* ── Responsive adjustments ── */
@media (max-width: 640px) {
  .font-serif {
    font-size: 2.5rem;
    line-height: 1.05;
  }
}

@media (min-width: 641px) and (max-width: 767px) {
  .font-serif {
    font-size: 3.5rem;
  }
}

/* ── Smooth anchor offset for fixed header ── */
section[id] {
  scroll-margin-top: 80px;
}

/* ── Print Styles ── */
@media print {
  #site-header,
  #contact-form,
  #form-success {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
}
