@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,600&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

:root {
    --needle: #251214;
    --thread: #7b184b;
    --gold: #bc8a30;
    --custom-gold: #ddb85f;
    --champagne: #f1e8da;
    --silk: #fbf8f3;
    --glass: rgba(255, 252, 247, 0.92);
    --transition: all .35s cubic-bezier(.2, .8, .2, 1);
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--needle);
    background-color: var(--silk);
    background-image: radial-gradient(circle at 10% 0%, rgba(211, 178, 120, .16), transparent 30rem),
        radial-gradient(circle at 90% 30%, rgba(113, 48, 68, .08), transparent 28rem);
}

body.home {
    background-image: linear-gradient(rgba(251, 248, 243, .52), rgba(251, 248, 243, .62)),
        url('./images/background1.png');
    background-size: cover;
    background-position: center;
}

body.collections {
    background-image: linear-gradient(rgba(251, 248, 243, .64), rgba(251, 248, 243, .72)),
        url('./images/background1.png');
    background-size: cover;
    background-position: center;
}

/* A clear couture-studio backdrop is carried through the sales and policy pages too. */
body.premium-theme:not(.home):not(.collections) {
    background-image: linear-gradient(rgba(251, 248, 243, .58), rgba(251, 248, 243, .68)),
        url('./images/background1.png');
    background-size: cover;
    background-position: center;
}

header {
    background: rgba(255, 252, 247, .88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(113, 48, 68, .12);
    box-shadow: 0 8px 28px rgba(47, 32, 25, .07);
}

header::before { background: linear-gradient(105deg, transparent, rgba(211, 178, 120, .22), transparent); }

.header-brand,
.hero-title,
.ce-title,
.ss-title,
.cs-title,
.sale-title,
.design-title,
.mf-logo {
    font-family: 'Cormorant Garamond', serif;
}

.ss-title,
.sale-title,
.design-title,
.order-process h2,
.brand-details h2 {
    font-family: 'Cinzel', 'Cormorant Garamond', serif;
    font-weight: 700;
}

.header-brand {
    background: linear-gradient(110deg, #5c1439 0%, #951c59 27%, #e3bd63 50%, #1d5c52 72%, #5c1439 100%);
    background-size: 260% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: .07em;
    animation: brand-lustre 7s linear infinite;
    filter: none;
}

.header-brand::after { color: var(--gold); }

.mf-logo {
    display: inline-block;
    background: linear-gradient(110deg, #f3d582 0%, #d781a0 30%, #fff0bf 50%, #77b9a8 70%, #f3d582 100%);
    background-size: 260% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: brand-lustre 8s linear infinite;
    text-shadow: none;
    filter: drop-shadow(0 4px 12px rgba(211, 184, 95, .14));
}

.mf-brand:hover .mf-logo {
    animation-duration: 3.5s;
    filter: drop-shadow(0 0 12px rgba(227, 189, 99, .42));
}

@keyframes brand-lustre {
    from { background-position: 0% center; }
    to { background-position: 260% center; }
}

.brand-logo-img {
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(158, 113, 50, .42), 0 5px 14px rgba(63, 32, 30, .16);
    transition: transform .3s ease, box-shadow .3s ease;
}

.brand-link:hover .brand-logo-img {
    transform: rotate(-5deg) scale(1.06);
    box-shadow: 0 0 0 3px rgba(211, 178, 120, .7), 0 8px 18px rgba(63, 32, 30, .22);
}
.nav-right a { color: #3e3230; font-family: 'DM Sans', sans-serif; font-size: .7rem; letter-spacing: .13em; }
.nav-right a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 1px; transform: scaleX(0); transform-origin: right; background: var(--gold); transition: transform .25s ease; }
.nav-right a:hover::after { transform: scaleX(1); transform-origin: left; }

.premium-hero .hero-overlay { background: linear-gradient(90deg, rgba(24, 18, 16, .59), rgba(24, 18, 16, .18)); }
.hero-title { font-weight: 600; letter-spacing: -.025em; text-shadow: 0 5px 30px rgba(0, 0, 0, .28); }
.hero-subtitle { font-family: 'DM Sans', sans-serif; font-weight: 500; }

.btn-gold-solid,
.sale-btn {
    background: #713044;
    color: #fffaf5;
    border: 1px solid #713044;
    box-shadow: 0 10px 22px rgba(113, 48, 68, .18);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn-gold-solid:hover,
.sale-btn:hover {
    background: #54232f;
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(113, 48, 68, .27);
}

.signature-services,
.modern-footer { background-color: #241e1d; }
.ss-card { border-radius: 4px; overflow: hidden; }
.ss-card:hover .ss-bg { transform: scale(1.045); }
.ss-bg { transition: transform .7s cubic-bezier(.2, .8, .2, 1); }

.brand-details {
    background-image: linear-gradient(90deg, rgba(255, 251, 246, .77), rgba(255, 251, 246, .64)), url('./images/background1.png');
    background-size: cover;
    background-position: center;
    border-block: 1px solid rgba(158, 113, 50, .16);
}

.order-process {
    position: relative;
    overflow: hidden;
    background: linear-gradient(115deg, rgba(113, 48, 68, .04), transparent 55%);
}

.order-process::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background-image: radial-gradient(circle, #9e7132 1px, transparent 1.5px);
    background-size: 18px 18px;
    mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.order-process > * { position: relative; }
.order-steps article { border-top-color: #713044; }
.order-steps span, .section-eyebrow { color: #8a5d21; }
.sale-card { box-shadow: 0 12px 30px rgba(48, 32, 26, .08); transition: transform .3s ease, box-shadow .3s ease; }
.sale-card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(48, 32, 26, .14); }
.sale-price { color: #713044; }

img { content-visibility: auto; }

@media (max-width: 1024px) {
    .hero-video-container { max-height: 720px; }
    .sale-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sale-image { aspect-ratio: 4 / 5; object-fit: cover; }
}

.reveal { animation: polished-rise .7s both; }
@keyframes polished-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

body.dark-mode { background: #171313; color: #f7eee4; }
body.dark-mode header { background: rgba(28, 23, 22, .9); }
body.dark-mode .nav-right a { color: #f7eee4; }
body.dark-mode .brand-details { background: rgba(70, 47, 43, .46); }

@media (max-width: 768px) {
    body { padding-top: 114px; background-attachment: scroll; }
    header, .premium-header { gap: 7px; padding: 9px 3%; }
    .brand-link { flex-direction: row; gap: 8px; }
    .premium-header .brand-logo-img { height: 34px; width: 34px; }
    .header-brand { font-family: 'Cinzel', serif; font-size: .8rem !important; letter-spacing: .04em; }
    .nav-right { gap: 7px; margin-top: 2px; }
    .nav-right a { font-size: .58rem; letter-spacing: .055em; }
    .hero-video-container { height: 66vh; min-height: 430px; }
    .brand-details { background-position: 58% center; }
    .sale-card { transform: none; }
    .sale-grid { grid-template-columns: 1fr; }
    .sale-card { max-width: 540px; margin-inline: auto; }
    .ce-left, .ce-right, .matter-box { min-width: 0; }
    body.premium-theme:not(.home):not(.collections) { background-attachment: scroll; background-position: 58% center; }
    .mf-logo { font-family: 'Cinzel', serif; letter-spacing: .035em; }
}

@media (max-width: 760px) {
    header { padding: 11px 5%; }
    .header-brand { font-size: 1.02rem; letter-spacing: .045em; }
    .brand-logo-img { height: 34px; }
    .nav-right a::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
