/* Dance Academy demo — ported from modules/education/DanceAcademy-Module/src/site/templates.ts */

/* ===================== Template palettes ===================== */
/* Default = rhythm (the module's first/default template) */
:root {
  --primary: #7c1d4a;
  --primary-dark: #5a1436;
  --primary-light: #fde8f0;
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --bg: #fffafb;
  --bg-alt: #fdf2f5;
  --surface: #ffffff;
  --soft: #f8e8ef;
  --border: #f0d0dd;
  --ink: #2a0f1f;
  --ink-soft: #6b3a4f;
  --ink-faint: #9a7a8a;
  --on-primary: #ffffff;
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(145deg, #2a0f1f 0%, #7c1d4a 55%, #b91c5a 100%);
  --hero-overlay: linear-gradient(180deg, rgba(42,15,31,0.22) 0%, rgba(42,15,31,0.64) 100%);
  --hero-text: #fffafb;
  --shadow-sm: 0 1px 3px rgba(124,29,74,0.07), 0 4px 12px rgba(124,29,74,0.05);
  --shadow-md: 0 4px 16px rgba(124,29,74,0.09), 0 10px 26px rgba(124,29,74,0.06);
  --shadow-lg: 0 14px 36px rgba(124,29,74,0.14), 0 22px 52px rgba(124,29,74,0.09);
}
/* Rhythm overrides (default already maps, kept for parity) */
html[data-theme="rhythm"] {
  --primary: #7c1d4a; --primary-dark: #5a1436; --primary-light: #fde8f0;
  --accent: #f59e0b; --accent-light: #fef3c7;
  --bg: #fffafb; --bg-alt: #fdf2f5; --surface: #ffffff; --soft: #f8e8ef;
  --border: #f0d0dd; --ink: #2a0f1f; --ink-soft: #6b3a4f; --ink-faint: #9a7a8a;
  --on-primary: #ffffff;
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --radius: 12px; --radius-lg: 20px; --radius-pill: 999px;
  --hero-gradient: linear-gradient(145deg, #2a0f1f 0%, #7c1d4a 55%, #b91c5a 100%);
  --hero-overlay: linear-gradient(180deg, rgba(42,15,31,0.22) 0%, rgba(42,15,31,0.64) 100%);
  --hero-text: #fffafb;
  --shadow-sm: 0 1px 3px rgba(124,29,74,0.07), 0 4px 12px rgba(124,29,74,0.05);
  --shadow-md: 0 4px 16px rgba(124,29,74,0.09), 0 10px 26px rgba(124,29,74,0.06);
  --shadow-lg: 0 14px 36px rgba(124,29,74,0.14), 0 22px 52px rgba(124,29,74,0.09);
}
html[data-theme="rhythm"] .brand-name { letter-spacing: 0.02em; }
html[data-theme="rhythm"] .hero .tagline { color: #f59e0b; font-style: normal; letter-spacing: .14em; text-transform: uppercase; font-size: .9rem; font-weight: 700; }
html[data-theme="rhythm"] .section-head .eyebrow { color: var(--primary); letter-spacing: 0.2em; background: var(--primary-light); border-color: transparent; }
html[data-theme="rhythm"] .style-card .code { color: var(--primary); }
html[data-theme="rhythm"] .feature-icon { background: var(--primary-light); }
html[data-theme="rhythm"] .feature-icon svg { color: var(--primary); }
html[data-theme="rhythm"] .class-card .thumb { border-bottom: 3px solid var(--primary-light); }
html[data-theme="rhythm"] .badge-style { background: var(--primary-light); color: var(--primary-dark); }
html[data-theme="rhythm"] .site-footer { background: #2a0f1f; border-top-color: #f59e0b; }
html[data-theme="rhythm"] .hero::after { opacity: 0.08; }

/* Minimal — Ink & paper */
html[data-theme="minimal"] {
  --primary: #0f172a; --primary-dark: #020617; --primary-light: #f1f5f9;
  --accent: #c08457; --accent-light: #fdf2e9;
  --bg: #fefcf8; --bg-alt: #f8f4ef; --surface: #ffffff; --soft: #f1ece6;
  --border: #e7ddd3; --ink: #1a1a18; --ink-soft: #6b6057; --ink-faint: #9a8f85;
  --on-primary: #ffffff;
  --font-head: 'Newsreader', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 10px; --radius-lg: 18px; --radius-pill: 999px;
  --hero-gradient: linear-gradient(135deg, #fefcf8 0%, #f8f4ef 60%, #ede8e0 100%);
  --hero-overlay: linear-gradient(180deg, rgba(26,26,24,0.06) 0%, rgba(26,26,24,0.02) 100%);
  --hero-text: #1a1a18;
  --shadow-sm: 0 1px 3px rgba(26,26,24,0.04), 0 4px 12px rgba(26,26,24,0.03);
  --shadow-md: 0 4px 16px rgba(26,26,24,0.06), 0 10px 26px rgba(26,26,24,0.04);
  --shadow-lg: 0 14px 36px rgba(26,26,24,0.08), 0 22px 52px rgba(26,26,24,0.06);
}
html[data-theme="minimal"] .site-header { background: rgba(254,252,248,0.88); }
html[data-theme="minimal"] .hero h1 { font-weight: 600; color: #1a1a18; }
html[data-theme="minimal"] .hero .tagline { color: #c08457; letter-spacing: .12em; }
html[data-theme="minimal"] .hero .desc { color: #44403c; }
html[data-theme="minimal"] .hero-cta { background: #1a1a18; color: #fff; }
html[data-theme="minimal"] .hero-cta:hover { background: #0f172a; }
html[data-theme="minimal"] .hero-cta.ghost { background: rgba(26,26,24,0.06); border-color: rgba(26,26,24,0.2); color: #1a1a18; }
html[data-theme="minimal"] .hero-stat { background: #fff; border-color: #e7ddd3; color: #1a1a18; }
html[data-theme="minimal"] .hero-stat strong { color: #1a1a18; }
html[data-theme="minimal"] .section-head .eyebrow { background: #fff; color: #1a1a18; border-color: #e7ddd3; }
html[data-theme="minimal"] .feature { border-top: 3px solid #1a1a18; }
html[data-theme="minimal"] .site-footer { background: #1a1a18; border-top-color: #c08457; }
html[data-theme="minimal"] .hero::before { background: transparent; }
html[data-theme="minimal"] .page-hero { background: #1a1a18; }
html[data-theme="minimal"] .page-hero::before { background: rgba(0,0,0,0.12); }

/* Noir — Midnight & amber */
html[data-theme="noir"] {
  --primary: #f59e0b; --primary-dark: #d97706; --primary-light: #2a2215;
  --accent: #a78bfa; --accent-light: #1e1b2e;
  --bg: #0a0a0f; --bg-alt: #12121a; --surface: #16161f; --soft: #1e1e2e;
  --border: #2a2a3a; --ink: #e8e6f0; --ink-soft: #a8a6b8; --ink-faint: #6b6a7a;
  --on-primary: #0a0a0f;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 10px; --radius-lg: 16px; --radius-pill: 999px;
  --hero-gradient: linear-gradient(145deg, #0a0a0f 0%, #1a1030 45%, #2a0f2a 100%);
  --hero-overlay: linear-gradient(180deg, rgba(10,10,15,0.18) 0%, rgba(10,10,15,0.72) 100%);
  --hero-text: #e8e6f0;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.5);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.55);
  --shadow-lg: 0 16px 44px rgba(0,0,0,0.7);
}
html[data-theme="noir"] .site-header { background: rgba(10,10,15,0.9); }
html[data-theme="noir"] .brand-name { letter-spacing: .04em; text-transform: uppercase; font-size: 1.1rem; }
html[data-theme="noir"] .nav-link { color: var(--ink-soft); }
html[data-theme="noir"] .nav-link.active { color: var(--primary); background: rgba(245,158,11,0.14); }
html[data-theme="noir"] .hero h1 { text-transform: uppercase; letter-spacing: 0.03em; }
html[data-theme="noir"] .hero .tagline { color: #f59e0b; letter-spacing: .18em; }
html[data-theme="noir"] .section-head .eyebrow { background: rgba(245,158,11,0.14); color: #f59e0b; border-color: transparent; }
html[data-theme="noir"] .style-card, html[data-theme="noir"] .class-card, html[data-theme="noir"] .choreo-card, html[data-theme="noir"] .studio-card, html[data-theme="noir"] .event-card, html[data-theme="noir"] .article-card { background: var(--surface); border-color: var(--border); }
html[data-theme="noir"] .feature { background: var(--surface); border-color: var(--border); }
html[data-theme="noir"] .feature-icon { background: rgba(245,158,11,0.14); }
html[data-theme="noir"] .feature-icon svg { color: var(--primary); }
html[data-theme="noir"] .site-footer { background: #050507; border-top-color: #f59e0b; }

/* Font imports for each template */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=DM+Sans:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,600;1,6..72,400&family=Inter:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=DM+Sans:wght@400;500&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
* { scrollbar-width: thin; scrollbar-color: #9a7ca8 transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #9a7ca8; border-radius: 999px; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
::selection { background: var(--primary); color: var(--on-primary); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ===================== Header / nav ===================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; max-width: 1120px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-logo { height: 46px; width: auto; border-radius: var(--radius); }
.brand-name { font-family: var(--font-head); font-size: 1.28rem; font-weight: 700; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-link { color: var(--ink); font-weight: 600; font-size: 0.93rem; padding: 8px 14px; border-radius: 999px; transition: color .15s ease, background .15s ease; }
.nav-link:hover { text-decoration: none; background: var(--soft); }
.nav-link.active { color: var(--primary); background: var(--soft); }
.nav-cta { background: var(--primary); color: var(--on-primary) !important; box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 35%, transparent); }
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px 8px; border-radius: 10px; }
.nav-toggle:hover { background: var(--soft); }
.nav-toggle span { display: block; width: 24px; height: 2.5px; border-radius: 999px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===================== Hero ===================== */
.hero { position: relative; padding: 108px 24px 116px; text-align: center; overflow: hidden; background: var(--hero-gradient); background-size: cover; background-position: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px); background-size: 26px 26px; pointer-events: none; }
.hero-content { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; color: var(--hero-text); }
.hero h1 { font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; margin-bottom: 14px; letter-spacing: -0.01em; }
.hero .tagline { font-size: clamp(1.02rem, 2vw, 1.28rem); opacity: .94; margin-bottom: 10px; font-style: italic; }
.hero .desc { max-width: 680px; margin: 0 auto 30px; font-size: 1.02rem; opacity: .92; }
.hero-cta { display: inline-block; background: var(--primary); color: var(--on-primary); padding: 14px 34px; border-radius: var(--radius-pill); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.04em; box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 40%, transparent); transition: transform .15s ease, background .15s ease; }
.hero-cta:hover { background: var(--primary-dark); transform: translateY(-2px); text-decoration: none; }
.hero-cta.ghost { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(6px); box-shadow: none; }
.hero-stats { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 32px; }
.hero-stat { background: rgba(255,255,255,0.12); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.2); border-radius: 14px; padding: 14px 20px; min-width: 130px; }
.hero-stat strong { display: block; font-family: var(--font-head); font-size: 1.5rem; line-height: 1; }
.hero-stat span { font-size: .82rem; opacity: .9; letter-spacing: .04em; }

.hero-carousel { position: relative; overflow: hidden; }
.hero-carousel .hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; }
.hero-carousel .hero-slide.active { opacity: 1; }
.hero-carousel .hero-dots { position: absolute; bottom: 22px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.hero-carousel .hero-dot { width: 10px; height: 10px; border-radius: 50%; border: none; padding: 0; background: rgba(255,255,255,0.5); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.hero-carousel .hero-dot:hover { transform: scale(1.25); }
.hero-carousel .hero-dot.active { background: #fff; }

/* ===================== Page hero ===================== */
.page-hero { position: relative; padding: 64px 24px; text-align: center; overflow: hidden; background: var(--hero-gradient); background-size: cover; background-position: center; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.page-hero .container { position: relative; z-index: 2; color: var(--hero-text); }
.page-hero h1 { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 10px; }
.page-hero .sub { font-size: 1.05rem; opacity: 0.92; max-width: 640px; margin: 0 auto; }
.crumbs { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; margin-bottom: 14px; opacity: 0.9; flex-wrap: wrap; }
.crumbs a { color: inherit; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { opacity: 0.55; font-weight: 400; }

/* ===================== Sections ===================== */
.section { padding: 76px 24px; }
.section-alt { position: relative; overflow: hidden; background: var(--bg-alt); }
.section-alt::before, .section-alt::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.section-alt::before { width: 420px; height: 420px; top: -140px; left: -120px; background: color-mix(in srgb, var(--primary) 10%, transparent); }
.section-alt::after { width: 360px; height: 360px; bottom: -120px; right: -110px; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.section-alt .container { position: relative; z-index: 1; }
.section h2 { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.15rem); margin-bottom: 36px; text-align: center; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head .eyebrow { display: inline-block; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: var(--primary); background: var(--surface); border: 1px solid var(--border); padding: 6px 16px; border-radius: 999px; margin-bottom: 14px; }
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--ink-soft); font-size: 1.03rem; }

/* ===================== Features ===================== */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature h3 { color: var(--primary); margin-bottom: 8px; font-family: var(--font-head); font-size: 1.08rem; }
.feature p { color: var(--ink-soft); font-size: 0.95rem; }
.feature-icon { width: 52px; height: 52px; display: grid; place-items: center; background: var(--soft); border-radius: 50%; margin-bottom: 14px; }
.feature-icon svg { width: 26px; height: 26px; color: var(--accent); }

/* ===================== Style / class cards ===================== */
.styles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.style-card { position: relative; display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.style-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); text-decoration: none; }
.style-card .thumb { height: 180px; overflow: hidden; background: var(--soft); }
.style-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.style-card:hover .thumb img { transform: scale(1.05); }
.style-card .body { padding: 20px; display: grid; gap: 6px; }
.style-card .code { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.style-card h3 { font-family: var(--font-head); font-size: 1.22rem; line-height: 1.3; }
.style-card p { color: var(--ink-soft); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.style-card .meta { display: flex; gap: 12px; font-size: .82rem; color: var(--ink-faint); margin-top: 4px; }

.classes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.class-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.class-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.class-card .thumb { height: 180px; overflow: hidden; background: var(--soft); position: relative; }
.class-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.class-card:hover .thumb img { transform: scale(1.06); }
.class-card .body { padding: 20px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.badge-style { align-self: flex-start; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.13em; color: var(--accent); background: var(--accent-light); padding: 3px 10px; border-radius: 999px; text-decoration: none; }
.class-card h3 { font-family: var(--font-head); font-size: 1.12rem; line-height: 1.35; }
.class-card h3 a { color: inherit; }
.class-card .level { color: var(--ink-faint); font-size: .82rem; font-weight: 600; }
.class-card .fees { font-weight: 700; color: var(--primary-dark); font-size: 1rem; margin-top: auto; padding-top: 8px; }
.class-card .footer { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px dashed var(--border); }
.class-card .footer a { font-weight: 600; font-size: 0.92rem; }
.badge-featured { position: absolute; top: 12px; right: 12px; background: var(--primary); color: var(--on-primary); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }

/* ===================== Choreographer cards ===================== */
.choreo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.choreo-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.choreo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.choreo-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 3px solid var(--soft); }
.choreo-card .avatar-fallback { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--soft); color: var(--ink-soft); font-weight: 800; font-size: 1.6rem; }
.choreo-card h3 { font-family: var(--font-head); font-size: 1.08rem; }
.choreo-card .role { color: var(--primary); font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }
.choreo-card .qual { color: var(--ink-faint); font-size: .85rem; margin-top: 6px; }
.choreo-card .bio { color: var(--ink-soft); font-size: .9rem; margin-top: 10px; }

/* ===================== Studio cards ===================== */
.studios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.studio-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.studio-card .thumb { height: 180px; overflow: hidden; background: var(--soft); }
.studio-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.studio-card .body { padding: 20px; }
.studio-card .cat { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.studio-card h3 { font-family: var(--font-head); font-size: 1.12rem; margin-top: 4px; }
.studio-card p { color: var(--ink-soft); font-size: .93rem; margin-top: 6px; }

/* ===================== Performance / event cards ===================== */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.event-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .15s ease; }
.event-card:hover { transform: translateY(-4px); }
.event-card .thumb { height: 190px; overflow: hidden; background: var(--soft); }
.event-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.event-card .body { padding: 20px; display: grid; gap: 8px; }
.event-card .date { font-size: .78rem; font-weight: 700; color: var(--primary); letter-spacing: .06em; text-transform: uppercase; }
.event-card h3 { font-family: var(--font-head); font-size: 1.12rem; }
.event-card h3 a { color: inherit; }
.event-card p { color: var(--ink-soft); font-size: .93rem; }

/* ===================== Gallery ===================== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.gallery-grid figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; border: 1px solid var(--border); }
.gallery-grid img { width: 100%; height: 220px; object-fit: cover; transition: transform .35s ease; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption { font-size: 0.85rem; color: var(--ink-soft); padding: 10px 14px; background: var(--surface); }

/* ===================== Testimonials ===================== */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; }
.testimonial-card .stars { color: var(--accent); font-size: 1.05rem; letter-spacing: 2px; }
.testimonial-card p { color: var(--ink); font-size: 0.98rem; flex: 1; }
.testimonial-card .author { color: var(--ink-soft); font-size: 0.88rem; font-weight: 700; }
.testimonial-card .batch { color: var(--ink-faint); font-size: .82rem; }

/* ===================== FAQ ===================== */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq-list details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-list summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; font-size: 1rem; font-family: var(--font-head); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.3rem; color: var(--primary); transition: transform .15s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details .rich { padding: 0 22px 18px; color: var(--ink-soft); font-size: 0.97rem; }

/* ===================== Rich / article prose ===================== */
.rich h2, .rich h3 { font-family: var(--font-head); color: var(--ink); margin: 16px 0 8px; line-height: 1.35; }
.rich h2 { font-size: 1.25rem; }
.rich h3 { font-size: 1.08rem; }
.rich p { margin: 0 0 12px; }
.rich ul, .rich ol { margin: 0 0 12px; padding-left: 22px; }
.rich li { margin-bottom: 4px; }
.rich blockquote { border-left: 3px solid var(--primary); padding-left: 14px; color: var(--ink-soft); margin: 0 0 12px; font-style: italic; background: color-mix(in srgb, var(--primary) 6%, transparent); padding: 10px 14px; border-radius: 0 10px 10px 0; }
.rich a { color: var(--primary-dark); font-weight: 600; }

.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.article-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-card .thumb { height: 180px; overflow: hidden; background: var(--soft); }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.article-card:hover .thumb img { transform: scale(1.06); }
.article-card .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-card h3 { font-family: var(--font-head); font-size: 1.1rem; }
.article-card p { color: var(--ink-soft); font-size: 0.93rem; flex: 1; }
.article-meta { font-size: 0.78rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; }
.article-card .footer { margin-top: auto; padding-top: 10px; }
.article-card .footer a { font-weight: 600; }

.article-prose { max-width: 760px; margin: 0 auto; }
.article-prose img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 26px; }
.article-prose h1 { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 10px; }
.article-prose .lede { font-size: 1.12rem; color: var(--ink-soft); margin-bottom: 26px; }
.article-prose .body { font-size: 1.05rem; }
.article-prose .body p { margin-bottom: 18px; }
.article-prose .body h2 { font-family: var(--font-head); font-size: 1.4rem; margin: 30px 0 12px; }
.article-prose .body h3 { font-family: var(--font-head); font-size: 1.15rem; margin: 26px 0 10px; }
.article-prose .body ul, .article-prose .body ol { margin: 0 0 18px 24px; }
.article-prose .body li { margin-bottom: 6px; }
.article-prose .body blockquote { border-left: 3px solid var(--primary); padding-left: 16px; color: var(--ink-soft); margin: 0 0 18px; font-style: italic; background: color-mix(in srgb, var(--primary) 6%, transparent); padding: 10px 16px; border-radius: 0 10px 10px 0; }
.article-prose .body a { color: var(--primary-dark); font-weight: 600; }

/* ===================== Contact ===================== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.contact-card h3 { color: var(--primary); margin-bottom: 10px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; }
.contact-card .hours { white-space: pre-line; }

/* ===================== Enquiry ===================== */
.enquiry-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: start; }
.enquiry-info { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); display: grid; gap: 18px; position: sticky; top: 96px; }
.enquiry-info h3 { color: var(--primary); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; margin-bottom: 2px; }
.enquiry-info .hours { white-space: pre-line; }
.enquiry-form { max-width: 640px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); display: grid; gap: 16px; }
.enquiry-form label { font-weight: 600; font-size: 0.95rem; display: grid; gap: 7px; }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea { padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; width: 100%; background: var(--bg); color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.enquiry-form input:focus, .enquiry-form select:focus, .enquiry-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.enquiry-form textarea { min-height: 96px; resize: vertical; }
.consent-line { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 0.88rem; color: var(--ink-soft); }
.consent-line input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.success-box { max-width: 580px; margin: 48px auto; text-align: center; background: var(--primary-light); border: 2px solid var(--primary); border-radius: var(--radius-lg); padding: 36px; }
.success-box h3 { font-family: var(--font-head); margin-bottom: 8px; }
.error-box { max-width: 580px; margin: 24px auto; text-align: center; background: #fef2f2; border: 1px solid #fca5a5; border-radius: var(--radius); padding: 20px; color: #991b1b; }

/* ===================== Detail ===================== */
.detail-wrap { max-width: 860px; margin: 0 auto; }
.detail-hero { display: grid; gap: 18px; margin-bottom: 28px; }
.detail-hero img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.detail-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .88rem; color: var(--ink-soft); }
.detail-meta span { display: inline-flex; gap: 6px; align-items: center; }
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { color: var(--ink-faint); font-weight: 600; width: 160px; background: var(--bg-alt); }

/* ===================== Pager ===================== */
.pager { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 32px; flex-wrap: wrap; }
.pager-link { display: inline-flex; min-width: 38px; height: 38px; padding: 0 12px; align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; font-size: 0.9rem; color: var(--primary); text-decoration: none; }
.pager-link:hover { border-color: var(--primary); }
.pager-link.current { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-weight: 600; }

.empty-note { text-align: center; color: var(--ink-faint); padding: 32px 0; }
.btn { display: inline-block; background: var(--primary); color: var(--on-primary); border: none; border-radius: var(--radius-pill); padding: 13px 28px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); text-decoration: none; }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }

/* ===================== Footer ===================== */
.site-footer { background: var(--ink); color: color-mix(in srgb, var(--ink) 35%, #fff); border-top: 4px solid color-mix(in srgb, var(--primary) 60%, transparent); padding: 56px 0 0; margin-top: 48px; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 40px; }
.site-footer h3 { color: #fff; margin-bottom: 14px; font-size: 1rem; font-family: var(--font-head); }
.site-footer a { color: var(--primary); }
.site-footer .brand { color: #fff; }
.site-footer .brand:hover { text-decoration: none; }
.site-footer .footer-desc { color: color-mix(in srgb, var(--ink) 22%, #fff); font-size: 0.92rem; margin-top: 6px; }
.footer-links { display: grid; gap: 4px; }
.footer-links a { color: color-mix(in srgb, var(--ink) 30%, #fff); }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-links a.all-link { font-weight: 700; color: var(--primary); margin-top: 6px; }
.footer-col p { margin-bottom: 6px; }
.site-footer .hours { white-space: pre-line; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 44px; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.86rem; color: color-mix(in srgb, var(--ink) 22%, #fff); }
.footer-bottom a { color: color-mix(in srgb, var(--ink) 22%, #fff); font-weight: 600; }
.footer-bottom a:hover { color: #fff; }
.footer-sep { opacity: .45; }

/* ===================== Socials / WhatsApp ===================== */
.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; transition: background .15s ease, transform .15s ease; }
.social-link:hover { background: var(--primary); transform: translateY(-2px); text-decoration: none; }
.social-link svg { width: 16px; height: 16px; }
.wa-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.wa-link svg { width: 16px; height: 16px; }
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 999px; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(37,211,102,.4); transition: transform .15s ease, background .15s ease; }
.wa-float:hover { transform: translateY(-3px) scale(1.04); background: #1ebe5b; text-decoration: none; }
.wa-float svg { width: 30px; height: 30px; }

/* ===================== Notice ticker ===================== */
.notice-ticker { background: var(--primary); color: var(--on-primary); padding: 10px 0; overflow: hidden; }
.notice-ticker-inner { display: flex; gap: 32px; white-space: nowrap; animation: ticker 30s linear infinite; }
.notice-ticker a { color: var(--on-primary); font-weight: 600; font-size: .9rem; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===================== Theme switcher ===================== */
.theme-btn {
  position: fixed; bottom: 92px; right: 24px; z-index: 110;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--primary); color: var(--on-primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); transition: background .15s, transform .15s;
}
.theme-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }
.theme-btn svg { width: 24px; height: 24px; }
.theme-panel {
  position: fixed; bottom: 156px; right: 24px; z-index: 120;
  width: 280px; max-width: calc(100vw - 32px);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 16px;
  display: none; text-align: left;
}
.theme-panel.open { display: block; }
.theme-panel h3 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 4px; }
.theme-panel .theme-sub { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 12px; }
.theme-card {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--soft); border: 2px solid transparent; border-radius: var(--radius);
  padding: 10px 12px; margin-bottom: 8px; cursor: pointer;
  font-family: var(--font-body); color: var(--ink); transition: border-color .15s, background .15s;
}
.theme-card:hover { background: color-mix(in srgb, var(--soft) 60%, var(--primary-light)); }
.theme-card.active { border-color: var(--primary); background: var(--primary-light); }
.theme-swatches { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.theme-swatches .sw { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.12); }
.theme-card .t-name { font-weight: 700; font-size: 0.9rem; }
.theme-card .t-desc { font-size: 0.75rem; color: var(--ink-soft); line-height: 1.35; }
.theme-note { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 0.72rem; color: var(--ink-faint); line-height: 1.4; }

/* ===================== Responsive ===================== */
@media (max-width: 900px) { .enquiry-wrap { grid-template-columns: 1fr; } .enquiry-info { position: static; } }
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 20px 16px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; }
  .nav-link { border-radius: 10px; padding: 12px 14px; font-size: 1rem; }
  .hero { padding: 76px 20px 84px; }
  .section { padding: 56px 20px; }
  .page-hero { padding: 48px 20px; }
  .theme-panel { right: 16px; bottom: 148px; }
  .theme-btn { right: 16px; bottom: 88px; }
}
@media (max-width: 520px) {
  .nav-link { padding: 7px 10px; font-size: 0.88rem; }
  .enquiry-form { padding: 24px 20px; }
}
