/*
 Theme Name:   SS Jeremiah O'Brien
 Theme URI:    https://ssjeremiahobrien.org
 Description:  GeneratePress child theme for the SS Jeremiah O'Brien website.
 Author:       NLSM
 Template:     generatepress
 Version:      1.0.0
 Text Domain:  job-theme
*/

/* ============================================================
   SS Jeremiah O'Brien — Homepage Redesign
   GeneratePress Child Theme
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy-dark:    #091422;
  --navy:         #0d1b2a;
  --navy-mid:     #152640;
  --navy-light:   #1e3a5f;
  --gold:         #c9a84c;
  --gold-light:   #e8c97a;
  --gold-pale:    #f5edcf;
  --cream:        #f5f0e8;
  --cream-dark:   #ede6d6;
  --text-dark:    #1a1a2e;
  --text-body:    #374151;
  --text-muted:   #6b7280;
  --text-light:   #e8dfc9;
  --text-lighter: #a0aec0;
  --white:        #ffffff;
  --radius:       6px;
  --radius-lg:    12px;
  --shadow:       0 4px 24px rgba(0,0,0,.10);
  --shadow-lg:    0 12px 48px rgba(0,0,0,.18);
  --transition:   0.25s ease;
  --max-width:    1200px;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--text-dark);
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
ul { list-style: none; }

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

.section       { padding: 96px 0; }
.section-alt   { background: var(--cream); }
.section-dark  { background: var(--navy-dark); }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-light);
  margin-bottom: 14px;
}
.eyebrow-gold { color: var(--gold); }

h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 20px;
}

.lead {
  font-size: 1.12rem;
  color: var(--text-body);
  margin-bottom: 20px;
  line-height: 1.8;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 48px;
}

.text-light        { color: var(--text-light); }
.text-light-muted  { color: var(--text-lighter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-mid); border-color: var(--navy-mid); }

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-sm { padding: 10px 20px; font-size: 0.82rem; }

.link-arrow {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  transition: color var(--transition);
}
.link-arrow:hover { color: var(--gold-light); }

/* ============================================================
   NAV
   ============================================================ */
/* Default: always dark navy */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  background: #091422;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

/* Homepage only: start transparent */
.home .site-nav {
  background: transparent;
}

/* Once scrolled (JS adds .scrolled) */
.site-nav.scrolled {
  background: #091422;
  box-shadow: 0 2px 20px rgba(0,0,0,.35);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-nav.scrolled .nav-inner { padding-top: 14px; padding-bottom: 14px; }

.nav-logo {
  display: flex;
  flex-direction: column;
}
.nav-logo-ship {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.nav-logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
}

/* WP custom logo */
.nav-logo .custom-logo-link img,
.nav-logo-img {
  height: 52px;
  width: auto;
  display: block;
  transition: opacity 0.2s ease;
}
.nav-logo .custom-logo-link img:hover,
.nav-logo-img:hover { opacity: 0.85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a,
.nav-links ul li a {
  font-size: 0.83rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.03em;
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links ul li a:hover { color: var(--gold-light); }
.nav-links .nav-cta > a,
.nav-links a.nav-cta {
  background: #c0392b !important;
  border-color: #c0392b !important;
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-links .nav-cta > a:hover,
.nav-links a.nav-cta:hover { background: #e74c3c !important; border-color: #e74c3c !important; color: #ffffff !important; }

/* Hide GP's default header */
.site-header { display: none !important; }
/* Override GP body padding for fixed nav */
body { padding-top: 0 !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(9,20,34,0.72) 0%,
    rgba(9,20,34,0.42) 50%,
    rgba(9,20,34,0.58) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 860px;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 24px;
  text-shadow: 0 2px 24px rgba(0,0,0,.4);
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-br { display: block; }

.hero-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.55);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Hero video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

/* ============================================================
   INFO BAR
   ============================================================ */
.info-bar {
  background: var(--navy);
  border-bottom: 1px solid var(--navy-mid);
}

.info-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 0;
  flex: 1;
  min-width: 180px;
}
.info-item-cta { flex: 0; }

.info-icon {
  width: 22px;
  height: 22px;
  color: var(--gold);
  flex-shrink: 0;
}

.info-item > div {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-lighter);
  font-weight: 500;
}
.info-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  margin-top: 2px;
}

.info-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.12);
  margin: 0 24px;
  flex-shrink: 0;
}

