/* ==========================================================
   New Mexico Educators Supported Living LLC
   Shared styles: header, hero, footer (used on every page)
   ========================================================== */
 
:root {
  /* Dark blue theme */
  --bg: #071120; /* page background */
  --ink: #e6eef8; /* main text */
  --navy: #072f6b; /* primary accent / header */
  --accent: #0b66d1; /* bright blue accent */
  --hero-bg: linear-gradient(180deg,#05213a 0%, #072f6b 100%);
  --hero-ink: #f5fbff;
  --page-pad: clamp(1rem, 2.4vw, 2.8rem);

  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-body: "Newsreader", Georgia, serif;
}
 
*,
*::before,
*::after {
  box-sizing: border-box;
}
 
html {
  scroll-behavior: smooth;
}
 
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
}
 
main {
  flex: 1;
}
 
a {
  color: inherit;
}
 
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
 
/* ---------- Header ---------- */
 
.site-header {
  display: block;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(7,17,32,0.95), rgba(7,17,32,0.9));
  box-shadow: 0 2px 8px rgba(2,6,23,0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem var(--page-pad);
  max-width: 1200px;
  margin: 0 auto;
  min-height: 88px; /* match screenshot taller header */
}
 
.site-brand {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--hero-ink);
  text-decoration: none;
}

.site-logo { display:block; height:72px; width:auto; object-fit:contain }

.brand-wrap { display:flex; align-items:center; gap:1rem }
/* make logo background visually match the header banner */
.brand-wrap { background: linear-gradient(180deg, rgba(7,17,32,0.95), rgba(7,17,32,0.9)); padding:6px 10px; border-radius:8px }

.site-nav { margin-left: 1.25rem }
.nav-ctas { margin-left: auto; display:flex; align-items:center; gap:1rem }
.site-nav ul { display:flex; align-items:center }
.site-nav li { list-style:none }
.site-nav a { color:var(--hero-ink); padding:.6rem .9rem; display:inline-block }
.site-nav a { font-size:1rem; }
.site-nav a:hover { background: rgba(255,255,255,0.03); border-radius:6px }
 
.site-nav ul {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
 
.site-nav a {
  font-size: 1.05rem;
  color: var(--hero-ink);
  text-decoration: none;
  padding: 0.25rem 0.25rem;
  border-radius: 6px;
  transition: background .18s ease, color .18s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255,255,255,0.06);
}

.header-ctas { display:flex; gap:0.8rem; align-items:center }
.cta { text-decoration:none; padding:0.45rem 0.8rem; border-radius:6px; font-weight:600 }
.cta.home { background:transparent; color:var(--hero-ink); border:1px solid rgba(255,255,255,0.06) }
.cta.phone { background:transparent; color:var(--hero-ink); border:1px solid rgba(255,255,255,0.08) }
.cta.primary { background:var(--accent); color: #fff }

/* subtle visual separation when page scrolls */
.site-header.scrolled { backdrop-filter: blur(6px); }
 
/* ---------- Hero ---------- */
 
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  margin: 0 var(--page-pad);
  padding: clamp(2.5rem, 7vw, 6rem) clamp(1.25rem, 4vw, 4rem);
  min-height: min(60vh, 40rem);
  background: var(--hero-bg);
  color: var(--hero-ink);
}
 
.hero h1 {
  max-width: 24ch;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 6.2vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-align: center;
  text-wrap: balance;
}
 
.hero h1 em {
  font-style: italic;
}
 
.hero-logo {
  display: block;
  width: min(100%, 60rem);
  height: auto;
  margin: 0 auto;
}
 
/* ---------- Footer (identical on every page) ---------- */
 
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem 4rem;
  padding: clamp(3rem, 7vw, 6rem) var(--page-pad) 2.5rem;
  background: linear-gradient(180deg, rgba(2,8,23,0.6), rgba(2,8,23,0.4));
  color: var(--hero-ink);
}
 
.footer-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
 
.footer-note {
  margin: 0;
}
 
.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 4rem;
}
 
.footer-cols h3 {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1;
}
 
.footer-cols address {
  font-style: normal;
}
 
.footer-cols p {
  margin: 0;
}
 
/* ---------- Small screens ---------- */
 
@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    min-height: auto;
  }

  .brand-wrap {
    width: 100%;
    justify-content: center;
  }

  .nav-ctas {
    width: 100%;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .site-nav {
    width: 100%;
    margin-left: 0;
  }

  .site-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.75rem;
  }

  .hero {
    min-height: 0;
  }
  .site-logo { height:48px }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Page container and cards ---------- */
.page-container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.content-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(2,6,23,0.6);
}

/* Employee card tweaks */
.employees-grid { gap: 1.5rem; }
.employee-card { padding: 1.25rem; }

/* Contact form styling */
.contact-form { display:block; max-width:720px; margin:0 auto; }
.contact-form label { display:block; margin:0.6rem 0 0.25rem; color:var(--hero-ink); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width:100%; padding:0.65rem 0.8rem; border-radius:8px; border:1px solid rgba(255,255,255,0.06); background:rgba(255,255,255,0.02); color:var(--hero-ink);
}
.contact-form textarea { min-height:120px; resize:vertical }
.contact-form .form-actions { display:flex; gap:0.8rem; margin-top:1rem }
.btn { padding:0.6rem 0.95rem; border-radius:8px; font-weight:700; text-decoration:none; display:inline-block }
.btn.primary { background:var(--accent); color:#fff; border:none }
.btn.ghost { background:transparent; color:var(--hero-ink); border:1px solid rgba(255,255,255,0.06) }

/* About page text */
.about-intro p { margin:0 0 1rem; color:var(--hero-ink); line-height:1.6 }