/* ============================================================
   Liaoliao – Shared Stylesheet
   All colours are defined as variables here. To retheme the
   site, only edit the :root block below.
   ============================================================ */

/* ── Colour palette ─────────────────────────────────────────── */
:root {
    /* Core brand colours */
    --color-primary:        #1a5f4a;
    --color-primary-dark:   #0d3d2e;
    --color-gold:           #d4af37;
    --color-gold-bright:    #ffd700;
    --color-coral:          #ff6b6b;
    --color-teal:           #20b2aa;

    /* Backgrounds */
    --color-bg:             #0a0a0a;
    --color-bg-dark:        #050505;
    --color-bg-card:        #151515;
    --color-bg-highlight:   rgba(21, 21, 21, 0.6);

    /* Text */
    --color-text:           #f5f5f5;
    --color-text-muted:     #a0a0a0;
    --color-text-on-gold:   #0a0a0a;

    /* Borders */
    --color-border-gold:        rgba(212, 175, 55, 0.15);
    --color-border-gold-hover:  rgba(212, 175, 55, 0.40);
    --color-border-gold-strong: rgba(212, 175, 55, 0.30);
    --color-border-nav:         rgba(212, 175, 55, 0.20);
    --color-border-white:       rgba(255, 255, 255, 0.20);
    --color-border-footer:      rgba(212, 175, 55, 0.15);

    /* Glows / shadows */
    --glow-gold:    0 0 20px rgba(212, 175, 55, 0.60);
    --glow-primary: 0 0 30px rgba(26,  95,  74,  0.50);
    --glow-coral:   0 0 40px rgba(255, 107, 107, 0.40);
    --glow-gold-lg: 0 10px 40px rgba(212, 175, 55, 0.60);

    /* Gradients */
    --gradient-gold:    linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-bright) 50%, var(--color-gold) 100%);
    --gradient-bg-body: radial-gradient(ellipse at 20% 20%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
                        radial-gradient(ellipse at 80% 80%, rgba(240, 147, 251, 0.10) 0%, transparent 50%),
                        radial-gradient(ellipse at 50% 50%, rgba(32,  178, 170,  0.08) 0%, transparent 60%);
    --gradient-hero-glow: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    --gradient-page-glow: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
    --gradient-video-bg:  linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --gradient-footer:    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-dark) 100%);
    --gradient-shimmer:   linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.40), transparent);
    --gradient-text-hero: linear-gradient(135deg, #fff 0%, var(--color-gold) 50%, #fff 100%);

    /* Particle / hero social overlay */
    --color-hero-social-bg: rgba(255, 255, 255, 0.05);

    /* Header */
    --color-header-bg:         rgba(10, 10, 10, 0.85);
    --color-header-bg-scrolled: rgba(10, 10, 10, 0.95);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ── Base ───────────────────────────────────────────────────── */
body {
    font-family: 'Poppins', 'Noto Serif SC', sans-serif;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg-dark);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--gradient-bg-body);
    pointer-events: none;
    z-index: -1;
    animation: bgPulse 15s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.7; }
}

/* ── Floating Particles ─────────────────────────────────────── */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-gold);
    border-radius: 50%;
    animation: float 20s infinite;
    opacity: 0.3;
}

.particle:nth-child(1)  { left: 10%; animation-duration: 25s; }
.particle:nth-child(2)  { left: 20%; animation-delay: 2s;   animation-duration: 20s; }
.particle:nth-child(3)  { left: 30%; animation-delay: 4s;   animation-duration: 28s; }
.particle:nth-child(4)  { left: 40%; animation-delay: 1s;   animation-duration: 22s; }
.particle:nth-child(5)  { left: 50%; animation-delay: 3s;   animation-duration: 26s; }
.particle:nth-child(6)  { left: 60%; animation-delay: 5s;   animation-duration: 24s; }
.particle:nth-child(7)  { left: 70%; animation-delay: 2.5s; animation-duration: 21s; }
.particle:nth-child(8)  { left: 80%; animation-delay: 1.5s; animation-duration: 27s; }
.particle:nth-child(9)  { left: 90%; animation-delay: 4.5s; animation-duration: 23s; }
.particle:nth-child(10) { left: 15%; animation-delay: 3.5s; animation-duration: 29s; }

