/* =============================================
   SLP WEBSITE — DESIGN SYSTEM
   Warm Clinical Aesthetic
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Nunito:wght@300;400;500;600;700&display=swap');

/* ── TOKENS ── */
:root {
  --sage:        #3976F9;
  --sage-dark:   #3976F9;
  --sage-light:  #EAF2EF;
  --teal:        #2A9D8F;
  --teal-light:  #E0F4F2;
  --cream:       #FAF8F4;
  --warm-white:  #FFFFFF;
  --amber:       #E9A23B;
  --amber-light: #FDF3E3;
  --text:        #1C2B27;
  --text-mid:    #4A5E58;
  --text-soft:   #7A9088;
  --border:      #DDE8E5;
  --shadow-sm:   0 2px 8px rgba(44,92,81,0.08);
  --shadow-md:   0 4px 20px rgba(44,92,81,0.12);
  --shadow-lg:   0 8px 40px rgba(44,92,81,0.16);
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   24px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Nunito', sans-serif;
  --transition:  all 0.25s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 700; font-family: var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-mid); }
p { color: var(--text-mid); font-size: 1.05rem; }

/* ── LAYOUT ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--alt { background: var(--warm-white); }
.section--sage { background: var(--sage-light); }

/* ── NAVIGATION ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
}
.nav__logo-mark {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--sage), var(--teal));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700; color: white;
}
.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 600;
  color: var(--sage-dark);
}
.nav__links {
  display: flex; align-items: center; gap: 8px;
}
.nav__link {
  font-size: 0.9rem; font-weight: 600;
  padding: 8px 14px; border-radius: var(--radius-sm);
  color: var(--text-mid);
  transition: var(--transition);
}
.nav__link:hover { background: var(--sage-light); color: var(--sage-dark); }
.nav__link--active { background: var(--sage-light); color: var(--sage-dark); }
.nav__cta {
  background: var(--sage); color: white !important;
  padding: 9px 20px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 700;
  transition: var(--transition);
}
.nav__cta:hover { background: var(--sage-dark) !important; transform: translateY(-1px); }
.nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; border: none; background: none;
}
.nav__hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--sage-dark); border-radius: 2px;
  transition: var(--transition);
}
.nav__mobile {
  display: none; flex-direction: column;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  background: white;
}
.nav__mobile.open { display: flex; }
.nav__mobile .nav__link { padding: 12px 0; border-bottom: 1px solid var(--border); border-radius: 0; }
.nav__mobile .nav__cta { margin-top: 12px; text-align: center; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 700;
  cursor: pointer; border: none; transition: var(--transition);
  text-decoration: none;
}
.btn--primary {
  background: var(--sage); color: white;
  box-shadow: 0 4px 14px rgba(74,124,111,0.35);
}
.btn--primary:hover { background: var(--sage-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(74,124,111,0.4); }
.btn--secondary {
  background: white; color: var(--sage-dark);
  border: 2px solid var(--sage);
}
.btn--secondary:hover { background: var(--sage-light); transform: translateY(-2px); }
.btn--amber {
  background: var(--amber); color: white;
  box-shadow: 0 4px 14px rgba(233,162,59,0.35);
}
.btn--amber:hover { background: #d4911f; transform: translateY(-2px); }
.btn--sm { padding: 8px 18px; font-size: 0.85rem; }
.btn--outline-white { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.7); }
.btn--outline-white:hover { background: rgba(255,255,255,0.15); }

/* ── TAGS / BADGES ── */
.tag {
  display: inline-block;
  padding: 3px 12px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.tag--sage    { background: var(--sage-light); color: var(--sage-dark); }
.tag--teal    { background: var(--teal-light); color: #1a7a6e; }
.tag--amber   { background: var(--amber-light); color: #a96d15; }
.tag--purple  { background: #F0EBFF; color: #5B3DA8; }
.tag--rose    { background: #FFEEF2; color: #A8234A; }
.tag--sky     { background: #E6F4FF; color: #1A6BAA; }

/* ── CARDS ── */
.card {
  background: white; border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__body { padding: 24px; }
.card__footer { padding: 16px 24px; border-top: 1px solid var(--border); background: var(--cream); }

/* ── GRID ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── SECTION HEADER ── */
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h4 { color: var(--teal); margin-bottom: 10px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 560px; margin: 0 auto; font-size: 1.1rem; }

/* ── HERO ── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--sage-dark) 0%, var(--sage) 50%, var(--teal) 100%);
  padding: 100px 0 80px;
  color: white;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
}
.hero::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0; height: 60px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero__inner { position: relative; z-index: 1; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px; padding: 6px 16px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em;
  margin-bottom: 24px; color: rgba(255,255,255,0.9);
}
.hero h1 { color: white; margin-bottom: 20px; max-width: 680px; }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 540px; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats {
  display: flex; gap: 40px; margin-top: 60px;
  padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.2);
}
.hero__stat-num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: white;
}
.hero__stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  background: linear-gradient(135deg, var(--sage-dark), var(--sage));
  padding: 60px 0 50px; color: white; text-align: center;
  position: relative; overflow: hidden;
}
.page-header::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 40px;
  background: var(--cream); clip-path: ellipse(55% 100% at 50% 100%);
}
.page-header h1 { color: white; margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 500px; margin: 0 auto; }

/* ── FOOTER ── */
.footer {
  background: var(--sage-dark); color: rgba(255,255,255,0.8);
  padding: 60px 0 30px;
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__brand p { font-size: 0.9rem; margin-top: 12px; color: rgba(255,255,255,0.6); max-width: 260px; }
.footer__col h5 {
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.footer__col a {
  display: block; font-size: 0.9rem; color: rgba(255,255,255,0.7);
  padding: 4px 0; transition: var(--transition);
}
.footer__col a:hover { color: white; padding-left: 4px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px; display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: rgba(255,255,255,0.4);
}
.footer__bottom a { color: rgba(255,255,255,0.5); }
.footer__bottom a:hover { color: white; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }
.fade-up-5 { animation-delay: 0.5s; }

/* ── FORM ── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--text);
  background: white; transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(74,124,111,0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 60px; }
  .hero__stats { gap: 24px; flex-wrap: wrap; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
