/* ============================================================
   DARALLAX — Global Design System
   Ultra-premium dark aesthetic, gold-touched orange accents
   ============================================================ */

:root {
    --gold-primary:   #d4a843;
    --gold-light:     #e8c876;
    --gold-dim:       #a07830;
    --ember:          #f97316;
    --ember-dim:      #c2540a;
    --obsidian:       #080808;
    --surface:        #0f0f0f;
    --surface-raised: #161616;
    --border:         rgba(255,255,255,0.06);
    --border-gold:    rgba(212,168,67,0.25);
    --text-primary:   #f5f0e8;
    --text-secondary: #a09080;
    --text-muted:     #504540;
    --radius-card:    1.25rem;
    --radius-btn:     0.75rem;
}

/* ---- Reset / Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--obsidian);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---- Typography ---- */
.font-serif   { font-family: 'Cormorant Garamond', Georgia, serif; }
.font-display { font-family: 'Space Grotesk', system-ui, sans-serif; }

.heading-xl {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.heading-display {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.gold-text {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--ember) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gold-text-static { color: var(--gold-primary); }

/* ---- Buttons ---- */
.btn-gold {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--ember-dim) 100%);
    color: #0a0600;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.01em;
    border-radius: var(--radius-btn);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.btn-gold::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.btn-gold:hover::before { opacity: 1; }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(212,168,67,0.25); }
.btn-gold > * { position: relative; z-index: 1; }
.btn-gold span, .btn-gold svg { position: relative; z-index: 1; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    border-radius: var(--radius-btn);
    border: 1px solid var(--border-gold);
    transition: all 0.3s ease;
}
.btn-outline:hover {
    background: rgba(212,168,67,0.08);
    border-color: var(--gold-primary);
    transform: translateY(-1px);
}

/* ---- Header ---- */
#site-header { background: transparent; }
.header-inner { transition: all 0.5s ease; }
.header-scrolled .header-inner {
    background: rgba(8,8,8,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding-top: 0;
    padding-bottom: 0;
}

.nav-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    transition: color 0.2s ease;
    position: relative;
}
.nav-link:hover { color: rgba(255,255,255,0.95); }

/* ---- Dropdown ---- */
.dropdown-panel {
    background: rgba(14,14,14,0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
}
.dropdown-item:hover { background: rgba(255,255,255,0.03); }

/* ---- Mobile menu ---- */
.mobile-menu-panel {
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* ---- Cards ---- */
.card-luxury {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}
.card-luxury::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.card-luxury:hover::before { opacity: 1; }
.card-luxury:hover {
    border-color: rgba(212,168,67,0.15);
    transform: translateY(-2px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(212,168,67,0.08);
}

/* ---- Section label ---- */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-primary);
}
.section-eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--gold-primary);
}

/* ---- Divider line ---- */
.gold-rule {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-gold) 40%, var(--border-gold) 60%, transparent);
}

/* ---- Ambient orbs ---- */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite;
}
.orb-gold  { background: radial-gradient(circle, rgba(212,168,67,0.12) 0%, transparent 70%); }
.orb-ember { background: radial-gradient(circle, rgba(249,115,22,0.10) 0%, transparent 70%); }

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.08); }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-18px); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---- Scroll-triggered reveal ---- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.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; }

/* ---- Noise texture overlay ---- */
.noise::after {
    content: '';
    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.03'/%3E%3C/svg%3E");
    opacity: 0.035;
    pointer-events: none;
}

/* ---- Cinematic line decoration ---- */
.cinema-line {
    position: absolute;
    background: linear-gradient(180deg, var(--gold-primary) 0%, transparent 100%);
    width: 1px;
    opacity: 0.2;
}

/* ---- Stats number ---- */
.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Service icon ring ---- */
.icon-ring {
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    background: rgba(212,168,67,0.06);
    border: 1px solid rgba(212,168,67,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.card-luxury:hover .icon-ring {
    background: rgba(212,168,67,0.1);
    border-color: rgba(212,168,67,0.3);
}

/* ---- Portfolio card ---- */
.portfolio-card { overflow: hidden; border-radius: var(--radius-card); position: relative; }
.portfolio-card img { transition: transform 0.6s ease; }
.portfolio-card:hover img { transform: scale(1.05); }
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8,8,8,0.9) 0%, rgba(8,8,8,0.2) 60%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }

/* ---- Input fields ---- */
.input-luxury {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    padding: 0.875rem 1rem;
    width: 100%;
    transition: border-color 0.2s ease, background 0.2s ease;
    outline: none;
}
.input-luxury::placeholder { color: var(--text-muted); }
.input-luxury:focus {
    border-color: var(--gold-primary);
    background: rgba(212,168,67,0.03);
}

/* ---- Footer ---- */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
}
.footer-link:hover { color: var(--text-primary); }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--obsidian); }
::-webkit-scrollbar-thumb { background: var(--border-gold); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* ---- Page hero padding ---- */
.page-hero { padding-top: 8rem; padding-bottom: 5rem; }

/* ---- Selection ---- */
::selection { background: rgba(212,168,67,0.2); color: var(--text-primary); }
