/* =================================================================
   Oasis Recovery Cooperative Sober Living, LLC
   Brand: Navy + Cream + Gold (from brochure)
   ================================================================= */

:root {
  --navy: #1B3A5C;
  --navy-dark: #122947;
  --navy-light: #2C5680;
  --cream: #F5E8D5;
  --cream-light: #FAF2E4;
  --gold: #E8B547;
  --gold-dark: #C99A37;
  --white: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #5A5A5A;
  --border: #E0D5C0;
  --shadow: 0 4px 20px rgba(27, 58, 92, 0.08);
  --shadow-lg: 0 12px 40px rgba(27, 58, 92, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1em; }

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold-dark);
}

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

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

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

/* =================================================================
   Navigation
   ================================================================= */
.nav {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 16px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: 50%;
  position: relative;
}

.nav-logo-mark::after {
  content: '';
  position: absolute;
  inset: 6px;
  background: var(--white);
  border-radius: 50%;
}

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

.nav-links a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.nav-cta:hover {
  background: var(--navy-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--navy);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 16px 24px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }
}

/* =================================================================
   Hero
   ================================================================= */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  opacity: 0.15;
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero h1 {
  color: var(--white);
  max-width: 800px;
  margin-bottom: 0.4em;
}

.hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--cream);
  max-width: 640px;
  margin-bottom: 32px;
}

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

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--gold-dark);
  color: var(--white);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background: var(--white);
  color: var(--navy);
}

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

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

/* =================================================================
   Sections
   ================================================================= */
.section {
  padding: 80px 0;
}

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

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

.section-navy h1, .section-navy h2, .section-navy h3 {
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.section-navy .section-header p {
  color: var(--cream);
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 16px;
}

/* =================================================================
   Cards / Features
   ================================================================= */
.grid {
  display: grid;
  gap: 32px;
}

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

.card {
  background: var(--white);
  padding: 32px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--cream);
  color: var(--navy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* =================================================================
   Phase pills
   ================================================================= */
.phase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.phase-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.phase-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.phase-card-number {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.phase-card h3 {
  margin-bottom: 8px;
}

.phase-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.phase-card ul {
  list-style: none;
  padding: 0;
}

.phase-card li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--text);
  font-size: 0.95rem;
}

.phase-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-weight: 700;
}

/* =================================================================
   Two-column section
   ================================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
}

.split-image {
  background: var(--cream);
  border-radius: 16px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =================================================================
   Testimonials
   ================================================================= */
.testimonial {
  background: var(--white);
  padding: 32px;
  border-radius: 12px;
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
}

.testimonial blockquote {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 16px;
}

.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--navy);
}

/* =================================================================
   CTA Section
   ================================================================= */
.cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 24px;
  border-radius: 16px;
  margin: 60px auto;
  max-width: 1100px;
}

.cta h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta p {
  color: var(--cream);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* =================================================================
   Footer
   ================================================================= */
.footer {
  background: var(--navy-dark);
  color: var(--cream);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer h4 {
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 8px;
}

.footer a {
  color: var(--cream);
  font-size: 0.95rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--navy-light);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--cream);
  opacity: 0.7;
}

.footer-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-address {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* =================================================================
   Long-form content (Handbook, Agreement, Privacy, Terms)
   ================================================================= */
.longform {
  padding: 60px 0 80px;
}

.longform .container-narrow h1 {
  margin-bottom: 8px;
}

.longform .lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--border);
}

.longform h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 16px;
}

.longform h3 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.longform p, .longform li {
  font-size: 1.02rem;
  line-height: 1.75;
}

.longform ol, .longform ul {
  margin-bottom: 1em;
  padding-left: 1.5em;
}

.longform li {
  margin-bottom: 8px;
}

.longform strong { color: var(--navy); }

.callout {
  background: var(--cream-light);
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  border-radius: 6px;
  margin: 24px 0;
}

.callout strong { color: var(--navy); }

/* =================================================================
   Page header (non-hero pages)
   ================================================================= */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 8px;
}

.page-header p {
  color: var(--cream);
  margin: 0;
}

/* =================================================================
   Contact info block
   ================================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.contact-card h4 {
  color: var(--gold-dark);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.contact-card a, .contact-card p {
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0;
}

/* =================================================================
   Utility
   ================================================================= */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 16px; }
.mb-2 { margin-bottom: 32px; }
.mt-2 { margin-top: 32px; }

@media print {
  .nav, .footer, .cta { display: none; }
}
