/* =====================================================
   K4EG — ALAMANCE AMATEUR RADIO CLUB
   Main Stylesheet
   Design: Rugged-Patriotic × Clean Professional
   Colors: Navy | Red | Tan/Khaki | Cream | Silver
   Nx3 Creations
   ===================================================== */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400&family=Source+Sans+3:wght@300;400;600;700&family=Oswald:wght@400;500;600;700&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  /* Core Palette */
  --navy:         #1B2A4A;
  --navy-dark:    #0D1929;
  --navy-light:   #253966;
  --red:          #B22234;
  --red-dark:     #8B1A28;
  --red-light:    #CC3444;
  --tan:          #C8A96E;
  --tan-light:    #DFC898;
  --tan-dark:     #A88848;
  --cream:        #F4F0E6;
  --parchment:    #EDE4D3;
  --charcoal:     #2A2A2A;
  --silver:       #8C9BAA;
  --silver-light: #B8C5CF;
  --white:        #FFFFFF;

  /* Text */
  --text-primary:   #2A2A2A;
  --text-secondary: #5A5A5A;
  --text-muted:     #888888;
  --text-light:     #F4F0E6;
  --text-on-navy:   #EDE4D3;

  /* Typography */
  --font-serif:  'Merriweather', Georgia, 'Times New Roman', serif;
  --font-sans:   'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  --font-display:'Oswald', 'Arial Narrow', Arial, sans-serif;

  /* Spacing */
  --space-xs:  0.375rem;
  --space-sm:  0.75rem;
  --space-md:  1.25rem;
  --space-lg:  2rem;
  --space-xl:  3.5rem;
  --space-2xl: 6rem;

  /* Borders */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --border-tan: 1px solid var(--tan);
  --border-navy:1px solid var(--navy);

  /* Shadows */
  --shadow-sm:  0 2px 6px rgba(13, 25, 41, 0.12);
  --shadow-md:  0 4px 18px rgba(13, 25, 41, 0.16);
  --shadow-lg:  0 8px 32px rgba(13, 25, 41, 0.22);

  /* Transitions */
  --transition: 0.22s ease;

  /* Layout */
  --container-max: 1160px;
  --nav-height: 76px;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--text-primary);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }
table { border-collapse: collapse; width: 100%; }

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem);   font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem);  font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 700; }
h5 { font-size: 1rem;     font-weight: 700; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
}

.callsign {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--red);
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tan-dark);
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  margin-bottom: 0.75rem;
}

/* =====================================================
   LAYOUT UTILITIES
   ===================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-2xl) 0;
}

.section--sm {
  padding: var(--space-xl) 0;
}

.section--navy {
  background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Crect x='0' y='0' width='60' height='1'/%3E%3Crect x='0' y='30' width='60' height='1'/%3E%3Crect x='0' y='0' width='1' height='60'/%3E%3Crect x='30' y='0' width='1' height='60'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--text-on-navy);
}

.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--cream);
}

.section--navy .section-label {
  color: var(--tan);
}

.section--navy p {
  color: var(--silver-light);
}

.section--cream {
  background-color: var(--cream);
}

.section--parchment {
  background-color: var(--parchment);
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40L40 0' stroke='%23C8A96E' stroke-opacity='0.08' stroke-width='1'/%3E%3C/svg%3E");
}

.section--white {
  background-color: var(--white);
}

.text-center { text-align: center; }
.text-left   { text-align: left; }

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

/* =====================================================
   DECORATIVE ELEMENTS
   ===================================================== */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--tan), transparent);
}

.divider-star {
  color: var(--tan);
  font-size: 0.8rem;
  letter-spacing: 0.5em;
}

.section-header {
  margin-bottom: var(--space-xl);
}

.section-header.text-center {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* Red accent bar above headings */
.section-header::before,
.accent-bar {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--red);
  margin-bottom: var(--space-sm);
  border-radius: 2px;
}

.section-header.text-center::before {
  margin-left: auto;
  margin-right: auto;
}

/* Star separator */
.star-sep {
  display: inline-block;
  margin: 0 0.5em;
  color: var(--tan);
}

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--white);
  border-bottom: 2px solid var(--parchment);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--tan);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo img {
  height: 54px;
  width: 54px;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-logo-callsign {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.04em;
}

.nav-logo-name {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
  letter-spacing: 0.02em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--red);
  transition: left var(--transition), right var(--transition);
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--navy);
}

