/* W4WZW Modern Redesign — 2026 */
:root {
  --bg: #0b1220;
  --bg-alt: #111a2e;
  --surface: #161f33;
  --surface-hover: #1c2740;
  --text: #e8eef7;
  --text-muted: #9aabbe;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --gold: #e6c300;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--gold);
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1100px, 92%);
  margin-inline: auto;
  padding: 0.75rem 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
}
.nav-brand:hover {
  color: var(--text);
}
.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
}
.callsign {
  font-family: var(--mono);
  letter-spacing: 0.04em;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}

.dropdown {
  position: relative;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  list-style: none;
  padding: 0.5rem;
  margin-top: 0.35rem;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}
.dropdown-menu a {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.25s;
}

/* ===== Fixed radio tower (full image always visible: top + base) ===== */
.tower-decoration {
  position: fixed;
  top: 4.5rem;
  right: 0;
  bottom: 0;
  width: min(440px, 42vw);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}
.tower-img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 4.5rem);
  object-fit: contain;
  object-position: top right;
  opacity: 0.38;
  display: block;
}

/* Florida tower — left of hero only; scrolls away with page */
.florida-tower {
  position: absolute;
  /* higher, further left of hero text */
  left: max(0.25rem, calc(50% - 27rem));
  top: 4%;
  transform: none;
  width: min(200px, 24vw);
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}
.florida-tower-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center top;
}

/* ===== Hero ===== */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem 6rem;
  position: relative;
  overflow: hidden;
  /* Rich atmospheric background */
  background:
    radial-gradient(ellipse 90% 70% at 70% 40%, rgba(59, 130, 246, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(230, 195, 0, 0.08), transparent 50%),
    linear-gradient(180deg, #0a1020 0%, #0d1830 40%, #0b1220 100%);
  border-bottom: 1px solid var(--border);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--mono);
  font-size: clamp(3.5rem, 12vw, 6.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 40px rgba(230, 195, 0, 0.25);
}

.hero-phonetic {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0.75rem 0 1.5rem;
  letter-spacing: 0.04em;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.badge {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}

.clocks {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.clock {
  text-align: center;
}
.clock-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.clock-time {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent);
}

.hero-operator {
  color: var(--text-muted);
  font-size: 1.05rem;
}
.hero-operator strong {
  color: var(--text);
  font-size: 1.2rem;
}

/* ===== Sections ===== */
.section {
  padding: 4.5rem 0;
  position: relative;
  z-index: 2;
  background: var(--bg);
}
.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.section-lead {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 40rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.operator-photo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 0 0 1rem;
  border: 1px solid var(--border);
  object-fit: cover;
  background: #0a1020;
}
.about-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
  color: var(--gold);
}
.about-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.feature-list li {
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.95rem;
}
.feature-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.feature-list strong {
  color: var(--text);
}

/* Equipment */
.equip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.equip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.equip-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}
.equip-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
.equip-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.equip-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.equip-card strong {
  color: var(--text);
}
.note {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}
.note code {
  font-family: var(--mono);
  background: var(--surface);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
}

/* QRZ iframe */
.iframe-wrap {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  aspect-ratio: 16 / 10;
  max-height: 520px;
}
.iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Form */
.log-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 1.5rem;
  position: relative;
}

/* Honeypot — visually hidden from humans */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group.full-width {
  grid-column: 1 / -1;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}

.recent-entry {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}
.recent-entry h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: var(--gold);
}
.recent-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.recent-table th,
.recent-table td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.recent-table th {
  width: 35%;
  color: var(--accent);
  font-weight: 600;
}
.muted {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: #060a12;
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-call {
  font-family: var(--mono);
  font-size: 1.35rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}
.site-footer p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.site-footer a {
  color: var(--text-muted);
}
.site-footer a:hover {
  color: var(--gold);
}
.copyright {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.25rem;
  }
  .nav-links.open {
    display: flex;
  }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: 1rem;
  }
  .dropdown:hover .dropdown-menu {
    display: none;
  }
  .dropdown.open .dropdown-menu {
    display: block;
  }

  .clocks {
    flex-direction: column;
    gap: 1rem;
  }
  .hero {
    min-height: auto;
    padding: 3.5rem 1.25rem 4rem;
  }
  .tower-decoration {
    width: min(220px, 48vw);
  }
  .tower-img {
    opacity: 0.28;
  }
  .florida-tower {
    left: max(0.25rem, calc(50% - 13rem));
    top: 3%;
    width: min(120px, 28vw);
    opacity: 0.75;
  }
  .log-form {
    padding: 1.35rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 3rem;
  }
  .tower-decoration {
    width: 150px;
  }
  .tower-img {
    opacity: 0.22;
  }
  .florida-tower {
    left: 0.15rem;
    top: 2%;
    width: 90px;
    opacity: 0.5;
  }
}
