/* Southport Historical Society — static rebuild
   Design tokens sampled from the live Avada site (Oct 2026):
   body "Open Sans", headings "Roboto Condensed",
   navy #000066, gold #d4a34f, ink #141617. */

:root {
  --navy: #000066;
  --gold: #d4a34f;
  --gold-dark: #b8893a;
  --ink: #141617;
  --gray: #434549;
  --light: #f9f9fb;
  --white: #ffffff;
  --max-width: 1200px;
  --font-body: "Open Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  --font-head: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

a { color: var(--navy); }
a:hover { color: var(--gold-dark); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar .social a { margin-left: 14px; }

/* ---------- Header / nav ---------- */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand img { height: 86px; width: auto; display: block; }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
.main-nav > ul > li { position: relative; }
.main-nav a {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 17px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li:focus-within > a { color: var(--gold-dark); }

/* dropdowns */
.main-nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-top: 3px solid var(--gold);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  flex-direction: column;
  z-index: 200;
}
.main-nav li:hover > ul,
.main-nav li:focus-within > ul { display: flex; }
.main-nav ul ul a {
  font-size: 15px;
  padding: 9px 16px;
  white-space: normal;
}
.main-nav ul ul a:hover { background: var(--light); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: 6px;
  color: var(--navy);
  font-size: 22px;
  padding: 4px 12px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.45));
}
.hero .container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 48px;
  padding-top: 60px;
  padding-bottom: 60px;
}
.hero-copy { flex: 1 1 55%; }
.hero-copy h1 {
  color: #fff;
  font-size: 56px;
  margin: 0 0 24px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.hero-logo-card {
  flex: 0 0 320px;
  margin-top: 80px; /* matches live hero spacing */
}
.hero-logo-card img {
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  display: block;
}
.btn-row { display: flex; gap: 20px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  background: var(--gold);
  color: #fff !important;
  font-family: var(--font-head);
  font-size: 18px;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--gold-dark); color: #fff !important; }

/* ---------- Announcements ---------- */
.announcements { padding: 56px 0; }
.announcements > .container > h1 {
  text-align: center;
  font-size: 40px;
  margin-bottom: 40px;
}
.announcement {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 48px;
}
.announcement:last-child { margin-bottom: 0; }
.announcement-media { flex: 0 0 46%; }
.announcement-media img {
  border: 5px solid var(--gold);
  border-radius: 8px;
  display: block;
  width: 100%;
}
.announcement-body { flex: 1 1 54%; }
.announcement-body h2 {
  text-align: center;
  font-size: 30px;
  margin-bottom: 16px;
}
.announcement-body p { margin: 0 0 1em; }
.announcement--no-media .announcement-body { flex-basis: 100%; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #cfcfcf;
  padding: 48px 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 32px;
}
.site-footer h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cfcfcf; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.25);
  padding: 16px 0;
  text-align: center;
  font-size: 13px;
  color: #9a9a9a;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { min-height: 480px; }
  .hero .container { flex-direction: column; text-align: center; }
  .hero-copy h1 { font-size: 40px; }
  .hero-logo-card { margin-top: 0; flex-basis: auto; max-width: 280px; }
  .btn-row { justify-content: center; }
  .announcement { flex-direction: column; }
  .announcement-media { flex-basis: auto; width: 100%; max-width: 560px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  }
  .site-header { position: relative; }
  .site-header.nav-open .main-nav { display: block; }
  .main-nav ul ul {
    position: static;
    box-shadow: none;
    border: none;
    border-top: 1px solid #e3e3e3;
  }
  .main-nav li.submenu-open > ul { display: flex; }
  .main-nav li.has-sub > a::after { content: " ▾"; }
  .main-nav > ul { flex-direction: column; }
  .main-nav ul ul {
    display: block;
    position: static;
    border: none;
    box-shadow: none;
    padding-left: 16px;
  }
  .brand img { height: 64px; }
  .footer-grid { grid-template-columns: 1fr; }
  .announcements > .container > h1 { font-size: 30px; }
  .announcement-body h2 { font-size: 24px; }
}

