/* ================================
   Laurel Ridge Health Design System
   ================================ */

/*
 * This stylesheet defines the design system for the Laurel Ridge Health
 * website. It establishes a brand palette, typography, reusable
 * components (buttons, cards, statistics), layout utilities and
 * responsive rules. When applied consistently across pages, these
 * styles create a cohesive, warm, community‑focused look and feel.
 */

/* Brand palette extracted from the logo and secondary hues */
:root {
  --lr-blue-deep: #0e4e8a;
  --lr-blue: #1671b8;
  --lr-teal: #1fb3c9;
  --lr-teal-light: #5ed6d1;
  /* Secondary colors for highlights and accents */
  --lr-gold: #f6b756;
  --lr-rose: #eb6f7f;
  /* Neutral tones */
  --lr-gray-900: #1f2933;
  --lr-gray-700: #4b5563;
  --lr-gray-500: #6b7280;
  --lr-gray-200: #e5e7eb;
  --lr-gray-100: #f5f7fa;
  --lr-white: #ffffff;
  /* Border radius values */
  --lr-radius-lg: 1.25rem;
  --lr-radius-md: 0.75rem;
  --lr-radius-pill: 999px;
  /* Shadows */
  --lr-shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --lr-shadow-subtle: 0 10px 25px rgba(15, 23, 42, 0.05);
  /* Layout */
  --lr-max-width: 1120px;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter",
    "Segoe UI", sans-serif;
  color: var(--lr-gray-900);
  background: var(--lr-gray-100);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--lr-blue);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--lr-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  color: var(--lr-gray-900);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.4rem;
  line-height: 1.1;
  margin-top: 0;
}

h2 {
  font-size: 1.9rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

p {
  margin: 0 0 0.9rem;
  color: var(--lr-gray-700);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text > span:first-child {
  font-weight: 700;
  color: var(--lr-blue-deep);
  font-size: 1.25rem;
}

.logo-subtitle {
  font-size: 0.78rem;
  color: var(--lr-gray-500);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.92rem;
}

.main-nav a {
  padding: 0.4rem 0.7rem;
  border-radius: var(--lr-radius-pill);
  color: var(--lr-gray-700);
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.main-nav a:hover {
  background: var(--lr-gray-100);
  color: var(--lr-blue-deep);
  transform: translateY(-1px);
}

/* Sections & Layout */
.section {
  padding: 3.5rem 0;
}

.section--muted {
  background: var(--lr-gray-100);
}

.section--accent {
  background: linear-gradient(
    135deg,
    rgba(22, 113, 184, 0.06),
    rgba(31, 179, 201, 0.06)
  );
}

.section-header {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.section-header p {
  margin-top: 0.5rem;
}

/* Grids */
.card-grid,
.stat-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--lr-radius-pill);
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s,
    color 0.12s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--lr-blue), var(--lr-teal));
  color: var(--lr-white);
  box-shadow: var(--lr-shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.btn-secondary {
  background: var(--lr-white);
  color: var(--lr-blue-deep);
  border-color: rgba(148, 163, 184, 0.5);
}

.btn-secondary:hover {
  background: var(--lr-gray-100);
}

.btn-link {
  border: none;
  background: transparent;
  padding: 0;
  color: var(--lr-blue);
  font-weight: 600;
}

/* Cards */
.card {
  background: var(--lr-white);
  border-radius: var(--lr-radius-lg);
  box-shadow: var(--lr-shadow-subtle);
  padding: 1.4rem 1.5rem;
}

.card--outline {
  box-shadow: none;
  border-radius: var(--lr-radius-md);
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: var(--lr-white);
}

/* Stat cards (for financials) */
.stat-card {
  background: var(--lr-white);
  border-radius: var(--lr-radius-lg);
  box-shadow: var(--lr-shadow-subtle);
  padding: 1.1rem 1.3rem;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(31, 179, 201, 0.12),
    transparent 55%
  );
  pointer-events: none;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lr-gray-500);
  margin-bottom: 0.2rem;
}

.stat-value {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--lr-blue-deep);
}

.stat-caption {
  font-size: 0.82rem;
  color: var(--lr-gray-500);
}

/* Pills */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  padding: 0.3rem 0.75rem;
  border-radius: var(--lr-radius-pill);
  background: rgba(15, 118, 110, 0.06);
  color: var(--lr-gray-700);
  font-size: 0.78rem;
  font-weight: 500;
}

/* Hero styles */
.hero {
  padding: 4.5rem 0 3.5rem;
  background: radial-gradient(circle at top left, #e0f6ff 0, #f7fafc 55%);
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.8rem;
  border-radius: var(--lr-radius-pill);
  background: rgba(22, 113, 184, 0.08);
  font-size: 0.78rem;
  color: var(--lr-blue-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-highlight {
  color: var(--lr-teal);
}

.hero-graphic {
  position: relative;
  padding: 1.5rem;
}

.hero-panel {
  border-radius: var(--lr-radius-lg);
  background: linear-gradient(135deg, var(--lr-blue-deep), var(--lr-teal));
  color: var(--lr-white);
  padding: 1.5rem;
  box-shadow: var(--lr-shadow-soft);
}

/*
 * Split layout
 *
 * Many of the interior pages share a two‑column layout where text sits
 * alongside an illustration. These classes create a responsive grid
 * that collapses nicely on narrow screens. Each split column stacks
 * vertically on mobile while maintaining generous spacing.
 */
.split-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.split-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Ensure images inside split columns scale and stay on brand */
.split-column img {
  max-width: 100%;
  height: auto;
  border-radius: var(--lr-radius-lg);
  box-shadow: var(--lr-shadow-subtle);
}

/*
 * Generic section image
 *
 * Allows standalone images (outside of split columns) to pick up
 * consistent styling — rounded corners and a light shadow.
 */
.section-image {
  width: 100%;
  height: auto;
  border-radius: var(--lr-radius-lg);
  box-shadow: var(--lr-shadow-subtle);
  display: block;
  margin: 0;
}

/*
 * Hero graphics containing both an image and a panel of statistics.
 * We add styling to images here so they play nicely with the hero panel.
 */
.hero-graphic img {
  width: 100%;
  height: auto;
  border-radius: var(--lr-radius-lg);
  box-shadow: var(--lr-shadow-soft);
  margin-bottom: 1rem;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover,
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(209, 213, 219, 0.7);
  background: var(--lr-white);
  padding: 1.5rem 0;
  margin-top: 2rem;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-nav a {
  color: var(--lr-gray-500);
}

.footer-nav a:hover {
  color: var(--lr-blue-deep);
}

/* Responsive rules */
@media (max-width: 840px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}