@keyframes float {
    0%   { transform: translateY(100vh) rotate(0deg);    opacity: 0; }
    10%  { opacity: 0.3; }
    90%  { opacity: 0.3; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* ── Header / Navigation ────────────────────────────────────── */
header {
    background: var(--color-header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--color-text);
    padding: 1rem 2rem;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border-nav);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.7rem 2rem;
    background: var(--color-header-bg-scrolled);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--gradient-gold);
    transition: width 0.3s ease;
}

nav a:hover         { color: var(--color-gold); }
nav a:hover::after  { width: 100%; }
nav a.active        { color: var(--color-gold); }
nav a.active::after { width: 100%; }

.nav-cta {
    background: var(--gradient-gold);
    color: var(--color-text-on-gold) !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 25px;
    font-weight: 600;
    margin-left: 1rem;
}
.nav-cta::after { display: none; }
.nav-cta:hover  { transform: scale(1.05); box-shadow: var(--glow-gold); }

.nav-social {
    display: flex;
    gap: 0.8rem;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--color-border-white);
}
.nav-social a {
    font-size: 1.2rem;
    padding: 0.3rem;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 1001;
}
.nav-social a::after { display: none; }
.nav-social a:hover  { color: var(--color-gold-bright) !important; transform: scale(1.2); }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}
.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-gold);
    transition: all 0.3s ease;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3 {
    font-family: 'Playfair Display', 'Noto Serif SC', serif;
    margin-bottom: 1.5rem;
    position: relative;
}

h1 { font-size: 3rem; font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }

h2 {
    font-size: 2.5rem;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 3rem;
}
h2::after {
    content: '';
    display: block;
    width: 80px; height: 3px;
    background: var(--gradient-gold);
    margin: 1rem auto 0;
    border-radius: 2px;
}

h3 { font-size: 1.5rem; color: var(--color-gold); }

/* ── Layout ─────────────────────────────────────────────────── */
main { max-width: 1400px; margin: 0 auto; padding: 0; }

section {
    scroll-margin-top: 6rem;
    position: relative;
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto 4rem;
}

/* ── Buttons ────────────────────────────────────────────────── */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    background: var(--gradient-gold);
    color: var(--color-text-on-gold);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: var(--glow-gold);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.cta-button::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: var(--gradient-shimmer);
    transition: left 0.5s ease;
}
.cta-button:hover         { transform: translateY(-3px) scale(1.05); box-shadow: var(--glow-gold-lg); }
.cta-button:hover::before { left: 100%; }

.cta-button-outline {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.cta-button-outline:hover { background: var(--color-gold); color: var(--color-text-on-gold); transform: translateY(-3px); }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
    background: var(--color-bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--color-border-gold);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.card:hover {
    transform: translateY(-10px);
    border-color: var(--color-border-gold-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), var(--glow-gold);
}
.card:hover::before { transform: scaleX(1); }

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.card h3 { margin-bottom: 1rem; }
.card p  { color: var(--color-text-muted); line-height: 1.8; }

.card-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-gold);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}
.card-link:hover { color: var(--color-gold-bright); }

/* ── Video container ────────────────────────────────────────── */
.video-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--gradient-video-bg);
    border: 1px solid var(--color-border-nav);
    transition: all 0.4s ease;
}
.video-container:hover { border-color: var(--color-gold); box-shadow: var(--glow-gold); transform: scale(1.02); }

.video-placeholder {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--color-text-muted);
}
.video-placeholder i { font-size: 4rem; color: var(--color-gold); margin-bottom: 1rem; opacity: 0.7; }

/* ── Photo grid & lightbox ──────────────────────────────────── */
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.photo-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border-nav);
    transition: all 0.4s ease;
    cursor: pointer;
    background: var(--color-bg-card);
}
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.photo-item:hover     { border-color: var(--color-gold); box-shadow: var(--glow-gold); transform: scale(1.02); }
.photo-item:hover img { transform: scale(1.08); }

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    cursor: pointer;
}
.lightbox.active { display: flex; }
.lightbox img {
    max-width: 90vw; max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.3);
    cursor: default;
}
.lightbox-close {
    position: absolute;
    top: 1.5rem; right: 2rem;
    font-size: 2.5rem;
    color: var(--color-gold);
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease;
}
.lightbox-close:hover { transform: scale(1.2); }

/* ── Social link circles ────────────────────────────────────── */
.social-links { display: flex; justify-content: center; gap: 1.5rem; margin-top: 2rem; }
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-gold-strong);
    color: var(--color-gold);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
}
.social-links a:hover { background: var(--gradient-gold); color: var(--color-text-on-gold); transform: translateY(-5px); box-shadow: var(--glow-gold); }

