/* ============================================
   KIPPIS — Midnight Champagne Lounge
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --black:      #0a0a0e;
    --charcoal:   #141418;
    --graphite:   #1c1c24;
    --graphite-l: #252530;
    --navy:       #151e5e;
    --navy-deep:  #0c1240;
    --cream:      #e6d5a7;
    --cream-dim:  #b8a87a;
    --white:      #f0f0f5;
    --muted:      rgba(240, 240, 245, 0.7);
    --border:     rgba(255, 255, 255, 0.06);
    --font-h:     'Playfair Display', Georgia, serif;
    --font-body:  'DM Sans', -apple-system, sans-serif;
    --font-mono:  'DM Mono', 'Courier New', monospace;
    --ease:       cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-overflow-scrolling: touch;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   GRAIN
   ============================================ */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    -webkit-transform: translateZ(0);
}

/* Disable grain on touch devices — causes iOS jitter */
@media (hover: none) and (pointer: coarse) {
    .grain { display: none; }
}

/* ============================================
   NAV
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 2rem 5%;
    transition: background 0.4s var(--ease), padding 0.3s var(--ease);
}

.nav.scrolled {
    background: rgba(10, 10, 14, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.2rem 5%;
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: rgba(240, 240, 245, 0.75);
    font-weight: 500;
    transition: color 0.3s var(--ease);
}

.nav-links a:hover {
    color: var(--white);
}

.nav-cta {
    padding: 0.55rem 1.5rem;
    background: var(--cream);
    color: var(--black) !important;
    border-radius: 100px;
    font-weight: 600 !important;
    font-size: 0.78rem !important;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(230, 213, 167, 0.2);
}

/* ============================================
   HERO — Video background
   ============================================ */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--black);
    text-align: center;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    transition: opacity 1.5s ease;
    -webkit-transform: translateZ(0);
}

.hero-video.playing {
    opacity: 1;
}

/* Dark overlay with navy tint on video */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to bottom, rgba(10, 10, 14, 0.4) 0%, rgba(10, 10, 14, 0.2) 40%, rgba(10, 10, 14, 0.6) 100%),
        radial-gradient(ellipse 80% 60% at 50% 50%, rgba(21, 30, 94, 0.3) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    max-width: 680px;
    padding: 0 5%;
}

.hero-logo {
    width: clamp(130px, 22vw, 240px);
    height: auto;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.6));
}

.hero h1 {
    font-family: var(--font-h);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--white);
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.hero-sub {
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    color: rgba(240, 240, 245, 0.7);
    line-height: 1.7;
    max-width: 400px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-note {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    color: rgba(240, 240, 245, 0.7);
    text-transform: uppercase;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll span {
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--cream));
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 0.7; transform: scaleY(1); }
}

/* BUTTON */
.btn {
    display: inline-block;
    padding: 1rem 2.6rem;
    background: var(--cream);
    color: var(--black);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    border: none;
    border-radius: 100px;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(230, 213, 167, 0.25);
}

/* HERO ANIMATIONS */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
}

.hero.loaded .animate-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero.loaded .animate-in:nth-child(1) { transition-delay: 0.1s; }
.hero.loaded .animate-in:nth-child(2) { transition-delay: 0.25s; }
.hero.loaded .animate-in:nth-child(3) { transition-delay: 0.4s; }
.hero.loaded .animate-in:nth-child(4) { transition-delay: 0.55s; }
.hero.loaded .animate-in:nth-child(5) { transition-delay: 0.65s; }

/* ============================================
   SHARED SECTION STYLES
   ============================================ */
.section-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--cream);
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-title {
    font-family: var(--font-h);
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    text-align: center;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    background: var(--navy-deep);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

/* Subtle glow */
.about::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(21, 30, 94, 0.5) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    -webkit-transform: translateZ(0);
}

