/* ============================================================
   LUMINA STUDIO — Global Stylesheet
   Palette: Obsidian + Ivory + Gold + Deep Emerald
   Fonts: Cormorant Garamond (display) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=DM+Sans:wght@300;400;500;600&family=Bebas+Neue&display=swap');

/* ── CSS Custom Propertiesss ── */
:root {
  --obsidian:   #0a0a0a;
  --charcoal:   #141414;
  --graphite:   #1e1e1e;
  --smoke:      #2a2a2a;
  --ivory:      #f5f0e8;
  --cream:      #faf7f2;
  --white:      #ffffff;
  --gold:       #c9a84c;
  --gold-light: #e2c97e;
  --gold-dark:  #9a7a2e;
  --emerald:    #1a3a2a;
  --muted:      #888880;
  --border:     rgba(201,168,76,0.18);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --font-accent:  'Bebas Neue', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);
  --transition:    0.4s var(--ease-out-expo);

  --nav-h: 80px;
  --section-pad: clamp(70px, 10vw, 20px);
  --container: 1200px;
  --container-wide: 1400px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--obsidian);
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: none; font-family: inherit; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ── Custom Cursor ── */
#cursor-dot,
#cursor-circle {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
  border-radius: 50%;
  will-change: left, top;
  /* Both hidden until first mousemove */
  opacity: 0;
}
#cursor-dot {
  width: 8px;
  height: 8px;
  /* Centre: shift left/up by half own size */
  margin-left: -4px;
  margin-top:  -4px;
  background: var(--gold);
  /* No transition on dot — must snap instantly */
}
#cursor-circle {
  width: 38px;
  height: 38px;
  margin-left: -19px;
  margin-top:  -19px;
  border: 1.5px solid var(--gold);
  background: transparent;
  transition: width  0.35s var(--ease-out-expo),
              height 0.35s var(--ease-out-expo),
              margin 0.35s var(--ease-out-expo),
              border-color 0.3s,
              background  0.3s,
              opacity     0.3s;
}
/* hover state — bigger ring */
#cursor-circle.hover {
  width:  62px;
  height: 62px;
  margin-left: -31px;
  margin-top:  -31px;
  border-color: var(--gold-light);
  background: rgba(201,168,76,0.07);
  opacity: 1 !important;
}
/* click state — shrink */
#cursor-circle.clicking {
  width:  26px;
  height: 26px;
  margin-left: -13px;
  margin-top:  -13px;
  opacity: 1 !important;
}

/* ── Page Transition Overlay ── */
#page-transition {
  position: fixed;
  inset: 0;
  background: var(--obsidian);
  z-index: 9998;
  pointer-events: none;
  transform: scaleY(0);
  transform-origin: bottom;
}
#page-transition.entering {
  transform: scaleY(1);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease-in-out);
}
#page-transition.leaving {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease-in-out);
}

