/* =============================================
   藝承音樂藝術中心 — Redesign CSS
   ============================================= */

:root {
  --navy: #1a2744;
  --navy-light: #2d4a8a;
  --gold: #d4a843;
  --gold-light: #f0c96a;
  --cream: #fdf8f0;
  --coral: #e8634a;
  --coral-dark: #c94e38;
  --white: #ffffff;
  --text-dark: #1a1a2e;
  --text-mid: #4a5568;
  --text-light: #718096;
  --card-shadow: 0 4px 24px rgba(26, 39, 68, 0.10);
  --card-shadow-hover: 0 12px 40px rgba(26, 39, 68, 0.18);
  --radius: 16px;
  --radius-sm: 8px;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Noto Sans TC', 'Poppins', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--navy);
}
.section-subtitle {
  text-align: center;
  color: var(--text-mid);
  margin-bottom: 3rem;
  font-size: 1rem;
}
.section-title-line {
  display: block;
  width: 56px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0.5rem auto 1rem;
}

/* === LAYOUT === */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: 5rem 0; }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); }

/* === HEADER === */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(26, 39, 68, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 168, 67, 0.2);
  transition: box-shadow 0.3s;
}
#site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.25); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1rem;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-main {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold);
  white-space: nowrap;
}
.logo-sub {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
}

/* NAV */
.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--gold);
  background: rgba(212,168,67,0.1);
}

/* LANGUAGE SWITCHER */
.lang-switcher {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 50px;
  padding: 4px;
}
.lang-btn {
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.lang-btn.active, .lang-btn:hover {
  background: var(--gold);
  color: var(--navy);
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE NAV */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--navy);
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav a {
  color: rgba(255,255,255,0.85);
  padding: 0.6rem 0;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav.open { display: flex; }

/* === HERO === */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, #2d4a8a 60%, #1f3a6e 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 0 8rem;
}
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(26, 39, 68, 0.82) 0%,
    rgba(26, 39, 68, 0.65) 55%,
    rgba(26, 39, 68, 0.45) 100%
  );
  z-index: 0;
}
#hero::before {
  display: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212,168,67,0.15);
  border: 1px solid rgba(212,168,67,0.4);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero-badge::before { content: '⭐'; }
.hero-title {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}
.hero-title span { color: var(--gold); }
.hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Wave */
.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
}
.hero-wave svg { display: block; width: 100%; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
  box-shadow: 0 6px 20px rgba(232,99,74,0.4);
}
.btn-primary:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(232,99,74,0.5);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(212,168,67,0.35);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

/* === STATS BAR === */
.stats-bar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 2rem;
}
.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--white);
}
.stat-item + .stat-item { border-left: 1px solid #f0f0f0; }
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.stat-num span { color: var(--coral); }
.stat-label { font-size: 0.82rem; color: var(--text-mid); margin-top: 0.25rem; }

/* === WHY US CARDS === */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--card-shadow);
  border-top: 4px solid transparent;
  transition: all 0.3s;
  text-align: center;
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-top-color: var(--gold);
}
.why-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}
.why-card h3 { color: var(--navy); margin-bottom: 0.5rem; font-size: 1.15rem; }
.why-card p { color: var(--text-mid); font-size: 0.9rem; }

/* === COURSE CARDS === */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.course-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}
.course-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}
.course-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}
.course-card-img .course-emoji {
  position: absolute;
  font-size: 3rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
.course-card-body { padding: 1.5rem; flex: 1; }
.course-card-body h3 { color: var(--navy); margin-bottom: 0.5rem; font-size: 1.1rem; }
.course-card-body p { color: var(--text-mid); font-size: 0.88rem; line-height: 1.6; }
.course-tag {
  display: inline-block;
  background: rgba(26,39,68,0.07);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  margin-top: 0.75rem;
}

/* === ABOUT === */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-img-wrap {
  position: relative;
}
.about-img {
  border-radius: var(--radius);
  width: 100%;
  height: 420px;
  object-fit: cover;
  box-shadow: var(--card-shadow-hover);
}
.about-img-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--gold);
  color: var(--navy);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 30px rgba(212,168,67,0.4);
}
.about-img-badge .num { font-size: 2.2rem; font-weight: 900; line-height: 1; display: block; }
.about-img-badge .lbl { font-size: 0.78rem; font-weight: 600; }
.about-text h2 { color: var(--navy); margin-bottom: 1rem; }
.about-text p { color: var(--text-mid); margin-bottom: 1.5rem; line-height: 1.9; }
.about-list { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 2rem; }
.about-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-mid);
  font-size: 0.95rem;
}
.about-list li::before { content: '✓'; color: var(--gold); font-weight: 800; flex-shrink: 0; }

