/* ============================================================
   LG ON TRANDZ — premium mobile designer card
   The Wedding Atelier · deep burgundy + antique gold + champagne

   Structure mirrors the other Cardddle designer cards
   (aghor-businesses / rudray-jewels):
     FashionBackground · CardShell · HeroImage · FloatingLogo
     BrandIdentity · CategoryStrip · BrandDescription · CTAs
     AmbientParticles
   ============================================================ */

/* --- Design tokens ---------------------------------------- */
:root {
    /* Palette */
    --burgundy:      #3A0716;
    --wine:          #5A1025;
    --plum:          #260711;
    --plum-deep:     #1B040C;
    --gold:          #C9A45C;
    --gold-bright:   #E0BE7A;
    --champagne:     #E8D19A;
    --ivory:         #F7EEDC;

    /* Text on the card surface */
    --text-primary:  #F7EEDC;
    --text-muted:    rgba(247, 238, 220, 0.78);

    /* Material */
    --card-surface:  rgba(48, 8, 22, 0.82);
    --hairline:      rgba(201, 164, 92, 0.34);
    --hairline-soft: rgba(201, 164, 92, 0.18);

    /* Motion */
    --ease-emph:     cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out:      cubic-bezier(0.33, 1, 0.68, 1);
}

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

html {
    overflow-x: hidden;                 /* never allow sideways drift */
    -webkit-text-size-adjust: 100%;
    background: var(--plum);            /* canvas colour lives on <html> */
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    /* Must stay transparent — the .bg-* layers are position:fixed with a
       negative z-index, so they join the root stacking context and would
       be hidden behind an opaque body background. */
    background: transparent;
    font-family: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   FashionBackground
   ============================================================ */
.bg-fill,
.bg-textile,
.bg-sheen,
.bg-vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.bg-fill {
    z-index: -5;
    background: var(--plum);
}

/* Blurred couture textile — the only large image in the backdrop */
.bg-textile {
    z-index: -4;
    background-image: url('/lg-on-trandz/bg.webp');
    background-size: cover;
    background-position: center;
    /* Blur is baked as a static filter on a *non-animating* layer;
       the slow drift happens on transform only, which stays cheap. */
    filter: blur(13px) saturate(1.3) brightness(1.12) contrast(1.05);
    opacity: 1;
    transform: scale(1.18);
    animation: textileDrift 48s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes textileDrift {
    from { transform: scale(1.18) translate3d(-1.4%, -1%, 0); }
    to   { transform: scale(1.24) translate3d(1.4%,  1.2%, 0); }
}

/* Very slow warm light sweep */
.bg-sheen {
    z-index: -3;
    background: linear-gradient(115deg,
        transparent 30%,
        rgba(232, 209, 154, 0.10) 47%,
        rgba(232, 209, 154, 0.03) 56%,
        transparent 70%);
    animation: sheenSweep 26s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes sheenSweep {
    0%, 100% { transform: translate3d(-38%, 0, 0); opacity: 0; }
    45%      { opacity: 1; }
    50%      { transform: translate3d(38%, 0, 0);  opacity: 0.9; }
    55%      { opacity: 0.5; }
}

.bg-vignette {
    z-index: -2;
    background: radial-gradient(86% 68% at 50% 42%,
        transparent 46%,
        rgba(14, 2, 7, 0.40) 84%,
        rgba(10, 1, 5, 0.68) 100%);
}

/* AmbientParticles — 10 warm motes, CSS only */
.bg-dust {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.bg-dust span {
    position: absolute;
    display: block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--champagne);
    opacity: 0;
    box-shadow: 0 0 6px 1px rgba(232, 209, 154, 0.55);
    animation: moteRise linear infinite;
    will-change: transform, opacity;
}

.bg-dust span:nth-child(1)  { left:  8%; animation-duration: 22s; animation-delay:  0s;   }
.bg-dust span:nth-child(2)  { left: 19%; animation-duration: 28s; animation-delay: -6s;  width: 2px; height: 2px; }
.bg-dust span:nth-child(3)  { left: 31%; animation-duration: 25s; animation-delay: -13s; }
.bg-dust span:nth-child(4)  { left: 43%; animation-duration: 31s; animation-delay: -3s;  width: 2px; height: 2px; }
.bg-dust span:nth-child(5)  { left: 55%; animation-duration: 24s; animation-delay: -18s; }
.bg-dust span:nth-child(6)  { left: 65%; animation-duration: 29s; animation-delay: -9s;  width: 4px; height: 4px; }
.bg-dust span:nth-child(7)  { left: 74%; animation-duration: 26s; animation-delay: -22s; width: 2px; height: 2px; }
.bg-dust span:nth-child(8)  { left: 83%; animation-duration: 33s; animation-delay: -15s; }
.bg-dust span:nth-child(9)  { left: 91%; animation-duration: 27s; animation-delay: -1s;  width: 2px; height: 2px; }
.bg-dust span:nth-child(10) { left: 97%; animation-duration: 30s; animation-delay: -11s; }

@keyframes moteRise {
    0%   { transform: translate3d(0, 104vh, 0) scale(0.7); opacity: 0; }
    12%  { opacity: 0.55; }
    82%  { opacity: 0.42; }
    100% { transform: translate3d(14px, -6vh, 0) scale(1); opacity: 0; }
}

/* ============================================================
   CardShell
   ============================================================ */
.card-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
}

.card {
    position: relative;
    width: 100%;
    max-width: 348px;
    padding: 0 0 22px;
    border-radius: 28px;
    background:
        linear-gradient(178deg,
            rgba(74, 12, 29, 0.90) 0%,
            rgba(48, 8, 22, 0.94) 46%,
            rgba(33, 5, 15, 0.96) 100%);
    border: 1px solid var(--hairline);
    box-shadow:
        0 1px 0 rgba(232, 209, 154, 0.14) inset,        /* top inner highlight */
        0 0 0 1px rgba(0, 0, 0, 0.35),
        0 18px 40px -12px rgba(0, 0, 0, 0.62),
        0 46px 80px -30px rgba(0, 0, 0, 0.75);
    overflow: hidden;
    isolation: isolate;
    animation: cardIn 0.9s var(--ease-emph) 0.05s both;
    visibility: visible !important;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(22px) scale(0.975); }
    to   { opacity: 1; transform: none; }
}

/* Single slow diagonal gloss across the card surface */
.card-sheen {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(118deg,
        transparent 42%,
        rgba(232, 209, 154, 0.07) 50%,
        transparent 58%);
    transform: translate3d(-120%, 0, 0);
    animation: cardSheen 9s ease-in-out 1.8s infinite;
}

@keyframes cardSheen {
    0%        { transform: translate3d(-120%, 0, 0); }
    38%, 100% { transform: translate3d(120%, 0, 0); }
}

/* ============================================================
   HeroImage
   ============================================================ */
.showcase {
    position: relative;
    padding: 0 0 42px;                 /* room for the logo overlap */
}

.showcase-frame {
    position: relative;
    height: 232px;
    overflow: hidden;
    border-radius: 27px 27px 20px 20px;
    background: var(--plum-deep);
}

.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 42%;
    display: block;
    animation: heroSettle 6s var(--ease-out) both;
    will-change: transform;
}

