/* ============================================================
   Art Nouveau (新艺术运动风) Custom Styles
   Color Palette:
   - Antique gold: #c9a84c, #a0842c, #d4b860
   - Deep emerald: #1a5632, #2d8a4e
   - Cream: #f5f0e1, #faf5eb
   - Dark wood: #3c2415
   Fonts: Playfair Display (headings), Noto Serif SC (body)
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --gold: #c9a84c;
  --gold-dark: #a0842c;
  --gold-light: #d4b860;
  --emerald: #1a5632;
  --emerald-light: #2d8a4e;
  --cream: #f5f0e1;
  --cream-light: #faf5eb;
  --wood: #3c2415;
  --wood-light: #5a3a28;
  --text-dark: #2c1810;
  --text-muted: #6b5e4a;
  --font-heading: 'Playfair Display', 'Noto Serif SC', serif;
  --font-body: 'Noto Serif SC', 'Playfair Display', serif;

  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --transition-smooth: 0.45s var(--ease-out-expo);
}

/* ---- Base & Reset ---- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream-light);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.75;
}

/* ---- Ornate Gold Border Frame (Hero decorative border) ---- */
.ornate-frame {
  position: relative;
  border: 3px solid var(--gold-dark);
  border-radius: 2px;
  box-shadow:
    inset 0 0 0 6px var(--cream-light),
    inset 0 0 0 9px var(--gold),
    inset 0 0 0 12px var(--cream-light),
    0 4px 24px rgba(160, 132, 44, 0.2);
}

.ornate-frame::before {
  content: '';
  position: absolute;
  top: -8px; left: 20px; right: 20px;
  height: 4px;
  background: linear-gradient(90deg,
    transparent 0%, var(--gold-dark) 5%, var(--gold-light) 15%, var(--gold) 30%,
    var(--gold-light) 50%, var(--gold) 70%, var(--gold-light) 85%, var(--gold-dark) 95%,
    transparent 100%);
}

.ornate-frame::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 20px; right: 20px;
  height: 4px;
  background: linear-gradient(90deg,
    transparent 0%, var(--gold-dark) 5%, var(--gold-light) 15%, var(--gold) 30%,
    var(--gold-light) 50%, var(--gold) 70%, var(--gold-light) 85%, var(--gold-dark) 95%,
    transparent 100%);
}

/* ---- Flowing Curve Decorations ---- */
.flowing-curve {
  position: relative;
}

.flowing-curve::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 30px;
  background:
    radial-gradient(ellipse at 25% 50%, transparent 40%, var(--gold) 40%, var(--gold) 42%, transparent 42%) no-repeat,
    radial-gradient(ellipse at 75% 50%, transparent 40%, var(--gold) 40%, var(--gold) 42%, transparent 42%) no-repeat,
    radial-gradient(ellipse at 50% 50%, transparent 35%, var(--gold-dark) 35%, var(--gold-dark) 37%, transparent 37%) no-repeat;
}

/* ---- Gold Vine Border for Cards ---- */
.card-ornate {
  position: relative;
  background: var(--cream-light);
  border: 2px solid var(--gold);
  border-radius: 8px;
  transition: all var(--transition-smooth);
}

.card-ornate::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 6px;
  border: 1px solid var(--gold-light);
  margin: 4px;
  pointer-events: none;
}

.card-ornate:hover {
  border-color: var(--gold-dark);
  box-shadow: 0 8px 32px rgba(160, 132, 44, 0.25);
  transform: translateY(-4px);
}

/* ---- Circular Icon Frame ---- */
.icon-frame-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--cream-light);
  position: relative;
  margin: 0 auto;
}

.icon-frame-circle::before {
  content: '';
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  border-radius: 50%;
  border: 1px dashed var(--gold-light);
  pointer-events: none;
}

.icon-frame-circle i {
  color: var(--gold-dark);
  font-size: 1.6rem;
}

/* ---- Ornate Separator ---- */
.ornate-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--gold);
  font-size: 1.2rem;
}

.ornate-separator::before,
.ornate-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  max-width: 60px;
}

/* ---- Quote Card ---- */
.quote-card {
  position: relative;
  background: var(--cream-light);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 2.5rem 2rem 2rem;
}

.quote-card::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--gold);
  line-height: 1;
  opacity: 0.6;
}

.quote-card::after {
  content: '';
  position: absolute;
  bottom: 8px; left: 16px; right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), var(--gold-dark), var(--gold-light), transparent);
}

/* ---- FAQ Accordion ---- */
.faq-item {
  border: 1px solid var(--gold-light);
  border-radius: 8px;
  background: var(--cream-light);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.faq-item.active {
  border-color: var(--gold-dark);
  box-shadow: 0 4px 16px rgba(160, 132, 44, 0.15);
}

.faq-question {
  padding: 1rem 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text-dark);
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--gold-dark);
}

.faq-question .faq-indicator {
  font-size: 0.8rem;
  color: var(--gold);
  transition: transform 0.35s var(--ease-out-expo);
}

.faq-item.active .faq-question .faq-indicator {
  transform: rotate(180deg);
  color: var(--emerald);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out-expo), padding 0.5s;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--emerald) 0%, #0f3d22 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 12px; left: 12px; right: 12px; bottom: 12px;
  border: 2px solid var(--gold);
  border-radius: 2px;
  pointer-events: none;
  opacity: 0.5;
}

