/* ==========================================================================
   Life's Force — clean, mobile-first stylesheet
   ========================================================================== */

:root {
  --color-primary: #0f766e;
  --color-primary-dark: #115e59;
  --color-primary-light: #f0fdfa;
  --color-accent: #b45309;
  --color-text: #1f2937;
  --color-text-light: #4b5563;
  --color-border: #e5e7eb;
  --color-bg: #ffffff;
  --color-bg-alt: #f9fafb;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;
  --container: 1080px;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 14px rgba(0, 0, 0, 0.05);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--color-text);
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 48px 0;
}

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

.section-title {
  font-size: 1.75rem;
  margin: 0 0 8px;
}

.section-subtitle {
  color: var(--color-text-light);
  margin: 0 0 28px;
}

/* ---------- Skip link (accessibility) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand__name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand__tagline {
  font-size: 0.8rem;
  color: var(--color-text-light);
  font-style: italic;
  white-space: nowrap;
}

/* ---------- Navigation ---------- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--color-text);
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-toggle:hover {
  background: var(--color-bg-alt);
}

.nav-toggle__icon {
  display: inline-block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}

.site-nav a {
  display: block;
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  text-decoration: none;
}

.site-nav a.is-active {
  background: var(--color-primary);
  color: #fff;
}

/* Mobile nav panel */
@media (max-width: 720px) {
  .brand__tagline {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 12px 20px 20px;
  }

  .site-nav a {
    padding: 12px 14px;
  }
}

@media (min-width: 721px) {
  .nav-toggle {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(rgba(8, 47, 43, 0.62), rgba(8, 47, 43, 0.72)),
    url("../images/hero.jpg") center / cover no-repeat,
    var(--color-primary-dark);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}

.hero h1 {
  color: #fff;
  font-size: 2.4rem;
  margin: 0 0 12px;
}

.hero p {
  font-size: 1.15rem;
  margin: 0 auto;
  max-width: 640px;
  opacity: 0.95;
}

.hero .button {
  margin-top: 28px;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.button:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
}

.button--outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.button--outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- Notice banner ---------- */
.notice {
  background: #fef3c7;
  border-left: 4px solid var(--color-accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 32px 0;
  font-weight: 500;
}

/* ---------- Story cards (home) ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 28px;
}

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

.story-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.story-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.story-card__body {
  padding: 20px 22px 24px;
}

.story-card__title {
  font-size: 1.2rem;
  margin: 0 0 10px;
  color: var(--color-primary-dark);
}

.story-card__body p {
  margin: 0 0 10px;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

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

/* ---------- Drop cap (echoes original design) ---------- */
.dropcap::first-letter {
  font-family: var(--font-heading);
  font-size: 2.6em;
  line-height: 0.9;
  float: left;
  padding: 4px 10px 0 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* ---------- Cards grid (downloads / links) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

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

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card__title {
  font-size: 1.1rem;
  margin: 0;
}

.card__desc {
  color: var(--color-text-light);
  font-size: 0.92rem;
  margin: 0;
  flex-grow: 1;
}

.card__meta {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.card__actions {
  margin-top: 4px;
}

.card__actions a {
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Link list (links page) ---------- */
.link-category {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.link-category__title {
  font-size: 1.15rem;
  margin: 0 0 12px;
  color: var(--color-primary-dark);
}

.link-category ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-category li {
  padding: 8px 0;
  border-top: 1px solid var(--color-border);
}

.link-category li:first-child {
  border-top: none;
}

.link-category a {
  font-weight: 500;
}

.link-category .link-note {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-weight: 400;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 28px;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}

.contact-card h2 {
  margin-top: 0;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--color-border);
  align-items: flex-start;
}

.contact-list li:first-child {
  border-top: none;
}

.contact-list .label {
  font-weight: 700;
  min-width: 90px;
  color: var(--color-text);
}

.contact-photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

/* Hours table */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: 9px 4px;
  border-bottom: 1px solid var(--color-border);
}

.hours-table th {
  font-weight: 700;
  white-space: nowrap;
}

.hours-table td {
  color: var(--color-text-light);
}

.hours-table tr:last-child th,
.hours-table tr:last-child td {
  border-bottom: none;
}

.hours-note {
  color: var(--color-text-light);
  font-size: 0.88rem;
  margin: 10px 0 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #111827;
  color: #d1d5db;
  padding: 40px 0 28px;
  margin-top: 24px;
  font-size: 0.92rem;
}

.site-footer a {
  color: #99f6e4;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 720px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 10px;
}

.site-footer p {
  margin: 0 0 8px;
}

.site-footer__bottom {
  border-top: 1px solid #374151;
  margin-top: 28px;
  padding-top: 18px;
  text-align: center;
  color: #9ca3af;
  font-size: 0.85rem;
}

.site-footer__bottom p {
  margin: 0 0 4px;
}

.site-footer__bottom .credits {
  font-size: 0.78rem;
  color: #6b7280;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.lead { font-size: 1.1rem; color: var(--color-text-light); }