.about-top {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.about-top .section-title {
    margin-bottom: 1.5rem;
}

.about-lead {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.8;
}

/* Image stack + details side by side */
.about-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* Overlapping image stack */
.about-img-stack {
    position: relative;
    height: 420px;
}

.about-img {
    position: absolute;
    width: 220px;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-img--1 {
    top: 0;
    left: 10%;
    transform: rotate(-6deg);
    z-index: 3;
}

.about-img--2 {
    top: 30px;
    left: 35%;
    transform: rotate(3deg);
    z-index: 2;
}

.about-img--3 {
    top: 60px;
    right: 5%;
    transform: rotate(8deg);
    z-index: 1;
}

.about-img-stack:hover .about-img--1 {
    transform: rotate(-8deg) translateY(-8px);
}
.about-img-stack:hover .about-img--2 {
    transform: rotate(1deg) translateY(-5px);
}
.about-img-stack:hover .about-img--3 {
    transform: rotate(10deg) translateY(-3px);
}

/* Detail rows */
.about-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.about-detail {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.about-detail-num {
    font-family: var(--font-h);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--cream);
    line-height: 1;
    min-width: 70px;
}

.about-detail h3 {
    font-family: var(--font-h);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.about-detail p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ============================================
   ACCOUNT FEATURES
   ============================================ */
.features {
    padding: 8rem 0;
    background: var(--charcoal);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(21, 30, 94, 0.25) 0%, transparent 70%);
    transform: translateX(-50%);
    pointer-events: none;
}

.features-lead {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 4rem;
    text-align: center;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: var(--graphite);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(230, 213, 167, 0.15);
}

.feature-card-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: var(--font-h);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.6;
}

.features-cta {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.features-cta-note {
    font-size: 0.82rem;
    color: var(--cream-dim);
    opacity: 0.7;
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .features { padding: 5rem 0; }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .feature-card {
        padding: 1.5rem;
    }
}

/* ============================================
   CATEGORIES
   ============================================ */
.categories {
    background: var(--black);
    padding: 8rem 0 0;
}

.cat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
}

.cat-item {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.cat-bg {
    position: absolute;
    inset: 0;
}

.cat-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.35);
    transition: filter 0.6s var(--ease), transform 0.6s var(--ease);
}

.cat-item:hover .cat-bg img {
    filter: grayscale(0%) brightness(0.5);
    transform: scale(1.05);
}

.cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    pointer-events: none;
}

.cat-body {
    position: relative;
    z-index: 1;
    padding: 2.5rem;
    width: 100%;
}

.cat-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--cream);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.cat-body h3 {
    font-family: var(--font-h);
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.cat-body p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
    max-width: 280px;
    margin-bottom: 1rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease);
}

.cat-item:hover .cat-body p {
    max-height: 80px;
    opacity: 1;
}

.cat-arrow {
    display: inline-block;
    font-size: 1.4rem;
    color: var(--cream);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.cat-item:hover .cat-arrow {
    opacity: 1;
    transform: translateX(0);
}

.cat-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--cream);
    transition: width 0.5s var(--ease);
    z-index: 2;
}

.cat-item:hover::after {
    width: 100%;
}

/* Scroll reveal */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: none;
}

.cat-item.animate-on-scroll {
    opacity: 0;
    transform: none;
    clip-path: inset(12% 0% 0% 0%);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-item.animate-on-scroll.visible {
    opacity: 1;
    clip-path: inset(0% 0% 0% 0%);
}

/* Seasonal landing category card */
.cat-seasonal {
    border: 2px solid rgba(212, 175, 55, 0.4) !important;
    order: -1;
}

.cat-bg-seasonal {
    position: absolute;
    inset: 0;
}

.cat-bg-seasonal img {
    filter: grayscale(30%) brightness(0.4) sepia(40%);
}

.cat-seasonal:hover .cat-bg-seasonal img {
    filter: grayscale(0%) brightness(0.55) sepia(20%);
    transform: scale(1.05);
}

.cat-overlay-seasonal {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 30%, rgba(212, 175, 55, 0.05) 100%) !important;
}