/* ============================================================
   ABOUT
   ============================================================ */
.two-col-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--text-body);
}

.about-text .btn { margin-top: 12px; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-card-wide { grid-column: 1 / -1; }

.stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

/* ============================================================
   VISIT
   ============================================================ */
.section-alt h2 { margin-bottom: 40px; }

.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.visit-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.06);
}

.visit-card-featured {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy-mid);
}

.visit-card h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: inherit;
}
.visit-card-featured h3 { color: var(--gold-light); }

.visit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.visit-list li {
  font-size: 0.9rem;
  color: var(--text-body);
  padding-left: 16px;
  position: relative;
}
.visit-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.visit-card-featured .visit-list li { color: rgba(255,255,255,0.8); }

.visit-address {
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.visit-address p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
}

.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
}
.ticket-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
}
.ticket-list li:last-child { border-bottom: none; }
.ticket-list li strong { color: var(--gold-light); font-weight: 600; }
.ticket-free span { color: rgba(255,255,255,0.6); }
.ticket-free strong { color: #7dd87a; }

.ticket-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0;
  font-style: italic;
}

/* ============================================================
   GALLERY
   ============================================================ */
.section-dark .container { margin-bottom: 48px; }
.section-dark h2 { margin-bottom: 12px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 4px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--navy-mid);
}
.gallery-item-wide {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(to top, rgba(9,20,34,.8) 0%, transparent 100%);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.05em;
  font-weight: 500;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--transition), transform var(--transition);
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

/* ============================================================
   EVENTS
   ============================================================ */
.events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.event-card-featured {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,.06);
}

.event-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.event-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.event-card-featured:hover .event-img-wrap img { transform: scale(1.04); }

.event-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}

.event-body { padding: 32px; }
.event-type {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.event-body h3 {
  font-size: 1.6rem;
  margin-bottom: 14px;
}
.event-body p { font-size: 0.92rem; color: var(--text-body); margin-bottom: 12px; }
.event-price {
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem !important;
  margin-bottom: 20px !important;
}

.events-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-card-small {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.06);
  transition: box-shadow var(--transition), transform var(--transition);
}
.event-card-small:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.event-card-small .event-type { margin-bottom: 8px; }
.event-card-small h3 { font-size: 1.1rem; margin-bottom: 10px; }
.event-card-small p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 14px; }

/* ============================================================
   GET INVOLVED
   ============================================================ */
.involved-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.involved-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.06);
}

.involved-card-donate {
  background: var(--navy);
  color: var(--white);
}

.involved-card h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: inherit;
}
.involved-card-donate h3 { color: var(--gold-light); }

.involved-card p {
  font-size: 0.9rem;
  color: var(--text-body);
  margin-bottom: 14px;
}
.involved-card-donate p { color: rgba(255,255,255,0.8); }

.donate-quote {
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  margin: 20px 0 28px;
  background: rgba(255,255,255,0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.donate-quote p,
.donate-quote { font-size: 0.92rem; font-style: italic; color: rgba(255,255,255,0.85); line-height: 1.6; }
.donate-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--gold);
  margin-top: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.membership-tiers {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
}
.membership-tiers li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,.07);
  font-size: 0.84rem;
}
.membership-tiers li:last-child { border-bottom: none; }
.tier-name { font-weight: 700; color: var(--navy); font-size: 0.84rem; min-width: 80px; }
.tier-desc { color: var(--text-muted); font-size: 0.8rem; }
.tier-price { font-weight: 700; color: var(--gold); white-space: nowrap; }
.tier-highlight { background: var(--gold-pale); margin: 0 -8px; padding: 10px 8px; border-radius: var(--radius); }
.tier-highlight .tier-name { color: var(--navy-dark); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  padding-top: 72px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .custom-logo-link img,
.footer-logo-img {
  height: 64px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}

.footer-brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col ul li,
.footer-col ul a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--gold-light); }

