/* ============================================================
   Goldfield Radio Museum — Shared Stylesheet
   styles.css
   All colors, fonts, nav, footer, and common layout styles.
   Page-specific styles live in each HTML file.
   ============================================================ */

/* ── GOOGLE FONTS ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Special+Elite&display=swap');

/* ── COLOR VARIABLES ──────────────────────────────────────── */
:root {
  --green:       #009900;  /* primary green - section backgrounds */
  --yellow:      #f0f07a;  /* primary yellow - text and highlights */
  --yellow-dark: #c8c830;  /* darker yellow - attributions, accents */
  --green-dark:  #007700;  /* card and element backgrounds */
  --green-light: #0fbb00;  /* light accent green */
  --green-deeper:#044d00;  /* borders and dividers only - not backgrounds */
}

/* ── RESET ────────────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── BASE ─────────────────────────────────────────────────── */
body {
  background: #111;
  color: var(--yellow);
  font-family: 'Libre Baskerville', Georgia, serif;
  overflow-x: hidden;
}

/* ── FIXED HEADER (home page only) ───────────────────────── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: var(--green);
  border-bottom: 3px solid var(--green-deeper);
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: stretch;
  align-items: stretch;
}

#header-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0 16px 0 16px;
}

#header-logo img {
  width: auto;
  display: block;
  height: 100%;
  max-height: 220px;
  margin-top: 10px;
  object-fit: contain;
  object-position: left center;
}

#header-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 32px;
  text-align: center;
}

#header-text h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: 0.04em;
  text-shadow: 2px 2px 0 var(--green-dark);
  margin-bottom: 10px;
  line-height: 1.1;
}

.philosophy-block {
  margin-bottom: 8px;
}

.philosophy-block p {
  font-family: 'Special Elite', 'Libre Baskerville', serif;
  font-size: 0.88rem;
  color: var(--yellow);
  line-height: 1.5;
  font-style: italic;
}

.philosophy-block .attribution {
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 700;
  color: var(--yellow-dark);
  margin-top: 2px;
}

.tagline {
  margin-top: 6px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-top: 1px solid var(--green-deeper);
  padding-top: 6px;
}

/* ── NAV BAR ──────────────────────────────────────────────── */
#main-nav {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  background: var(--green-dark);
  border-bottom: 3px solid var(--green-deeper);
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 0;
}

/* On the home page, nav sits below the header (set by JS).
   On interior pages, nav sits at top: 0 (set by nav.js).     */

#main-nav > a,
#main-nav .dropdown > a {
  display: inline-block;
  color: var(--yellow);
  text-decoration: none;
  font-family: 'Special Elite', serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-right: 1px solid var(--green-deeper);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

#main-nav > a:first-child {
  border-left: 1px solid var(--green-deeper);
}

#main-nav > a:hover,
#main-nav > a.active,
#main-nav .dropdown:hover > a {
  background: var(--green-deeper);
  color: var(--yellow-dark);
}

/* ── DROPDOWN ─────────────────────────────────────────────── */
#main-nav .dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-right: 1px solid var(--green-deeper);
}

#main-nav .dropdown > a {
  border-right: none;
  display: block;
}

#main-nav .dropdown > a::after {
  content: ' \25BE';
  font-size: 0.7rem;
  opacity: 0.7;
}

#main-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: var(--green-dark);
  border: 1px solid var(--green-deeper);
  border-top: none;
  z-index: 1100;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

#main-nav .dropdown:hover .dropdown-menu {
  display: block;
}

#main-nav .dropdown-menu a {
  display: block;
  color: var(--yellow);
  text-decoration: none;
  font-family: 'Special Elite', serif;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-bottom: 1px solid var(--green-deeper);
  border-right: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

#main-nav .dropdown-menu a:last-child {
  border-bottom: none;
}

#main-nav .dropdown-menu a:hover {
  background: var(--green-deeper);
  color: var(--yellow-dark);
}

/* ── PAGE CONTENT WRAPPER ─────────────────────────────────── */
#page-content {
  /* top padding set dynamically by nav.js */
  padding-top: 50px;
}

/* ── INTERIOR PAGE HEADER ─────────────────────────────────── */
#page-header {
  background: var(--green);
  padding: 48px 5% 36px;
  text-align: center;
  border-bottom: 3px solid var(--green-deeper);
  position: relative;
  overflow: hidden;
}

#page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(0,0,0,0.04) 40px,
    rgba(0,0,0,0.04) 41px
  );
  pointer-events: none;
}

#page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--yellow);
  text-shadow: 2px 2px 0 var(--green-dark);
  margin-bottom: 12px;
}

#page-header p {
  font-size: 1rem;
  font-style: italic;
  color: var(--yellow);
  opacity: 0.85;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── SHARED SECTION HEADINGS ──────────────────────────────── */
.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--yellow);
  text-align: center;
  margin-bottom: 36px;
  text-shadow: 1px 1px 0 var(--green-dark);
}

/* ── ALTERNATING PHOTO/TEXT ROWS ──────────────────────────── */
.content-row {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto 70px;
}

.content-row.reverse {
  flex-direction: row-reverse;
}

.content-row:last-child {
  margin-bottom: 0;
}

.content-row-divider {
  max-width: 1000px;
  margin: 0 auto 70px;
  border: none;
  border-top: 1px solid var(--green-deeper);
}

/* ── FOOTER — full (home page) ────────────────────────────── */
footer {
  background: #050e00;
  border-top: 3px solid var(--green-deeper);
  padding: 48px 5% 32px;
  color: var(--yellow);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px;
  max-width: 1100px;
  margin: 0 auto 36px;
}

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--yellow);
  border-bottom: 1px solid var(--green-deeper);
  padding-bottom: 6px;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #d4d470;
  text-decoration: none;
  font-size: 0.88rem;
  font-family: 'Special Elite', serif;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--yellow);
}

.footer-col p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #c8c850;
}

/* ── FOOTER — slim (interior pages) ──────────────────────── */
footer.slim {
  padding: 20px 5%;
  border-top: 1px solid var(--green-deeper);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--green-deeper);
  padding-top: 20px;
  font-size: 0.78rem;
  color: var(--yellow-dark);
  font-family: 'Special Elite', serif;
  letter-spacing: 0.06em;
}

footer.slim .footer-bottom {
  border-top: none;
  padding-top: 0;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 700px) {
  #site-header { flex-direction: column; }
  #header-logo { border-right: none; border-bottom: 2px solid var(--green-deeper); padding: 0 12px; }
  #header-logo img { height: 100px; width: auto; }
  #header-text h1 { font-size: 1.4rem; }
  .content-row,
  .content-row.reverse { flex-direction: column; align-items: center; }
}
