/* ============================================================
   THE CHANDELIER RECEPTION HALL — SHARED STYLES
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=DM+Sans:wght@300;400;500&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --black:        #06060a;
  --dark:         #0c0c12;
  --dark-2:       #131320;
  --dark-3:       #1a1a2a;
  --gold:         #c9a96e;
  --gold-light:   #e8d3a0;
  --gold-pale:    #f5edd8;
  --gold-dark:    #8b6a2e;
  --white:        #f8f4ee;
  --text-muted:   #7a7060;
  --border:       rgba(201,169,110,0.18);
  --border-hover: rgba(201,169,110,0.45);
  --glass:        rgba(12,12,18,0.75);
  --glass-light:  rgba(255,255,255,0.04);
  --glow:         0 0 60px rgba(201,169,110,0.15);
  --shadow:       0 24px 80px rgba(0,0,0,0.6);
  --transition:   all 0.4s cubic-bezier(0.25,0.8,0.25,1);
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'DM Sans', sans-serif;
  --nav-h:        80px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-body); cursor: none; }
input, textarea, select { font-family: var(--font-body); }

/* ── Custom Cursor ──────────────────────────────────────────── */
#cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: difference;
}
#cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, width 0.3s, height 0.3s, opacity 0.3s, border-color 0.3s;
  opacity: 0.6;
}
body.cursor-hover #cursor-dot { width: 12px; height: 12px; background: var(--gold-light); }
body.cursor-hover #cursor-ring { width: 56px; height: 56px; opacity: 0.4; }

/* ── Loading Screen ─────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 99990;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.9s cubic-bezier(0.77,0,0.18,1), transform 0.9s cubic-bezier(0.77,0,0.18,1);
}
#loader.hidden { opacity: 0; pointer-events: none; transform: translateY(-8px); }

.loader-chandelier { animation: drop-in 1.1s cubic-bezier(0.34,1.4,0.64,1) 0.2s both; }
@keyframes drop-in {
  from { opacity: 0; transform: translateY(-60px); }
  to   { opacity: 1; transform: translateY(0); }
}
.loader-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  animation: fade-in-up 0.9s ease 0.9s both;
}
.loader-bar {
  width: 180px; height: 1px;
  background: var(--dark-3);
  overflow: hidden;
  animation: fade-in-up 0.9s ease 1s both;
}
.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  animation: load-bar 2s ease 0.3s both;
}
@keyframes load-bar {
  from { width: 0; }
  to   { width: 100%; }
}
.loader-crystal {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: crystal-sparkle var(--dur, 2s) ease var(--delay, 0s) infinite;
}
@keyframes crystal-sparkle {
  0%, 100% { opacity: 0; transform: scale(0.3); }
  50%       { opacity: 0.6; transform: scale(1); }
}

/* ── Navigation ─────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s;
}
#navbar.scrolled {
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 0 var(--border), 0 8px 40px rgba(0,0,0,0.4);
}
.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 52px; width: auto; filter: brightness(0) invert(1); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248,244,238,0.75);
  position: relative;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s cubic-bezier(0.25,0.8,0.25,1);
}
.nav-link:hover, .nav-link.active { color: var(--gold-light); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta {
  padding: 10px 28px;
  border: 1px solid var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.25,0.8,0.25,1);
}
.nav-cta span { position: relative; z-index: 1; }
.nav-cta:hover { color: var(--black); }
.nav-cta:hover::before { transform: translateX(0); }

/* ── Burger Menu ─────────────────────────────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-burger span {
  display: block;
  height: 1px;
  background: var(--gold-light);
  transition: var(--transition);
}
.nav-burger span:nth-child(1) { width: 30px; }
.nav-burger span:nth-child(2) { width: 22px; }
.nav-burger span:nth-child(3) { width: 30px; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 28px; }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 28px; }

/* ── Full-screen Overlay Menu ───────────────────────────────── */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  clip-path: circle(0% at calc(100% - 60px) 40px);
  transition: clip-path 0.7s cubic-bezier(0.77,0,0.18,1);
  pointer-events: none;
}
.nav-overlay.open {
  clip-path: circle(150% at calc(100% - 60px) 40px);
  pointer-events: all;
}
.nav-overlay a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(248,244,238,0.5);
  transition: color 0.3s, transform 0.3s;
  transform: translateY(20px);
  opacity: 0;
  transition: color 0.3s, transform 0.5s, opacity 0.5s;
}
.nav-overlay.open a {
  opacity: 1;
  transform: translateY(0);
}
.nav-overlay.open a:nth-child(1) { transition-delay: 0.15s; }
.nav-overlay.open a:nth-child(2) { transition-delay: 0.2s; }
.nav-overlay.open a:nth-child(3) { transition-delay: 0.25s; }
.nav-overlay.open a:nth-child(4) { transition-delay: 0.3s; }
.nav-overlay.open a:nth-child(5) { transition-delay: 0.35s; }
.nav-overlay.open a:nth-child(6) { transition-delay: 0.4s; }
.nav-overlay a:hover { color: var(--gold); transform: translateX(16px); }
.overlay-divider {
  width: 60px; height: 1px;
  background: var(--border);
  margin: 12px 0;
}
.overlay-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  opacity: 0;
  transition: opacity 0.4s 0.5s;
}
.nav-overlay.open .overlay-contact { opacity: 1; }
.overlay-contact p {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ── Section Commons ─────────────────────────────────────────── */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.container-wide { max-width: 1600px; margin: 0 auto; padding: 0 40px; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  width: 30px; height: 1px;
  background: var(--gold);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.8;
}

/* ── Gold Divider ────────────────────────────────────────────── */
.gold-divider {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 20px 0;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-gold {
  background: var(--gold);
  color: var(--black);
  font-weight: 500;
}
.btn-gold::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-light);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.25,0.8,0.25,1);
}
.btn-gold:hover::after { transform: scaleX(1); transform-origin: left; }
.btn-gold span { position: relative; z-index: 1; }
.btn-outline {
  border: 1px solid var(--border-hover);
  color: var(--gold-light);
}
.btn-outline:hover {
  background: rgba(201,169,110,0.1);
  border-color: var(--gold);
}
.btn i { transition: transform 0.3s; }
.btn:hover i { transform: translateX(4px); }