/* ── Scroll Progress Bar ── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  z-index: 9997;
  width: 0%;
  transition: width 0.1s linear;
}

/* ── Container ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}
.container--wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}

/* ── Navigation ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background 0.5s, backdrop-filter 0.5s, border-color 0.5s;
  border-bottom: 1px solid transparent;


  background:rgba(0,0,0,0.8); /* semi-transparent so blur is visible */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px); /* Safari support */


}
#navbar.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ivory);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo span { color: var(--gold); }
.nav-logo .logo-mark {
  width: 36px; height: 36px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo .logo-mark svg { width: 18px; height: 18px; fill: var(--gold); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-item { position: relative; }
.nav-link {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.75);
  transition: color var(--transition);
  padding: 4px 0;
  display: block;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-link:hover,
.nav-link.active { color: var(--ivory); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Services Dropdown */
.nav-item.has-dropdown { position: relative; }
/* Invisible bridge fills the gap between link and dropdown so hover isn't lost */
.nav-item.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%; left: -20px; right: -20px;
  height: 16px;
  background: transparent;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  background: rgba(14,14,14,0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease-out-expo), visibility 0.25s;
}
.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown {
  opacity: 1; visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-link {
  display: block;
  padding: 10px 20px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.7);
  transition: color 0.2s, background 0.2s, padding 0.2s;
}
.dropdown-link:hover {
  color: var(--gold);
  background: rgba(201,168,76,0.06);
  padding-left: 28px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background var(--transition), color var(--transition), transform 0.2s;
  flex-shrink: 0;
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--obsidian);
  transform: translateY(-1px);
}
.nav-cta svg { width: 14px; height: 14px; transition: transform 0.3s; }
.nav-cta:hover svg { transform: translateX(3px); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--ivory);
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all var(--transition);
  padding: 14px 32px;
}
.btn-gold {
  background: var(--gold-dark);
  color: var(--obsidian);
  border: 1px solid var(--gold);
}
.btn-gold:hover {
  color: var(--ivory);
  background: var(--obsidian);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201,168,76,0.25);
}
.btn-outline {
  background: transparent;
  color: var(--ivory);
  border: 1px solid rgba(245,240,232,0.35);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 12px 28px;
}
.btn-ghost:hover {
  background: var(--gold);
  color: var(--obsidian);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.3s; }
.btn:hover svg { transform: translateX(4px); }

/* ── Section Labels ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.section-label::before {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ivory);
  letter-spacing: -0.01em;
}
.section-title em { font-style: italic; color: var(--gold); }

.section-body {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(245,240,232,0.65);
  max-width: 520px;
}

/* ── Gold Divider ── */
.gold-divider {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 20px 0;
}

/* ── Decorative Number ── */
.deco-number {
  font-family: var(--font-accent);
  font-size: 8rem;
  color: rgba(201,168,76,0.06);
  position: absolute;
  top: -20px; left: -10px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* ── Animated Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ── Footer ── */
#footer {
  background: var(--charcoal);
  border-top: 1px solid var(--border);
  padding: 80px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
}
.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 16px;
}
.footer-brand .footer-logo span { color: var(--gold); }
.footer-desc {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 280px;
  margin-bottom: 28px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: all 0.3s;
}
.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
}
.footer-social svg { width: 16px; height: 16px; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.25s, padding 0.25s;
  display: flex; align-items: center; gap: 8px;
}
.footer-links a::before {
  content: '→';
  font-size: 0.75rem;
  color: var(--gold-dark);
  opacity: 0;
  transition: opacity 0.25s;
}
.footer-links a:hover { color: var(--ivory); padding-left: 6px; }
.footer-links a:hover::before { opacity: 1; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(136,136,128,0.6);
}

/* ── Image containers — Unsplash CDN photos ── */
.img-placeholder {
  position: relative;
  overflow: hidden;
  background: var(--graphite);
}
.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
/* Subtle dark cinematic tint overlay on all real photos */
.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.18);
  z-index: 1;
  pointer-events: none;
}
/* Lift on hover — parent must have overflow:hidden */
.img-tilt:hover img,
.service-card:hover .img-placeholder img,
.split-img:hover img,
.team-card:hover .img-placeholder img {
  transform: scale(1.05);
}

/* ── Noise texture overlay ── */
.noise-overlay {
  position: absolute;
  inset: 0;
  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)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
  z-index: 1;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .nav-menu { gap: 24px; }
}
@media (max-width: 768px) {
  :root { --nav-h: 68px; }
  .nav-menu {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out-expo);
    z-index: 999;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-link { font-size: 1rem; }
  .nav-dropdown {
    position: static;
    transform: none;
    background: transparent;
    border: none;
    padding: 8px 0;
    opacity: 1; visibility: visible;
    pointer-events: auto;
  }
  .nav-item.has-dropdown:hover .nav-dropdown { transform: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1/-1; }
  #cursor-dot, #cursor-circle { display: none; }
  body { cursor: auto; }
  button { cursor: pointer; }
  a { cursor: pointer; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}