/* WP nav menu in footer */
.footer-col .menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col .menu li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-col .menu li a:hover { color: var(--gold-light); }

.footer-bottom {
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom small {
  color: rgba(255,255,255,0.3);
  font-size: 0.78rem;
}
.footer-privacy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  transition: color var(--transition);
}
.footer-privacy:hover { color: rgba(255,255,255,0.6); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox-inner {
  position: relative;
  max-width: 1100px;
  width: 100%;
}
.lightbox-inner img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}
.lightbox-close {
  position: absolute;
  top: -40px; right: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color var(--transition);
  line-height: 1;
  padding: 4px;
}
.lightbox-close:hover { color: var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .two-col-about { grid-template-columns: 1fr; gap: 56px; }
  .about-stats { grid-template-columns: repeat(4, 1fr); }
  .stat-card-wide { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .visit-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
  .events-grid { grid-template-columns: 1fr; }
  .involved-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item-wide { grid-column: span 2; }
  .info-bar-inner { flex-wrap: wrap; }
  .info-divider { display: none; }
  .info-item { min-width: 45%; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 99;
  }
  .nav-links ul {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }
  .nav-links a,
  .nav-links ul li a { font-size: 1.2rem; }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; z-index: 100; }

  .hero-title { font-size: clamp(2.2rem, 8vw, 3.4rem); }
  .hero-sub .hero-br { display: none; }

  .about-stats { grid-template-columns: 1fr 1fr; }
  .stat-card-wide { grid-column: 1 / -1; }

  .gallery-grid { grid-template-columns: 1fr; gap: 2px; }
  .gallery-item, .gallery-item-wide { grid-column: span 1; aspect-ratio: 16/9; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom .container { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-cta-row { flex-direction: column; align-items: center; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   GENERATEPRESS OVERRIDES
   ============================================================ */
/* Remove GP's default nav/header area */
.main-navigation,
#site-navigation,
.inside-header { display: none !important; }

/* Remove GP content padding on front page */
body.home .content-area,
body.front-page .content-area { padding: 0; }

/* Full-width front page */
body.home .site-main,
body.front-page .site-main { max-width: 100%; padding: 0; }

/* Hide breadcrumbs on front page */
body.home .breadcrumbs { display: none; }

/* GP grid layout override for full-width */
body.home .site-content,
body.front-page .site-content {
  display: block;
  padding: 0;
}

/* ============================================================
   NAV DROPDOWN + SUBPAGE FIX
   ============================================================ */

/* nav is dark by default; .home .site-nav overrides to transparent */

/* Nav menu reset — WP outputs a <nav> not a div */
.nav-links {
  display: flex;
  align-items: center;
}

.nav-links .nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links .nav-item {
  position: relative;
  list-style: none;
}

.nav-links .nav-item > a {
  font-size: 0.83rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.03em;
  transition: color var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
}
.nav-links .nav-item > a:hover { color: var(--gold-light); }

.nav-arrow {
  font-size: 0.65rem;
  opacity: 0.7;
  transition: transform var(--transition);
}
.nav-item:hover .nav-arrow { transform: rotate(180deg); }

/* CTA Donate button */
.nav-links .nav-item > a.nav-cta,
.nav-links .menu-item > a.nav-cta {
  background: #c0392b !important;
  border-color: #c0392b !important;
  color: #ffffff !important;
  padding: 8px 18px !important;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-links .nav-item > a.nav-cta:hover { background: #e74c3c !important; border-color: #e74c3c !important; }

/* WordPress adds nav-cta class to the li, need to target the a inside */
.nav-links .nav-cta > a {
  background: #c0392b !important;
  border-color: #c0392b !important;
  color: #ffffff !important;
  padding: 8px 18px !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
}
.nav-links .nav-cta > a:hover { background: #e74c3c !important; border-color: #e74c3c !important; color: #ffffff !important; }

/* Dropdown: hidden by default, shown on hover */
/* Walker uses .nav-dropdown; WP default uses .sub-menu — cover both */
.nav-links ul.nav-dropdown,
.nav-links ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #091422;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  box-shadow: 0 12px 48px rgba(0,0,0,.18);
  padding: 8px 0;
  list-style: none;
  z-index: 200;
}

.nav-links li:hover > ul.nav-dropdown,
.nav-links li:focus-within > ul.nav-dropdown,
.nav-links li:hover > ul.sub-menu,
.nav-links li:focus-within > ul.sub-menu {
  display: block;
}

.nav-links ul.nav-dropdown li a,
.nav-links ul.sub-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}
.nav-links ul.nav-dropdown li a:hover,
.nav-links ul.sub-menu li a:hover {
  background: #1e3a5f;
  color: #e8c97a;
}

/* Gold accent line on active/current item */
.nav-item.current-menu-item > a,
.nav-item.current-page-ancestor > a {
  color: var(--gold-light) !important;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-menu {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }
  .nav-links .nav-item > a { font-size: 1.2rem; }
  .nav-links ul.nav-dropdown,
  .nav-links ul.sub-menu {
    position: static;
    display: block;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 8px 0 0;
    text-align: center;
  }
  .nav-hamburger { display: flex; z-index: 100; }
}

/* ============================================================
   DONATE BUTTONS — always red
   ============================================================ */
a[href*="/donate"],
a[href*="/donate/"],
.nav-cta > a,
.nav-links .nav-cta > a,
.btn-donate,
.involved-card-donate .btn,
.hero-cta-row a[href*="donate"],
.info-item-cta .btn {
  background: #c0392b !important;
  border-color: #c0392b !important;
  color: #ffffff !important;
}
a[href*="/donate"]:hover,
a[href*="/donate/"]:hover,
.nav-cta > a:hover,
.nav-links .nav-cta > a:hover,
.btn-donate:hover,
.involved-card-donate .btn:hover {
  background: #e74c3c !important;
  border-color: #e74c3c !important;
  color: #ffffff !important;
}

/* ============================================================
   INNER PAGE TEMPLATE
   ============================================================ */
.inner-page-wrap { padding-top: 80px; }

.inner-page-hero {
  background: var(--navy-dark);
  padding: 48px 0 40px;
}

.breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--gold);
}

.inner-page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin: 0;
  line-height: 1.2;
}

.inner-page-content {
  padding: 56px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Inner page typography */
.inner-page-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy-dark);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 0 0 16px;
}

.inner-page-content h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy-dark);
  font-size: 1.2rem;
  margin: 0 0 10px;
}

