/* Editorial fine-line borders & subtle text rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: #FAFBF9;
  color: #1A1D1B;
  overflow-x: hidden;
}
::selection {
  background-color: #DFE7E0;
  color: #0F281E;
}
.fine-border {
  border: 1px solid rgba(21, 54, 41, 0.12);
}
.fine-border-t {
  border-top: 1px solid rgba(21, 54, 41, 0.12);
}
.fine-border-b {
  border-bottom: 1px solid rgba(21, 54, 41, 0.12);
}
.quote-mark {
  font-feature-settings: "dlig" 1;
}

/* Prevent mobile scroll chaining when drawer is open */
body.menu-open {
  overflow: hidden;
  touch-action: none;
}

/* Cross-browser scrollbar hiding */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

/* Prevent iOS auto-zoom on form inputs by ensuring >= 16px font-size */
@media (max-width: 640px) {
  input, textarea, select {
    font-size: 16px !important;
  }
}

/* Tactile button press feedback */
.btn-press {
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn-press:active {
  transform: scale(0.97);
}

/* Luxury card hover & elevation */
.luxury-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  will-change: transform, box-shadow;
}
@media (hover: hover) and (pointer: fine) {
  .luxury-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px -10px rgba(11, 28, 21, 0.09), 0 0 0 1px rgba(29, 73, 55, 0.18);
  }
}

/* Animated Hamburger Icon */
.bar-top, .bar-mid, .bar-bot {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, background-color 0.2s ease;
}
#mobile-menu-btn.is-active .bar-top {
  transform: translateY(6px) rotate(45deg);
}
#mobile-menu-btn.is-active .bar-mid {
  opacity: 0;
  transform: scaleX(0);
}
#mobile-menu-btn.is-active .bar-bot {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Drawer slide animation & link stagger */
#mobile-drawer {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
#mobile-drawer.is-open {
  transform: translateX(0) !important;
}
.drawer-link {
  opacity: 1;
  transform: translateX(0);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
#mobile-drawer.is-open .drawer-link {
  animation: drawerLinkSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
#mobile-drawer.is-open .drawer-link:nth-child(1) { animation-delay: 0.08s; }
#mobile-drawer.is-open .drawer-link:nth-child(2) { animation-delay: 0.14s; }
#mobile-drawer.is-open .drawer-link:nth-child(3) { animation-delay: 0.20s; }
#mobile-drawer.is-open .drawer-link:nth-child(4) { animation-delay: 0.26s; }
#mobile-drawer.is-open .drawer-link:nth-child(5) { animation-delay: 0.32s; }

@keyframes drawerLinkSlideIn {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hero Staggered Entrance Animations */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-anim-1 { animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.hero-anim-2 { animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
.hero-anim-3 { animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }
.hero-anim-4 { animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both; }
.hero-anim-5 { animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both; }

/* Scroll Reveal System */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Subtle quote glow pulse */
@keyframes quoteAura {
  0%, 100% { opacity: 0.04; transform: scale(1); }
  50% { opacity: 0.08; transform: scale(1.05); }
}
.quote-aura {
  animation: quoteAura 8s ease-in-out infinite;
}

/* Accessibility: Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-anim-1, .hero-anim-2, .hero-anim-3, .hero-anim-4, .hero-anim-5 {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Editorial Content Typography for Single Post and Pages */
.editorial-content {
  color: #2A2E2C;
  font-size: 1.125rem;
  line-height: 1.85;
}
.editorial-content p {
  margin-bottom: 1.75rem;
}
.editorial-content h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 600;
  color: #0B1C15;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.editorial-content h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 600;
  color: #0B1C15;
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}
.editorial-content blockquote {
  border-left: 2px solid #9FB4A3;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem;
  font-style: italic;
  color: #0F281E;
}
.editorial-content ul, .editorial-content ol {
  margin: 1.25rem 0 1.75rem 1.5rem;
}
.editorial-content ul { list-style-type: disc; }
.editorial-content ol { list-style-type: decimal; }
.editorial-content li { margin-bottom: 0.5rem; }
.editorial-content a {
  color: #0F281E;
  text-decoration: underline;
  text-underline-offset: 4px;
}
