/* ==========================================================================
   TwoHarborsForum.com — site.css
   Modern restyle of a community site originally built in 1999-2006.
   Heritage North-Shore palette: oxblood maroon + gold + deep lake navy.
   ========================================================================== */

:root {
  --maroon: #7a1e1e;
  --maroon-dark: #5d1616;
  --maroon-deep: #401010;
  --gold: #d0a524;
  --gold-soft: #e8c25a;
  --gold-pale: #f7edcf;
  --navy: #1f3a5f;
  --navy-dark: #142640;
  --paper: #faf7f0;
  --paper-dark: #f1ebdd;
  --card: #ffffff;
  --ink: #2b2521;
  --ink-soft: #5c534b;
  --line: #e3dac8;
  --link: #8c2f2f;
  --link-hover: #b03a3a;
  --shadow: 0 2px 10px rgba(64, 16, 16, 0.08);
  --shadow-lg: 0 8px 28px rgba(64, 16, 16, 0.14);
  --radius: 10px;
  --font-serif: Georgia, "Times New Roman", "Songti SC", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background:
    linear-gradient(rgba(250, 247, 240, 0.94), rgba(250, 247, 240, 0.94)),
    url("../images/lbg044.jpg") top center / cover no-repeat fixed;
}

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

a { color: var(--link); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--link-hover); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--maroon);
  line-height: 1.25;
  margin: 0 0 .6em;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--maroon); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Page shell (centered) ---------- */
.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(180deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  border-bottom: 4px solid var(--gold);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

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

.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand img { width: 54px; height: 36px; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: bold;
  letter-spacing: .02em;
  color: var(--gold-soft);
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}

/* ---------- Primary nav ---------- */
.main-nav {
  background: var(--maroon-deep);
  border-bottom: 1px solid rgba(216, 165, 36, .35);
}
.main-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.main-nav a {
  display: block;
  padding: 11px 18px;
  color: #f3e9d4;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  border-right: 1px solid rgba(255,255,255,.07);
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  background: var(--maroon);
  color: var(--gold-soft);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(180deg, rgba(20, 38, 64, .82), rgba(94, 22, 22, .82)),
    url("../images/thnewaerial.jpg") center 35% / cover no-repeat;
  color: #fff;
  padding: 52px 0 46px;
  border-bottom: 4px solid var(--gold);
}
.hero .page { text-align: center; }
.hero h1 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: .3em;
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
}
.hero .tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,.92);
  max-width: 640px;
  margin: 0 auto 1.6em;
}
.hero .hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .02em;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--maroon-deep); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-soft); color: var(--maroon-deep); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-maroon { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.btn-maroon:hover { background: var(--maroon-dark); color: #fff; }

/* ---------- Sections ---------- */
main .section { padding: 44px 0; }
main .section + .section { border-top: 1px solid var(--line); }
.section-alt { background: var(--paper-dark); }

.section-head {
  max-width: 720px;
  margin: 0 auto 30px;
  text-align: center;
}
.section-head h2 { position: relative; }
.section-head h2::after {
  content: "";
  display: block;
  width: 72px; height: 3px;
  margin: 12px auto 0;
  background: var(--gold);
  border-radius: 2px;
}
.section-head p { color: var(--ink-soft); }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .card-img { display: block; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: .35em; font-size: 1.12rem; }
.card-body p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.card .card-link {
  margin-top: 10px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--maroon);
}
.card .card-link::after { content: " →"; }

/* ---------- Two-column feature ---------- */
.feature-split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: center;
}
.feature-split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
}
.feature-split .eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: .5em;
}

/* ---------- Photo strip ---------- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.photo-strip a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
  position: relative;
}
.photo-strip img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .25s ease; }
.photo-strip a:hover img { transform: scale(1.05); }
.photo-strip .cap {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(20,38,64,.85));
  color: #fff;
  font-size: .78rem;
  padding: 18px 8px 6px;
}

/* ---------- Board / forum teasers ---------- */
.board-list { list-style: none; margin: 0; padding: 0; }
.board-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 6px;
  border-bottom: 1px solid var(--line);
}
.board-list li:last-child { border-bottom: 0; }
.board-list .board-name { font-weight: 700; font-size: 1.02rem; }
.board-list .board-desc { color: var(--ink-soft); font-size: .9rem; margin-top: 2px; }
.board-list .board-meta {
  color: var(--ink-soft);
  font-size: .85rem;
  white-space: nowrap;
}

