/* ============================================
   DeltaCare Home Health — Shared Design System
   ============================================ */

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

:root {
  /* Colors */
  --navy:       oklch(22% 0.08 10);
  --navy-mid:   oklch(30% 0.10 10);
  --teal:       oklch(42% 0.14 10);
  --teal-light: oklch(58% 0.12 10);
  --teal-pale:  oklch(96% 0.02 10);
  --gold:       oklch(72% 0.10 80);
  --white:      oklch(99% 0.005 240);
  --off-white:  oklch(97% 0.008 240);
  --gray-100:   oklch(94% 0.008 240);
  --gray-200:   oklch(88% 0.010 240);
  --gray-400:   oklch(70% 0.012 240);
  --gray-600:   oklch(52% 0.014 240);
  --gray-800:   oklch(32% 0.018 240);
  --text:       oklch(20% 0.02 240);

  /* Typography */
  --font-serif: 'Lora', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  /* Spacing */
  --section-gap: 96px;
  --radius:      8px;
  --radius-lg:   16px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,30,60,0.08), 0 1px 2px rgba(0,30,60,0.04);
  --shadow-md:  0 4px 16px rgba(0,30,60,0.10), 0 2px 6px rgba(0,30,60,0.06);
  --shadow-lg:  0 12px 40px rgba(0,30,60,0.13), 0 4px 12px rgba(0,30,60,0.07);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ---- NAVIGATION ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  gap: 1px;
}

.nav-logo-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.nav-logo-tagline {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color 0.18s, background 0.18s;
}

.nav-links a:hover {
  color: var(--teal);
  background: var(--teal-pale);
}

.nav-links a.active {
  color: var(--teal);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after {
  content: '';
  display: inline-block;
  margin-left: 5px;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: middle;
  opacity: 0.6;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  /* 8px transparent top margin bridges the gap so mouse doesn't lose hover */
  margin-top: 0;
  border-top: 8px solid transparent;
  background-clip: padding-box;
  background-color: var(--white);
  border-left: 1px solid var(--gray-200);
  border-right: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 230px;
  padding: 8px;
  list-style: none;
  z-index: 200;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  font-size: 13.5px;
  padding: 9px 14px;
  border-radius: 6px;
  color: var(--gray-800);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.dropdown-menu a:hover {
  background: var(--teal-pale);
  color: var(--teal);
}

.nav-cta {
  background: var(--teal) !important;
  color: var(--white) !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  padding: 9px 20px !important;
  transition: background 0.18s !important;
}

.nav-cta:hover {
  background: var(--navy-mid) !important;
  color: var(--white) !important;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-brand-tagline {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 16px;
}

.footer-brand-desc {
  font-size: 13.5px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col ul a:hover {
  color: var(--white);
}

.footer-contact-item {
  font-size: 13.5px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.footer-contact-item span:first-child {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-light);
}

.footer-contact-item span:last-child {
  color: rgba(255,255,255,0.85);
}

.footer-contact-item a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}

.footer-contact-item a:hover {
  color: var(--white);
}

.footer-bottom {
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 32px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
}

.footer-bottom a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-bottom a:hover { color: var(--white); }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: var(--navy);
  padding: 64px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, oklch(28% 0.06 240) 0%, oklch(35% 0.10 210) 100%);
  opacity: 0.95;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.page-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 14px;
  display: block;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--gray-600);
}

.breadcrumb-inner a {
  color: var(--teal);
  text-decoration: none;
}

.breadcrumb-inner a:hover { text-decoration: underline; }

.breadcrumb-sep { color: var(--gray-400); }

/* ---- CONTENT CONTAINER ---- */
.content-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- SECTION ---- */
.section {
  padding: var(--section-gap) 0;
}

.section-alt {
  background: var(--off-white);
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

/* ---- HEADINGS ---- */
.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 20px;
}

.section-title.light { color: var(--white); }

.section-lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--gray-600);
  max-width: 640px;
}

.section-lead.light { color: rgba(255,255,255,0.75); }

/* ---- DIVIDER ---- */
.title-divider {
  width: 40px;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
  margin: 18px 0 28px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.18s;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}

.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
}

/* ---- CARDS ---- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ---- IMAGE PLACEHOLDER ---- */
.img-placeholder {
  background: repeating-linear-gradient(
    -45deg,
    var(--gray-100),
    var(--gray-100) 6px,
    var(--gray-200) 6px,
    var(--gray-200) 12px
  );
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gray-600);
  font-size: 12px;
  font-family: monospace;
  text-align: center;
  padding: 20px;
  overflow: hidden;
}

/* ---- PROSE (service pages) ---- */
.prose h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--navy);
  margin: 40px 0 14px;
}

.prose p {
  margin-bottom: 18px;
  color: var(--gray-800);
  font-size: 16.5px;
  line-height: 1.8;
}

.prose ul {
  margin: 0 0 22px 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prose ul li {
  padding-left: 22px;
  position: relative;
  font-size: 16px;
  color: var(--gray-800);
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

/* ---- UTILITIES ---- */
.text-center { text-align: center; }
.text-center .section-lead { margin-left: auto; margin-right: auto; }
.text-center .title-divider { margin-left: auto; margin-right: auto; }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.badge {
  display: inline-block;
  background: var(--teal-pale);
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
  letter-spacing: 0.04em;
}

/* ---- MOBILE NAV ---- */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-mobile-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.2s;
}

@media (max-width: 900px) {
  .nav-inner {
    position: relative;
    flex-wrap: wrap;
    height: auto;
    min-height: 72px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .nav-inner nav {
    width: 100%;
    order: 3;
  }
  .nav-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-mobile-checkbox:checked ~ .nav-mobile-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-mobile-checkbox:checked ~ .nav-mobile-toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav-mobile-checkbox:checked ~ .nav-mobile-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .nav-links {
    display: none;
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
  }
  .nav-mobile-checkbox:checked ~ nav .nav-links,
  .nav-links.is-open {
    display: flex;
  }
  .nav-links a {
    display: block;
    width: 100%;
  }
  .nav-dropdown {
    width: 100%;
  }
  .dropdown-menu {
    position: static;
    display: block;
    min-width: 0;
    margin-top: 8px;
    border: 0;
    border-top: 0;
    box-shadow: none;
    padding: 8px 0 0 12px;
  }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .content-wrap { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .section { padding: 64px 0; }
}
