/* ==========================================================================
   Qualient theme — design tokens
   ========================================================================== */
:root {
  --radius: 0.5rem;
  --background: #ffffff;
  --foreground: #101c33;
  --card: #ffffff;
  --primary: #142f6b;
  --primary-foreground: #fbfcff;
  --secondary: #f2f5fa;
  --secondary-foreground: #142f6b;
  --muted-foreground: #667287;
  --accent: #22c55e;
  --accent-foreground: #0d2145;
  --border: #e3e8f0;
  --gradient-hero: linear-gradient(135deg, #142f6b 0%, #1c3d80 55%, #189c93 100%);
  --gradient-soft: linear-gradient(135deg, #f6f8fc 0%, #eefaf3 100%);
  --shadow-card: 0 1px 2px rgba(20, 47, 107, 0.06), 0 12px 32px -16px rgba(20, 47, 107, 0.25);
  --max: 72rem;
}

/* Reset / base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 1rem; left: 1rem; z-index: 100; width: auto; height: auto;
  clip: auto; background: var(--primary); color: #fff; padding: .75rem 1rem; border-radius: var(--radius);
}

/* Layout helpers ---------------------------------------------------------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.section { padding-top: 5rem; padding-bottom: 5rem; }
.section-sm { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.bg-soft { background: var(--gradient-soft); }
.bg-hero { background: var(--gradient-hero); }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Typography -------------------------------------------------------------- */
.eyebrow {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .2em; color: var(--accent);
}
.h1 { font-size: 2.25rem; font-weight: 800; }
.h2 { font-size: 1.875rem; font-weight: 700; }
.h3 { font-size: 1.25rem; font-weight: 600; }
.lead { font-size: 1.125rem; color: var(--muted-foreground); }
.muted { color: var(--muted-foreground); }
.prose p + p { margin-top: 1rem; }
@media (min-width: 768px) {
  .h1 { font-size: 3rem; }
  .h2 { font-size: 2.25rem; }
}

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: var(--radius);
  font-size: .875rem; font-weight: 600; border: 1px solid transparent;
  cursor: pointer; transition: opacity .2s, background-color .2s, transform .2s;
}
.btn:hover { opacity: .9; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-accent { background: var(--accent); color: var(--accent-foreground); }
.btn-ghost { border-color: rgba(255, 255, 255, .3); color: var(--primary-foreground); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); opacity: 1; }
.icon { width: 1rem; height: 1rem; flex: none; }
.icon-lg { width: 1.75rem; height: 1.75rem; flex: none; color: var(--accent); }
.icon-md { width: 1.25rem; height: 1.25rem; flex: none; color: var(--accent); }

/* Cards ------------------------------------------------------------------- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: .75rem; box-shadow: var(--shadow-card); overflow: hidden;
}
.card-pad { padding: 1.75rem; }
.card-link { display: block; transition: transform .2s, border-color .2s; }
.card-link:hover { transform: translateY(-4px); }
.card-media { width: 100%; height: 12rem; object-fit: cover; }
.pill {
  display: inline-block; border: 1px solid var(--border); background: var(--secondary);
  color: var(--secondary-foreground); border-radius: 999px; padding: .35rem 1rem; font-size: .875rem;
}
.list-check { display: grid; gap: .75rem; margin-top: 1.25rem; }
.list-check li { display: flex; gap: .75rem; font-size: .875rem; color: var(--muted-foreground); }
.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .875rem; font-weight: 600; color: var(--primary);
}

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  max-width: var(--max); margin: 0 auto; padding: .75rem 1.25rem;
}
.site-logo img { height: 2.5rem; width: auto; }
.site-logo .site-title { font-weight: 800; color: var(--primary); font-size: 1.25rem; }
.main-nav { display: none; align-items: center; gap: 2rem; }
@media (min-width: 900px) { .main-nav { display: flex; } .nav-toggle { display: none; } }
.main-nav a { font-size: .875rem; font-weight: 500; color: rgba(16, 28, 51, .8); transition: color .2s; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--primary); }
.main-nav .menu { display: flex; align-items: center; gap: 2rem; }
.main-nav .menu-item-has-children { position: relative; }
.main-nav .sub-menu {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  min-width: 17rem; padding: .5rem; margin-top: .75rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-card); display: block; visibility: hidden; opacity: 0; transition: opacity .2s;
}
.main-nav .menu-item-has-children:hover .sub-menu,
.main-nav .menu-item-has-children:focus-within .sub-menu { visibility: visible; opacity: 1; }
.main-nav .sub-menu li { display: block; }
.main-nav .sub-menu a { display: block; padding: .5rem .75rem; border-radius: var(--radius); }
.main-nav .sub-menu a:hover { background: var(--secondary); }
.header-cta { display: none; }
@media (min-width: 900px) { .header-cta { display: inline-flex; } }
.nav-toggle { background: none; border: 0; padding: .25rem; cursor: pointer; color: var(--foreground); }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: #fff; }
.mobile-nav.is-open { display: block; }
@media (min-width: 900px) { .mobile-nav.is-open { display: none; } }
.mobile-nav ul { max-width: var(--max); margin: 0 auto; padding: .5rem 1.25rem 1rem; }
.mobile-nav a { display: block; padding: .5rem 0; font-size: .875rem; }
.mobile-nav .sub-menu a { padding-left: 1rem; color: var(--muted-foreground); }

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--gradient-hero); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .2; }
.hero-inner { position: relative; max-width: var(--max); margin: 0 auto; padding: 6rem 1.25rem; }
.hero-inner h1, .page-hero h1 { color: var(--primary-foreground); }
.hero-inner p, .page-hero p { color: rgba(251, 252, 255, .82); }
.page-hero { background: var(--gradient-hero); }
.page-hero .wrap { padding-top: 5rem; padding-bottom: 5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.cta-panel {
  border-radius: 1rem; background: var(--gradient-hero);
  padding: 3rem 2rem; text-align: center; color: var(--primary-foreground);
}
.cta-panel p { color: rgba(251, 252, 255, .8); max-width: 36rem; margin: 1rem auto 0; }
.note {
  border-left: 4px solid var(--accent); background: var(--secondary);
  border-radius: .75rem; padding: 1.75rem; color: var(--secondary-foreground);
}
.stats { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
.stats .num { font-size: 1.875rem; font-weight: 700; color: var(--primary); }

/* Split sections ---------------------------------------------------------- */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; } }
.split img, .rounded-img { border-radius: .75rem; border: 1px solid var(--border); box-shadow: var(--shadow-card); }

