/*
  NursingTips – framework-free multi-page guide
  - Mobile-first
  - Accessible: focus styles, skip-link, good contrast
*/

:root {
  --bg: #f8fbff; /* airy blue-white */
  --bg-alt: #fff7fb; /* airy pink-white */

  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: rgba(255, 255, 255, 0.98);

  --text: #2a2630;
  --muted: rgba(42, 38, 48, 0.7);
  --line: rgba(42, 38, 48, 0.1);

  --shadow: 0 16px 40px rgba(42, 38, 48, 0.12);
  --shadow-soft: 0 8px 20px rgba(42, 38, 48, 0.08);

  --radius: 18px;
  --radius-lg: 26px;
  --max: 1120px;

  --brand: #bfe6ff; /* pastel baby blue */
  --accent: #ffc6dd; /* pastel baby pink */
  --mint: #d7f6ef; /* soft aqua (optional) */

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(
      900px 600px at 10% 10%,
      rgba(191, 230, 255, 0.2),
      transparent 60%
    ),
    radial-gradient(
      800px 500px at 90% 15%,
      rgba(255, 198, 221, 0.2),
      transparent 60%
    ),
    radial-gradient(
      900px 600px at 50% 85%,
      rgba(215, 246, 239, 0.18),
      transparent 60%
    ),
    var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transform: translateY(-160%);
  transition: transform 0.18s ease;
  z-index: 50;
}
.skip-link:focus {
  transform: translateY(0);
}

/* Header background tuned to the new base */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(248, 251, 255, 0.82);
  border-bottom: 1px solid rgba(42, 38, 48, 0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #2a2622;
  background: linear-gradient(
    135deg,
    rgba(201, 167, 124, 0.75),
    rgba(230, 184, 184, 0.75)
  );
  box-shadow: 0 12px 24px rgba(42, 38, 34, 0.14);
}
.brand-text {
  color: rgba(42, 38, 34, 0.92);
}

.nav {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav a {
  color: rgba(42, 38, 34, 0.82);
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 12px;
}
.nav a:hover {
  background: rgba(201, 167, 124, 0.14);
}
.nav a.is-active {
  background: rgba(201, 167, 124, 0.18);
  color: rgba(42, 38, 34, 0.96);
}
.nav-cta {
  background: linear-gradient(
    135deg,
    rgba(201, 167, 124, 0.22),
    rgba(230, 184, 184, 0.22)
  );
  border: 1px solid rgba(42, 38, 34, 0.12);
  box-shadow: var(--shadow-soft);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(42, 38, 34, 0.14);
  background: rgba(255, 255, 255, 0.74);
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: rgba(42, 38, 34, 0.78);
  margin: 6px 0;
  border-radius: 10px;
}

.hero {
  position: relative;
  overflow: clip;
  padding: 64px 0 34px;
}
.hero-grid {
  display: grid;
  gap: 18px;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(42, 38, 34, 0.12);
  color: rgba(42, 38, 34, 0.84);
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  width: fit-content;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.05;
}
h2 {
  font-size: clamp(1.55rem, 2.3vw, 2.25rem);
  line-height: 1.14;
}
h3 {
  font-size: 1.12rem;
}

p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.72;
}
.lead {
  font-size: clamp(1.05rem, 1.2vw, 1.22rem);
  color: rgba(42, 38, 34, 0.78);
  max-width: 72ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(42, 38, 34, 0.12);
  background: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
  color: rgba(42, 38, 34, 0.76);
  box-shadow: var(--shadow-soft);
}

.hero-side {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(42, 38, 34, 0.1);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow);
}
.kicker {
  color: rgba(42, 38, 34, 0.9);
  font-weight: 800;
  margin-bottom: 8px;
}
.checklist {
  margin: 0;
  padding-left: 18px;
  color: rgba(42, 38, 34, 0.78);
}
.checklist li {
  margin: 8px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(42, 38, 34, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: rgba(42, 38, 34, 0.92);
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-soft);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn:active {
  transform: translateY(0);
}

.btn.primary {
  border: 0;
  color: #2a2622;
  background: linear-gradient(135deg, #e8d8c6, #f1cfcf);
  box-shadow: 0 14px 28px rgba(42, 38, 34, 0.18);
}
.btn.soft {
  background: linear-gradient(
    135deg,
    rgba(201, 167, 124, 0.18),
    rgba(185, 214, 207, 0.18)
  );
}
.btn.ghost {
  background: transparent;
  border: 1px solid rgba(42, 38, 34, 0.14);
}
.btn.full {
  width: 100%;
}

.section {
  padding: 62px 0;
}
.section-alt {
  background: radial-gradient(
      1100px 700px at 14% 18%,
      rgba(201, 167, 124, 0.1),
      transparent 60%
    ),
    radial-gradient(
      900px 600px at 86% 26%,
      rgba(230, 184, 184, 0.1),
      transparent 60%
    ),
    rgba(255, 255, 255, 0.44);
  border-top: 1px solid rgba(42, 38, 34, 0.06);
  border-bottom: 1px solid rgba(42, 38, 34, 0.06);
}
.section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}
.note {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(42, 38, 34, 0.1);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow-soft);
  max-width: 78ch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.card {
  grid-column: span 12;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(42, 38, 34, 0.1);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}
.card h3 {
  margin-bottom: 10px;
  color: rgba(42, 38, 34, 0.94);
}

.list {
  margin: 0;
  padding-left: 18px;
  color: rgba(42, 38, 34, 0.78);
  line-height: 1.72;
}
.list li {
  margin: 8px 0;
}
.list strong {
  color: rgba(42, 38, 34, 0.94);
}

.grid-2 {
  display: grid;
  gap: 14px;
}

.inline-cta {
  margin-top: 18px;
  display: grid;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: radial-gradient(
      700px 420px at 20% 25%,
      rgba(201, 167, 124, 0.18),
      transparent 60%
    ),
    radial-gradient(
      700px 420px at 85% 30%,
      rgba(230, 184, 184, 0.18),
      transparent 60%
    ),
    rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(42, 38, 34, 0.12);
  box-shadow: var(--shadow);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.compare {
  overflow: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(42, 38, 34, 0.1);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}
.compare table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.compare th,
.compare td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(42, 38, 34, 0.08);
  color: rgba(42, 38, 34, 0.84);
}
.compare th {
  font-size: 0.92rem;
  color: rgba(42, 38, 34, 0.9);
  background: rgba(242, 239, 233, 0.75);
}
.compare tr:last-child td {
  border-bottom: 0;
}

.small {
  font-size: 0.95rem;
  color: rgba(42, 38, 34, 0.72);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 46px;
  background: rgba(255, 255, 255, 0.66);
}
.footer-inner {
  display: grid;
  gap: 14px;
  align-items: start;
}
.footer-brand {
  font-weight: 900;
  margin-bottom: 6px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-links a {
  padding: 8px 10px;
  border-radius: 12px;
  color: rgba(42, 38, 34, 0.84);
}
.footer-links a:hover {
  background: rgba(201, 167, 124, 0.14);
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.3fr 0.7fr;
  }
  .grid-2 {
    grid-template-columns: 1.25fr 1fr;
    align-items: start;
  }
  .cards .card {
    grid-column: span 4;
  }
  .inline-cta {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .footer-inner {
    grid-template-columns: 1.25fr 0.75fr;
  }
  .footer-links {
    justify-content: flex-end;
  }
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-block;
  }
  .nav {
    position: absolute;
    top: 64px;
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.is-open {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
