/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --deep-walnut: #2C1810;
  --soft-gold:   #D4AF37;
  --ivory:       #FFFEF7;
  --warm-bronze: #8B4513;
}

* { box-sizing: border-box; }

.font-cormorant { font-family: 'Cormorant Garamond', serif; }
.font-inter     { font-family: 'Inter', sans-serif; }

.brand-title { letter-spacing: 0.3px; }
.brand-tagline { letter-spacing: 0.2px; }

.nav-glass {
  background: rgba(255, 254, 247, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
.nav-link.active {
  color: var(--soft-gold) !important;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.45);
}

.hero-cinematic {
  background:
    linear-gradient(135deg, rgba(44, 24, 16, 0.92), rgba(139, 69, 19, 0.85)),
    radial-gradient(1200px 600px at 70% 30%, rgba(212, 175, 55, 0.15), transparent 60%),
    radial-gradient(900px 500px at 20% 80%, rgba(255, 254, 247, 0.08), transparent 60%);
  background-size: cover;
  background-attachment: fixed;
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--soft-gold), var(--ivory), var(--soft-gold));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(212, 175, 55, 0.25);
}

.embossed-text {
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4),
    0 2px 2px rgba(0, 0, 0, 0.3),
    0 0 12px rgba(212, 175, 55, 0.35);
}

.luxury-card {
  position: relative;
  background: rgba(255, 254, 247, 0.92);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.08),
    0 6px 18px rgba(212, 175, 55, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  perspective: 1000px;
}
.luxury-card:hover {
  transform: translateY(-6px) rotateX(2deg) rotateY(-1.5deg) scale(1.015);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.18),
    0 20px 40px rgba(212, 175, 55, 0.22),
    inset 0 2px 0 rgba(255, 255, 255, 0.9);
}
.luxury-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), transparent, rgba(212, 175, 55, 0.04));
  border-radius: inherit;
  opacity: 0; transition: opacity 0.5s ease; pointer-events: none;
}
.luxury-card:hover::before { opacity: 1; }

.parallax-section { position: relative; overflow: hidden; }
.parallax-bg {
  position: absolute; top: -20%; left: 0; width: 100%; height: 120%;
  background-size: cover; background-position: center;
  will-change: transform;
}
.sepia-overlay {
  background: linear-gradient(135deg, rgba(44, 24, 16, 0.9), rgba(139, 69, 19, 0.8));
}

.section-frame { position: relative; }
.section-frame::before,
.section-frame::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  width: min(78rem, 92%); height: 1px;
  background: linear-gradient(90deg, transparent, var(--soft-gold), transparent);
  filter: blur(0.4px);
}
.section-frame::before { top: 0; opacity: 0.4; }
.section-frame::after  { bottom: 0; opacity: 0.25; }

.golden-underline { position: relative; display: inline-block; }
.golden-underline::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--soft-gold), var(--ivory));
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.golden-underline.animate::after { width: 100%; }

.fade-in-left, .fade-in-right, .fade-in-up, .zoom-in {
  opacity: 0; transform: translateY(20px);
  transition: all 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-left.visible  { opacity: 1; transform: translateX(0); }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }
.fade-in-up.visible    { opacity: 1; transform: translateY(0); }
.zoom-in.visible       { opacity: 1; transform: scale(1); }

