/* Saba Cooperative — light theme aligned with GoDaddy Websites + Marketing public site */
/* Fonts loaded from base.njk for preconnect performance */

:root {
  --bg-page: #f7f6f3;
  --bg-white: #ffffff;
  --bg-subtle: #efede8;
  --text: #2c2c2c;
  --text-muted: #5c5c5c;
  --heading: #1e3a2f;
  --accent: #2d5a45;
  --accent-hover: #234a38;
  --accent-soft: #e8f0eb;
  --border: #e0ddd6;
  --shadow: 0 2px 12px rgba(30, 58, 47, 0.08);
  --shadow-nav: 0 1px 0 rgba(0, 0, 0, 0.06);
  --radius-card: 2px;
  --radius-btn: 2px;
  --font-body: "Open Sans", Segoe UI, system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-page);
  min-height: 100vh;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

/* ——— Header / nav (light bar like WSB) ——— */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-nav);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  padding-top: 1rem;
  padding-bottom: 0.75rem;
}

.site-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-title {
  color: var(--heading);
  text-decoration: none;
}

.site-title:hover {
  color: var(--accent);
}

.tagline {
  margin: 0.35rem 0 0.85rem;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 400;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  align-items: flex-start;
  padding-bottom: 0.25rem;
}

nav > a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

nav > a:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

.nav-dropdown {
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.nav-offerings {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
}

.nav-offerings a {
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.nav-offerings a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent-soft);
}

/* ——— Hero (video band like live home) ——— */
.hero {
  position: relative;
  background: #1a2e24;
}

.hero-media {
  position: relative;
  max-height: min(56vh, 520px);
  overflow: hidden;
}

.hero-media video {
  width: 100%;
  height: min(56vh, 520px);
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 46, 36, 0.35) 0%,
    rgba(26, 46, 36, 0.55) 100%
  );
  pointer-events: none;
}

.hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
  z-index: 2;
}

.hero-heading {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
  line-height: 1.2;
}

.hero-sub {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  max-width: 36rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

/* ——— Content cards (WSB-style white panels) ——— */
main .container {
  padding-top: 0.5rem;
  padding-bottom: 2rem;
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.35rem 1.5rem;
  margin: 1.25rem 0;
  box-shadow: var(--shadow);
}

.card h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--heading);
  margin: 1.25rem 0 0.5rem;
}

.card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin: 1rem 0 0.4rem;
  text-transform: none;
}

.card p,
.card li {
  color: var(--text);
}

.card ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.card a {
  color: var(--accent);
  font-weight: 600;
}

.card a:hover {
  color: var(--accent-hover);
}

/* Inline links in running text */
.handbook-article a {
  color: var(--accent);
  font-weight: 600;
}

.handbook-article a:hover {
  color: var(--accent-hover);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.handbook-article h1 {
  border-bottom: 2px solid var(--accent-soft);
  padding-bottom: 0.65rem;
}

.handbook-article h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--heading);
  margin: 1.75rem 0 0.65rem;
}

.handbook-article h3 {
  font-size: 1.1rem;
  color: var(--accent);
  margin: 1.25rem 0 0.5rem;
}

.handbook-article p,
.handbook-article li {
  color: var(--text);
}

.handbook-main {
  padding-top: 0.75rem;
  padding-bottom: 2.5rem;
}

.handbook-article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  margin: 1rem 0;
}

.handbook-article strong {
  color: var(--heading);
}

/* ——— Buttons (solid green, WSB-like) ——— */
.button {
  display: inline-block;
  margin: 0.35rem 0.65rem 0.35rem 0;
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: var(--radius-btn);
  color: #fff !important;
  background: var(--accent);
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-body);
  box-shadow: 0 2px 8px rgba(45, 90, 69, 0.25);
  transition: background 0.15s ease, transform 0.1s ease;
}

.button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.button-secondary {
  background: #3d5c80;
  box-shadow: 0 2px 8px rgba(61, 92, 128, 0.2);
}

.button-secondary:hover {
  background: #2f4a66;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  margin-top: 0;
  padding: 1.75rem 0 2rem;
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--accent);
  font-weight: 600;
}

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

.footer-blog {
  margin: 0.75rem 0 0;
  font-size: 1rem;
}

.footer-blog a {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.footer-admin {
  margin: 0.5rem 0 0;
  opacity: 0.75;
  font-size: 0.82rem;
}

.small {
  font-size: 0.88rem;
}

/* Handbook grid (optional use on about-1 later) */
.handbook-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin: 1rem 0;
}

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

@media (max-width: 640px) {
  .hero-media video {
    height: 40vh;
    min-height: 220px;
  }

  nav {
    flex-direction: column;
    gap: 0.5rem;
  }
}