.nav-link:hover::after,
.nav-link.active::after {
  left: 0.75rem;
  right: 0.75rem;
}

.nav-link.active {
  color: var(--navy);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 2px solid var(--tan);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile .nav-link {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--parchment);
  border-radius: 0;
}

.nav-mobile .nav-link::after { display: none; }

.nav-mobile-actions {
  padding-top: var(--space-sm);
  display: flex;
  gap: var(--space-sm);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(178, 34, 52, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

.btn-outline-light:hover {
  background: var(--cream);
  color: var(--navy);
}

.btn-outline-tan {
  background: transparent;
  color: var(--tan);
  border-color: var(--tan);
}

.btn-outline-tan:hover {
  background: var(--tan);
  color: var(--navy-dark);
}

.btn-lg {
  font-size: 1rem;
  padding: 0.85rem 2rem;
}

.btn-sm {
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
}

.btn-members {
  background: var(--navy);
  color: var(--tan);
  border-color: var(--navy);
  font-size: 0.82rem;
  padding: 0.45rem 1.1rem;
}

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

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  min-height: 100vh;
  background-color: var(--navy-dark);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(178, 34, 52, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(27, 42, 74, 0.4) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C8A96E' fill-opacity='0.025'%3E%3Cpath d='M0 0h1v80H0zM40 0h1v80H40zM0 0h80v1H0zM0 40h80v1H0z'/%3E%3C/g%3E%3C/svg%3E");
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-height) + 3rem) var(--space-lg) var(--space-2xl);
  position: relative;
  overflow: hidden;
}

/* Subtle vignette */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(13, 25, 41, 0.55) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--tan);
  opacity: 0.6;
}

.hero-callsign {
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 10rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 0.9;
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.hero-callsign span {
  color: var(--red);
}

.hero-club-name {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.hero-location {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 2.5rem;
}

.hero-location .dot { color: var(--tan); margin: 0 0.6em; }

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero bottom divider */
.hero-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--navy-dark), var(--tan), var(--red), var(--tan), var(--navy-dark));
}

/* =====================================================
   PAGE HERO (inner pages)
   ===================================================== */
.page-hero {
  background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Crect x='0' y='0' width='60' height='1'/%3E%3Crect x='0' y='30' width='60' height='1'/%3E%3Crect x='0' y='0' width='1' height='60'/%3E%3Crect x='30' y='0' width='1' height='60'/%3E%3C/g%3E%3C/svg%3E");
  padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-xl);
  text-align: center;
  border-bottom: 3px solid var(--tan);
}

.page-hero h1 {
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.page-hero .lead {
  color: var(--silver-light);
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--tan);
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.breadcrumb a { color: var(--silver); }
.breadcrumb a:hover { color: var(--tan); }
.breadcrumb .sep { color: var(--tan-dark); }

/* =====================================================
   CARDS
   ===================================================== */
.card {
  background: var(--white);
  border: 1px solid var(--parchment);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-body {
  padding: var(--space-lg);
}

.card-header {
  padding: var(--space-md) var(--space-lg);
  background: var(--parchment);
  border-bottom: 2px solid var(--tan);
}

.card-header h3, .card-header h4 {
  margin: 0;
  font-size: 1rem;
}

.card-footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--parchment);
  background: var(--cream);
}

/* Feature card with top accent */
.card-feature {
  border-top: 4px solid var(--red);
}

.card-navy {
  background: var(--navy);
  border-color: var(--navy-light);
  color: var(--cream);
}

.card-navy h3, .card-navy h4 {
  color: var(--cream);
}

.card-navy p {
  color: var(--silver-light);
}

/* Icon cards for feature sections */
.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--parchment);
  border: 2px solid var(--tan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 1.4rem;
}

.section--navy .feature-icon {
  background: var(--navy-light);
  border-color: var(--tan);
}

/* =====================================================
   INFO BOX / CALLOUT
   ===================================================== */
.callout {
  background: var(--parchment);
  border-left: 5px solid var(--red);
  padding: var(--space-md) var(--space-lg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-md) 0;
}

.callout-navy {
  background: var(--navy-light);
  border-left-color: var(--tan);
  color: var(--cream);
}

.callout h4 {
  color: var(--red);
  margin-bottom: 0.25rem;
}

