@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
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; }

/* ===================== Theme: Asphalt (default) ===================== */
:root {
  --primary: #f5b301;
  --primary-dark: #d99e00;
  --primary-light: #fdf3d0;
  --accent: #e23b2e;
  --accent-light: #fde8e6;
  --bg: #fafafa;
  --bg-alt: #f1f2f4;
  --surface: #ffffff;
  --soft: #eceef1;
  --border: #dfe2e7;
  --ink: #17181c;
  --ink-soft: #4c5058;
  --ink-faint: #83878f;
  --on-primary: #17181c;
  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --hero-gradient:
    repeating-linear-gradient(-55deg, rgba(245,179,1,0.05) 0 34px, transparent 34px 68px),
    linear-gradient(140deg, #17181c 0%, #23262d 52%, #33373f 100%);
  --hero-overlay: linear-gradient(180deg, rgba(23,24,28,0.1) 0%, rgba(23,24,28,0.62) 100%);
  --hero-text: #fafafa;
  --shadow-sm: 0 1px 3px rgba(23,24,28,0.07), 0 4px 12px rgba(23,24,28,0.05);
  --shadow-md: 0 4px 16px rgba(23,24,28,0.09), 0 10px 26px rgba(23,24,28,0.06);
  --shadow-lg: 0 14px 36px rgba(23,24,28,0.14), 0 22px 52px rgba(23,24,28,0.09);
}
.brand-name { letter-spacing: .06em; }
.hero-stat strong { color: var(--primary); }
.hero-dot.active { background: var(--primary); }
.course-card h3 a:hover { color: var(--primary-dark); text-decoration: none; }
.section-head .eyebrow { background: var(--primary-light); }
.feature-icon { background: var(--primary-light); }
.rating svg { color: #e0a106; fill: currentColor; }
.site-footer { background: #101115; border-top-color: var(--primary); }

/* ===================== Theme: Highway ===================== */
html[data-theme="highway"] {
  --primary: #ea580c;
  --primary-dark: #c2410c;
  --primary-light: #ffedd5;
  --accent: #1d4ed8;
  --accent-light: #dbeafe;
  --bg: #fbfbfc;
  --bg-alt: #eef1f5;
  --surface: #ffffff;
  --soft: #e6eaf0;
  --border: #dbe0e8;
  --ink: #182132;
  --ink-soft: #49566b;
  --ink-faint: #8792a3;
  --on-primary: #ffffff;
  --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(150deg, #182132 0%, #24344c 55%, #1d4ed8 130%);
  --hero-overlay: linear-gradient(180deg, rgba(24,33,50,0.08) 0%, rgba(24,33,50,0.58) 100%);
  --hero-text: #f6f8fb;
  --shadow-sm: 0 1px 3px rgba(24,33,50,0.06), 0 4px 12px rgba(24,33,50,0.05);
  --shadow-md: 0 4px 16px rgba(24,33,50,0.08), 0 10px 26px rgba(24,33,50,0.06);
  --shadow-lg: 0 14px 36px rgba(24,33,50,0.13), 0 22px 52px rgba(24,33,50,0.09);
}
html[data-theme="highway"] .hero-kicker,
html[data-theme="highway"] .badge-featured,
html[data-theme="highway"] .pkg-flag,
html[data-theme="highway"] .section-head .eyebrow,
html[data-theme="highway"] .feature-icon,
html[data-theme="highway"] .step-num { transform: none; }
html[data-theme="highway"] .hero-kicker > *,
html[data-theme="highway"] .badge-featured > span,
html[data-theme="highway"] .pkg-flag > span,
html[data-theme="highway"] .section-head .eyebrow > span,
html[data-theme="highway"] .feature-icon > *,
html[data-theme="highway"] .step-num > span { transform: none; }
html[data-theme="highway"] .hero h1 { letter-spacing: .02em; }
html[data-theme="highway"] .hero .tagline { color: #ffd9be; }
html[data-theme="highway"] .hero-stat { background: rgba(255,255,255,0.1); }
html[data-theme="highway"] .hero-stat strong { color: #ffb27a; }
html[data-theme="highway"] .section-head .eyebrow { background: var(--primary-light); color: var(--primary-dark); border-radius: var(--radius-pill); }
html[data-theme="highway"] .feature { border-top-width: 5px; }
html[data-theme="highway"] .step-num { border-radius: var(--radius-pill); }
html[data-theme="highway"] .rating svg, html[data-theme="highway"] .rating { color: var(--primary-dark); }
html[data-theme="highway"] .site-footer { background: #131b28; border-top-color: var(--primary); }

/* ===================== Theme: Night Drive ===================== */
html[data-theme="nightdrive"] {
  --primary: #ffb020;
  --primary-dark: #f59e0b;
  --primary-light: #2c2415;
  --accent: #38bdf8;
  --accent-light: #12222e;
  --bg: #0b0e13;
  --bg-alt: #11151d;
  --surface: #151a24;
  --soft: #1c222e;
  --border: #273042;
  --ink: #e9ecf2;
  --ink-soft: #a3abba;
  --ink-faint: #6b7383;
  --on-primary: #171308;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --hero-gradient:
    repeating-linear-gradient(-55deg, rgba(255,176,32,0.045) 0 34px, transparent 34px 68px),
    radial-gradient(ellipse at 70% 20%, rgba(56,189,248,0.14) 0%, transparent 55%),
    linear-gradient(140deg, #0b0e13 0%, #141a26 55%, #1d2436 100%);
  --hero-overlay: linear-gradient(180deg, rgba(11,14,19,0.12) 0%, rgba(11,14,19,0.66) 100%);
  --hero-text: #eef1f6;
  --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="nightdrive"] .site-header { background: rgba(11,14,19,0.88); }
html[data-theme="nightdrive"] .brand-name { letter-spacing: .05em; }
html[data-theme="nightdrive"] .nav-link { color: var(--ink-soft); }
html[data-theme="nightdrive"] .nav-link.active { color: var(--primary); background: rgba(255,176,32,0.12); }
html[data-theme="nightdrive"] .hero-stat { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }
html[data-theme="nightdrive"] .hero-stat strong { color: var(--primary); }
html[data-theme="nightdrive"] .hero-dot.active { background: var(--primary); }
html[data-theme="nightdrive"] .course-card,
html[data-theme="nightdrive"] .instructor-card,
html[data-theme="nightdrive"] .package-card,
html[data-theme="nightdrive"] .testimonial-card,
html[data-theme="nightdrive"] .article-card,
html[data-theme="nightdrive"] .feature { background: var(--surface); border-color: var(--border); }
html[data-theme="nightdrive"] .package-card.featured { box-shadow: 0 0 0 1px var(--primary), var(--shadow-md); }
html[data-theme="nightdrive"] .rating, html[data-theme="nightdrive"] .rating svg { color: var(--primary); fill: currentColor; }
html[data-theme="nightdrive"] .vehicle-chip { background: var(--soft); color: var(--ink-soft); }
html[data-theme="nightdrive"] .vehicle-chip.lmv { background: var(--primary-light); color: var(--primary); }
html[data-theme="nightdrive"] .error-box { background: #2a1215; border-color: #7f1d1d; color: #fecaca; }
html[data-theme="nightdrive"] .site-footer { background: #07090d; border-top-color: var(--primary); }

/* ===================== 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); object-fit: contain; }
.brand-name { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-link { color: var(--ink); font-weight: 600; font-size: 0.92rem; padding: 8px 14px; border-radius: var(--radius-pill); transition: color .15s ease, background .15s ease; }
.nav-link:hover { text-decoration: none; background: var(--soft); }
.nav-link.active { color: var(--primary-dark); 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: 112px 24px 120px; 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-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; color: var(--hero-text); }
.hero h1 { font-family: var(--font-head); font-size: clamp(2.3rem, 5.4vw, 3.9rem); line-height: 1.06; margin-bottom: 16px; letter-spacing: .01em; text-transform: uppercase; }
.hero .tagline { font-size: clamp(.86rem, 1.7vw, 1rem); opacity: .95; margin-bottom: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.hero .desc { max-width: 660px; margin: 0 auto 30px; font-size: 1.04rem; opacity: .93; }
.hero-kicker { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px; background: var(--primary); color: var(--on-primary); font-weight: 800; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; padding: 7px 18px; border-radius: 4px; transform: skewX(-8deg); margin-bottom: 22px; }
.hero-kicker > * { transform: skewX(8deg); }
.hero-cta-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-cta { display: inline-block; background: var(--primary); color: var(--on-primary); padding: 15px 36px; border-radius: var(--radius); font-weight: 800; font-size: 1.02rem; text-transform: uppercase; letter-spacing: .07em; box-shadow: 0 10px 28px rgba(0,0,0,.32); transition: transform .15s ease, filter .15s ease; }
.hero-cta:hover { filter: brightness(1.08); transform: translateY(-2px); text-decoration: none; }
.hero-cta-alt { background: transparent; color: var(--hero-text); border: 2px solid color-mix(in srgb, var(--hero-text) 60%, transparent); box-shadow: none; padding: 13px 34px; }
.hero-cta-alt:hover { border-color: var(--hero-text); background: rgba(255,255,255,.08); filter: none; }
.hero-stats { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 38px; }
.hero-stat { background: rgba(0,0,0,.32); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.16); border-left: 4px solid var(--primary); border-radius: 8px; padding: 14px 22px; min-width: 128px; text-align: left; }
.hero-stat strong { display: block; font-family: var(--font-head); font-size: 1.55rem; line-height: 1.1; letter-spacing: .02em; }
.hero-stat span { font-size: .78rem; opacity: .88; letter-spacing: .09em; text-transform: uppercase; }

.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: 26px; height: 6px; border-radius: 999px; border: none; padding: 0; background: rgba(255,255,255,.42); cursor: pointer; transition: background .2s ease; }
.hero-carousel .hero-dot:hover { background: rgba(255,255,255,.75); }
.hero-carousel .hero-dot.active { background: var(--primary); }

.page-hero { position: relative; padding: 66px 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.9rem, 4vw, 2.8rem); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .02em; }
.page-hero .sub { font-size: 1.02rem; opacity: 0.92; max-width: 640px; margin: 0 auto; }
.crumbs { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 700; margin-bottom: 14px; opacity: 0.92; letter-spacing: .08em; text-transform: uppercase; }
.crumbs a { color: inherit; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { opacity: 0.55; font-weight: 400; }

/* ===================== Sections ===================== */
.section { padding: 80px 24px; }
.section-alt { position: relative; overflow: hidden; background: var(--bg-alt); }
.section-alt::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(-55deg, transparent 0 26px, color-mix(in srgb, var(--primary) 4%, transparent) 26px 52px); pointer-events: none; }
.section-alt > .container { position: relative; z-index: 1; }
.section h2 { font-family: var(--font-head); font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 36px; text-align: center; text-transform: uppercase; letter-spacing: .02em; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 46px; }
.section-head .eyebrow { display: inline-block; font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.2em; color: var(--primary-dark); background: var(--accent-light); padding: 6px 16px; border-radius: 4px; transform: skewX(-8deg); margin-bottom: 16px; }
.section-head .eyebrow > span { display: inline-block; transform: skewX(8deg); }
.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-top: 4px solid var(--primary); 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(--ink); margin-bottom: 8px; font-family: var(--font-head); font-size: 1.12rem; text-transform: uppercase; letter-spacing: .03em; }
.feature p { color: var(--ink-soft); font-size: 0.94rem; }
.feature-icon { width: 54px; height: 54px; display: grid; place-items: center; background: var(--soft); border-radius: 10px; transform: skewX(-6deg); margin-bottom: 14px; }
.feature-icon svg { width: 27px; height: 27px; color: var(--primary-dark); }
.feature-icon > * { transform: skewX(6deg); }

/* ===================== Vehicle chip ===================== */
.vehicle-chip { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 3px 10px; border-radius: 4px; background: var(--accent-light); color: var(--ink); white-space: nowrap; }
.vehicle-chip.lmv { background: var(--primary-light); color: var(--ink); }

/* ===================== Courses ===================== */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.course-card { position: relative; 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 .16s ease, box-shadow .16s ease; }
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.course-card .thumb { height: 180px; overflow: hidden; background: linear-gradient(135deg, var(--soft), var(--bg-alt)); position: relative; }
.course-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.course-card:hover .thumb img { transform: scale(1.06); }
.course-card .no-img { height: 100%; display: grid; place-items: center; color: var(--ink-faint); font-family: var(--font-head); font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; }
.badge-featured { position: absolute; top: 12px; right: 12px; background: var(--primary); color: var(--on-primary); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; border-radius: 4px; transform: skewX(-8deg); z-index: 2; }
.badge-featured > span { display: inline-block; transform: skewX(8deg); }
.course-card .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.course-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.course-card h3 { font-family: var(--font-head); font-size: 1.24rem; line-height: 1.25; text-transform: uppercase; letter-spacing: .01em; }
.course-card h3 a { color: inherit; }
.course-card p { color: var(--ink-soft); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.course-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--border); font-size: .84rem; color: var(--ink-soft); font-weight: 600; }
.course-meta span { display: inline-flex; align-items: center; gap: 6px; }
.course-meta svg { width: 15px; height: 15px; color: var(--primary-dark); }

/* ===================== Instructors ===================== */
.instructors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.instructor-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 22px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.instructor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.instructor-card img, .instructor-card .avatar-fallback { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 3px solid var(--soft); }
.instructor-card .avatar-fallback { display: grid; place-items: center; background: var(--soft); color: var(--ink-soft); font-weight: 800; font-size: 1.6rem; font-family: var(--font-head); }
.instructor-card h3 { font-family: var(--font-head); font-size: 1.14rem; text-transform: uppercase; letter-spacing: .02em; }
.rating { display: inline-flex; align-items: center; gap: 5px; color: var(--primary-dark); font-weight: 800; font-size: .9rem; margin-top: 3px; }
.rating svg { width: 15px; height: 15px; }
.chips { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.instructor-card .bio { color: var(--ink-soft); font-size: .89rem; margin-top: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.instructor-card .langs { color: var(--ink-faint); font-size: .8rem; margin-top: 10px; font-weight: 600; }

/* ===================== Packages ===================== */
.packages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; align-items: stretch; }
.package-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 28px 26px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.package-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.package-card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-md); }
.pkg-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%) skewX(-8deg); background: var(--primary); color: var(--on-primary); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 5px 16px; border-radius: 4px; white-space: nowrap; }
.pkg-flag > span { display: inline-block; transform: skewX(8deg); }
.package-card h3 { font-family: var(--font-head); font-size: 1.3rem; text-transform: uppercase; letter-spacing: .03em; text-align: center; }
.pkg-price { text-align: center; margin: 14px 0 4px; }
.pkg-price strong { font-family: var(--font-head); font-size: 2.3rem; line-height: 1; letter-spacing: .01em; }
.pkg-price span { color: var(--ink-faint); font-size: .85rem; font-weight: 600; }
.pkg-meta { text-align: center; color: var(--ink-soft); font-size: .87rem; font-weight: 600; padding-bottom: 16px; border-bottom: 1px dashed var(--border); }
.pkg-features { list-style: none; margin: 16px 0 20px; display: grid; gap: 9px; flex: 1; }
.pkg-features li { display: flex; gap: 9px; align-items: flex-start; font-size: .91rem; color: var(--ink-soft); }
.pkg-features li::before { content: "✓"; color: var(--primary-dark); font-weight: 800; flex-shrink: 0; }
.package-card .btn { width: 100%; text-align: center; }

/* ===================== Schedule ===================== */
.schedule-wrap { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.schedule-table { width: 100%; border-collapse: collapse; }
.schedule-table th { background: var(--bg-alt); color: var(--ink-faint); text-align: left; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; padding: 12px 18px; border-bottom: 2px solid var(--border); }
.schedule-table td { padding: 13px 18px; border-bottom: 1px solid var(--border); font-size: .95rem; }
.schedule-table tr:last-child td { border-bottom: 0; }
.schedule-table tr:hover td { background: color-mix(in srgb, var(--primary) 4%, transparent); }
.schedule-table .day { font-weight: 700; }
.schedule-table .time { font-family: var(--font-head); font-size: 1.02rem; letter-spacing: .02em; }
.sched-note { text-align: center; color: var(--ink-faint); font-size: .87rem; margin-top: 16px; }

/* ===================== Process steps ===================== */
.steps-list { counter-reset: step; max-width: 720px; margin: 0 auto; display: grid; gap: 0; list-style: none; }
.step-item { counter-increment: step; position: relative; display: flex; gap: 20px; padding: 0 0 30px 0; }
.step-item:last-child { padding-bottom: 0; }
.step-item::before { content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 3px; background: repeating-linear-gradient(var(--border) 0 8px, transparent 8px 14px); }
.step-item:last-child::before { display: none; }
.step-num { flex-shrink: 0; width: 48px; height: 48px; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; border-radius: 10px; transform: skewX(-8deg); }
.step-num > span { transform: skewX(8deg); }
.step-body h3 { font-family: var(--font-head); font-size: 1.12rem; text-transform: uppercase; letter-spacing: .02em; padding-top: 4px; }
.step-body p { color: var(--ink-soft); font-size: .94rem; margin-top: 4px; }
.rich ol.steps-list { padding: 0; }
.rich ol.steps-list li { margin: 0; }

/* ===================== 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-left: 4px solid var(--primary); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; }
.testimonial-card .stars { color: var(--primary-dark); font-size: 1.02rem; letter-spacing: 2px; }
.testimonial-card p { color: var(--ink); font-size: 0.97rem; flex: 1; }
.testimonial-card .author { color: var(--ink-soft); font-size: 0.88rem; font-weight: 800; }
.testimonial-card .license-tag { color: var(--ink-faint); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* ===================== 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.4rem; color: var(--primary-dark); transition: transform .15s ease; flex-shrink: 0; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details .rich { padding: 0 22px 18px; color: var(--ink-soft); font-size: 0.96rem; }

/* ===================== Rich text ===================== */
.rich h2, .rich h3 { font-family: var(--font-head); color: var(--ink); margin: 16px 0 8px; line-height: 1.35; text-transform: none; }
.rich h2 { font-size: 1.28rem; }
.rich h3 { font-size: 1.1rem; }
.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: 4px solid var(--primary); color: var(--ink-soft); margin: 0 0 12px; font-style: italic; background: color-mix(in srgb, var(--primary) 7%, transparent); padding: 12px 16px; border-radius: 0 10px 10px 0; }
.rich a { color: var(--primary-dark); font-weight: 600; }

/* ===================== Articles ===================== */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.article-card { position: relative; 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: 175px; overflow: hidden; background: linear-gradient(135deg, var(--soft), var(--bg-alt)); }
.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.16rem; line-height: 1.3; }
.article-card h3 a { color: inherit; }
.article-card p { color: var(--ink-soft); font-size: 0.92rem; flex: 1; }
.article-meta { font-size: 0.74rem; color: var(--ink-faint); font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; display: flex; gap: 10px; flex-wrap: wrap; }
.article-meta .notice-flag { color: var(--on-primary); background: var(--primary-dark); padding: 2px 8px; border-radius: 4px; }
.article-card .footer { margin-top: auto; padding-top: 10px; }
.article-card .footer a { font-weight: 700; }

.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.9rem, 4vw, 2.6rem); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .01em; line-height: 1.15; }
.article-prose .lede { font-size: 1.12rem; color: var(--ink-soft); margin-bottom: 26px; }
.article-prose .body { font-size: 1.04rem; }
.article-prose .body p { margin-bottom: 18px; }
.article-prose .body h2 { font-family: var(--font-head); font-size: 1.42rem; margin: 30px 0 12px; }
.article-prose .body h3 { font-family: var(--font-head); font-size: 1.16rem; 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: 4px solid var(--primary); color: var(--ink-soft); margin: 0 0 18px; font-style: italic; background: color-mix(in srgb, var(--primary) 7%, transparent); padding: 12px 16px; border-radius: 0 10px 10px 0; }
.article-prose .body a { color: var(--primary-dark); font-weight: 600; }

/* ===================== Contact / enquiry ===================== */
.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-top: 4px solid var(--primary); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.contact-card h3 { color: var(--primary-dark); margin-bottom: 10px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 800; }
.contact-card .hours { white-space: pre-line; }
.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-dark); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; 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; position: relative; }
.enquiry-form label { font-weight: 600; font-size: 0.94rem; 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(--accent-light); border: 2px solid var(--primary); border-radius: var(--radius-lg); padding: 36px; }
.success-box h3 { font-family: var(--font-head); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .02em; }
.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 pages ===================== */
.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: .9rem; color: var(--ink-soft); }
.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: 700; width: 180px; background: var(--bg-alt); text-transform: uppercase; font-size: .74rem; letter-spacing: .1em; }

