/*
  Luna Health Solutions — Shared Stylesheet
  Color scheme matched to jlunahealthsolutions.com
  Fonts: Nunito (body) + Playfair Display (headings)
*/

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

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

:root {
  --white:      #ffffff;
  --off-white:  #f8f9fc;
  --light-gray: #eef1f7;
  --border:     #dde3ef;
  --text-dark:  #0d1b3e;   /* deep navy — matches site's heading color */
  --text-mid:   #3d4f72;   /* mid navy for body copy */
  --text-muted: #6b7fa3;   /* muted blue-gray */
  --blue:       #1a56db;   /* primary CTA blue */
  --blue-dark:  #1040b0;
  --blue-light: #e8f0fd;   /* light tint for badges/cards */
  --accent:     #0ea5e9;   /* sky blue accent */
  --font-head:  'Playfair Display', serif;
  --font-body:  'Nunito', sans-serif;
  --nav-h:      72px;
  --radius:     8px;
  --shadow:     0 4px 24px rgba(13,27,62,0.08);
  --shadow-lg:  0 12px 48px rgba(13,27,62,0.13);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
}

.nav-logo img { height: 38px; width: auto; }
.nav-logo-text {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
}

.nav-links { list-style: none; display: flex; align-items: center; gap: 2px; }

.nav-links a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-mid);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}

.nav-links a:hover, .nav-links a.active {
  background: var(--blue-light);
  color: var(--blue);
}

.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  border-radius: 6px !important;
  padding: 9px 20px !important;
  font-weight: 700 !important;
  transition: background 0.18s !important;
}

.nav-cta:hover { background: var(--blue-dark) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.hamburger span { width: 22px; height: 2px; background: var(--text-dark); display: block; border-radius: 2px; }

.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 999;
  padding: 32px 5%;
  gap: 0;
  overflow-y: auto;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-mid);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a.mob-cta {
  margin-top: 20px;
  background: var(--blue);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius);
  text-align: center;
  border: none;
  font-weight: 700;
}

/* ── PAGE WRAPPER ── */
.page-wrap { padding-top: var(--nav-h); }

/* ── HERO BANNER (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, #0d1b3e 0%, #1a3272 60%, #1a56db 100%);
  padding: 80px 5% 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(14,165,233,0.12) 0%, transparent 50%);
}

.page-hero .label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
  position: relative;
}

.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  position: relative;
  margin-bottom: 18px;
}

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin: 0 auto;
  font-weight: 300;
  position: relative;
}

/* ── SECTIONS ── */
section { padding: 88px 5%; }
section.alt { background: var(--off-white); }
section.dark { background: var(--text-dark); color: #fff; }

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 12px;
}

h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.18;
  margin-bottom: 16px;
  color: var(--text-dark);
}

h2 em { font-style: italic; color: var(--blue); }
section.dark h2 { color: #fff; }
section.dark h2 em { color: var(--accent); }

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 580px;
  font-weight: 400;
  line-height: 1.75;
}

section.dark .section-sub { color: rgba(255,255,255,0.6); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.18s, transform 0.18s;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }

.btn-outline {
  display: inline-block;
  border: 2px solid var(--blue);
  color: var(--blue);
  padding: 11px 30px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.btn-outline:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }

.btn-white {
  display: inline-block;
  background: #fff;
  color: var(--blue);
  padding: 13px 32px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.18s, transform 0.18s;
}
.btn-white:hover { background: var(--off-white); transform: translateY(-2px); }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.22s, transform 0.22s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

/* ── DIVIDER ── */
.divider { width: 100%; height: 1px; background: var(--border); }

/* ── FOOTER ── */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.75);
  padding: 64px 5% 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-brand .logo-text {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: #fff;
  display: block;
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-brand p { font-size: 0.85rem; line-height: 1.75; max-width: 300px; }

.footer-col h5 {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.18s;
}
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 0.78rem; }

.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  transition: border-color 0.18s, color 0.18s;
}
.footer-socials a:hover { border-color: var(--accent); color: var(--accent); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
