/* ===================================================================
   WITEX 2027 — shared design system
   New palette: deep amethyst / orchid violet + warm gold accent.
   Loaded by every page alongside the Tailwind CDN script + inline
   tailwind.config (which points brand.*/gold.* at these same hexes).
   =================================================================== */

:root {
    --brand-dark: #140128;
    --brand-purple: #5B0E96;
    --brand-light: #7B2CBF;
    --brand-mist: #F6EEFB;
    --gold-400: #E8C25A;
    --gold-500: #D1A53D;
    --gold-600: #A67B21;
    --rose-500: #E85D9E;
}

/* ---------- Base feel ---------- */
html { scroll-behavior: smooth; }
body { background-color: var(--brand-dark); }

/* ---------- Scroll progress bar ---------- */
#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    z-index: 60;
    background: linear-gradient(to right, var(--gold-600), var(--gold-400), #F7EF8A);
    box-shadow: 0 0 10px rgba(232, 194, 90, 0.6);
    transition: width 80ms linear;
}

/* ---------- Nav scroll state ---------- */
.site-nav {
    background: transparent;
    border-bottom-color: transparent;
    transition: background-color 400ms ease, backdrop-filter 400ms ease, border-color 400ms ease, box-shadow 400ms ease, padding 300ms ease;
}
.site-nav.nav-scrolled {
    background-color: rgba(20, 1, 40, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}
.site-nav .nav-logo-img { transition: height 300ms ease; }
.site-nav.nav-scrolled .nav-logo-img { height: 2.75rem; }

/* ---------- Gradient text ---------- */
.text-gold-gradient {
    color: #F0CD75;
    text-shadow: 0 2px 20px rgba(0,0,0,0.45);
}
.text-violet-gradient {
    color: var(--rose-500);
    text-shadow: 0 2px 20px rgba(0,0,0,0.45);
}

/* ---------- Glass card v2 ---------- */
.glass-card {
    background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 30px -10px rgba(0,0,0,0.4);
}

/* ---------- Mesh / aurora hero backgrounds (no stock photo needed) ---------- */
.mesh-bg {
    position: relative;
    background-color: var(--brand-dark);
    background-image:
        radial-gradient(circle at 15% 20%, rgba(123, 44, 191, 0.55), transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(232, 194, 90, 0.25), transparent 40%),
        radial-gradient(circle at 75% 80%, rgba(232, 93, 158, 0.3), transparent 45%),
        radial-gradient(circle at 20% 85%, rgba(91, 14, 150, 0.6), transparent 50%),
        linear-gradient(to bottom, #1c0536, #140128 60%);
}
.mesh-bg-soft {
    background-image:
        radial-gradient(circle at 10% 10%, rgba(123, 44, 191, 0.35), transparent 45%),
        radial-gradient(circle at 90% 90%, rgba(232, 194, 90, 0.18), transparent 45%),
        linear-gradient(to bottom, #1c0536, #140128);
}

/* floating blurred orbs used inside mesh heroes */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    pointer-events: none;
    animation: float-orb 14s ease-in-out infinite;
}
@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -30px) scale(1.08); }
}

/* subtle grain / noise overlay for premium texture */
.grain-overlay {
    position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.4;
}

/* ---------- Section wave / diagonal dividers ---------- */
.divider-wave {
    position: absolute; left: 0; width: 100%; height: 70px;
    line-height: 0; pointer-events: none;
}
.divider-wave svg { width: 100%; height: 100%; display: block; }
.divider-top { top: -1px; transform: translateY(-1px); }
.divider-bottom { bottom: -1px; transform: translateY(1px) rotate(180deg); }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms cubic-bezier(.21,.9,.3,1), transform 700ms cubic-bezier(.21,.9,.3,1);
    transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="zoom"] { transform: scale(0.92); }
[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    .orb { animation: none; }
}

/* ---------- Buttons ---------- */
.btn-gold {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    color: var(--brand-dark);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .8rem;
    padding: 1rem 2rem;
    box-shadow: 0 10px 30px -8px rgba(232, 194, 90, 0.5);
    transition: transform 250ms ease, box-shadow 250ms ease, filter 250ms ease;
    text-decoration: none;
}
.btn-gold:hover { transform: translateY(-3px); filter: brightness(1.05); box-shadow: 0 16px 36px -8px rgba(232, 194, 90, 0.65); }
.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem;
    padding: 1rem 2rem; backdrop-filter: blur(6px);
    transition: background-color 250ms ease, transform 250ms ease;
    text-decoration: none;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }

/* ---------- Hover-lift card ---------- */
.lift-card { transition: transform 350ms cubic-bezier(.21,.9,.3,1), border-color 350ms ease, box-shadow 350ms ease; }
.lift-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -16px rgba(0,0,0,0.5); }