.inner-page-content p {
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 16px;
}

.inner-page-content .lead {
  font-size: 1.1rem;
  color: var(--text-dark);
  max-width: 720px;
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.eyebrow-gold { color: var(--gold) !important; }

/* Stat bar */
.stat-bar {
  display: flex;
  gap: 0;
  background: var(--navy-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
}

.stat-bar-item {
  flex: 1;
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-bar-item:last-child { border-right: none; }

.stat-bar-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
  display: block;
}

.stat-bar-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* History two-column */
.history-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.history-sidebar {
  position: sticky;
  top: 100px;
}

.pull-quote {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 24px 28px;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin-bottom: 24px;
}

.pull-quote p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: var(--navy-dark);
  font-style: italic;
  margin: 0;
  line-height: 1.5;
}

/* Info cards for visit/overnight */
.info-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.info-card {
  background: white;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.info-card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.info-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy-dark);
  margin-bottom: 12px;
}

/* Volunteer role cards */
.role-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.role-card {
  background: var(--navy-dark);
  color: white;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.role-card h3 {
  color: var(--gold);
  font-family: 'Playfair Display', Georgia, serif;
  margin-bottom: 12px;
}

.role-card p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

/* CTA box */
.cta-box {
  background: var(--navy-dark);
  color: white;
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  margin: 48px 0;
}

.cta-box h2 {
  color: white !important;
  margin-bottom: 16px;
}

.cta-box p {
  color: rgba(255,255,255,0.8) !important;
  max-width: 560px;
  margin: 0 auto 28px;
}

@media (max-width: 768px) {
  .history-layout { grid-template-columns: 1fr; }
  .history-sidebar { position: static; }
  .stat-bar { flex-wrap: wrap; }
  .stat-bar-item { flex: 1 1 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .inner-page-content { padding: 32px 16px 60px; }
  .cta-box { padding: 32px 20px; }
}

/* ============================================================
   MOBILE FIXES
   ============================================================ */

/* ── Mobile nav: scrollable, full viewport, correct z-index ── */
@media (max-width: 768px) {

  /* Nav hamburger always visible */
  .nav-hamburger {
    display: flex !important;
    z-index: 1001;
    position: relative;
  }

  /* Mobile nav overlay: scrollable */
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 80px 24px 40px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1000;
  }
  .nav-links.open { display: flex !important; }

  .nav-links .nav-menu {
    flex-direction: column;
    gap: 0;
    align-items: center;
    width: 100%;
  }

  .nav-links .nav-menu > .nav-item {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links .nav-menu > .nav-item > a {
    display: block;
    padding: 16px 0;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
  }

  /* Mobile dropdowns: show inline below parent */
  .nav-links ul.sub-menu {
    display: block !important;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 8px;
  }

  .nav-links ul.sub-menu .nav-item {
    border-bottom: none;
  }

  .nav-links ul.sub-menu .nav-item a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    padding: 8px 0;
  }

  /* Close button in mobile nav */
  .nav-hamburger span {
    transition: all 0.25s ease;
  }

  /* ── Inner page hero mobile ── */
  .inner-page-wrap { padding-top: 70px; }
  .inner-page-hero { padding: 40px 0 28px; }
  .inner-page-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .inner-page-content { padding: 32px 16px 56px; }

  /* ── All multi-column grids → single column ── */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns:repeat(auto-fit"] {
    grid-template-columns: 1fr !important;
  }

  /* Price card grids */
  [style*="grid-template-columns:repeat(auto-fit,minmax(180px"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* ── Ticket/event detail 2-col → stack ── */
  .two-col-about,
  .visit-grid,
  .events-grid,
  .involved-grid {
    grid-template-columns: 1fr !important;
  }

  /* ── Table overflow ── */
  .inner-page-content table {
    font-size: 0.82rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .inner-page-content table th,
  .inner-page-content table td {
    padding: 10px 12px !important;
    min-width: 80px;
  }

  /* ── CiviCRM form mobile ── */
  #crm-container {
    overflow-x: hidden;
    font-size: 0.9rem;
  }

  .crm-container .crm-form-block,
  .crm-container table.form-layout,
  .crm-container table.form-layout-compressed {
    width: 100% !important;
    display: block;
    overflow-x: hidden;
  }

  .crm-container input[type="text"],
  .crm-container input[type="email"],
  .crm-container select,
  .crm-container textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* ── Info bar: 2-col grid ── */
  .info-bar-inner {
    flex-wrap: wrap;
    gap: 0;
  }
  .info-item {
    flex: 1 1 45%;
    padding: 16px 12px;
    min-width: auto;
  }
  .info-divider { display: none; }
  .info-item-cta { flex: 1 1 100%; padding: 12px; text-align: center; }

  /* ── Hero CTA buttons ── */
  .hero-cta-row {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }

  /* ── Footer grid → 2-col ── */
  .footer-inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 28px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom .container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* ── Donate/membership page navy intro box ── */
  .donate-intro,
  [style*="padding:48px;border-radius:12px"] {
    padding: 24px 20px !important;
  }

  /* ── Board of Directors grid ── */
  .board-grid,
  .job-board-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* ── Memorial cruise price cards ── */
  .cruise-price-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* ── Stat cards ── */
  .about-stats {
    grid-template-columns: 1fr 1fr !important;
  }
  .stat-card-wide { grid-column: 1 / -1; }

  /* ── Role cards ── */
  .role-card-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── 480px and below ── */
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr !important; }
  .board-grid, .job-board-grid { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:repeat(auto-fit,minmax(180px"] {
    grid-template-columns: 1fr !important;
  }
  .info-item { flex: 1 1 100%; }
}

/* ============================================================
   CIVICRM FORM MOBILE POLISH
   ============================================================ */

/* ── Reset CiviCRM table layout to block on mobile ── */
.crm-container .crm-section,
.crm-container .crm-form-block {
  width: 100% !important;
  max-width: 100% !important;
}

/* Price radio buttons: large touch targets, card style */
.crm-container .price-set-row,
.crm-container .price_set-row {
  margin-bottom: 0;
}

.crm-container span.price-set-option-content {
  display: block;
  margin-bottom: 8px;
}

.crm-container .crm-option-label-pair {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cream);
  border: 2px solid var(--cream-dark);
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.crm-container .crm-option-label-pair:hover {
  border-color: var(--gold);
  background: var(--gold-pale);
}

.crm-container input[type="radio"].crm-form-radio {
  width: 20px;
  height: 20px;
  min-width: 20px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}

/* Amount label styling - hide the redundant "- $XX.XX" part */
.crm-container .crm-price-amount-label-separator,
.crm-container .crm-price-amount-amount {
  display: none;
}

.crm-container .crm-price-amount-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-dark);
}

/* ── Form input fields ── */
.crm-container input[type="text"],
.crm-container input[type="email"],
.crm-container input[type="tel"],
.crm-container select,
.crm-container textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 12px 14px !important;
  border: 1.5px solid #d1d5db !important;
  border-radius: 6px !important;
  font-size: 1rem !important;
  font-family: Inter, sans-serif !important;
  color: var(--text-dark) !important;
  background: white !important;
  margin-top: 4px !important;
  transition: border-color 0.2s !important;
  -webkit-appearance: none !important;
}

