/* ============================================================================
   Elite Care Recovery — Styles
   ============================================================================ */

/* Root: Color palette & typography scale */
:root {
  --color-bg: #FAF7F2;
  --color-bg-alt: #F2EDE5;
  --color-charcoal: #1A1A1A;
  --color-charcoal-soft: #3A3A3A;
  --color-blue: #1E6BFF;
  --color-blue-dark: #0F4FCC;
  --color-gold: #B8965A;
  --color-border: #E5DFD3;
  --color-shadow: rgba(26, 26, 26, 0.08);
}

/* Reset & base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  background-color: var(--color-bg);
  color: var(--color-charcoal);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: 0;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-charcoal);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

h3 {
  font-size: 1.5rem;
}

/* Eyebrow pattern — uppercase label before section headline */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

small,
.small {
  font-size: 0.875rem;
}

/* Emphasis & links */
strong,
b {
  font-weight: 500;
}

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color 200ms ease;
}

a:hover,
a:focus {
  color: var(--color-blue-dark);
}

/* Container utility */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Layout grid utilities */
.split-50-50 {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 1024px) {
  .split-50-50 {
    grid-template-columns: 1fr 1fr;
  }
}

.split-60-40 {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 1024px) {
  .split-60-40 {
    grid-template-columns: 1.5fr 1fr;
  }
}

/* Sections: alternating backgrounds with generous padding */
section {
  padding: clamp(4rem, 8vw, 8rem) 0;
}

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

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

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

section.bg-charcoal .eyebrow {
  color: var(--color-gold);
}

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

/* ============================================================================
   Navigation
   ============================================================================ */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: transparent;
  transition: all 300ms ease;
}

nav.scrolled {
  background-color: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

@media (min-width: 768px) {
  .nav-container {
    padding: 2.5rem 1.5rem;
  }
}

.nav-logo-link {
  display: flex;
  align-items: center;
  position: absolute;
  left: 1.5rem;
}

.nav-logo {
  width: 180px;
  height: auto;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-links li {
  display: flex;
  align-items: center;
  line-height: 1;
  min-height: 44px;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-charcoal);
  position: relative;
  line-height: 1;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: width 300ms ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--color-charcoal);
  font-weight: 600;
}

/* Reserve Now button in nav */
nav .btn-nav {
  background-color: var(--color-blue);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 200ms ease;
  font-size: 0.95rem;
  white-space: nowrap;
  line-height: 1;
  display: inline-block;
  position: absolute;
  right: 1.5rem;
}

@media (max-width: 1023px) {
  nav .btn-nav {
    display: none;
  }
}

@media (min-width: 1024px) {
  nav .btn-nav {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

nav .btn-nav:hover,
nav .btn-nav:focus {
  background-color: var(--color-blue-dark);
}

/* Hamburger menu (mobile) */
.hamburger {
  display: flex !important;
  flex-direction: column;
  gap: 0.35rem;
  background: none !important;
  border: none !important;
  cursor: pointer;
  padding: 0 !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  border-radius: 0 !important;
  transition: none;
  position: absolute;
  right: 1.5rem;
}

@media (min-width: 1024px) {
  .hamburger {
    display: none !important;
  }
}

.hamburger span {
  width: 24px;
  height: 2px;
  background-color: var(--color-charcoal);
  transition: all 300ms ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--color-bg);
  transition: right 300ms ease;
  z-index: 101;
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none;
  }
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu a {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-charcoal);
  padding: 1rem 2rem;
}

/* Mobile menu header */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.mobile-menu-logo {
  width: 150px;
  height: auto;
  max-height: 150px;
  flex-shrink: 0;
  display: block;
}

/* Mobile menu close button (X icon) */
.mobile-menu-close {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: none !important;
  border: none !important;
  cursor: pointer;
  padding: 8px !important;
  width: 40px;
  height: 40px;
  position: relative;
  border-radius: 0 !important;
  transition: none;
}

.mobile-menu-close span {
  width: 24px;
  height: 2px;
  background-color: var(--color-charcoal);
  position: absolute;
}

.mobile-menu-close span:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-menu-close span:nth-child(2) {
  transform: rotate(-45deg);
}

/* Mobile menu footer */
.mobile-menu-footer {
  margin-top: auto;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.mobile-menu-footer p {
  font-size: 0.85rem;
  color: var(--color-charcoal-soft);
  margin: 0;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background-color: var(--color-blue);
  color: white;
  padding: 0.5rem 1rem;
  z-index: 100;
  font-size: 0.875rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* ============================================================================
   Hero Section
   ============================================================================ */

.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 26, 0) 0%,
    rgba(26, 26, 26, 0.6) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 0 1.5rem;
  max-width: 800px;
}

.hero-content h1 {
  color: white;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
  }
}

/* Gold flourish beneath CTAs */
.hero-flourish {
  width: 60px;
  height: 1px;
  background-color: var(--color-gold);
  margin: 0 auto;
}

/* ============================================================================
   Buttons
   ============================================================================ */

button,
.btn {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: all 200ms ease;
  text-decoration: none;
  display: inline-block;
}

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

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-blue-dark);
  outline: none;
}