.cat-seasonal .cat-body h3 {
    background: linear-gradient(135deg, #d4af37, #f0d060, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cat-tag-seasonal {
    background: linear-gradient(135deg, #d4af37, #b8860b) !important;
    color: #0a0800 !important;
}

.cat-seasonal .cat-body p {
    color: rgba(212, 175, 55, 0.6) !important;
}

.cat-seasonal .cat-arrow {
    color: #d4af37 !important;
}

.cat-seasonal::after {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), transparent 50%) !important;
}

.cat-seasonal:hover {
    border-color: rgba(212, 175, 55, 0.7) !important;
    box-shadow: 0 8px 40px rgba(212, 175, 55, 0.2);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--navy);
    padding: 6rem 0 3rem;
}

.footer-cta {
    text-align: center;
    padding-bottom: 5rem;
}

.footer-cta h2 {
    font-family: var(--font-h);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.footer-divider {
    height: 1px;
    background: rgba(240, 240, 245, 0.1);
}

.footer-legal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 3rem 0;
}

.footer-legal-block h3 {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--cream);
    margin-bottom: 1rem;
    font-weight: 500;
}

.footer-legal-block p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--muted);
}

.footer-legal-block a {
    color: var(--white);
    border-bottom: 1px solid rgba(240, 240, 245, 0.2);
    transition: border-color 0.2s var(--ease);
}

.footer-legal-block a:hover {
    border-color: var(--cream);
}

.footer-bottom {
    padding-top: 3rem;
    display: flex;
    justify-content: space-between;
}

.footer-bottom span {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .animate-in, .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
    }
    .hero-video { opacity: 0.35 !important; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .about-showcase {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-img-stack {
        height: auto;
        display: flex;
        gap: 1rem;
        justify-content: center;
    }

    .about-img {
        position: relative;
        width: 33%;
        height: auto;
        aspect-ratio: 3/4;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
    }

    .about-img--1 { transform: rotate(-4deg); }
    .about-img--2 { transform: rotate(2deg); margin-top: 1rem; }
    .about-img--3 { transform: rotate(5deg); }

    .about-img-stack:hover .about-img--1 { transform: rotate(-6deg) translateY(-5px); }
    .about-img-stack:hover .about-img--2 { transform: rotate(0deg) translateY(-3px); margin-top: 1rem; }
    .about-img-stack:hover .about-img--3 { transform: rotate(7deg) translateY(-5px); }

    .cat-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 2px;
    }

    .cat-item {
        aspect-ratio: 16/9;
    }

    .footer-legal {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .nav { padding: 1.2rem 5%; }

    .nav-links a:not(.nav-cta) { display: none; }

    .hero h1 {
        font-size: clamp(2.2rem, 10vw, 3.2rem);
    }

    .about { padding: 5rem 0; }

    .about-top { margin-bottom: 3rem; }

    .about-img { border-radius: 12px; }

    .about-detail-num {
        font-size: 2.2rem;
        min-width: 55px;
    }

    .cat-body {
        padding: 1.5rem;
    }

    .footer-cta h2 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-row { flex-direction: column; }

    .contact-form { padding: 2rem 1.5rem; }
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: 7rem 0;
    background: var(--navy-deep);
}

.contact-lead {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 3rem;
    text-align: center;
    line-height: 1.7;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--graphite);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cream-dim);
}

.form-group input,
.form-group textarea {
    background: var(--graphite-l);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--white);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(240, 240, 245, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--cream-dim);
    box-shadow: 0 0 0 3px rgba(230, 213, 167, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-btn {
    align-self: flex-start;
    margin-top: 0.5rem;
}

.form-btn:disabled {
    opacity: 0.6;
    pointer-events: none;
}

.form-error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: -0.5rem;
}

/* Thank you state */
.contact-thank-you {
    animation: fadeUp 0.6s var(--ease) both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