/* Forms ------------------------------------------------------------------- */
.field { display: block; }
.field > label { font-size: .875rem; font-weight: 500; }
.field input, .field select, .field textarea {
  margin-top: .375rem; width: 100%; padding: .55rem .75rem; font: inherit; font-size: .875rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: inherit;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 197, 94, .25);
}
.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-notice { border-radius: var(--radius); padding: .85rem 1rem; font-size: .875rem; margin-bottom: 1.25rem; }
.form-notice.is-success { background: #e9f9f0; color: #14663c; border: 1px solid #b7e6cb; }
.form-notice.is-error { background: #fdeceb; color: #8b2018; border: 1px solid #f4c3bf; }
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }
.contact-item { display: flex; gap: 1rem; margin-bottom: 2rem; }

/* Footer ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--border); background: var(--gradient-soft); }
.footer-grid { display: grid; gap: 2.5rem; max-width: var(--max); margin: 0 auto; padding: 3.5rem 1.25rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h3 { font-size: .875rem; font-weight: 600; }
.site-footer li { margin-top: .625rem; font-size: .875rem; color: var(--muted-foreground); }
.site-footer a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(227, 232, 240, .7); }
.footer-bottom .wrap {
  display: flex; flex-direction: column; gap: .5rem;
  padding-top: 1.25rem; padding-bottom: 1.25rem; font-size: .75rem; color: var(--muted-foreground);
}
@media (min-width: 640px) {
  .footer-bottom .wrap { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Editor / default content ------------------------------------------------ */
.entry-content > * + * { margin-top: 1rem; }
.entry-content h2 { margin-top: 2rem; }
.entry-content a { color: var(--primary); text-decoration: underline; }
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; } .mt-5 { margin-top: 1.25rem; } .mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; } .mt-10 { margin-top: 2.5rem; } .mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.maxw-2 { max-width: 40rem; } .maxw-3 { max-width: 52rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
