/* ==========================================================================
   Hamburg Rod & Gun Club
   Palette carried over from the original site, refreshed layout.
   ========================================================================== */

:root {
  --ink: #1b1b1b;
  --text: #4f4f4f;
  --muted: #6b6b6b;
  --bg: #ffffff;
  --alt: #f6f4f3;
  --line: #e6e0de;
  --accent: #4c3b37;
  --accent-dark: #3f302d;
  --taupe: #8f7b77;
  --taupe-text: #76625e; /* darker taupe for small text: 4.5:1 on white and --alt */
  --blush: #e3d8d6;
  --charcoal: #161616;
  --charcoal-2: #222020;
  --on-dark: #f7f7f7;
  --on-dark-muted: #b9b2b0;

  --font-head: "Archivo Black", "Arial Black", Impact, sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 6px;
  --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px rgb(0 0 0 / .08);
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-pad: clamp(48px, 8vw, 96px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: .01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

address { font-style: normal; margin-bottom: 1em; }

:focus-visible { outline: 3px solid var(--taupe); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.muted { color: var(--muted); }
.center { text-align: center; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 8px; top: -60px;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius);
}
.skip-link:focus { top: 8px; color: #fff; }

.eyebrow {
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--blush);
  margin-bottom: .75em;
}

.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 60ch; }

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .9em 1.6em;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  transition: background .2s, border-color .2s, color .2s;
}
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.button-ghost { background: transparent; border-color: rgb(255 255 255 / .7); }
.button-ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }

