﻿/* ==========================================================================
   FESTIVAL HOA ĐÀ LẠT 2026 — DESIGN SYSTEM & THEME
   Chủ đề: "Đà Lạt - Bản giao hòa của sắc hoa và âm nhạc"
   Tiêu chuẩn: Hoành tráng - Hiện đại - Bắt mắt - Chuẩn mực Nhà nước
   ========================================================================== */


:root {
  /* Royal Festival Colors */
  --c-primary: #941338;          /* Imperial Berry Rose - Sắc hoa Mai Anh Đào */
  --c-primary-light: #B8254E;
  --c-primary-dark: #620B23;
  --c-primary-glow: rgba(148, 19, 56, 0.35);

  --c-gold: #D4AF37;             /* Royal Highland Gold - Sắc hoa Dã Quỳ */
  --c-gold-light: #FCE182;
  --c-gold-dark: #9E7D16;
  --c-gold-glow: rgba(212, 175, 55, 0.4);

  --c-pine: #0A3329;             /* Highland Emerald Pine - Xanh rừng thông */
  --c-pine-light: #135544;
  --c-pine-dark: #051F19;

  --c-accent-sky: #1E6B9E;
  --c-accent-purple: #75297A;

  /* Surfaces & Backgrounds */
  --c-bg: #FBF9F5;               /* Sương mù lụa ngà Hồ Xuân Hương */
  --c-surface: #FFFFFF;
  --c-surface-soft: #F4EFE6;
  --c-surface-trans: rgba(255, 255, 255, 0.88);
  --c-surface-dark: #0D1614;

  /* Typography Colors */
  --c-text: #192024;
  --c-text-muted: #5A656F;
  --c-text-light: #8E9BA7;
  --c-text-inverse: #FFFFFF;

  /* Border & Dividers */
  --c-border: #E5DFD3;
  --c-border-light: rgba(255, 255, 255, 0.2);
  --c-border-gold: rgba(212, 175, 55, 0.45);

  /* Typography Scales (100% Chuẩn Tiếng Việt - Tương thích hoàn toàn bộ gõ & dấu tiếng Việt) */
  --f-serif: 'Lora', 'Merriweather', Georgia, serif;
  --f-display: 'Montserrat', 'Be Vietnam Pro', sans-serif;
  --f-sans: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;

  /* Elevations & Shadows */
  --shadow-sm: 0 2px 8px rgba(10, 25, 20, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 25, 20, 0.08);
  --shadow-lg: 0 16px 40px rgba(10, 25, 20, 0.12);
  --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.28);
  --shadow-primary: 0 10px 30px rgba(148, 19, 56, 0.25);

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-full: 9999px;

  /* Transitions */
  --t-fast: 0.2s ease;
  --t-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --t-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Accessibility Scaling */
  --font-scale: 1;
}

/* Accessibility high-contrast or enlarged mode */
html.font-large { --font-scale: 1.15; }
html.font-xlarge { --font-scale: 1.25; }

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

html {
  font-size: calc(16px * var(--font-scale));
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--f-sans);
  background-color: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

/* Background atmospheric gradient */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 15%, rgba(148, 19, 56, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 90% 75%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(10, 51, 41, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Base Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-serif);
  color: var(--c-pine-dark);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 700;
}

h1 { font-size: 2.85rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: all var(--t-fast);
}

a:hover {
  color: var(--c-primary-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1440px;
}

.container-narrow {
  max-width: 960px;
}

/* Section Common */
.section {
  padding: 85px 0;
  position: relative;
}

.section-cream {
  background-color: var(--c-surface-soft);
}

.section-white {
  background-color: var(--c-surface);
}

.section-pine {
  background: linear-gradient(145deg, #07231B 0%, #0E3E33 100%);
  color: #FFFFFF;
}

.section-pine h2, .section-pine h3, .section-pine h4 {
  color: #FFFFFF;
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 55px auto;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-sans);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--c-primary);
  background: rgba(148, 19, 56, 0.08);
  padding: 6px 16px;
  border-radius: var(--r-full);
  margin-bottom: 16px;
  border: 1px solid rgba(148, 19, 56, 0.15);
}

.eyebrow-gold {
  color: var(--c-gold-dark);
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.3);
}

.eyebrow-pine {
  color: #A3E0D1;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.section-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--c-primary) 0%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-pine .section-title em {
  background: linear-gradient(135deg, #FFE27A 0%, #FFB444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  max-width: 680px;
  margin: 0 auto;
}

.section-pine .section-subtitle {
  color: #C0D6D0;
}

/* Button System - Marketing Caliber */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  font-family: var(--f-sans);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--r-full);
  cursor: pointer;
  border: none;
  transition: all var(--t-smooth);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--c-primary) 0%, #6E0D29 100%);
  color: #FFFFFF !important;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(148, 19, 56, 0.38);
  background: linear-gradient(135deg, var(--c-primary-light) 0%, #820F31 100%);
}

.btn-gold {
  background: linear-gradient(135deg, #FFD54F 0%, #D4AF37 60%, #AA771C 100%);
  color: #2D1A00 !important;
  box-shadow: var(--shadow-gold);
  font-weight: 800;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(212, 175, 55, 0.45);
  background: linear-gradient(135deg, #FFE082 0%, #DFBA45 60%, #B88523 100%);
}

.btn-outline {
  background: transparent;
  color: var(--c-primary);
  border: 1.8px solid var(--c-primary);
}

.btn-outline:hover {
  background: var(--c-primary);
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--c-gold-light);
  border: 1.8px solid var(--c-gold);
}

.btn-outline-gold:hover {
  background: var(--c-gold);
  color: #1A1A1A !important;
  transform: translateY(-2px);
}

.btn-white {
  background: #FFFFFF;
  color: var(--c-pine-dark) !important;
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background: #F4EFE6;
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: #FFFFFF !important;
  border: 1.8px solid rgba(255, 255, 255, 0.7);
}

.btn-outline-white:hover {
  background: #FFFFFF;
  color: var(--c-pine-dark) !important;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* Subtle Shimmer on high-priority buttons */
.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: shimmerEffect 4s infinite ease-in-out;
}

@keyframes shimmerEffect {
  0% { left: -60%; }
  30% { left: 140%; }
  100% { left: 140%; }
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-free {
  background: #E8F5E9;
  color: #1B5E20;
  border: 1px solid #A5D6A7;
}

.badge-ticket {
  background: #FFF3E0;
  color: #E65100;
  border: 1px solid #FFCC80;
}

.badge-rose {
  background: #FCE4EC;
  color: #880E4F;
  border: 1px solid #F48FB1;
}

.badge-gold {
  background: #FFFDE7;
  color: #F57F17;
  border: 1px solid #FFF59D;
}

/* Glassmorphism Card Base */
.glass-panel {
  background: var(--c-surface-trans);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.glass-panel-dark {
  background: rgba(14, 38, 32, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--r-lg);
  color: #FFFFFF;
}

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

@keyframes pulseGlow {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.animate-float {
  animation: floatGentle 5s ease-in-out infinite;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--c-primary);
  color: #FFFFFF;
  padding: 10px 20px;
  z-index: 9999;
  border-radius: 4px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 10px;
}
