/* ═══════════════════════════════════════════════
   TREEHOUSE LOS ANGELES — SHARED STYLESHEET
   WCAG 2.1 AA Compliant
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@400;500;600&display=swap');

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

:root {
  --forest:    #1b3528;
  --forest-mid:#2a4f3c;
  --forest-lt: #3d6b52;
  --red:       #e0181f;
  --cream:     #f4efe6;
  --warm:      #fdfaf4;
  --text:      #1a1a1a;
  --muted:     #4a4a4a;
  --border:    #d8d0c0;
  --focus:     #0066cc;
  --white:     #ffffff;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm);
  color: var(--text);
  line-height: 1.6;
}

/* ── SKIP LINK (WCAG 2.4.1) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--focus);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0 0 6px 6px;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

/* ── FOCUS (WCAG 2.4.7) ── */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── SCREEN READER ONLY ── */
.sr-only {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ── TOP BAR ── */
.top-bar {
  background: var(--forest-mid);
  text-align: center;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: #c8dfc8;
}
.top-bar a { color: #a8d0a8; }

/* ── HEADER ── */
.site-header {
  background: var(--forest);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.site-logo img {
  height: 46px;
  width: auto;
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}
.site-nav a {
  color: #c8dfc8;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--white); }
.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { opacity: 0.88; }

/* mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  padding: 0.5rem;
}

/* ── MAIN ── */
main { outline: none; }

/* ── FOOTER ── */
.site-footer {
  background: var(--forest);
  color: #a8c8a8;
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: 1rem;
}
.footer-col address {
  font-style: normal;
  line-height: 1.9;
  font-size: 0.9rem;
}
.footer-col address a { color: #a8c8a8; text-decoration: underline; }
.footer-col nav ul { list-style: none; }
.footer-col nav li { margin-bottom: 0.5rem; }
.footer-col nav a { color: #a8c8a8; text-decoration: underline; font-size: 0.9rem; }
.footer-col nav a:hover { color: var(--white); }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  color: #a8c8a8;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.footer-bottom {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: underline; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.1s, opacity 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--forest); color: var(--white); }
.btn-primary:hover { background: var(--forest-mid); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { opacity: 0.88; }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* ── SECTION HELPERS ── */
.section { padding: 4rem 1.5rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest-lt);
  margin-bottom: 0.4rem;
  display: block;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--forest);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.section-body { color: var(--muted); max-width: 620px; }

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--forest);
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .site-nav a { display: block; padding: 0.85rem 0; }
  .nav-cta { display: inline-block; margin-top: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