.image-block {
  position: relative; overflow: hidden; cursor: pointer;
  opacity: 0; transform: translateY(30px) scale(0.95);
  animation: slideInUp 0.8s ease forwards;
  transform-style: preserve-3d;
}
.image-block:nth-child(1) { animation-delay: 0.2s; }
.image-block:nth-child(2) { animation-delay: 0.4s; }
.image-block:nth-child(3) { animation-delay: 0.6s; }
.image-block:nth-child(odd) { animation: slideInUp 0.8s ease forwards, floatUp 6s ease-in-out infinite 0.8s; }
.image-block:nth-child(even) { animation: slideInUp 0.8s ease forwards, floatDown 6s ease-in-out infinite 0.8s; }
.block-image {
  transition: transform 0.9s cubic-bezier(0.4,0,0.2,1), opacity 0.9s cubic-bezier(0.4,0,0.2,1), filter 0.9s cubic-bezier(0.4,0,0.2,1);
  transform-origin: center center;
  will-change: transform, opacity, filter;
}
.image-block:hover .block-image { transform: scale(1.05) rotate(1deg); }
@keyframes slideInUp { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes floatUp   { 0%,100% { transform: translateY(0px); } 50% { transform: translateY(-6px); } }
@keyframes floatDown { 0%,100% { transform: translateY(0px); } 50% { transform: translateY(6px); } }

.timeline-modern { position: relative; }
.timeline-modern::before {
  content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--soft-gold), var(--ivory), var(--soft-gold));
}
.timeline-item-modern { position: relative; margin: 1.5rem 0; }
.timeline-dot-modern {
  position: absolute; left: 10px; top: 50%; transform: translate(-50%, -50%) scale(0.5);
  width: 20px; height: 20px; background: var(--soft-gold);
  border: 4px solid var(--ivory); border-radius: 50%;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
  opacity: 0; transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.timeline-dot-modern:hover {
  transform: translate(-50%, -50%) scale(1.2) rotateZ(180deg);
  box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.3), 0 0 30px rgba(212, 175, 55, 0.6);
}
.timeline-modern .luxury-card {
  opacity: 0; transform: translateX(30px) translateY(20px) rotateY(5deg);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); transform-style: preserve-3d;
}
.timeline-modern .luxury-card.visible { transform: translateX(0) translateY(0) rotateY(0deg); opacity: 1; }

.nav-link {
  position: relative; overflow: hidden;
  transition: all 0.3s ease; color: var(--deep-walnut);
}
.nav-link:hover {
  color: var(--soft-gold) !important;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  transform: translateY(-1px);
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: -100%; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--soft-gold), var(--ivory));
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover::after { left: 0; }

.footer-link {
  position: relative; overflow: hidden; display: inline-block;
  transition: all 0.3s ease; color: var(--ivory);
}
.footer-link:hover { color: var(--soft-gold); }
.footer-link::after {
  content: ''; position: absolute; bottom: -2px; right: -100%; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--ivory), var(--soft-gold));
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-link:hover::after { right: 0; }

.scroll-popup {
  position: fixed; right: -240px; top: 50%; transform: translateY(-50%);
  z-index: 60; pointer-events: none;
  perspective: 800px;
  transition: right 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.scroll-popup.show { right: 18px; }
.scroll-popup-inner {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, rgba(255, 254, 247, 0.96), rgba(212, 175, 55, 0.15));
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 20px 50px rgba(0,0,0,0.18), 0 12px 24px rgba(212,175,55,0.22), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-radius: 16px; padding: 12px 16px; transform: rotateY(-14deg) rotateX(4deg);
  animation: floatPopup 3.5s ease-in-out infinite;
}
@keyframes floatPopup {
  0%,100% { transform: rotateY(-14deg) rotateX(4deg) translateY(0); }
  50%     { transform: rotateY(-10deg) rotateX(3deg) translateY(-6px); }
}
.scroll-popup-icon {
  width: 28px; height: 28px; display: grid; place-items: center;
  background: var(--soft-gold); color: var(--deep-walnut);
  font-weight: 700; border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.scroll-popup-text {
  font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: .2px;
  color: var(--deep-walnut); text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}
.hidden-on-reveal { opacity: 0; transition: opacity .4s ease; }
.scroll-popup.show.hidden-on-reveal { opacity: 1; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.9rem 1.4rem; border-radius: 0.75rem;
  border: 2px solid var(--ivory); background: transparent; color: var(--ivory);
  font-weight: 700; font-family: 'Inter', sans-serif;
  transition: all 0.35s ease;
}
.btn-outline:hover { background: var(--ivory); color: var(--deep-walnut); transform: translateY(-2px); }

.social-btn {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--soft-gold); color: var(--deep-walnut); font-weight: 800;
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.25);
  transition: transform .25s ease, filter .25s ease;
}
.social-btn:hover { transform: translateY(-3px) scale(1.05); filter: brightness(1.08); }
.social-btn.dark { background: var(--warm-bronze); color: var(--ivory); }

.hero-title { font-size: clamp(1.6rem, 5.8vw, 3.4rem); }
.cta-title { font-size: clamp(1.4rem, 4.8vw, 2.4rem); }

.scroll-anchor { scroll-margin-top: 96px; }

