/* ============================================================
   420CreaStack Theme UI — v4.3.0
   Premium Medical Aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Figtree:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--cs420-body-font, 'Figtree', sans-serif);
  background: var(--cs420-bg, #f6f8fb);
  color: var(--cs420-text, #142033);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

.site { min-height: 100vh; display: flex; flex-direction: column; }
.cs420-wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.cs420-main { flex: 1; padding: 60px 0; }

/* ---- Header ---- */
.cs420-site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 0;
}
.cs420-header-row {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 24px; height: 72px;
}
.cs420-brand { display: flex; gap: 14px; align-items: center; text-decoration: none; }
.cs420-logo-mark {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--cs420-primary, #2b70e2), var(--cs420-secondary, #56d2ff));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 15px;
}
.site-title {
  font-family: var(--cs420-heading-font, 'DM Serif Display', serif);
  font-size: 20px; font-weight: 400;
  color: var(--cs420-primary, #2b70e2);
  text-decoration: none; letter-spacing: -0.01em;
}
.site-description {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: #9baab8;
}
.cs420-nav ul { display: flex; gap: 2px; list-style: none; padding: 0; margin: 0; }
.cs420-nav a {
  color: var(--cs420-text, #142033); text-decoration: none;
  font-weight: 500; font-size: 14px;
  padding: 8px 14px; border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
.cs420-nav a:hover { background: rgba(43,112,226,0.08); color: var(--cs420-primary, #2b70e2); }
li:last-child .cs420-nav a, .cs420-nav li:last-child a {
  background: var(--cs420-primary, #2b70e2);
  color: #fff; font-weight: 600; padding: 8px 18px;
}
li:last-child .cs420-nav a:hover, .cs420-nav li:last-child a:hover {
  background: var(--cs420-primary, #2b70e2); opacity: 0.88;
}

/* ---- Cards ---- */
.cs420-card {
  background: var(--cs420-card, #ffffff);
  border: 1px solid var(--cs420-border, #e8edf3);
  border-radius: 20px; padding: 28px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.cs420-card:hover { box-shadow: 0 20px 48px rgba(15,30,55,0.10); transform: translateY(-3px); }
.cs420-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }

.cs420-page {
  background: var(--cs420-card, #fff);
  border: 1px solid var(--cs420-border, #e8edf3);
  border-radius: 24px; padding: 40px;
  box-shadow: 0 4px 24px rgba(15,30,55,0.04);
}

/* ---- Kicker ---- */
.cs420-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(43,112,226,0.08);
  color: var(--cs420-primary, #2b70e2);
  padding: 6px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 16px;
}

/* ---- Footer ---- */
.cs420-footer {
  background: #0c1a2e;
  color: rgba(220,235,255,0.8);
  padding: 60px 0 32px; margin-top: auto;
}
.cs420-footer h3 {
  font-family: var(--cs420-heading-font, 'DM Serif Display', serif);
  color: #fff; font-size: 18px; font-weight: 400; margin: 0 0 16px;
}
.cs420-footer p { margin: 0 0 8px; font-size: 14px; }
.cs420-footer a { color: rgba(220,235,255,0.7); text-decoration: none; transition: color 0.2s; }
.cs420-footer a:hover { color: var(--cs420-secondary, #56d2ff); }
.cs420-footer .cs420-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.07);
  padding: 24px;
}
.cs420-footer .cs420-card:hover { background: rgba(255,255,255,0.07); transform: none; box-shadow: none; }
.cs420-footer-bottom {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 13px; color: rgba(220,235,255,0.38);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}

/* ---- Headings ---- */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--cs420-heading-font, 'DM Serif Display', serif);
  font-weight: 400; letter-spacing: -0.02em; line-height: 1.2;
}
.cs420-pill {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: rgba(86,210,255,0.12); color: #0886b5;
}

/* ---- Responsive ---- */
@media (max-width:900px){
  .cs420-card-grid{grid-template-columns:1fr}
  .cs420-header-row{height:auto;padding:14px 0;flex-wrap:wrap}
  .cs420-nav ul{flex-wrap:wrap}
  .cs420-page{padding:24px}
  .cs420-main{padding:36px 0}
}
