:root {
  --bg: #f8fafc;
  --fg: #0f172a;
  --navy: #0f172a;
  --navy-800: #1e293b;
  --muted: #64748b;
  --surface: #f1f5f9;
  --card: #fff;
  --amber: #d97706;
  --amber-soft: rgba(245, 158, 11, 0.15);
  --emergency: #b91c1c;
  --emerald: #059669;
  --sky: #0369a1;
  --border: rgba(15, 23, 42, 0.1);
  --header: rgba(255, 255, 255, 0.95);
  --radius: 12px;
  --max: 72rem;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}
html.dark {
  --bg: #0f172a;
  --fg: #f1f5f9;
  --muted: #94a3b8;
  --surface: #152a47;
  --card: #1a3354;
  --border: rgba(255, 255, 255, 0.1);
  --header: rgba(15, 23, 42, 0.95);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  font-size: 0.95rem;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
.site-main { flex: 1; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.5rem;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.header-inner {
  width: min(100% - 1.5rem, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.75rem;
  padding: 0.5rem 0;
}
.brand {
  display: flex; align-items: flex-start; gap: 0.6rem;
  min-width: 0; flex: 1;
}
.brand img { border-radius: 8px; flex-shrink: 0; }
.brand strong { display: block; font-size: 0.85rem; line-height: 1.25; }
.brand small {
  display: block; margin-top: 0.15rem;
  font-size: 0.55rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--amber); font-weight: 600;
}
.nav-desktop { display: none; align-items: center; gap: 0.15rem; flex-wrap: wrap; justify-content: flex-end; }
.nav-desktop > a, .dropdown-btn {
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--fg) 85%, transparent);
  background: transparent;
  border: 0;
}
.nav-desktop > a:hover, .dropdown-btn:hover { background: rgba(15,23,42,0.06); }
html.dark .nav-desktop > a:hover, html.dark .dropdown-btn:hover { background: rgba(255,255,255,0.08); }
.link-main { color: var(--sky) !important; font-weight: 600 !important; }
.dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: 100%; left: 0; z-index: 60;
  margin-top: 0.35rem; min-width: 16rem; max-height: 70vh; overflow: auto;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.4rem 0; box-shadow: 0 12px 40px rgba(15,23,42,0.12);
}
.dropdown-panel a { display: block; padding: 0.5rem 0.85rem; font-size: 0.85rem; }
.dropdown-panel a:hover { background: rgba(15,23,42,0.04); }
.header-actions { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.btn-phone, .btn-pdks, .btn-theme, .btn-menu {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.5rem; padding: 0.35rem 0.65rem;
  border-radius: 8px; font-size: 0.7rem; font-weight: 700; border: 1px solid transparent;
}
.btn-phone { border-color: rgba(217,119,6,0.35); background: var(--amber-soft); color: #78350f; }
html.dark .btn-phone { color: #fde68a; }
.btn-pdks { background: var(--emerald); color: #fff; border-color: rgba(5,150,105,0.4); }
.btn-theme, .btn-menu { border-color: var(--border); background: rgba(15,23,42,0.04); width: 2.6rem; }
html.dark .btn-theme, html.dark .btn-menu { background: rgba(255,255,255,0.08); }
.hide-sm { display: none; }
.show-sm { display: inline; }
@media (min-width: 1280px) {
  .hide-sm { display: inline; }
  .show-sm { display: none; }
}
@media (min-width: 1024px) {
  .nav-desktop { display: flex; flex: 1; }
  .lg-hide { display: none !important; }
  .brand { flex: 0 1 auto; max-width: 18rem; }
}

/* Mobile drawer */
.mobile-drawer[hidden] { display: none !important; }
.mobile-drawer { position: fixed; inset: 0; z-index: 70; }
.mobile-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,0.35); }
.mobile-panel {
  position: absolute; top: 3.75rem; right: 0; bottom: 0;
  width: min(100%, 22rem); background: var(--card);
  border-left: 1px solid var(--border); padding: 1rem; overflow: auto;
}
.mobile-panel a { display: block; padding: 0.85rem 0.75rem; font-size: 1.05rem; font-weight: 600; border-radius: 10px; }
.mobile-panel a.sub { font-size: 0.9rem; font-weight: 500; padding: 0.55rem 0.75rem; }
.mobile-panel a:active { background: rgba(15,23,42,0.06); }

/* Hero */
.hero {
  position: relative; isolation: isolate;
  min-height: min(78vh, 640px);
  color: #fff; overflow: hidden;
  background: #0f172a;
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.6s ease;
}
.hero-bg.is-active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.55) 55%, rgba(15,23,42,0.35) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto; padding: 3rem 0 2.5rem;
  display: grid; gap: 2rem;
}
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1.2fr 0.8fr; align-items: end; padding-top: 4rem; }
}
.hero-kicker { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.28em; text-transform: uppercase; color: #fbbf24; margin: 0 0 0.5rem; }
.hero h1 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.75rem); line-height: 1.2; max-width: 40rem; }
.hero-lead { margin: 0.85rem 0 0; max-width: 36rem; color: rgba(255,255,255,0.82); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.4rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.65rem 1.1rem; border-radius: 8px;
  font-weight: 700; font-size: 0.9rem; border: 1px solid transparent;
}
.btn-outline { border-color: rgba(255,255,255,0.45); color: #fff; }
.btn-solid { background: #fff; color: var(--navy); }
.btn-emergency { background: var(--emergency); color: #fff; }
.btn-emerald { background: var(--emerald); color: #fff; }
.btn-sky { background: #0369a1; color: #fff; padding: 0.65rem 1rem; border-radius: 8px; font-weight: 700; font-size: 0.875rem; white-space: nowrap; }
.hero-slide-card {
  background: rgba(15,23,42,0.55); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px; padding: 1.25rem; backdrop-filter: blur(6px);
}
.hero-slide-card .meta { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: #fbbf24; margin: 0; }
.hero-dots { display: flex; gap: 0.4rem; margin-top: 1rem; flex-wrap: wrap; }
.hero-dots button {
  width: 0.65rem; height: 0.65rem; border-radius: 999px; border: 0;
  background: rgba(255,255,255,0.35); padding: 0;
}
.hero-dots button[aria-current="true"] { background: #fbbf24; width: 1.4rem; }
.hero-nav { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.hero-nav button {
  width: 3rem; height: 3rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.08); color: #fff;
}

/* Sections */
.section { padding: 3.5rem 0; border-top: 1px solid var(--border); }
.section-surface { background: var(--surface); }
.section-navy { background: var(--navy); color: #fff; border-top-color: rgba(255,255,255,0.08); }
.section h2 { margin: 0.35rem 0 0; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; }
.section .lead { margin: 1rem 0 0; color: var(--muted); max-width: 40rem; }
.section-navy .lead { color: rgba(255,255,255,0.75); }
.grid-2 { display: grid; gap: 1.25rem; margin-top: 2rem; }
.grid-3 { display: grid; gap: 1.25rem; margin-top: 2rem; }
.grid-4 { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.35rem; height: 100%;
  display: flex; flex-direction: column;
  box-shadow: 0 4px 16px rgba(15,23,42,0.04);
}
.card h3 { margin: 0.85rem 0 0; font-size: 1.05rem; }
.card p { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.9rem; flex: 1; }
.card .more { margin-top: 1rem; font-weight: 700; color: var(--emergency); font-size: 0.875rem; }
.icon-box {
  width: 3rem; height: 3rem; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #d97706, #78350f); color: #fff; font-weight: 800;
}
.about-box { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem; color: var(--muted); font-size: 0.9rem; }
.vision-card, .mission-card {
  border-radius: 16px; padding: 1.35rem; border: 1px solid var(--border);
}
.vision-card { background: #0f172a; color: #fff; }
.vision-card h3 { color: #fde68a; margin: 0; }
.vision-card p { color: rgba(255,255,255,0.75); }
.mission-card { background: var(--card); }
.mission-card h3 { margin: 0; }
.mission-card p { color: var(--muted); }
.stat { text-align: center; }
.stat strong { display: block; font-size: 1.85rem; color: #fff; }
.stat span { display: block; margin-top: 0.35rem; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.65); }
.cert-card .issuer { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); margin: 0.35rem 0 0; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.contact-list a {
  display: flex; gap: 0.85rem; align-items: center;
  padding: 0.9rem 1rem; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05);
}
.contact-list small { display: block; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: #fbbf24; }
.note-center { text-align: center; margin-top: 2.5rem; color: var(--muted); font-size: 0.9rem; }

/* Product page */
.product-hero {
  height: min(38vh, 380px); min-height: 180px;
  background-size: cover; background-position: center; position: relative;
}
.product-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.88), rgba(15,23,42,0.25));
}
.breadcrumb { font-size: 0.875rem; color: var(--muted); margin: 0 0 1.5rem; }
.feature-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.55rem; }
.feature-list li::before { content: "✓ "; color: var(--emerald); font-weight: 700; }

/* Brochures / legal */
.page-hero {
  background: var(--navy); color: #fff; padding: 3rem 0;
}
.page-hero a { color: rgba(255,255,255,0.7); font-size: 0.875rem; }
.page-hero h1 { margin: 0.75rem 0 0; font-size: clamp(1.75rem, 3vw, 2.25rem); }
.doc-card {
  display: flex; flex-direction: column; gap: 1rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.25rem; margin-bottom: 1rem;
}
@media (min-width: 640px) {
  .doc-card { flex-direction: row; align-items: center; }
}
.doc-card .grow { flex: 1; min-width: 0; }
.tag {
  display: inline-block; font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(15,23,42,0.06); padding: 0.2rem 0.5rem; border-radius: 6px;
}
html.dark .tag { background: rgba(255,255,255,0.1); }
.prose-legal { max-width: 48rem; margin: 0 auto; padding: 3rem 1rem; }
.prose-legal h1 { margin-top: 0; }
.prose-legal h2 { margin-top: 2rem; font-size: 1.1rem; }
.prose-legal p, .prose-legal li { color: color-mix(in srgb, var(--fg) 85%, transparent); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 2.5rem 0 1.5rem; }
.main-site-banner {
  display: flex; flex-direction: column; gap: 0.85rem; align-items: center;
  text-align: center; padding: 1rem; margin-bottom: 2rem;
  border: 1px solid rgba(3,105,161,0.25); background: rgba(14,165,233,0.08);
  border-radius: 16px;
}
@media (min-width: 640px) {
  .main-site-banner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-grid {
  display: grid; gap: 2rem; text-align: center;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr; text-align: left; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; }
}
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 0.85rem; }
@media (min-width: 640px) {
  .footer-brand { flex-direction: row; align-items: flex-start; }
}
.footer-brand small { display: block; color: var(--amber); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.2rem; }
.footer-brand p { color: var(--muted); font-size: 0.875rem; margin: 0.6rem 0 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0.6rem 0 0; }
.site-footer li { margin: 0.35rem 0; font-size: 0.875rem; }
.site-footer a:hover { color: var(--amber); }
.muted-list { color: var(--muted); margin-top: 1rem !important; }
.footer-cta { display: inline-block; margin-top: 0.75rem; font-weight: 700; color: var(--amber); font-size: 0.875rem; }
.footer-bottom {
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
  display: grid; gap: 0.75rem; text-align: center; font-size: 0.75rem; color: var(--muted);
}
@media (min-width: 768px) {
  .footer-bottom { grid-template-columns: 1fr 1fr 1fr; align-items: center; }
  .footer-bottom p:nth-child(2) { text-align: center; }
  .footer-bottom p:last-child { text-align: right; }
  .footer-bottom p:first-child { text-align: left; }
}

/* Floating + cookie */
.float-contact {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.float-wa, .float-phone {
  width: 3.4rem; height: 3.4rem; border-radius: 999px;
  display: grid; place-items: center; font-weight: 800; font-size: 0.75rem; color: #fff;
  box-shadow: 0 8px 24px rgba(15,23,42,0.2);
}
.float-wa { background: #16a34a; }
.float-phone { background: #d97706; }
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 45;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 1rem; box-shadow: 0 12px 40px rgba(15,23,42,0.15);
  display: flex; flex-direction: column; gap: 0.75rem;
}
@media (min-width: 640px) {
  .cookie-banner { left: auto; width: min(26rem, calc(100% - 2rem)); }
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner button {
  background: var(--navy); color: #fff; border: 0; border-radius: 8px;
  padding: 0.55rem 0.9rem; font-weight: 700;
}
html.dark .cookie-banner button { background: #f8fafc; color: #0f172a; }

/* Admin */
.admin-body { background: #0b1220; color: #e2e8f0; }
.admin-shell { display: grid; min-height: 100dvh; }
@media (min-width: 900px) {
  .admin-shell { grid-template-columns: 240px 1fr; }
}
.admin-side {
  background: #111827; border-right: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 1rem;
}
.admin-side a {
  display: block; padding: 0.55rem 0.7rem; border-radius: 8px;
  color: #cbd5e1; font-size: 0.875rem; margin-bottom: 0.2rem;
}
.admin-side a:hover, .admin-side a.is-active { background: rgba(251,191,36,0.12); color: #fbbf24; }
.admin-main { padding: 1.5rem; }
.admin-card {
  background: #1f2937; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 1.25rem; margin-bottom: 1rem;
}
.admin-card h1, .admin-card h2 { margin-top: 0; }
.form-grid { display: grid; gap: 0.85rem; }
.form-grid label { display: grid; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; }
.card .form-grid input, .card .form-grid textarea, .card .form-grid select,
.prose-legal input, .prose-legal textarea {
  width: 100%; padding: 0.65rem 0.75rem; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg); color: var(--fg);
}
.admin-card .form-grid input, .admin-card .form-grid textarea, .admin-card .form-grid select,
.login-box .form-grid input, .login-box .form-grid textarea {
  width: 100%; padding: 0.65rem 0.75rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12); background: #0f172a; color: #f8fafc;
}
.form-grid textarea { min-height: 6rem; resize: vertical; }
.alert { padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.alert-ok { background: rgba(16,185,129,0.15); color: #6ee7b7; }
.alert-err { background: rgba(239,68,68,0.15); color: #fca5a5; }
.login-wrap {
  min-height: 100dvh; display: grid; place-items: center; padding: 1rem;
  background: radial-gradient(circle at top, #1e293b, #020617);
}
.login-box { width: min(100%, 24rem); }