.btn-ghost {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-ghost:hover,
.btn-ghost:focus {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-white {
  background-color: white;
  color: var(--color-blue);
  font-weight: 600;
}

.btn-white:hover,
.btn-white:focus {
  background-color: rgba(255, 255, 255, 0.9);
}

.btn-full {
  width: 100%;
}

@media (min-width: 640px) {
  .btn-full {
    width: auto;
  }
}

/* Loading state */
.btn:disabled,
.btn.sending {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============================================================================
   Cards
   ============================================================================ */

.card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 2rem;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: box-shadow 200ms ease;
}

.card:hover {
  box-shadow: 0 4px 12px var(--color-shadow);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-charcoal);
}

.card-text {
  color: var(--color-charcoal-soft);
  line-height: 1.65;
}

/* Step card — numbered 01, 02, 03, 04 */
.step-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-gold);
  border-radius: 4px;
  padding: 2rem;
  text-align: center;
}

.step-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.step-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.step-card p {
  color: var(--color-charcoal-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Benefits grid */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-item {
  text-align: center;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.5rem;
  stroke: var(--color-blue);
  stroke-width: 1.5;
  fill: none;
}

.benefit-item h3 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.benefit-item p {
  color: var(--color-charcoal-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Feature list with checkmarks */
.feature-list {
  list-style: none;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-list li::before {
  content: '✓';
  color: var(--color-blue);
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.feature-list li span {
  color: var(--color-charcoal-soft);
}

/* Mission/Objectives list with checkmarks */
.mission-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.mission-list li {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.mission-list li::before {
  content: '✓';
  color: var(--color-blue);
  font-weight: 700;
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: -0.25rem;
}

.mission-list strong {
  display: block;
  color: var(--color-charcoal);
  margin-bottom: 0.25rem;
}

/* Objectives grid */
.objectives-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .objectives-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.objectives-grid li {
  padding-left: 2.5rem;
  position: relative;
}

.objectives-grid li::before {
  content: counter(item);
  counter-increment: item;
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gold);
}

/* Core values grid — F E P C */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.value-letter {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.value-card h3 {
  color: white;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.value-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================================================
   Forms
   ============================================================================ */

form {
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

label {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-charcoal);
  margin-bottom: 0.5rem;
}

input,
select,
textarea {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 0.875rem;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg);
  color: var(--color-charcoal);
  border-radius: 4px;
  transition: all 200ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(30, 107, 255, 0.1);
}

input:invalid,
select:invalid,
textarea:invalid {
  border-color: #d32f2f;
}

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='date'],
select {
  width: 100%;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 120px;
}

input[type='hidden'] {
  display: none;
}

form button {
  width: 100%;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  form button {
    width: auto;
  }
}

/* Form success/sending states */
.form-status {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
  display: none;
  font-weight: 500;
}

.form-status.show {
  display: block;
}

.form-status.success {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.form-status.error {
  background-color: #ffebee;
  color: #c62828;
}

/* ============================================================================
   Image Placeholders
   ============================================================================ */

.image-placeholder {
  aspect-ratio: 4 / 5;
  background-color: var(--color-bg-alt);
  border: 1.5px dashed var(--color-gold);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.placeholder-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.image-placeholder p {
  color: var(--color-charcoal-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================================================
   Typography Utilities
   ============================================================================ */

.pull-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.3;
  color: var(--color-charcoal);
  margin-bottom: 2rem;
  position: relative;
  padding-left: 2rem;
}

.pull-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -0.5rem;
  font-size: 3rem;
  color: var(--color-gold);
  line-height: 1;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: white;
  line-height: 1.5;
}

.stat-underline {
  width: 40px;
  height: 1px;
  background-color: var(--color-gold);
  margin: 0.5rem auto 0;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-item {
  text-align: center;
}

/* ============================================================================
   Footer
   ============================================================================ */

footer {
  background-color: var(--color-charcoal);
  color: white;
  padding: clamp(3rem, 8vw, 6rem) 1.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: 2.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-column h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-column p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: var(--color-gold);
}

.footer-column a:hover {
  color: rgba(184, 150, 90, 0.8);
}

.footer-logo {
  width: 150px;
  height: auto;
  margin-bottom: 1rem;
  background-color: white;
  padding: 0.05rem 0.25rem;
  border-radius: 4px;
  display: block;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Hours list */
.hours-list {
  list-style: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Quick links list */
.quick-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quick-links a {
  font-size: 0.95rem;
}

/* Footer bottom strip */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-bottom p:last-child {
  margin-bottom: 0;
}

/* Social icons */
.social-icons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 200ms ease;
}

.social-icons a:hover {
  background-color: var(--color-gold);
}

.social-icons svg {
  width: 18px;
  height: 18px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

/* ============================================================================
   Accessibility & Focus States
   ============================================================================ */

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* ============================================================================
   Responsive Media Queries
   ============================================================================ */

/* Tablet breakpoint (640px) */
@media (min-width: 640px) {
  .container {
    padding: 0 2rem;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }
}

/* Desktop breakpoint (1024px) */
@media (min-width: 1024px) {
  .container {
    padding: 0 3rem;
  }

  section {
    padding: clamp(4rem, 8vw, 8rem) 0;
  }
}

/* Wide desktop (1280px) */
@media (min-width: 1280px) {
  .container {
    max-width: 1200px;
  }
}

/* Print styles */
@media print {
  nav,
  footer {
    display: none;
  }

  body {
    background-color: white;
    color: black;
  }
}