/* 1.04 -> 1 on load, then an almost imperceptible drift ("silk under light") */
@keyframes heroSettle {
    0%   { transform: scale(1.045); }
    55%  { transform: scale(1.004) translate3d(0, -2px, 0); }
    100% { transform: scale(1.012) translate3d(0, 0, 0); }
}

/* Bottom gradient so the logo overlap reads naturally */
.showcase-veil {
    position: absolute;
    inset: auto 0 0 0;
    height: 62%;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(38, 7, 17, 0.34) 46%,
        rgba(38, 7, 17, 0.88) 84%,
        rgba(40, 7, 18, 0.98) 100%);
    pointer-events: none;
}

/* ============================================================
   FloatingLogo
   ============================================================ */
.logo-container {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 92px;
    height: 92px;
    transform: translateX(-50%);
    z-index: 4;
    animation: logoIn 0.85s var(--ease-emph) 0.42s both;
}

@keyframes logoIn {
    from { opacity: 0; transform: translateX(-50%) translateY(14px) scale(0.9); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* Inner wrapper carries the idle float so it can't fight the entrance */
.logo-ring,
.logo {
    animation: logoFloat 5s ease-in-out 1.4s infinite;
    will-change: transform;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}

.logo-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--plum);
    border: 1.5px solid rgba(232, 209, 154, 0.62);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.45),
        0 8px 20px -6px rgba(0, 0, 0, 0.72),
        0 0 18px -4px rgba(201, 164, 92, 0.34);
}