/* ---------- Content pages (Phase 2) ---------- */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 44px 0;
  border-bottom: 4px solid var(--gold);
}
.page-hero h1 {
  color: #fff;
  margin: 0;
  font-size: 38px;
}
.page-content { padding: 44px 0 64px; }
.page-content .container { max-width: 900px; }
.page-content h2 {
  color: var(--navy);
  font-size: 30px;
  margin-top: 1.6em;
}
.page-content h2:first-child { margin-top: 0; }
.page-content h3 { color: var(--navy); font-size: 24px; }
.page-content h4 { font-size: 19px; }
.page-content p, .page-content li { color: var(--ink); }
.page-content img {
  border: 1px solid #e3e3e3;
  border-radius: 4px;
}
.page-content figure { margin: 28px 0; }
.page-content figcaption {
  font-size: 14px;
  color: var(--gray);
  margin-top: 8px;
}
.page-content figure.photo-right { float: right; max-width: 320px; margin: 4px 0 20px 28px; }
.page-content blockquote {
  border-left: 4px solid var(--gold);
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  font-style: italic;
  color: var(--gray);
}
.page-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 24px 0;
}
.page-content th, .page-content td {
  border: 1px solid #ddd;
  padding: 10px 12px;
  text-align: left;
}
.page-content th { background: var(--light); }
/* responsive embeds (Google Maps, YouTube) */
.embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 28px 0;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
}
.embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
/* contact form */
.contact-form { max-width: 640px; margin-top: 8px; }
.contact-form .form-row { margin: 0 0 18px; }
.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  border: 1px solid #c9c9c9;
  border-radius: 4px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}
@media (max-width: 760px) {
  .page-hero h1 { font-size: 30px; }
  .page-content h2 { font-size: 25px; }
}

/* board of directors photo grid */
.board-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin: 28px 0;
}
.board-member img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.board-member h4 {
  margin: 10px 0 0;
  font-size: 1rem;
  text-align: center;
}
@media (max-width: 900px) {
  .board-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .board-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .board-member h4 { font-size: 0.85rem; }
}

/* photo gallery grid (e.g. Garrison House) */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
@media (max-width: 700px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- reusable multi-column grid system (matches Avada column splits) ---- */
.grid {
  display: grid;
  gap: 28px;
  margin: 24px 0;
  align-items: start;
}
.grid > * { min-width: 0; }
.grid.middle { align-items: center; }
.grid.tight { gap: 16px; }
/* equal columns */
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
/* unequal splits (Avada 2_3/1_3, 3_4/1_4, 5_6/1_6 equivalents) */
.cols-2-1 { grid-template-columns: 2fr 1fr; }
.cols-1-2 { grid-template-columns: 1fr 2fr; }
.cols-3-1 { grid-template-columns: 3fr 1fr; }
.cols-1-3 { grid-template-columns: 1fr 3fr; }
.cols-3-2 { grid-template-columns: 3fr 2fr; }
.cols-2-3 { grid-template-columns: 2fr 3fr; }
.cols-5-1 { grid-template-columns: 5fr 1fr; }
.cols-1-5 { grid-template-columns: 1fr 5fr; }
/* tidy images inside grids */
.grid.tidy img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.grid.tidy-square img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.grid img { max-width: 100%; height: auto; }
/* simple bordered comparison table */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.info-table th, .info-table td {
  border: 1px solid #c9c9c9;
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}
.info-table thead th {
  background: #000066;
  color: #fff;
}
/* navy call-to-action button */
.btn-navy {
  display: inline-block;
  background: #000066;
  color: #fff !important;
  padding: 14px 34px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  margin: 12px 0;
}
.btn-navy:hover { background: #1a1a8c; color: #fff !important; }
.text-center { text-align: center; }
/* responsive video embed */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
@media (max-width: 700px) {
  .grid { grid-template-columns: 1fr !important; }
}

/* ---- carousel: one large photo at a time (arrows, dots, swipe, counter) ---- */
.carousel { position: relative; margin: 24px auto; max-width: 720px; }
.carousel-viewport { overflow: hidden; border-radius: 6px; background: #eee; }
.carousel-track { display: flex; transition: transform 0.4s ease; }
.carousel-slide { flex: 0 0 100%; box-sizing: border-box; }
.carousel-slide img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  background: #eee;
  display: block;
}
.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 102, 0.82);
  color: #fff;
  border: 2px solid #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-prev:hover, .carousel-next:hover { background: rgba(0, 0, 102, 1); }
.carousel-prev:disabled, .carousel-next:disabled { opacity: 0.3; cursor: default; }
.carousel-dots { text-align: center; margin-top: 10px; }
.carousel-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: #bbb;
  margin: 0 4px;
  padding: 0;
  cursor: pointer;
}
.carousel-dot.active { background: #000066; }
.carousel-count { text-align: center; color: #666; font-size: 14px; margin-top: 6px; }
.page-content p.brick-cta { color: var(--navy); font-size: 20px; font-weight: 600; }
/* photo-only grids: stay 2-across on phones, never a deep single stack */
@media (max-width: 700px) {
  .grid.keep-2 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 700px) {
  .page-content figure.photo-right { float: none; max-width: 100%; margin: 20px 0; }
}
