/*
Theme Name: Safe Independence Solutions
Theme URI: https://safeindependence.org
Author: Safe Independence Solutions
Description: Custom accessible healthcare & home care WordPress theme for Safe Independence Solutions and Kane Homestead AFC (#AF390419859).
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: safe-independence
*/

:root {
  --primary: #1B4D4B;
  --primary-dark: #133836;
  --accent: #D97736;
  --accent-hover: #C26528;
  --bg-soft: #FAF9F6;
  --bg-white: #FFFFFF;
  --text-dark: #1E293B;
  --text-muted: #475569;
  --border: #E2E8F0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  background-color: var(--bg-soft);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text-dark);
  line-height: 1.25;
  margin-top: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Emergency Top Strip */
.emergency-bar {
  background-color: #FEF2F2;
  border-bottom: 1px solid #FECACA;
  color: #991B1B;
  font-size: 13px;
  padding: 8px 24px;
  text-align: center;
}

/* Header & Navigation */
.site-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 20px;
  flex-wrap: wrap;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dark);
  padding: 8px 4px;
  display: block;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: var(--accent);
}

/* Dropdown Sub-Menu */
.main-nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 240px;
  padding: 8px 0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.main-nav li:hover > ul {
  display: flex;
}

.main-nav ul ul a {
  padding: 10px 18px;
  font-size: 14px;
}

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-accent {
  background-color: var(--accent);
  color: #FFFFFF !important;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF !important;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-outline-light {
  background-color: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.45);
  color: #FFFFFF !important;
}

/* Hero Section */
.hero-section {
  background-color: var(--primary);
  color: #FFFFFF;
  padding: 80px 0;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-section h1 {
  color: #FFFFFF;
  font-size: clamp(32px, 4.5vw, 46px);
  max-width: 820px;
  margin-bottom: 18px;
}

.hero-section p {
  color: #E2E8F0;
  font-size: 18px;
  max-width: 740px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Sections & Grids */
.section {
  padding: 72px 0;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.card-top-teal {
  border-top: 4px solid var(--primary);
}

.card-top-terracotta {
  border-top: 4px solid var(--accent);
}

.pill-tag {
  background: #F1F5F9;
  color: var(--text-dark);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  margin: 14px 0 20px;
}

.county-list {
  columns: 2;
  -webkit-columns: 2;
  padding-left: 18px;
  line-height: 2;
  color: var(--text-dark);
}

/* Forms */
.sis-form {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
}

.hipaa-box {
  background: #FEF3C7;
  border-left: 4px solid var(--accent);
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 13.5px;
  color: #78350F;
  margin-bottom: 18px;
}

.form-alert-success {
  background: #DCFCE7;
  border: 1px solid #86EFAC;
  color: #166534;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 600;
}

/* Video Responsive Container */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 14px;
}

.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* Footer */
.site-footer {
  background-color: var(--primary-dark);
  color: #E2E8F0;
  padding: 64px 0 32px;
}

.site-footer h4 {
  color: #FFFFFF;
  font-size: 18px;
  margin-bottom: 16px;
}

.site-footer a {
  color: #CBD5E1;
}

.site-footer a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 40px;
  padding-top: 24px;
  font-size: 13.5px;
  color: #94A3B8;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