.logo {
    position: absolute;
    inset: 3px;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* ============================================================
   BrandIdentity
   ============================================================ */
.brand-name {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.2em;
    margin: 0 18px 11px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.04;
    text-align: center;
    color: var(--champagne);
    background: linear-gradient(176deg, #F6E8C6 0%, #E8D19A 44%, #C29A50 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: riseIn 0.8s var(--ease-emph) 0.5s both;
}

/* "LG" carries the weight, "ON TRANDZ" sits back — mirrors the logo lockup */
.brand-name .bn-mark {
    font-size: 34px;
    letter-spacing: 0.03em;
}

.brand-name .bn-rest {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

@keyframes riseIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}

/* Ornament divider — delicate paisley-inspired flourish */
.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 0 auto 12px;
    width: 172px;
    color: var(--gold);
    animation: riseIn 0.8s var(--ease-emph) 0.58s both;
}

.ornament-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 164, 92, 0.62));
}

.ornament-line:last-child {
    background: linear-gradient(90deg, rgba(201, 164, 92, 0.62), transparent);
}

.ornament-mark {
    display: flex;
    opacity: 0.9;
}

.tagline {
    margin: 0 24px 16px;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.62;
    text-align: center;
    letter-spacing: 0.19em;
    text-transform: uppercase;
    color: rgba(232, 209, 154, 0.92);
    animation: riseIn 0.8s var(--ease-emph) 0.64s both;
}

/* ============================================================
   CategoryStrip
   ============================================================ */
.category-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 0 14px 15px;
    padding: 0;
    list-style: none;
    animation: riseIn 0.8s var(--ease-emph) 0.7s both;
}

.category-strip li {
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: rgba(247, 238, 220, 0.82);
    white-space: nowrap;
}

.category-strip .cat-sep {
    width: 1px;
    height: 11px;
    background: linear-gradient(180deg, transparent, rgba(201, 164, 92, 0.6), transparent);
    flex: 0 0 1px;
}

/* ============================================================
   BrandDescription
   ============================================================ */
.description {
    margin: 0 26px 20px;
    font-size: 12.5px;
    font-weight: 300;
    line-height: 1.72;
    text-align: center;
    color: var(--text-muted);
    animation: riseIn 0.8s var(--ease-emph) 0.76s both;
}

/* ============================================================
   CTAs
   ============================================================ */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 20px;
    animation: riseIn 0.8s var(--ease-emph) 0.84s both;
}

.btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 48px;                   /* comfortable touch target */
    padding: 12px 15px;
    border-radius: 13px;
    text-decoration: none;
    font-family: 'Jost', sans-serif;
    -webkit-tap-highlight-color: transparent;
    transition:
        transform 0.24s var(--ease-out),
        box-shadow 0.24s var(--ease-out),
        background-color 0.24s var(--ease-out),
        border-color 0.24s var(--ease-out);
}

.btn-text {
    flex: 1;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    white-space: nowrap;                /* labels stay on one line */
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
}

.btn-arrow { flex: 0 0 auto; transition: transform 0.24s var(--ease-out); }