/* ── Hero Base ───────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.1s linear;
  will-change: transform;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6,6,10,0.85) 0%,
    rgba(6,6,10,0.5) 50%,
    rgba(6,6,10,0.7) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-scroll span {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-pulse 2s ease infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.6); opacity: 0.4; }
}

/* ── 3D Card ─────────────────────────────────────────────────── */
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.25,0.8,0.25,1), box-shadow 0.4s;
  will-change: transform;
}
.card-3d:hover {
  box-shadow: var(--shadow), var(--glow);
}

/* ── Reveal Animations ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25,0.8,0.25,1), transform 0.8s cubic-bezier(0.25,0.8,0.25,1);
}
.reveal.revealed {
  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-left { transform: translateX(-40px); }
.reveal-left.revealed { transform: translateX(0); }
.reveal-right { transform: translateX(40px); }
.reveal-right.revealed { transform: translateX(0); }

/* ── Image Hover Overlay ─────────────────────────────────────── */
.img-hover {
  position: relative;
  overflow: hidden;
}
.img-hover img {
  transition: transform 0.7s cubic-bezier(0.25,0.8,0.25,1);
  width: 100%; height: 100%; object-fit: cover;
}
.img-hover:hover img { transform: scale(1.08); }
.img-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,6,10,0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}
.img-hover:hover .img-hover-overlay { opacity: 1; }

/* ── Page Header ─────────────────────────────────────────────── */
.page-header {
  height: 50vh;
  min-height: 360px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.page-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
}
.page-header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding-top: var(--nav-h);
}
.page-header-content .section-label { justify-content: center; }

/* ── Stats Bar ───────────────────────────────────────────────── */
.stats-bar {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  padding: 16px 32px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--gold);
  line-height: 1;
  font-weight: 600;
}
.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ── Form ────────────────────────────────────────────────────── */
.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.form-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--dark-2);
  border: 1px solid var(--border);
  color: var(--white);
  font-size: 0.9rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  appearance: none;
}
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.1);
}
.form-input::placeholder { color: var(--text-muted); }
textarea.form-input { resize: vertical; min-height: 140px; }
select.form-input { cursor: none; }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 70px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand-logo {
  height: 52px; width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin-bottom: 20px;
}
.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 300px;
}
.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}
.social-icon {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: var(--transition);
}
.social-icon:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,169,110,0.08);
  transform: translateY(-3px);
}
.footer-heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.3s, padding-left 0.3s;
}
.footer-links a:hover { color: var(--gold-light); padding-left: 6px; }
.footer-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-info-item i {
  color: var(--gold);
  font-size: 0.85rem;
  margin-top: 4px;
  flex-shrink: 0;
}
.footer-info-item span {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ── Page Transition ─────────────────────────────────────────── */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 9998;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.77,0,0.18,1);
}
.page-transition.entering { transform: translateY(0); }
.page-transition.leaving  { transform: translateY(-100%); }

/* ── Grain Overlay ───────────────────────────────────────────── */
.grain-overlay {
  position: fixed;
  inset: -200%;
  width: 400%; height: 400%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 10000;
  animation: grain-move 8s steps(10) infinite;
}
@keyframes grain-move {
  0%  { transform: translate(0,0); }
  10% { transform: translate(-2%,-3%); }
  20% { transform: translate(3%,2%); }
  30% { transform: translate(-1%,3%); }
  40% { transform: translate(2%,-1%); }
  50% { transform: translate(-3%,1%); }
  60% { transform: translate(1%,2%); }
  70% { transform: translate(-2%,-2%); }
  80% { transform: translate(3%,3%); }
  90% { transform: translate(-1%,-1%); }
  100%{ transform: translate(0,0); }
}

/* ── Gold Lines Decoration ───────────────────────────────────── */
.deco-line {
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  position: absolute;
  opacity: 0.3;
}

/* ── Animations Fade In ──────────────────────────────────────── */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
}
@media (max-width: 768px) {
  :root { --nav-h: 68px; }
  .nav-links    { display: none; }
  .nav-burger   { display: flex; }
  .container, .container-wide { padding: 0 24px; }
  .section      { padding: 70px 0; }
  .footer-grid  { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero         { height: 95vh; }
  body { cursor: auto; }
  #cursor-dot, #cursor-ring { display: none; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .btn        { padding: 12px 28px; }
}