.button-outline { background: transparent; color: var(--accent); }
.button-outline:hover { background: var(--accent); color: #fff; }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }

.text-link { font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--charcoal);
  border-bottom: 3px solid var(--accent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 1.05rem;
  line-height: 1.1;
  text-transform: uppercase;
}
.brand:hover { color: #fff; }
.brand img { width: 48px; height: auto; }
.brand em { display: block; font-style: normal; font-family: var(--font-body); font-weight: 600; font-size: .7rem; letter-spacing: .16em; color: var(--on-dark-muted); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  position: relative;
  transition: transform .2s, background .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.site-nav a {
  display: block;
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: var(--radius);
}
.site-nav a:hover { background: rgb(255 255 255 / .08); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--accent); color: #fff; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--charcoal);
    border-bottom: 3px solid var(--accent);
    padding: 8px var(--gutter) 16px;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 12px 10px; font-size: .9rem; }
}

/* ---------- Heroes ---------- */

.home-hero {
  position: relative;
  color: var(--on-dark);
  background:
    linear-gradient(100deg, rgb(22 22 22 / .92) 0%, rgb(22 22 22 / .7) 50%, rgb(76 59 55 / .45) 100%),
    url("/assets/img/hero-trap-field.jpg") center 40% / cover no-repeat;
  padding-block: clamp(72px, 14vw, 160px);
}
.home-hero h1 { color: #fff; text-transform: uppercase; }
.home-hero-inner { display: flex; align-items: center; gap: clamp(24px, 5vw, 56px); }
.home-hero-logo {
  width: clamp(110px, 18vw, 190px);
  flex-shrink: 0;
  filter: drop-shadow(0 8px 20px rgb(0 0 0 / .5));
}

.page-hero {
  color: var(--on-dark);
  background:
    linear-gradient(rgb(22 22 22 / .82), rgb(22 22 22 / .88)),
    var(--hero-img, none) center / cover no-repeat,
    var(--charcoal);
  padding-block: clamp(56px, 9vw, 104px);
}
.page-hero h1 { color: #fff; text-transform: uppercase; }
.page-hero .lede { margin: 0; color: var(--on-dark-muted); }

@media (max-width: 640px) {
  .home-hero-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section-pad); }
.section-alt { background: var(--alt); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 28px;
}
.section-head h2 { margin: 0; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split-reverse > :first-child { order: 2; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

@media (max-width: 820px) {
  .split, .two-col { grid-template-columns: 1fr; }
  .split-reverse > :first-child { order: 0; }
}

.prose { max-width: 62ch; }

.photo-frame { margin: 0; }
.photo-frame img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.photo-frame-natural img { aspect-ratio: auto; object-fit: contain; }
.photo-frame figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }

/* ---------- Info strip (home) ---------- */

.info-strip { background: var(--charcoal-2); padding-block: 0; }
.info-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  transform: translateY(-48px);
  margin-bottom: -48px;
}
.info-strip + .section { padding-top: calc(var(--section-pad) + 8px); }

.info-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  border-top: 4px solid var(--accent);
}
.info-card h2 { font-size: 1.25rem; text-transform: uppercase; }
.info-card > :last-child { margin-bottom: 0; }
.info-card-accent { background: var(--accent); color: var(--blush); border-top-color: var(--taupe); }
.info-card-accent h2, .info-card-accent strong { color: #fff; }
.info-card-accent a { color: #fff; word-break: break-word; }

.hours-list { list-style: none; margin: 0 0 1em; padding: 0; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.hours-list li span:first-child { font-weight: 600; color: var(--ink); }
.hours-list li span:last-child, .footer-hours li span:last-child { white-space: nowrap; }

@media (max-width: 900px) {
  .info-strip { padding-bottom: 24px; }
  .info-strip-grid { grid-template-columns: 1fr; }
}

/* ---------- Cards ---------- */

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

.feature-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.feature-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.feature-card > div { padding: 22px 24px 26px; }
.feature-card h3 { text-transform: uppercase; }
.feature-card p { margin: 0; }

.news-list { list-style: none; padding: 0; margin: 24px 0 28px; }
.news-list li {
  background: #fff;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 14px;
}
.news-list time { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--taupe-text); }
.news-list h3 { margin: 4px 0 6px; }
.news-list p { margin: 0; }

.cta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cta-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cta-card h2 { font-size: 1.35rem; }
.cta-card .button { margin-top: auto; }
.cta-card img { max-height: 64px; width: auto; margin-bottom: 20px; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }

.map-section iframe { display: block; width: 100%; height: 360px; border: 0; filter: grayscale(.4); }

/* ---------- Notices & callouts ---------- */

.notice {
  background: var(--blush);
  color: var(--accent-dark);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-weight: 600;
  margin-bottom: 32px;
}
.notice a { color: var(--accent-dark); }

.callout {
  border-left: 4px solid var(--taupe);
  background: var(--alt);
  padding: 12px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.info-card .callout { margin-top: 1em; }

/* ---------- Facilities ---------- */

.facility-list { display: grid; gap: clamp(48px, 7vw, 88px); }
.facility {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}
.facility:nth-child(even) > img { order: 2; }
.facility > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.facility h2 { position: relative; padding-bottom: .4em; }
.facility h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 56px; height: 4px;
  background: var(--accent);
}
@media (max-width: 820px) {
  .facility { grid-template-columns: 1fr; }
  .facility:nth-child(even) > img { order: 0; }
}

.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 24px; }
.download-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.download-card:hover { border-color: var(--accent); box-shadow: var(--shadow); color: var(--ink); }
.download-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
}

/* ---------- Prices ---------- */

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.price-card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px;
}
.price-card h2 { font-size: 1.4rem; text-transform: uppercase; }
.price-card dl { margin: 20px 0 0; }
.price-card dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.price-card dt { font-weight: 600; color: var(--ink); }
.price-card dt small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.price-card dd { margin: 0; font-family: var(--font-head); font-size: 1.5rem; color: var(--accent); }

/* ---------- Calendar ---------- */

.calendar { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; align-items: start; }
@media (max-width: 400px) { .calendar { grid-template-columns: 1fr; } }