#legacy-hero.silky-highlight::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  top: -12px; width: min(58rem, 92%); height: calc(100% + 24px); border-radius: 24px;
  background: radial-gradient(40% 60% at 50% 0%, rgba(212,175,55,0.35), transparent 70%), linear-gradient(90deg, rgba(212,175,55,0.4), rgba(255,254,247,0.3), rgba(212,175,55,0.4));
  filter: blur(10px); opacity: 0.6; pointer-events: none;
  animation: silkyGlow 1.6s ease-in-out 1, silkyFade 1.4s ease 1.6s forwards;
}
@keyframes silkyGlow { 0% { opacity: 0; transform: translateX(-50%) scale(0.98); } 50% { opacity: 0.7; transform: translateX(-50%) scale(1.02); } 100% { opacity: 0.6; transform: translateX(-50%) scale(1.00); } }
@keyframes silkyFade { to { opacity: 0; } }

.emphasis-gold,
.emphasis-gold-inline {
  position: relative; display: inline-block;
  background: linear-gradient(135deg, var(--soft-gold) 0%, var(--ivory) 50%, var(--soft-gold) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 200% 100%; animation: shimmer 6s linear infinite; letter-spacing: 0.4px;
  text-shadow: 0 3px 12px rgba(212, 175, 55, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25);
  -webkit-text-stroke: 0.6px rgba(139, 69, 19, 0.35);
}
.emphasis-gold::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: -8px;
  width: 68%; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--soft-gold), var(--ivory), var(--soft-gold), transparent);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.45); opacity: 0.95;
}
.emphasis-gold-inline::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: -6px;
  width: 100%; max-width: 18ch; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--soft-gold), var(--ivory), var(--soft-gold), transparent);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.35); opacity: 0.9;
}
@keyframes shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* CORRECTED: Simple header style for sub-pages */
.page-header-standard {
  padding-top: 9rem; /* 144px */
  padding-bottom: 3.5rem; /* 56px */
  background: var(--ivory); /* Simple light background to match page body */
}
/* Sub-heading style for the simple header */
.hero-sub-lead {
  color: var(--warm-bronze);
  font-weight: 500;
  opacity: 0.95;
}

/* ===== ADDED RESPONSIVE HELPERS ===== */
img, picture, video, svg { max-width: 100%; height: auto; display: block; }
.container { max-max-width: 100%; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
/* Make common blocks adapt */
.header, .footer, .content, .main, .page-header-standard { width: 100%; box-sizing: border-box; }
/* Utility */
.hide-on-mobile { display: none; }
.show-on-mobile { display: block; }

/* Media queries for phones and tablets */
@media (max-width: 1024px) {
  /* Tablet */
  .nav-link { font-size: 1rem; }
  .brand-title { font-size: 1.6rem; }
  .page-header-standard { padding-top: 6rem; }
}

@media (max-width: 768px) {
  /* Mobile */
  .hidden-md-up { display: none !important; }
  .nav-link { font-size: 0.95rem; display: inline-block; padding: .35rem .5rem; }
  .brand-title { font-size: 1.4rem; }
  .hero-text { font-size: 1rem; line-height: 1.3; }
  .page-header-standard { padding-top: 5rem; padding-bottom: 2rem; }
}

@media (max-width: 480px) {
  .brand-title { font-size: 1.2rem; }
  .nav-link { font-size: 0.95rem; }
  .hero-text { font-size: 0.95rem; }
}
/* ===== END ADDED RESPONSIVE HELPERS ===== */


/* MOBILE MENU ANIMATION */
#mobile-menu { transition: transform .28s cubic-bezier(.2,.9,.2,1), opacity .28s ease; transform-origin: top right; }
#mobile-menu.hidden { transform: translateY(-8px) scale(.98); opacity: 0; pointer-events: none; }
#mobile-menu:not(.hidden) { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }

/* Header adjustments */
.nav-glass { background: rgba(255,254,247,0.95); backdrop-filter: blur(8px); }
@media (max-width: 768px) {
  .nav-glass .max-w-7xl { padding-left: 0.75rem; padding-right: 0.75rem; }
  .nav-glass .brand-title { font-size: 1.25rem; }
  .nav-glass .brand-tagline { display: none; }
  nav .max-w-7xl { padding-top: .6rem; padding-bottom: .6rem; }
}