.callout-navy h4 {
  color: var(--tan);
}

/* =====================================================
   REPEATER / SPEC TABLE
   ===================================================== */
.spec-table {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--parchment);
  box-shadow: var(--shadow-sm);
}

.spec-table th,
.spec-table td {
  padding: 0.75rem 1.25rem;
  text-align: left;
  font-size: 0.95rem;
}

.spec-table thead {
  background: var(--navy);
  color: var(--cream);
}

.spec-table thead th {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.spec-table tbody tr:nth-child(even) {
  background: var(--parchment);
}

.spec-table tbody tr:nth-child(odd) {
  background: var(--white);
}

.spec-table tbody tr:hover {
  background: var(--cream);
}

.spec-table td:first-child {
  font-weight: 700;
  color: var(--navy);
  width: 40%;
}

/* =====================================================
   NET SCRIPT
   ===================================================== */
.net-script {
  background: var(--white);
  border: 1px solid var(--parchment);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.net-script-header {
  background: var(--navy);
  color: var(--cream);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.net-script-header h3 {
  color: var(--cream);
  margin: 0;
  font-size: 1rem;
}

.net-script-body {
  padding: var(--space-lg);
}

.script-block {
  margin-bottom: var(--space-lg);
}

.script-block:last-child {
  margin-bottom: 0;
}

.script-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tan-dark);
  background: var(--parchment);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.script-text {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--charcoal);
  padding: 0.5rem 0 0.5rem 1rem;
  border-left: 3px solid var(--tan);
}

.script-instruction {
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--cream);
  border: 1px dashed var(--silver-light);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  margin: 0.5rem 0;
  font-style: italic;
}

.script-var {
  font-style: normal;
  font-weight: 700;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 0.9em;
}

/* =====================================================
   FORMS
   ===================================================== */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--silver-light);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 42, 74, 0.12);
}

.form-control::placeholder {
  color: var(--silver);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231B2A4A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--navy);
  flex-shrink: 0;
  cursor: pointer;
}

.form-check-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
}

/* =====================================================
   CALENDAR
   ===================================================== */
.calendar-wrapper {
  background: var(--white);
  border: 1px solid var(--parchment);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.calendar-header {
  background: var(--navy);
  color: var(--cream);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calendar-header h3 {
  color: var(--cream);
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
}

.calendar-nav-btn {
  background: rgba(255,255,255,0.12);
  color: var(--cream);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.75rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition);
}

.calendar-nav-btn:hover {
  background: rgba(255,255,255,0.22);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-day-header {
  background: var(--navy-dark);
  color: var(--tan);
  text-align: center;
  padding: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.calendar-cell {
  min-height: 90px;
  border-right: 1px solid var(--parchment);
  border-bottom: 1px solid var(--parchment);
  padding: 0.4rem;
  background: var(--white);
  transition: background var(--transition);
  vertical-align: top;
  position: relative;
}

.calendar-cell:hover {
  background: var(--cream);
}

.calendar-cell.other-month {
  background: var(--cream);
  opacity: 0.5;
}

.calendar-cell.today .cell-date {
  background: var(--red);
  color: var(--white);
}

.cell-date {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 4px;
}

.cell-event {
  font-size: 0.72rem;
  background: var(--navy);
  color: var(--cream);
  padding: 2px 5px;
  border-radius: 3px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.cell-event.event-net {
  background: var(--red);
}

.cell-event.event-meeting {
  background: var(--navy);
}

.cell-event.event-special {
  background: var(--tan-dark);
  color: var(--navy);
}

.calendar-legend {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--parchment);
  background: var(--cream);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* =====================================================
   MEMBERS AREA
   ===================================================== */
.members-gate {
  max-width: 420px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--parchment);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.members-gate h2 {
  margin-bottom: 0.5rem;
}

.members-gate .lead {
  font-size: 1rem;
  margin-bottom: var(--space-lg);
}

.members-content {
  display: none;
}

.members-content.unlocked {
  display: block;
}

/* =====================================================
   NET INFO BADGE
   ===================================================== */
.net-badge {
  background: var(--navy-dark);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Crect x='0' y='0' width='60' height='1'/%3E%3Crect x='0' y='30' width='60' height='1'/%3E%3Crect x='0' y='0' width='1' height='60'/%3E%3Crect x='30' y='0' width='1' height='60'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--cream);
  padding: var(--space-xl) 0;
  text-align: center;
  border-top: 3px solid var(--tan);
  border-bottom: 3px solid var(--tan);
}

.net-badge h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.net-badge .net-time {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--tan);
  letter-spacing: 0.04em;
  line-height: 1;
  margin: var(--space-md) 0;
}

.net-badge .net-freq {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--red-light);
  letter-spacing: 0.08em;
}

.net-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

.net-stat {
  text-align: center;
}

.net-stat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--tan);
  display: block;
}