/* ── Address / contact ──────────────────────────────────────── */
address { font-style: normal; line-height: 2.5; }
address a {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}
address a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}
address a:hover        { color: var(--color-gold-bright); }
address a:hover::after { width: 100%; }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 1.5rem; letter-spacing: 1px; }
.breadcrumb a { color: var(--color-gold); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── Page hero (sub-pages) ──────────────────────────────────── */
.page-hero {
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 9rem 2rem 5rem;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: var(--gradient-page-glow);
    animation: heroGlow 4s ease-in-out infinite;
}
.page-hero-content { position: relative; z-index: 2; }

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: var(--gradient-text-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 3s ease-in-out infinite;
    background-size: 200% auto;
    margin-bottom: 1.2rem;
}
.page-hero p { font-size: 1.2rem; color: var(--color-text-muted); max-width: 700px; margin: 0 auto 2rem; line-height: 1.8; }

/* ── Home hero ──────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: var(--gradient-hero-glow);
    animation: heroGlow 4s ease-in-out infinite;
}
.hero-content { position: relative; z-index: 2; }

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    background: var(--gradient-text-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 3s ease-in-out infinite;
    background-size: 200% auto;
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-social { margin-top: 3rem; text-align: center; }
.hero-social p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}
.hero-social-links { display: flex; justify-content: center; gap: 1.5rem; pointer-events: auto; }
.hero-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px; height: 55px;
    border-radius: 50%;
    background: var(--color-hero-social-bg);
    border: 1px solid var(--color-border-gold-strong);
    color: var(--color-gold);
    font-size: 1.4rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}
.hero-social-links a:hover {
    background: var(--gradient-gold);
    color: var(--color-text-on-gold);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

/* ── Shared animations ──────────────────────────────────────── */
@keyframes heroGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 0.8; }
    50%       { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}
@keyframes titleShimmer {
    0%, 100% { background-position: 0% center; }
    50%       { background-position: 100% center; }
}

/* ── Fade-in scroll animation ───────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── FAQ accordion ──────────────────────────────────────────── */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--color-bg-card);
    border-radius: 12px;
    border: 1px solid var(--color-border-gold);
    margin-bottom: 1rem;
    overflow: hidden;
}
.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}
.faq-question:hover { color: var(--color-gold); }
.faq-question i { transition: transform 0.3s ease; color: var(--color-gold); }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer { padding: 0 2rem; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-item.open .faq-answer { max-height: 300px; padding: 0 2rem 1.5rem; }
.faq-answer p { color: var(--color-text-muted); line-height: 1.8; }

/* ── CTA banner ─────────────────────────────────────────────── */
.cta-section {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--color-bg-highlight);
    border-radius: 24px;
    border: 1px solid var(--color-border-gold);
    margin: 2rem;
}
.cta-section h2 { margin-bottom: 1rem; }
.cta-section h2::after { display: none; }
.cta-section > p { color: var(--color-text-muted); font-size: 1.1rem; margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Highlight box ──────────────────────────────────────────── */
.highlight-box {
    background: var(--color-bg-highlight);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid var(--color-border-gold);
}
.highlight-box h2 { text-align: left; margin-bottom: 0.5rem; }
.highlight-box h2::after { margin-left: 0; }
.highlight-box > p { color: var(--color-text-muted); margin-bottom: 2rem; }

/* ── Two-column grid ────────────────────────────────────────── */
.two-col-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
    background: var(--gradient-footer);
    color: var(--color-text-muted);
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--color-border-footer);
}
footer p { margin: 0.5rem 0; }
footer p:first-child { font-size: 1.2rem; color: var(--color-gold); font-weight: 600; }

.footer-links { display: flex; justify-content: center; gap: 2rem; margin: 1rem 0; flex-wrap: wrap; }
.footer-links a { color: var(--color-text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--color-gold); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--color-header-bg-scrolled);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--color-border-nav);
    }
    .nav-links.active { display: flex; }
    .menu-toggle { display: flex; }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }

    .hero { padding: 7rem 1.5rem 3rem; }
    .photo-grid { grid-template-columns: 1fr; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-button-outline { margin-left: 0; }
}

@media (min-width: 768px) {
    .grid-container { grid-template-columns: repeat(2, 1fr); }
}