.calendar-month { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.calendar-month h2 {
  margin: 0;
  background: var(--charcoal);
  color: #fff;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 14px 20px;
}
.calendar-month ol { list-style: none; margin: 0; padding: 0; }

.event {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  line-height: 1.4;
}
.event:first-child { border-top: 0; }
.event time { display: flex; flex-direction: column; color: var(--accent); }
.event-day { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--taupe-text); }
.event-date { font-weight: 700; font-size: .9rem; }
.event strong { color: var(--ink); font-weight: 600; }
.event-note { display: block; font-size: .82rem; color: var(--muted); }
.event.is-closed strong { color: #8a2c22; }
.calendar.has-upcoming .event.is-past { opacity: .5; }

/* ---------- Calendar embed (Google Calendar) ---------- */

.calendar-actions { margin: 0 0 24px; }
.calendar-embed iframe {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
}
.calendar-embed iframe { height: 720px; }
@media (max-width: 819px) { .calendar-embed iframe { height: 600px; } }

/* ---------- Membership ---------- */

.check-list, .step-list { padding: 0; margin: 0 0 1em; }
.check-list { list-style: none; }
.check-list li { position: relative; padding: 6px 0 6px 30px; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 13px;
  width: 12px; height: 7px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}
.step-list { list-style: none; counter-reset: step; }
.step-list li { counter-increment: step; position: relative; padding: 4px 0 12px 44px; }
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 2px;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
}

.hours-inline { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; }
.hours-inline strong { color: var(--ink); margin-right: 6px; }

/* ---------- Events ---------- */

.feature-photo { margin: 0; max-width: 900px; }
.feature-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.feature-photo figcaption { margin-top: 12px; color: var(--muted); }

.award-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; margin-top: 8px; }
.award-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.award-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.award-card a { display: block; overflow: hidden; }
.award-card a:hover img { transform: scale(1.04); }
.award-card figcaption { padding: 18px 20px 20px; }
.award-card h3 { text-transform: uppercase; }
.award-card p { margin: 0 0 4px; }
.label {
  display: inline-block;
  min-width: 88px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--taupe-text);
}

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 8px; }
.gallery a { display: block; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.05); }
@media (max-width: 480px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Lightbox ---------- */

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgb(10 10 10 / .92); }
.lightbox figure { margin: 0; text-align: center; max-width: min(1200px, 92vw); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: var(--radius); }
.lightbox figcaption { color: var(--on-dark); margin-top: 12px; font-size: .95rem; }
.lightbox button {
  position: absolute;
  background: rgb(255 255 255 / .1);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 48px; height: 48px;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox button:hover { background: rgb(255 255 255 / .25); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lightbox-prev, .lightbox.is-single .lightbox-next { display: none; }

/* ---------- NRA ---------- */

.nra-panel {
  display: flex;
  gap: clamp(24px, 5vw, 48px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
}
.nra-panel > img { width: 200px; flex-shrink: 0; border-radius: var(--radius); }
.nra-recruiter { max-width: 420px; width: 100%; margin: 48px auto 0; }
@media (max-width: 640px) { .nra-panel { flex-direction: column; align-items: flex-start; } }

/* ---------- Footer ---------- */

.site-footer { background: var(--charcoal); color: var(--on-dark-muted); font-size: .92rem; border-top: 4px solid var(--accent); }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h2 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1em; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 32px;
  padding-block: 56px 40px;
}
.footer-brand img { width: 88px; margin-bottom: 16px; }
.footer-brand strong { color: #fff; }
.footer-hours, .footer-links { list-style: none; margin: 0 0 1em; padding: 0; }
.footer-hours li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.footer-hours li span:first-child { color: var(--on-dark); }
.footer-links li { padding: 3px 0; }
.site-footer .muted { color: var(--taupe); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  border-top: 1px solid rgb(255 255 255 / .1);
  padding-block: 20px;
  font-size: .82rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: underline; margin-left: 8px; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Summer hours badge ---------- */
.badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}
.center .badge { margin-left: 0; }
.site-footer .badge { background: var(--blush); color: var(--accent-dark); }
