
/* SdEN Web Theme — v1.0
   Palette inspired by first logo:
   - Droplet Blue (primary): #2F80ED
   - Deep Navy (wordmark):  #0E3A5D
   - Valley Greens:         #2E7D32 (dark), #6FCF97 (light)
   - Sky Blue (glass/water highlights): #56CCF2
   - Neutrals: Slate, Mist, Snow
*/

/* ---------- CSS Custom Properties ---------- */
:root {
  /* brand */
  --sden-blue: #2F80ED;       /* primary (droplet) */
  --sden-navy: #0E3A5D;       /* wordmark / headings */
  --sden-sky:  #56CCF2;       /* accents / links hover */
  --sden-green: #2E7D32;      /* valley dark */
  --sden-meadow: #6FCF97;     /* valley light */
  --sden-forest: #1B5E20;

  /* neutrals */
  --sden-slate-900: #0B1724;
  --sden-slate-800: #132333;
  --sden-slate-700: #1E3349;
  --sden-slate-600: #2D425C;
  --sden-slate-500: #4A5B70;
  --sden-slate-400: #718096;
  --sden-slate-300: #A0AEC0;
  --sden-slate-200: #CBD5E0;
  --sden-slate-100: #E2E8F0;
  --sden-mist: #F1F5F9;
  --sden-snow: #FFFFFF;

  /* typography */
  --sden-font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --sden-font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --sden-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* sizing & effects */
  --radius-sm: .5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --shadow-sm: 0 2px 8px rgba(14,58,93,.08);
  --shadow-md: 0 8px 24px rgba(14,58,93,.12);
  --shadow-lg: 0 16px 48px rgba(14,58,93,.18);

  /* foreground/background */
  --bg: var(--sden-snow);
  --surface: #FAFCFF;
  --text: #0F172A;
  --muted: var(--sden-slate-500);
  --border: var(--sden-slate-200);
  --link: var(--sden-blue);
  --link-hover: var(--sden-sky);

  /* brand gradient */
  --grad-brand: linear-gradient(135deg, var(--sden-blue) 0%, var(--sden-sky) 45%, var(--sden-meadow) 100%);
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1220;
    --surface: #111827;
    --text: #E6EDF7;
    --muted: #97A6BA;
    --border: #263244;
    --link: #6FAAF8;
    --link-hover: #9ADCF7;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.35);
    --shadow-md: 0 8px 24px rgba(0,0,0,.45);
    --shadow-lg: 0 16px 48px rgba(0,0,0,.55);
  }
}

/* ---------- Base Reset ---------- */
* { box-sizing: border-box; }
html, body {
  padding: 0; margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sden-font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  margin: 0 0 .6em;
  color: var(--sden-navy);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 3vw + 1rem, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2vw + .75rem, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 1.5vw + .5rem, 1.5rem); font-weight: 700; }
p { margin: 0 0 1rem; line-height: 1.7; color: var(--text); }
.lead { font-size: 1.125rem; color: var(--sden-slate-600); }

/* ---------- Links ---------- */
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Buttons ---------- */
.button {
  --btn-bg: var(--sden-blue);
  --btn-text: white;
  --btn-border: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .75rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.button:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.button--outline {
  --btn-bg: transparent;
  --btn-text: var(--sden-navy);
  --btn-border: var(--sden-navy);
}
.button--subtle {
  --btn-bg: rgba(47,128,237,.1);
  --btn-text: var(--sden-navy);
}
.button--accent {
  --btn-bg: var(--sden-meadow);
  --btn-text: #08321A;
}

/* ---------- Inputs & Forms ---------- */
.input, select, textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  box-shadow: inset 0 1px 0 rgba(14,58,93,.04);
}
.input:focus, select:focus, textarea:focus {
  border-color: var(--sden-blue);
  box-shadow: 0 0 0 4px rgba(47,128,237,.15);
}

/* ---------- Navigation ---------- */
.navbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(140%) blur(8px);
  background: color-mix(in oklab, var(--bg) 80%, var(--sden-snow) 20%);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  margin-inline: auto; max-width: 1200px;
  padding: .75rem 1rem; display: flex; align-items: center; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem; font-weight: 800;
  color: var(--sden-navy);
}
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .6rem; border-radius: 999px;
  background: rgba(111,207,151,.15); color: var(--sden-forest); font-weight: 700;
}

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; }
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(12, minmax(0,1fr)); }
.col-12 { grid-column: span 12; } .col-6 { grid-column: span 6; } .col-4 { grid-column: span 4; }
@media (max-width: 900px) { .col-6, .col-4 { grid-column: span 12; } }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.card:hover { box-shadow: var(--shadow-md); }

/* ---------- Hero / CTA ---------- */
.hero {
  padding: clamp(2rem, 8vw, 6rem) 1rem;
  background: var(--grad-brand);
  color: white;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.hero h1, .hero h2, .hero p { color: white; }
.cta {
  display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem;
}

/* ---------- Footer ---------- */
.footer {
  padding: 2.5rem 1rem;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(47,128,237,.25), transparent 60%), var(--sden-navy);
  color: #D9E7FF;
}
.footer a { color: #B9E2FF; }
.footer a:hover { color: white; }

/* ---------- Utility Helpers ---------- */
.text-navy { color: var(--sden-navy) !important; }
.text-blue { color: var(--sden-blue) !important; }
.text-green { color: var(--sden-green) !important; }
.bg-blue { background: var(--sden-blue) !important; color: white !important; }
.bg-meadow { background: var(--sden-meadow) !important; }
.bg-surface { background: var(--surface) !important; }
.round-lg { border-radius: var(--radius-lg) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.border { border: 1px solid var(--border) !important; }
.mono { font-family: var(--sden-font-mono) !important; }

/* ---------- Alerts ---------- */
.alert {
  border-radius: var(--radius-md);
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
}
.alert--info { border-color: color-mix(in oklab, var(--sden-blue) 35%, var(--border)); background: rgba(47,128,237,.06); }
.alert--success { border-color: color-mix(in oklab, var(--sden-meadow) 40%, var(--border)); background: rgba(111,207,151,.08); }
.alert--warning { border-color: #F6C453; background: rgba(246,196,83,.12); }
.alert--danger { border-color: #E35D6A; background: rgba(227,93,106,.10); }

/* ---------- Tables ---------- */
.table {
  width: 100%; border-collapse: collapse; border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden; background: var(--surface);
}
.table th, .table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); text-align: left; }
.table thead th { background: rgba(47,128,237,.08); color: var(--sden-navy); }
.table tr:hover td { background: rgba(13,148,136,.04); }

/* ---------- Toggles & Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .7rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--sden-navy); font-weight: 600;
}
.chip--active { border-color: var(--sden-blue); background: rgba(47,128,237,.1); }

/* ---------- Forms: Switch ---------- */
.switch {
  --w: 44px; --h: 26px;
  inline-size: var(--w); block-size: var(--h);
  display: inline-block; position: relative;
}
.switch input { display: none; }
.switch .track {
  inline-size: 100%; block-size: 100%;
  background: var(--sden-slate-300); border-radius: 999px; position: absolute; inset: 0; transition: all .2s ease;
}
.switch .thumb {
  position: absolute; inset-block-start: 3px; inset-inline-start: 3px;
  inline-size: 20px; block-size: 20px; border-radius: 50%; background: white; box-shadow: var(--shadow-sm); transition: transform .2s ease;
}
.switch input:checked ~ .track { background: var(--sden-blue); }
.switch input:checked ~ .thumb { transform: translateX(18px); }