/* ===================== Pager / misc ===================== */
.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: 8px; font-size: 0.9rem; color: var(--primary-dark); text-decoration: none; font-weight: 700; }
.pager-link:hover { border-color: var(--primary); }
.pager-link.current { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.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); padding: 13px 28px; font-weight: 800; font-size: .98rem; cursor: pointer; text-transform: uppercase; letter-spacing: .05em; transition: filter .15s ease, transform .15s ease; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); text-decoration: none; }
.btn-outline { background: transparent; color: var(--primary-dark); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); filter: none; }

/* ===================== Footer ===================== */
.site-footer { color: color-mix(in srgb, var(--ink) 35%, #fff); border-top: 4px solid var(--primary); 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); text-transform: uppercase; letter-spacing: .04em; }
.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; }
.powered-by { opacity: .8; }
.powered-by a { color: inherit; text-decoration: none; }
.powered-by a:hover { text-decoration: underline; opacity: 1; }
.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); color: var(--on-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; }

/* ===================== Theme switcher ===================== */
.theme-btn {
  position: fixed; bottom: 94px; right: 22px; 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: 158px; right: 22px; z-index: 120;
  width: 300px; max-width: calc(100vw - 32px);
  background: var(--surface); 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; text-transform: uppercase; letter-spacing: .03em; }
.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; }
}
@media (max-width: 520px) {
  .nav-link { padding: 7px 10px; font-size: 0.88rem; }
  .enquiry-form { padding: 24px 20px; }
  .theme-panel { right: 16px; bottom: 150px; }
  .theme-btn { right: 16px; bottom: 90px; }
}