/* --- Primary: champagne-gold fill, burgundy text --- */
.btn-primary {
    background: linear-gradient(168deg, #F0DDAE 0%, #E2C382 38%, #C9A45C 100%);
    color: #3A0716;
    box-shadow:
        0 1px 0 rgba(255, 250, 236, 0.55) inset,
        0 6px 16px -6px rgba(0, 0, 0, 0.6);
}

.btn-primary .btn-icon {
    background: rgba(58, 7, 22, 0.13);
    color: #3A0716;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    transform: translateY(-2px);
    background: linear-gradient(168deg, #F7E7BF 0%, #EACD90 38%, #D4AF67 100%);
    box-shadow:
        0 1px 0 rgba(255, 250, 236, 0.6) inset,
        0 12px 24px -8px rgba(0, 0, 0, 0.66);
}

.btn-primary:hover .btn-arrow,
.btn-primary:focus-visible .btn-arrow { transform: translateX(4px); }

/* --- Secondary: transparent burgundy, gold outline --- */
.btn-secondary {
    background: rgba(90, 16, 37, 0.30);
    border: 1px solid rgba(201, 164, 92, 0.52);
    color: var(--champagne);
}

.btn-secondary .btn-icon {
    background: rgba(247, 238, 220, 0.94);
}

.btn-revueo-logo { width: 17px; height: 17px; display: block; }

.btn-secondary:hover,
.btn-secondary:focus-visible {
    transform: translateY(-2px);
    background: rgba(110, 22, 48, 0.44);
    border-color: rgba(224, 190, 122, 0.78);
    box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.6);
}

.btn-secondary:hover .btn-arrow,
.btn-secondary:focus-visible .btn-arrow { transform: translate(3px, -3px); }

/* Press feedback */
.btn:active { transform: scale(0.98); transition-duration: 0.08s; }

.btn:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 3px;
}

/* ============================================================
   Responsive — 360 / 375 / 390 / 412 and short viewports
   ============================================================ */
@media (max-width: 374px) {
    .card { max-width: 320px; }
    .showcase-frame { height: 212px; }
    .brand-name { font-size: 30px; }
    .tagline { letter-spacing: 0.15em; }
    .category-strip { gap: 7px; }
    .category-strip li { font-size: 9px; letter-spacing: 0.1em; }
    .description { font-size: 12px; margin: 0 20px 18px; }
    .btn-text { font-size: 11.5px; letter-spacing: 0.09em; }
}

@media (min-width: 412px) {
    .card { max-width: 360px; }
}

/* Short screens — tighten so the card still fits without scrolling */
@media (max-height: 720px) {
    .showcase-frame { height: 190px; }
    .showcase { padding-bottom: 38px; }
    .brand-name { font-size: 29px; }
    .tagline { margin-bottom: 12px; }
    .description { margin-bottom: 16px; }
    .card { padding-bottom: 18px; }
}

/* Desktop stays a centred mobile card on an atmospheric canvas */
@media (min-width: 900px) {
    .card { max-width: 372px; }
}

/* ============================================================
   Reduced motion — keep simple fades, drop ambient movement
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .bg-dust { display: none; }

    .bg-textile,
    .bg-sheen,
    .card-sheen,
    .showcase-img,
    .logo-ring,
    .logo {
        animation: none !important;
    }

    .bg-textile { transform: scale(1.1); }
    .card-sheen { display: none; }

    .card,
    .brand-name,
    .ornament,
    .tagline,
    .category-strip,
    .description,
    .buttons,
    .logo-container {
        animation: fadeOnly 0.35s ease both !important;
    }

    @keyframes fadeOnly {
        from { opacity: 0; }
        to   { opacity: 1; }
    }

    .logo-container { transform: translateX(-50%); }

    .btn,
    .btn-arrow {
        transition-duration: 0.01ms !important;
    }

    .btn:hover,
    .btn:focus-visible { transform: none; }
}
