/* ============================================================
   STYLE.CSS - Trang chủ & Style chung (Premium Edition)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Great+Vibes&family=Be+Vietnam+Pro:wght@200;300;400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --c-primary: #8b2c3a;
    --c-secondary: #b8485a;
    --c-accent: #f5e6e8;
    --c-bg: #fdf6f7;
    --c-bg-alt: #fafafa;
    --c-text: #3d2024;
    --c-text-light: #7a5560;
    --c-gold: #c9a227;
    --c-gold-light: #e6c668;
    --font-title: 'Great Vibes', cursive;
    --font-serif: 'Cormorant Garamond', serif;
    --font-body: 'Be Vietnam Pro', sans-serif;
    --shadow-sm: 0 2px 8px rgba(139, 44, 58, 0.06);
    --shadow-md: 0 4px 20px rgba(139, 44, 58, 0.08);
    --shadow-lg: 0 12px 48px rgba(139, 44, 58, 0.12);
    --shadow-xl: 0 24px 80px rgba(139, 44, 58, 0.15);
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--c-text);
    background: var(--c-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--c-primary); color: #fff; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 36px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}
.btn:hover::after { transform: translateX(100%); }
.btn-primary {
    background: var(--c-primary);
    color: #fff;
    box-shadow: var(--shadow-md);
}
.btn-primary:hover {
    background: #6d2230;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn-outline {
    background: transparent;
    color: var(--c-primary);
    border: 1px solid var(--c-primary);
}
.btn-outline:hover {
    background: var(--c-primary);
    color: #fff;
    transform: translateY(-2px);
}
.btn-secondary {
    background: linear-gradient(135deg, var(--c-gold), var(--c-gold-light));
    color: #fff;
}
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-full { width: 100%; }

/* --- Hero --- */
.home-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/273941/pexels-photo-273941.jpeg?auto=compress&cs=tinysrgb&w=1920') center/cover;
    z-index: -2;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.15); }
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(253,246,247,0.85) 0%, rgba(245,230,232,0.75) 50%, rgba(253,246,247,0.9) 100%);
    z-index: -1;
}
.hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top left, rgba(201,162,39,0.06), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(139,44,58,0.04), transparent 50%);
}

.hero-content {
    text-align: center;
    padding: 20px;
    z-index: 1;
    animation: heroFadeIn 1.5s ease;
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-ornament {
    color: var(--c-primary);
    margin-bottom: 28px;
    opacity: 0.4;
    animation: floatSlow 5s ease-in-out infinite;
    position: relative;
}
.hero-ornament::before, .hero-ornament::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-primary), transparent);
    opacity: 0.3;
}
.hero-ornament::before { right: 100%; margin-right: 16px; }
.hero-ornament::after { left: 100%; margin-left: 16px; }

.hero-greeting {
    font-family: var(--font-serif);
    font-size: clamp(15px, 3vw, 20px);
    color: var(--c-text-light);
    margin-bottom: 8px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.hero-title {
    font-family: var(--font-title);
    font-size: clamp(52px, 11vw, 96px);
    color: var(--c-primary);
    line-height: 1.1;
    margin-bottom: 8px;
    font-weight: 400;
    text-shadow: 0 2px 20px rgba(139,44,58,0.08);
}
.hero-brand {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(20px, 4vw, 32px);
    color: var(--c-gold);
    letter-spacing: 8px;
    font-weight: 300;
    text-transform: uppercase;
    margin-top: 4px;
}
.hero-divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
    margin: 28px auto;
}
.hero-subtitle {
    font-family: var(--font-serif);
    font-size: clamp(15px, 2.5vw, 19px);
    color: var(--c-text);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.8;
    font-weight: 400;
    font-style: italic;
    opacity: 0.85;
}
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--c-primary);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s;
}
.hero-scroll-hint:hover { opacity: 1; }
.scroll-dot {
    animation: scrollDot 2s ease infinite;
}
@keyframes scrollDot {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* --- Features --- */
.home-features {
    padding: 120px 24px;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}
.section-eyebrow {
    text-align: center;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: 12px;
    font-weight: 500;
}
.section-title {
    text-align: center;
    font-family: var(--font-serif);
    font-size: clamp(30px, 5vw, 44px);
    color: var(--c-primary);
    margin-bottom: 16px;
    font-weight: 500;
}
.section-divider {
    width: 60px;
    height: 2px;
    background: var(--c-gold);
    margin: 0 auto 56px;
    position: relative;
}
.section-divider::before, .section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-gold);
    transform: translateY(-50%);
}
.section-divider::before { left: -14px; }
.section-divider::after { right: -14px; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}
.feature-card {
    background: #fff;
    border-radius: 2px;
    padding: 40px 28px;
    text-align: center;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(139, 44, 58, 0.06);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-gold));
    transform: scaleX(0);
    transition: transform 0.4s;
    transform-origin: left;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
    color: var(--c-primary);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}
.feature-card h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--c-primary);
    margin-bottom: 12px;
    font-weight: 600;
}
.feature-card p {
    font-size: 14px;
    color: var(--c-text-light);
    line-height: 1.7;
}

/* --- CTA --- */
.home-cta {
    padding: 120px 24px;
    background: url('https://images.pexels.com/photos/31517332/pexels-photo-31517332.jpeg?auto=compress&cs=tinysrgb&w=1920') center/cover fixed;
    text-align: center;
    position: relative;
}
.home-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(253,246,247,0.88);
}
.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}
.cta-content h2 {
    font-family: var(--font-serif);
    font-size: clamp(28px, 5vw, 40px);
    color: var(--c-primary);
    margin-bottom: 16px;
    font-weight: 500;
}
.cta-content p {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--c-text);
    margin-bottom: 32px;
    font-style: italic;
    opacity: 0.8;
    line-height: 1.7;
}

/* --- Footer --- */
.home-footer {
    padding: 40px 24px;
    text-align: center;
    background: var(--c-primary);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    letter-spacing: 1px;
}
.home-footer .footer-brand {
    font-family: var(--font-title);
    font-size: 24px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 8px;
}

/* --- 404 page --- */
.not-found-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://images.pexels.com/photos/273941/pexels-photo-273941.jpeg?auto=compress&cs=tinysrgb&w=1920') center/cover;
    font-family: var(--font-body);
    color: var(--c-primary);
    position: relative;
}
.not-found-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(253,246,247,0.9);
}
.not-found-container {
    text-align: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}
.not-found-ornament { margin-bottom: 24px; color: var(--c-primary); opacity: 0.4; }
.not-found-title {
    font-family: var(--font-title);
    font-size: 140px;
    margin: 0;
    color: var(--c-primary);
    line-height: 1;
}
.not-found-text {
    font-family: var(--font-serif);
    font-size: 24px;
    margin: 20px 0 8px;
    color: var(--c-text);
    font-weight: 500;
}
.not-found-subtext {
    font-family: var(--font-serif);
    font-size: 17px;
    color: var(--c-text-light);
    margin: 0 0 36px;
    font-style: italic;
}

/* --- Animations --- */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- Scroll reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .features-grid { grid-template-columns: 1fr; }
    .home-features, .home-cta { padding: 80px 20px; }
    .home-cta { background-attachment: scroll; }
}
