/* ============================================================
   Recruitment Agency Demo — style.css
   3 templates from templates.ts: talent (default) / corporate / noir
   ============================================================ */

/* ===================== Template: talent (default) ===================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');
:root {
  --primary: #0f2a44;
  --primary-dark: #0a1e33;
  --primary-light: #e8eef6;
  --accent: #c9a227;
  --accent-light: #fef9e7;
  --bg: #fdfdfb;
  --bg-alt: #f4f6f9;
  --surface: #ffffff;
  --soft: #eef2f7;
  --border: #d9e1ec;
  --ink: #0f2a44;
  --ink-soft: #4a6582;
  --ink-faint: #8aa0b8;
  --on-primary: #ffffff;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(135deg, #0f2a44 0%, #1a3a5c 50%, #c9a227 140%);
  --hero-overlay: linear-gradient(180deg, rgba(15,42,68,0.15) 0%, rgba(15,42,68,0.62) 100%);
  --hero-text: #fdfdfb;
  --shadow-sm: 0 1px 3px rgba(15,42,68,0.06), 0 4px 12px rgba(15,42,68,0.04);
  --shadow-md: 0 4px 16px rgba(15,42,68,0.08), 0 10px 26px rgba(15,42,68,0.05);
  --shadow-lg: 0 14px 36px rgba(15,42,68,0.12), 0 22px 52px rgba(15,42,68,0.07);
}
.hero .tagline { color: #c9a227; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; font-size: .88rem; }
.section-head .eyebrow { background: #0f2a44; color: #fff; border-color: transparent; }
.feature-icon { background: #e8eef6; }
.feature-icon svg { color: #0f2a44; }
.job-card .thumb { border-bottom: 3px solid #e8eef6; }
.badge-sector { background: #e8eef6; color: #0f2a44; }

/* ===================== Template: corporate ===================== */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,500;0,6..72,600;1,6..72,400&family=Inter:wght@400;500;700&display=swap');
html[data-theme="corporate"] {
  --primary: #1a7f5a;
  --primary-dark: #146349;
  --primary-light: #e6f4ef;
  --accent: #0ea5e9;
  --accent-light: #e0f2fe;
  --bg: #fcfefc;
  --bg-alt: #f0f7f4;
  --surface: #ffffff;
  --soft: #e6f0ec;
  --border: #d1e3db;
  --ink: #0f2e22;
  --ink-soft: #4a6b5e;
  --ink-faint: #8aa99a;
  --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, #0f2e22 0%, #1a7f5a 55%, #0ea5e9 140%);
  --hero-overlay: linear-gradient(180deg, rgba(15,46,34,0.12) 0%, rgba(15,46,34,0.58) 100%);
  --hero-text: #fcfefc;
  --shadow-sm: 0 1px 3px rgba(15,46,34,0.05), 0 4px 12px rgba(15,46,34,0.04);
  --shadow-md: 0 4px 16px rgba(15,46,34,0.07), 0 10px 26px rgba(15,46,34,0.04);
  --shadow-lg: 0 14px 36px rgba(15,46,34,0.1), 0 22px 52px rgba(15,46,34,0.06);
}
html[data-theme="corporate"] .hero .tagline { color: #6ee7b7; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; font-size: .88rem; }
html[data-theme="corporate"] .section-head .eyebrow { background: #e6f4ef; color: #0f2e22; border-color: transparent; }
html[data-theme="corporate"] .feature-icon { background: #e6f4ef; }
html[data-theme="corporate"] .feature-icon svg { color: #1a7f5a; }
html[data-theme="corporate"] .job-card .thumb { border-bottom: 3px solid #e6f4ef; }
html[data-theme="corporate"] .badge-sector { background: #e6f4ef; color: #146349; }

/* ===================== Template: noir ===================== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Inter:wght@400;500&display=swap');
html[data-theme="noir"] {
  --primary: #f59e0b;
  --primary-dark: #d97706;
  --primary-light: #2a2215;
  --accent: #38bdf8;
  --accent-light: #0c2a3a;
  --bg: #0a0f1e;
  --bg-alt: #0f1a30;
  --surface: #131e38;
  --soft: #1a2a4a;
  --border: #1e3358;
  --ink: #e6edf7;
  --ink-soft: #9bb0cc;
  --ink-faint: #6b829e;
  --on-primary: #0a0f1e;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --hero-gradient: linear-gradient(145deg, #0a0f1e 0%, #0f2a44 45%, #7c3aed 140%);
  --hero-overlay: linear-gradient(180deg, rgba(10,15,30,0.18) 0%, rgba(10,15,30,0.72) 100%);
  --hero-text: #e6edf7;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 16px 44px rgba(0,0,0,0.6);
}
html[data-theme="noir"] .site-header { background: rgba(10,15,30,0.9); }
html[data-theme="noir"] .brand-name { letter-spacing: .02em; }
html[data-theme="noir"] .hero .tagline { color: #f59e0b; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; font-size: .88rem; }
html[data-theme="noir"] .section-head .eyebrow { background: rgba(245,158,11,0.14); color: #f59e0b; border-color: transparent; }
html[data-theme="noir"] .job-card,
html[data-theme="noir"] .sector-card,
html[data-theme="noir"] .service-card,
html[data-theme="noir"] .team-card { background: var(--surface); border-color: var(--border); }
html[data-theme="noir"] .feature { background: var(--surface); border-color: var(--border); }
html[data-theme="noir"] .site-footer { background: #050a18; border-top-color: #f59e0b; }

/* ===================== BASE structural CSS ===================== */
* { 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 */
.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-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 */
.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; }
.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); }

/* Sectors */
.sectors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.sector-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; }
.sector-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); text-decoration: none; }
.sector-card .thumb { height: 180px; overflow: hidden; background: var(--soft); }
.sector-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.sector-card:hover .thumb img { transform: scale(1.05); }
.sector-card .body { padding: 20px; display: grid; gap: 6px; }
.sector-card .code { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.sector-card h3 { font-family: var(--font-head); font-size: 1.22rem; line-height: 1.3; }
.sector-card p { color: var(--ink-soft); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sector-card .meta { display: flex; gap: 12px; font-size: .82rem; color: var(--ink-faint); margin-top: 4px; }

/* Jobs */
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.job-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; }
.job-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.job-card .thumb { height: 140px; overflow: hidden; background: var(--soft); position: relative; display: grid; place-items: center; color: var(--ink-faint); }
.job-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.job-card:hover .thumb img { transform: scale(1.06); }
.job-card .body { padding: 20px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.badge-sector { 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; }
.job-card h3 { font-family: var(--font-head); font-size: 1.12rem; line-height: 1.35; }
.job-card .loc { color: var(--ink-faint); font-size: .85rem; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.job-card .salary { font-weight: 700; color: var(--primary-dark); font-size: 1rem; }
.job-card .footer { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px dashed var(--border); margin-top: auto; }
.job-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; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.service-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card .icon { width: 46px; height: 46px; display: grid; place-items: center; background: var(--accent-light); border-radius: 12px; margin-bottom: 12px; color: var(--primary); font-weight: 800; font-family: var(--font-head); }
.service-card h3 { font-family: var(--font-head); font-size: 1.12rem; }
.service-card p { color: var(--ink-soft); font-size: .93rem; margin-top: 6px; }
.service-card .hint { color: var(--primary); font-weight: 700; font-size: .85rem; margin-top: 10px; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.team-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 3px solid var(--soft); }
.team-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; }
.team-card h3 { font-family: var(--font-head); font-size: 1.08rem; }
.team-card .role { color: var(--primary); font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }
.team-card .bio { color: var(--ink-soft); font-size: .9rem; margin-top: 10px; }

/* Clients */
.clients-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.client-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; text-align: center; box-shadow: var(--shadow-sm); display: grid; place-items: center; gap: 10px; min-height: 130px; }
.client-card .client-mark { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--primary); }
.client-card .name { font-weight: 700; font-size: .95rem; }
.client-card .industry { font-size: .78rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .08em; }

/* 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 .role { 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:hover { background: var(--bg-alt); }
.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 text */
.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 */
.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 */
.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 form */
.enquiry-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: start; }
.enquiry-info { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 18px; }
.enquiry-info h3 { font-family: var(--font-head); font-size: 1.1rem; }
.enquiry-info p { color: var(--ink-soft); font-size: 0.95rem; }
.enquiry-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); display: grid; gap: 16px; }
.enquiry-form label { font-weight: 700; font-size: 0.9rem; color: var(--ink); display: grid; gap: 6px; }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 1rem; 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; }

/* 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); }
.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; }

/* Filter bar */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0 auto 28px; justify-content: center; }
.filter-bar a, .filter-bar button { padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: .88rem; border: 1px solid var(--border); background: var(--surface); color: var(--ink); text-decoration: none; }
.filter-bar a.active, .filter-bar button.active { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.filter-bar a:hover, .filter-bar button:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

/* Misc */
.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; text-decoration: none; }
.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; }
.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; 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: 148px; }
  .theme-btn { right: 16px; bottom: 88px; }
}
