/* China Royal - shared chrome styles
   Used by every page via _SiteLayout.vbhtml.
   Page-specific styles live in cr-home.css (and future per-page files). */

:root {
    --orange: #ff4500;
    --orange-soft: #ff6a2c;
    --gold: #ffa52a;
    --crimson: #c8102e;
    --crimson-deep: #8a0a1f;
    --ink: #0f0807;
    --ink-2: #1a0e0c;
    --ink-3: #241511;
    --cream: #faf6ee;
    --paper: #ffffff;
    --soft: #f7f2ea;
    --muted: rgba(15, 8, 7, 0.62);
    --line: rgba(255, 255, 255, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    padding: 18px 0;
    background: rgba(15, 8, 7, 0);
    transition: background 250ms ease, padding 250ms ease, box-shadow 250ms ease;
}

.nav.is-stuck,
.nav.is-solid {
    background: rgba(15, 8, 7, 0.94);
    padding: 12px 0;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav__brand img { height: 44px; width: auto; }

.nav__links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0; padding: 0;
}

.nav__links a {
    color: var(--cream);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative;
    padding: 6px 0;
}

.nav__links a:hover,
.nav__links a.is-active { color: var(--gold); }

.nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: var(--orange);
    color: var(--paper);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    transition: background 180ms ease, transform 180ms ease;
}

.nav__cta:hover { background: var(--orange-soft); transform: translateY(-1px); }

.nav__toggle {
    display: none;
    background: transparent;
    border: 0;
    color: var(--cream);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 4px 8px;
}

/* ---------- Page header (used by interior pages) ---------- */
.page-header {
    position: relative;
    padding: 180px 0 80px;
    background: linear-gradient(135deg, rgba(15, 8, 7, 0.94) 0%, rgba(15, 8, 7, 0.78) 60%, rgba(200, 16, 46, 0.55) 100%),
                url('/img/2026/DSC_5864.JPG') center/cover no-repeat;
    color: var(--cream);
    text-align: center;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -120px; right: -100px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: var(--orange);
    filter: blur(80px);
    opacity: 0.45;
}

.page-header__inner { position: relative; z-index: 1; }

.page-header__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}

.page-header__title .accent {
    font-family: 'Caveat', cursive;
    color: var(--orange);
    font-weight: 700;
    font-size: 1.15em;
    display: inline-block;
    transform: translateY(6px);
}

.page-header__lede {
    color: rgba(250, 246, 238, 0.85);
    max-width: 620px;
    margin: 0 auto;
    font-weight: 300;
    font-size: clamp(1rem, 1.4vw, 1.1rem);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.btn--primary { background: var(--orange); color: var(--paper); }
.btn--primary:hover { background: var(--orange-soft); transform: translateY(-2px); }

.btn--ghost {
    background: transparent;
    color: var(--cream);
    border: 1px solid rgba(250, 246, 238, 0.35);
}
.btn--ghost:hover { background: rgba(250, 246, 238, 0.10); border-color: var(--gold); color: var(--gold); }

/* ---------- Section base ---------- */
.section {
    padding: 100px 0;
    position: relative;
}

.section--soft { background: var(--soft); }
.section--ink { background: var(--ink); color: var(--cream); }
.section--crimson { background: var(--crimson); color: var(--cream); padding: 56px 0; }

.section__head {
    text-align: center;
    margin: 0 auto 56px;
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--orange);
    font-weight: 600;
}

.eyebrow::before, .eyebrow::after {
    content: '';
    width: 32px; height: 1px;
    background: currentColor;
    opacity: 0.5;
}

.section--ink .eyebrow { color: var(--gold); }

.section__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 3.6vw, 2.8rem);
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}

.section__title .accent {
    font-family: 'Caveat', cursive;
    color: var(--orange);
    font-weight: 700;
    font-size: 1.15em;
    display: inline-block;
    transform: translateY(4px);
}

.section__lede {
    font-size: 1.04rem;
    color: var(--muted);
    margin: 0 auto;
    max-width: 620px;
}

.section--ink .section__lede { color: rgba(250, 246, 238, 0.75); }

/* Lantern motif (shared) */
.lantern {
    position: relative;
    width: 28px; height: 40px;
    margin: 0 6px;
    background: var(--crimson);
    border-radius: 14px / 18px;
    display: inline-block;
    vertical-align: middle;
}
.lantern::before {
    content: '';
    position: absolute;
    top: -6px; left: 50%;
    width: 12px; height: 6px;
    background: var(--gold);
    border-radius: 3px 3px 0 0;
    transform: translateX(-50%);
}
.lantern::after {
    content: '';
    position: absolute;
    bottom: -8px; left: 50%;
    width: 4px; height: 8px;
    background: var(--gold);
    transform: translateX(-50%);
}

/* ---------- Gallery (shared so /gallery page can reuse) ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: 14px;
}

.gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: zoom-in;
    background: var(--ink-2);
}

.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

.gallery__item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

.gallery__item:hover img { transform: scale(1.06); }

.gallery__item::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15, 8, 7, 0.55), transparent 60%);
    opacity: 0;
    transition: opacity 250ms ease;
    pointer-events: none;
}

.gallery__item:hover::after { opacity: 1; }

/* ---------- Footer ---------- */
.footer {
    background: var(--ink);
    color: var(--cream);
    padding: 72px 0 28px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer__brand img { height: 56px; margin-bottom: 18px; }
.footer__brand p { color: rgba(250, 246, 238, 0.7); font-size: 0.94rem; max-width: 320px; }

.footer__col h4 {
    font-size: 0.82rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 18px;
    font-weight: 600;
}

.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.footer__col a {
    color: rgba(250, 246, 238, 0.78);
    text-decoration: none;
    font-size: 0.94rem;
    transition: color 180ms ease;
}

.footer__col a:hover { color: var(--orange); }

.footer__bottom {
    border-top: 1px solid rgba(250, 246, 238, 0.10);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: rgba(250, 246, 238, 0.55);
}

.footer__bottom a { color: var(--gold); text-decoration: none; }
.footer__bottom a:hover { text-decoration: underline; }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(10, 5, 6, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
}

.lightbox.is-open { display: flex; }

.lightbox__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.lightbox__btn {
    position: absolute;
    background: rgba(15, 8, 7, 0.75);
    border: 1px solid rgba(255, 165, 42, 0.45);
    color: var(--cream);
    font-size: 1.6rem;
    line-height: 1;
    width: 46px; height: 46px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 180ms ease, border-color 180ms ease;
}

.lightbox__btn:hover { background: var(--crimson); border-color: var(--gold); }

.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Animations ---------- */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal { animation: fade-up 700ms ease-out both; }
.reveal[data-delay="1"] { animation-delay: 80ms; }
.reveal[data-delay="2"] { animation-delay: 160ms; }
.reveal[data-delay="3"] { animation-delay: 240ms; }

/* ---------- Responsive (shared chrome) ---------- */
@media (max-width: 960px) {
    .section { padding: 72px 0; }
    .section__head { margin-bottom: 40px; }

    .page-header { padding: 140px 0 64px; }

    .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
    .gallery__item--wide { grid-column: span 2; }

    .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }

    .nav__links { display: none; }
    .nav__toggle { display: inline-flex; }
    .nav.is-open .nav__links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: rgba(15, 8, 7, 0.97);
        flex-direction: column;
        padding: 24px;
        gap: 18px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    }
}

@media (max-width: 540px) {
    .footer__grid { grid-template-columns: 1fr; }
}