.crm-container input[type="text"]:focus,
.crm-container input[type="email"]:focus,
.crm-container input[type="tel"]:focus,
.crm-container select:focus {
  border-color: var(--gold) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15) !important;
}

/* ── Labels ── */
.crm-container label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

/* ── Section headers ── */
.crm-container .crm-section > div.label,
.crm-container .crm-form-block .label {
  font-weight: 600;
  color: var(--navy-dark);
  padding-top: 8px;
}

/* ── Review/Submit button ── */
.crm-container input[type="submit"],
.crm-container .crm-submit-buttons input,
.crm-container button[type="submit"] {
  background: var(--navy) !important;
  color: white !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 14px 28px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  font-family: Inter, sans-serif !important;
  cursor: pointer !important;
  width: 100% !important;
  margin-top: 16px !important;
  transition: background 0.2s !important;
}

.crm-container input[type="submit"]:hover,
.crm-container .crm-submit-buttons input:hover {
  background: var(--navy-mid) !important;
}

/* ── Error messages ── */
.crm-container .crm-error,
.crm-container .error {
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 4px;
  font-weight: 500;
}

/* ── Mobile: fix table-based layout ── */
@media (max-width: 768px) {
  /* CiviCRM uses tables — force them to stack */
  .crm-container table.form-layout,
  .crm-container table.form-layout-compressed {
    width: 100% !important;
    display: block !important;
  }

  .crm-container table.form-layout tr,
  .crm-container table.form-layout-compressed tr {
    display: block !important;
    margin-bottom: 16px !important;
  }

  .crm-container table.form-layout td,
  .crm-container table.form-layout-compressed td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
  }

  .crm-container table.form-layout td.label,
  .crm-container table.form-layout-compressed td.label {
    padding-bottom: 4px !important;
  }

  /* Stack billing address fields */
  .crm-container #billing_name-5-section,
  .crm-container #billing_street_address-5-section,
  .crm-container #billing_city-5-section,
  .crm-container #billing_state_province-5-section,
  .crm-container #billing_postal_code-5-section,
  .crm-container #billing_country-5-section {
    margin-bottom: 12px !important;
  }

  /* Fix two-column billing layout on mobile */
  .crm-container .billing_name-5-section .content,
  .crm-container .billing_city_state_postal-5-section .content {
    display: block !important;
  }

  /* Square card form */
  .crm-container #sq-card,
  .crm-container .sq-input,
  #card-container,
  #payment-form {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Heading spacing */
  .crm-container .crm-group h3.crm-group_title {
    font-size: 1.1rem;
    padding: 12px 0 8px;
    border-bottom: 2px solid var(--cream-dark);
    margin-bottom: 16px;
    color: var(--navy-dark);
    font-family: "Playfair Display", serif;
  }
}