/* ---------- Callout ---------- */
.callout {
  background: var(--gold-pale);
  border-left: 5px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 24px 0;
}
.callout.maroon {
  background: #f6e9e9;
  border-left-color: var(--maroon);
}
.callout h3 { margin-top: 0; }

/* ---------- Audio ---------- */
.audio-block {
  background: var(--navy-dark);
  border-radius: var(--radius);
  color: #fff;
  padding: 20px 24px;
}
.audio-block h3 { color: var(--gold-soft); }
.audio-block p { color: rgba(255,255,255,.85); font-size: .95rem; }
audio { width: 100%; margin-top: 8px; }

/* ---------- Key facts / stats ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  text-align: center;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 10px;
  box-shadow: var(--shadow);
}
.stat .num {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: bold;
  color: var(--maroon);
  display: block;
  line-height: 1.1;
}
.stat .lbl { font-size: .82rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Link columns ---------- */
.link-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px 28px;
}
.link-columns h3 {
  font-size: 1rem;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 6px;
  margin-bottom: 10px;
}
.link-columns ul { list-style: none; margin: 0 0 18px; padding: 0; }
.link-columns li { padding: 3px 0; font-size: .95rem; }
.link-columns a::before { content: "· "; color: var(--gold); font-weight: bold; }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.faq-item h3 {
  margin: 0;
  padding: 16px 20px;
  font-size: 1.05rem;
  cursor: pointer;
  background: none;
  width: 100%;
  text-align: left;
  border: 0;
  font-family: var(--font-serif);
  color: var(--maroon);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item h3::after { content: "+"; font-size: 1.4rem; color: var(--gold); flex: none; transition: transform .2s ease; }
.faq-item.open h3::after { transform: rotate(45deg); }
.faq-item .faq-a {
  display: none;
  padding: 0 20px 18px;
  color: var(--ink);
}
.faq-item.open .faq-a { display: block; }

/* ---------- Timeline (site history) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 3px;
  background: var(--gold);
  border-radius: 2px;
}
.timeline li {
  position: relative;
  padding: 0 0 22px 34px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 2px; top: 6px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--maroon);
  border: 3px solid var(--gold-soft);
}
.timeline .when {
  font-weight: 700;
  color: var(--maroon);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.timeline p { margin: 4px 0 0; color: var(--ink-soft); }

/* ---------- Prose (content pages) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { margin-bottom: 1.1em; }
.prose img.framed {
  display: block;
  margin: 24px auto;
  border: 6px solid #fff;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  max-width: 560px;
}

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  background:
    linear-gradient(180deg, rgba(94, 22, 22, .92), rgba(64, 16, 16, .94)),
    url("../images/lighthousebkgrd.gif") center / cover no-repeat;
  color: #fff;
  padding: 38px 0 32px;
  border-bottom: 4px solid var(--gold);
}
.page-banner h1 { color: #fff; font-size: 2.1rem; margin-bottom: .2em; }
.page-banner p { color: rgba(255,255,255,.85); max-width: 640px; margin: 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: .85rem;
  color: var(--ink-soft);
  padding: 12px 0 0;
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--link); }
.breadcrumb .sep { margin: 0 6px; color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.82);
  margin-top: 56px;
  border-top: 4px solid var(--gold);
}
.site-footer .page { padding-top: 36px; padding-bottom: 36px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}
.site-footer h3 {
  color: var(--gold-soft);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer a { color: rgba(255,255,255,.82); font-size: .95rem; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-note {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 18px;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  text-align: center;
}
.footer-note strong { color: rgba(255,255,255,.85); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 28px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.note-archive {
  display: inline-block;
  background: var(--paper-dark);
  border: 1px dashed var(--gold);
  color: var(--ink-soft);
  border-radius: 999px;
  font-size: .8rem;
  padding: 3px 12px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .feature-split { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .main-nav a { padding: 10px 13px; font-size: .9rem; }
  .board-list li { flex-direction: column; gap: 4px; }
}
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  h1 { font-size: 1.65rem; }
  .hero { padding: 36px 0 32px; }
  .brand-name { font-size: 1.25rem; }
}