/* ---- CTA Gold Frame Effect ---- */
.cta-inner {
  position: relative;
  border: 2px solid rgba(201, 168, 76, 0.4);
  border-radius: 4px;
  padding: 3rem 2rem;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(135deg, transparent 30%, rgba(201, 168, 76, 0.08) 50%, transparent 70%);
  pointer-events: none;
}

/* ---- Footer ---- */
.footer-section {
  background: var(--wood);
  color: var(--cream);
  position: relative;
}

.footer-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--gold-dark), var(--gold), var(--gold-light), var(--gold), var(--gold-dark));
}

.footer-section a {
  color: var(--cream);
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--gold-light);
}

.footer-title {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), transparent);
}

/* ---- Navbar ---- */
.navbar-artnouveau {
  background: var(--cream);
  border-bottom: 2px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-artnouveau .nav-link {
  font-family: var(--font-heading);
  color: var(--text-dark);
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.3s;
}

.navbar-artnouveau .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-dark);
  transition: width 0.35s var(--ease-out-expo);
}

.navbar-artnouveau .nav-link:hover {
  color: var(--gold-dark);
}

.navbar-artnouveau .nav-link:hover::after {
  width: 100%;
}

/* ---- Mobile Menu ---- */
@media (max-width: 768px) {
  .mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--cream);
    z-index: 2000;
    padding: 5rem 2rem 2rem;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
    border-left: 2px solid var(--gold);
  }

  .mobile-menu.open {
    display: block;
  }

  .mobile-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
  }

  .mobile-overlay.open {
    display: block;
  }
}

/* ---- Floating CS Button ---- */
.floating-cs {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold);
  color: white;
  border: 2px solid var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1500;
  box-shadow: 0 4px 16px rgba(160, 132, 44, 0.35);
  transition: all var(--transition-smooth);
  font-size: 1.3rem;
}

.floating-cs:hover {
  background: var(--gold-dark);
  transform: scale(1.1);
}

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 36px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wood);
  color: var(--gold);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
  font-size: 1rem;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--wood-light);
  color: var(--gold-light);
}

/* ---- Intersection Observer Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ---- Stats Counter Animation ---- */
.stat-number {
  font-family: var(--font-heading);
  color: var(--gold-dark);
  font-size: 2.8rem;
  font-weight: 700;
}

/* ---- Decorative Vine Divider ---- */
.vine-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gold);
  font-size: 0.55rem;
  letter-spacing: 8px;
  padding: 1rem 0;
}

/* ---- Section Title ---- */
.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-family: var(--font-body);
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* ---- Gold Button ---- */
.btn-gold {
  display: inline-block;
  padding: 0.7rem 2rem;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(160, 132, 44, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

.btn-gold:hover::before {
  left: 100%;
}

.btn-gold:hover {
  box-shadow: 0 4px 20px rgba(160, 132, 44, 0.5);
  transform: translateY(-2px);
}

/* ---- Emerald Button ---- */
.btn-emerald {
  display: inline-block;
  padding: 0.7rem 2rem;
  background: var(--emerald);
  color: #fff;
  border: 2px solid var(--gold);
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-decoration: none;
}

.btn-emerald:hover {
  background: var(--emerald-light);
  border-color: var(--gold-light);
}

/* ---- Hamburger ---- */
.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 2100;
}

.hamburger-btn span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--gold-dark);
  transition: all 0.3s;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }
}

/* ---- Stats Grid ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

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

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Feature Cards Grid ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Footer Grid ---- */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Twitter Follow Button ---- */
.twitter-follow-button {
  display: inline-block;
  margin: 0 0.25rem;
  vertical-align: middle;
}

/* ---- Page Header (for about and contact) ---- */
.page-header {
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-light) 100%);
  border-bottom: 2px solid var(--gold);
  padding: 3rem 0;
  text-align: center;
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), var(--gold), var(--gold-dark), transparent);
}

/* ---- About Page Specific ---- */
.about-card {
  background: var(--cream-light);
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 4px; left: 4px; right: 4px; bottom: 4px;
  border: 1px solid var(--gold-light);
  border-radius: 6px;
  pointer-events: none;
}

/* ---- Contact Page Specific ---- */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gold-light);
  border-radius: 6px;
  background: var(--cream-light);
  font-family: var(--font-body);
  color: var(--text-dark);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
}

.contact-form label {
  font-family: var(--font-heading);
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  display: block;
}

/* ---- Gold Text ---- */
.text-gold {
  color: var(--gold-dark);
}

.text-gold-light {
  color: var(--gold);
}

/* ---- Emerald Bg ---- */
.bg-emerald {
  background-color: var(--emerald);
}

/* ---- Cream Bg ---- */
.bg-cream {
  background-color: var(--cream);
}

.bg-cream-light {
  background-color: var(--cream-light);
}

/* ---- Wood Bg ---- */
.bg-wood {
  background-color: var(--wood);
}

/* ---- Quick pulse for CS indicator ---- */
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(201, 168, 76, 0); }
}

.floating-cs::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--emerald-light);
  border: 2px solid white;
  animation: pulse-gold 2s infinite;
}

/* ---- Smooth transitions for hover states ---- */
a, button, .btn-gold, .btn-emerald, .card-ornate, .faq-item {
  transition: all var(--transition-smooth);
}