/* === PRODUCTS === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: all 0.3s;
  border-bottom: 4px solid transparent;
}
.product-card:hover {
  transform: translateY(-4px);
  border-bottom-color: var(--coral);
  box-shadow: var(--card-shadow-hover);
}
.product-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.product-card h3 { color: var(--navy); margin-bottom: 0.5rem; font-size: 1rem; }
.product-card p { color: var(--text-mid); font-size: 0.85rem; }

/* === CONTACT SECTION === */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h2 { color: var(--navy); margin-bottom: 1.5rem; }
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.info-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  background: rgba(26,39,68,0.07);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-body h4 { color: var(--navy); margin-bottom: 0.25rem; font-size: 0.9rem; }
.info-body p, .info-body a { color: var(--text-mid); font-size: 0.88rem; line-height: 1.7; }
.info-body a:hover { color: var(--coral); }

.social-links { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; }
.social-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s;
}
.social-link:hover { background: var(--coral); transform: translateY(-2px); }

/* === FORM === */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
}
.contact-form-wrap h3 { color: var(--navy); margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: #f9fafb;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,39,68,0.08);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  color: #2d7a4a;
  background: #f0fdf4;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
}

/* === HOURS TABLE === */
.hours-table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.hours-table tr { border-bottom: 1px solid #f0f0f0; }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: 0.6rem 0; font-size: 0.9rem; color: var(--text-mid); }
.hours-table td:first-child { font-weight: 700; color: var(--navy); width: 45%; }

/* === HOURS SECTION === */
.hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.hours-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--card-shadow);
}
.hours-card .day { font-weight: 700; color: var(--navy); margin-bottom: 0.25rem; }
.hours-card .time { color: var(--text-mid); font-size: 0.9rem; }

/* === FOOTER === */
footer {
  background: #0f1a30;
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo-main { font-size: 1.3rem; margin-bottom: 0.5rem; display: block; }
.footer-brand p { font-size: 0.88rem; line-height: 1.8; margin-top: 0.75rem; max-width: 280px; }
.footer-col h4 { color: var(--gold); font-size: 0.9rem; margin-bottom: 1rem; }
.footer-col a { display: block; color: rgba(255,255,255,0.65); font-size: 0.88rem; margin-bottom: 0.5rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  text-align: center;
  font-size: 0.82rem;
  padding-top: 1.5rem;
  color: rgba(255,255,255,0.4);
}

/* === WHATSAPP FLOAT === */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #25d366;
  color: var(--white);
  padding: 0.85rem 1.4rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: all 0.25s;
  text-decoration: none;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(37,211,102,0.55); }
.wa-float svg { width: 22px; height: 22px; fill: currentColor; }

/* === ANIMATIONS === */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* === MAP PLACEHOLDER === */
.map-placeholder {
  background: #e8eef5;
  border-radius: var(--radius);
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-mid);
  font-size: 0.9rem;
  border: 2px dashed #c8d3e0;
  margin-top: 1.5rem;
}
.map-placeholder .map-icon { font-size: 2.5rem; }

/* === TRIAL BANNER === */
.trial-banner {
  background: linear-gradient(135deg, var(--coral) 0%, #c94e38 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.trial-banner h2 { color: var(--white); margin-bottom: 0.75rem; }
.trial-banner p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; font-size: 1.05rem; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .about-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .about-img-badge { bottom: -1rem; right: 0.5rem; }
  .contact-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .stats-bar { grid-template-columns: repeat(3,1fr); }
  .wa-float span { display: none; }
  .wa-float { padding: 1rem; border-radius: 50%; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  #gallery-slideshow { width: 100% !important; }
}
@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr; }
  .stat-item + .stat-item { border-left: none; border-top: 1px solid #f0f0f0; }
  .header-inner { gap: 0.5rem; }
  .logo-sub { display: none; }
}