.net-stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
}

/* =====================================================
   GALLERY
   ===================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-sm);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 4/3;
  background: var(--navy-dark);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,25,41,0.85) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-caption {
  font-size: 0.85rem;
  color: var(--cream);
  font-family: var(--font-sans);
}

/* Placeholder for missing images */
.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--silver);
  font-size: 2rem;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--navy-dark);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.018'%3E%3Crect x='0' y='0' width='60' height='1'/%3E%3Crect x='0' y='0' width='1' height='60'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--silver-light);
  padding: var(--space-2xl) 0 0;
  border-top: 4px solid var(--tan);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand {
  /* first column */
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.footer-logo img {
  width: 62px;
  height: 62px;
  filter: brightness(0.9);
}

.footer-logo-text .callsign {
  font-size: 1.3rem;
  display: block;
}

.footer-logo-text small {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silver);
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--silver);
  margin-bottom: var(--space-md);
}

.footer-col h5 {
  color: var(--tan);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: var(--space-md);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(200, 169, 110, 0.25);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-link {
  font-size: 0.88rem;
  color: var(--silver);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-link:hover {
  color: var(--tan);
}

.footer-link .arrow {
  font-size: 0.7rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--transition);
}

.footer-link:hover .arrow {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--silver);
  margin-bottom: 0.6rem;
}

.footer-contact-item .icon {
  color: var(--tan);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(200, 169, 110, 0.15);
  padding: var(--space-md) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 0.78rem;
  color: var(--silver);
  opacity: 0.7;
}

.footer-credit {
  font-size: 0.78rem;
  color: var(--silver);
  opacity: 0.7;
}

.footer-credit a {
  color: var(--tan);
  opacity: 1;
  transition: opacity var(--transition);
}

.footer-credit a:hover {
  opacity: 0.8;
}

/* =====================================================
   ALERT / NOTICE BANNER
   ===================================================== */
.notice-bar {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 0.5rem var(--space-lg);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.notice-bar a {
  color: var(--white);
  text-decoration: underline;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {
  .site-header, .site-footer, .hero-actions, .btn { display: none; }
  body { background: white; }
}

/* =====================================================
   RESPONSIVE BREAKPOINTS
   ===================================================== */

/* Tablet */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-logo-name { display: none; }
}

/* Mobile */
@media (max-width: 600px) {
  :root { --space-2xl: 3.5rem; --space-xl: 2.5rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .net-stats { gap: var(--space-lg); }
  .calendar-cell { min-height: 60px; }
  .calendar-cell .cell-event { display: none; }
  .section { padding: var(--space-xl) 0; }
  .container { padding: 0 var(--space-md); }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Inline grids used on homepage and about page */
  [style*="grid-template-columns: 1fr 1fr"] {
    display: block !important;
  }
  [style*="grid-template-columns: 1fr 1fr"] > * + * {
    margin-top: var(--space-lg);
  }

  /* Net badge adjustments */
  .net-badge .net-time { font-size: 2.2rem; }
  .net-badge .net-freq { font-size: 1.3rem; }
  .net-stats { flex-direction: column; align-items: center; }

  /* Hero callsign */
  .hero-callsign { font-size: 4.5rem; }
  .hero-eyebrow { font-size: 0.72rem; }

  /* Spec table on mobile */
  .spec-table th, .spec-table td { padding: 0.6rem 0.75rem; font-size: 0.85rem; }
  .spec-table td:first-child { width: auto; }

  /* Calendar mobile: show dots instead of event text */
  .calendar-grid { font-size: 0.75rem; }
}

/* ===== PRINT STYLES (override already above, this adds page-specific) ===== */
@media print {
  .net-badge { border: 2px solid #333; background: white !important; color: black !important; }
  .net-badge * { color: black !important; }
}