/* ---------- Marquee partner strip ---------- */
.marquee-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: marquee 28s linear infinite;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- Animated gradient ring behind logos ---------- */
.logo-ring {
    position: relative;
    display: inline-flex;
    padding: 1.75rem;
    border-radius: 9999px;
}
.logo-ring::before {
    content: "";
    position: absolute; inset: 0; border-radius: 9999px;
    background: conic-gradient(from 0deg, var(--brand-light), var(--gold-400), var(--rose-500), var(--brand-light));
    opacity: 0.35;
    filter: blur(14px);
    animation: spin-slow 10s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* ---------- Counter number tick ---------- */
.counter { font-variant-numeric: tabular-nums; }

/* ===================== Photography ===================== */

/* Full-bleed photo hero: <header class="photo-hero"> <img class="photo-hero__img"> <div class="photo-hero__overlay"> */
.photo-hero { position: relative; overflow: hidden; background-color: var(--brand-dark); }
.photo-hero__img,
.hero-slide {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover;
    animation: ken-burns 24s ease-in-out infinite alternate;
}
.photo-hero__overlay {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        radial-gradient(circle at 12% 18%, rgba(123, 44, 191, 0.55), transparent 50%),
        radial-gradient(circle at 88% 85%, rgba(232, 93, 158, 0.28), transparent 50%),
        linear-gradient(180deg, rgba(20, 1, 40, 0.72) 0%, rgba(20, 1, 40, 0.78) 50%, rgba(20, 1, 40, 0.97) 100%);
}
@keyframes ken-burns {
    from { transform: scale(1.04); }
    to   { transform: scale(1.15) translate(-1.5%, -1%); }
}
.hero-slide { opacity: 0; transition: opacity 1800ms ease; }
.hero-slide.is-active { opacity: 1; }

/* Framed photo with hover zoom */
.photo-frame {
    position: relative; overflow: hidden; border-radius: 1rem;
    box-shadow: 0 30px 60px -28px rgba(20, 1, 40, 0.65);
    background: #1c0536;
}
.photo-frame img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 900ms cubic-bezier(.21,.9,.3,1);
}
.photo-frame:hover img { transform: scale(1.06); }

/* Card whose background is a photo; content sits on a dark gradient */
.photo-card { position: relative; overflow: hidden; isolation: isolate; }
.photo-card > img.photo-card__img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: -2;
    transition: transform 900ms cubic-bezier(.21,.9,.3,1);
}
.photo-card::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(20,1,40,0.10) 0%, rgba(20,1,40,0.55) 45%, rgba(20,1,40,0.96) 100%);
    transition: background 400ms ease;
}
.photo-card:hover > img.photo-card__img { transform: scale(1.07); }

/* Two-row scrolling photo strip */
.photo-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.photo-marquee .marquee-track { gap: 1.25rem; animation-duration: 70s; }
.photo-marquee .marquee-track.is-reverse { animation-direction: reverse; animation-duration: 80s; }
.photo-marquee:hover .marquee-track { animation-play-state: paused; }
.photo-marquee figure {
    flex: 0 0 auto; width: 300px; height: 200px; margin: 0;
    border-radius: 1rem; overflow: hidden; cursor: zoom-in;
}
@media (min-width: 768px) { .photo-marquee figure { width: 380px; height: 250px; } }
.photo-marquee img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms ease, filter 700ms ease; filter: saturate(.9); }
.photo-marquee figure:hover img { transform: scale(1.08); filter: saturate(1.1); }

/* Editorial gallery grid */
.gallery {
    display: grid; gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 170px;
}
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 230px; } }
.gallery > figure { margin: 0; cursor: zoom-in; }
.gallery .g-wide { grid-column: span 2; }
.gallery .g-tall { grid-row: span 2; }
.gallery .g-big  { grid-column: span 2; grid-row: span 2; }

/* Fixed-background photo band (falls back to scroll on touch devices) */
.parallax-band { background-size: cover; background-position: center; background-attachment: fixed; }
@media (hover: none) { .parallax-band { background-attachment: scroll; } }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 100;
    display: flex; align-items: center; justify-content: center; padding: 4rem 1rem;
    background: rgba(10, 0, 22, 0.94); backdrop-filter: blur(8px);
    opacity: 0; pointer-events: none; transition: opacity 300ms ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: .75rem; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); }
.lightbox button {
    position: absolute; color: #fff; background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2); border-radius: 9999px;
    width: 3rem; height: 3rem; font-size: 1.5rem; line-height: 1;
    display: flex; align-items: center; justify-content: center; transition: background 200ms;
}
.lightbox button:hover { background: rgba(232, 194, 90, 0.3); }
.lightbox .lb-close { top: 1.25rem; right: 1.25rem; }
.lightbox .lb-prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1.25rem; top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) {
    .photo-hero__img, .hero-slide, .marquee-track { animation: none; }
}

/* ---------- Purple sections (replace former white / mist sections) ---------- */
.sec-purple {
    position: relative;
    color: #fff;
    background:
        radial-gradient(circle at 8% 40%, rgba(168, 85, 247, 0.28), transparent 38%),
        radial-gradient(circle at 94% 62%, rgba(232, 194, 90, 0.10), transparent 36%),
        linear-gradient(180deg, #3a0a66 0%, #2e0856 100%);
}
.sec-purple .text-brand-purple,
.sec-purple .text-brand-dark { color: #fff; }
.sec-purple .text-gray-700,
.sec-purple .text-gray-600 { color: rgba(237, 228, 250, 0.88); }
.sec-purple .text-gray-500 { color: rgba(221, 205, 245, 0.72); }
.sec-purple .text-gold-600 { color: #E8C25A; }
.sec-purple .border-brand-purple { border-color: #E8C25A; }
.sec-purple .border-gray-200 { border-color: rgba(255, 255, 255, 0.16); }
.sec-purple .bg-white {
    background: linear-gradient(160deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
    border-color: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
}
.sec-purple .bg-white.border-gold-400,
.sec-purple .bg-white[class*="border-t-4"],
.sec-purple .bg-white[class*="border-l-4"] { border-color: rgba(232, 194, 90, 0.9); }
.sec-purple a:not([class*="bg-"]):hover { color: #E8C25A; }
