﻿/* ==========================================================================
   Birmingham Lights - localbhm.css
   Modern, responsive stylesheet for BirminghamLights.com master template
   ========================================================================== */

:root {
  --bhm-navy: #003366;
  --bhm-navy-dark: #002244;
  --bhm-navy-light: #0a4d8c;
  --bhm-gold: #ffaa00;
  --bhm-gold-hover: #ffcc00;
  --bhm-rust: #d9531e;
  --bhm-bg-page: #edf2f7;
  --bhm-bg-card: #ffffff;
  --bhm-text-main: #2d3748;
  --bhm-text-muted: #64748b;
  --bhm-border: #e2e8f0;
  --bhm-max-width: 1160px;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--bhm-text-main);
  background-color: var(--bhm-bg-page);
  -webkit-font-smoothing: antialiased;
}

a {
  color: #0284c7;
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

a:hover {
  color: #0369a1;
  text-decoration: underline;
}

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

/* ==========================================================================
   Containers & Common Layout
   ========================================================================== */

.bhm-container {
  width: 100%;
  max-width: var(--bhm-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   Breadcrumb Bar
   ========================================================================== */

.bhm-breadcrumb-bar {
  background-color: #f8fafc;
  border-bottom: 1px solid var(--bhm-border);
  padding: 8px 0;
  font-size: 13px;
  color: var(--bhm-text-muted);
}

.bhm-breadcrumb-bar a {
  color: #475569;
  text-decoration: none;
}

.bhm-breadcrumb-bar a:hover {
  color: var(--bhm-navy);
  text-decoration: underline;
}

.bhm-breadcrumb-bar img {
  vertical-align: middle;
  margin: 0 4px;
}

/* ==========================================================================
   Header (Logo + 728x90 Leaderboard Ad)
   ========================================================================== */

.bhm-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--bhm-border);
  padding: 12px 0;
}

.bhm-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.bhm-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

/* Rescaled to 85px height so it sits harmoniously with 90px ad banner */
.bhm-logo {
  height: 85px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.bhm-ad-leaderboard {
  width: 728px;
  max-width: 100%;
  min-height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.bhm-ad-leaderboard iframe,
.bhm-ad-leaderboard ins {
  max-width: 100% !important;
}

@media (max-width: 991px) {
  .bhm-header-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 16px;
  }
  
  .bhm-ad-leaderboard {
    width: 100%;
  }
}

/* ==========================================================================
   Navigation Menu
   ========================================================================== */

.bhm-nav {
  background-color: var(--bhm-navy);
  border-top: 1px solid var(--bhm-navy-dark);
  border-bottom: 3px solid var(--bhm-gold);
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.bhm-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
}

.bhm-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
}

.bhm-menu > li {
  margin: 0;
}

.bhm-menu > li > a {
  display: block;
  padding: 13px 20px;
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.bhm-menu > li > a:hover,
.bhm-menu > li > a:focus {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--bhm-gold-hover);
  text-decoration: none;
}

.bhm-menu > li.active > a {
  background-color: var(--bhm-navy-dark);
  color: var(--bhm-gold);
}

/* Mobile Hamburger Toggle */
.bhm-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  outline: none;
}

.bhm-nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  margin: 4px 0;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.2s ease-in-out;
}

@media (max-width: 768px) {
  .bhm-nav-inner {
    padding: 6px 16px;
  }
  
  .bhm-nav-toggle {
    display: block;
    margin-left: auto;
  }

  .bhm-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .bhm-menu.open {
    display: flex;
  }

  .bhm-menu > li {
    width: 100%;
  }

  .bhm-menu > li > a {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
}

/* ==========================================================================
   Main Content Area (Full-Width Card Matching Menu)
   ========================================================================== */

.bhm-main {
  padding: 24px 0 40px;
}

/* The card spans the full width of the container, flush with the menu */
.bhm-content-card {
  background-color: var(--bhm-bg-card);
  border: 1px solid var(--bhm-border);
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  padding: 32px 36px;
  width: 100%;
}

@media (max-width: 768px) {
  .bhm-content-card {
    padding: 20px 16px;
  }
}

/* Typography in Content Box */
.bhm-page-title,
.bhm-content-card h1,
.bhm-content-card h2 {
  font-family: Georgia, 'Playfair Display', serif;
  color: var(--bhm-rust);
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 18px;
  text-align: center;
  letter-spacing: -0.3px;
}

.bhm-content-card h2 {
  font-size: 26px;
}

.bhm-content-card h3 {
  font-size: 20px;
  color: var(--bhm-navy);
  margin-top: 24px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--bhm-border);
  padding-bottom: 6px;
}

.bhm-caption-title {
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  text-align: center;
  margin: 12px 0 16px;
}

.bhm-caption-text {
  font-size: 15px;
  font-weight: 600;
  color: #475569;
  text-align: center;
  margin: 8px 0;
}

/* Specimen Picture Wrapper */
.bhm-specimen-view {
  margin: 20px 0;
}

.bhm-image-wrapper {
  text-align: center;
  margin: 20px auto;
}

.bhm-credit {
  display: block;
  font-size: 12px;
  color: var(--bhm-text-muted);
  margin-bottom: 6px;
}

.MainPicture,
.bhm-main-picture {
  max-width: 100%;
  height: auto;
  border: 1px solid #cbd5e1;
  padding: 6px;
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  display: inline-block;
}

.bhm-more-info {
  margin-top: 12px;
  font-size: 14px;
  color: #475569;
  text-align: center;
}

/* See Also Box */
.bhm-see-also {
  background-color: #f8fafc;
  border-left: 4px solid var(--bhm-navy);
  padding: 16px 20px;
  margin: 28px 0;
  border-radius: 0 4px 4px 0;
}

.bhm-see-also strong,
.bhm-see-also b {
  color: var(--bhm-navy);
  font-size: 15px;
}

.bhm-see-also ul {
  margin: 8px 0 0 20px;
  padding: 0;
}

.bhm-see-also li {
  margin-bottom: 6px;
}

/* ==========================================================================
   Responsive Strip Picture Gallery
   ========================================================================== */

.bhm-gallery-section {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--bhm-border);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f8fafc;
  gap: 0;
  margin-top: 16px;
}

.gallery-header {
  grid-column: 1 / -1;
  background-color: var(--bhm-navy);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 14px;
  text-align: center;
  letter-spacing: 0.3px;
}

.gallery-item {
  text-align: center;
  padding: 12px 10px;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  background-color: #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gallery-item:hover {
  background-color: #fdfefe;
}

.gallery-item img {
  max-width: 100%;
  height: 110px;
  object-fit: cover;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 2px;
  background: #fff;
  transition: opacity 0.15s;
}

.gallery-item img:hover {
  opacity: 0.9;
}

.gallery-item a {
  display: block;
  font-size: 13px;
  color: #334155;
  margin-top: 6px;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.3;
}

.gallery-item a:hover {
  color: var(--bhm-navy);
  text-decoration: underline;
}

/* ==========================================================================
   Bottom of Page & Recommendation Section
   ========================================================================== */

.bhm-bottom-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--bhm-border);
  font-size: 14px;
}

.bhm-bottom-section table {
  width: 100% !important;
  border-radius: 4px;
  overflow: hidden;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.bhm-footer {
  background-color: #1e293b;
  color: #94a3b8;
  padding: 36px 0 24px;
  margin-top: 40px;
  font-size: 14px;
}

.bhm-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.bhm-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.bhm-footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}

.bhm-footer-links a:hover {
  color: var(--bhm-gold);
  text-decoration: underline;
}

.bhm-footer-copy {
  color: #64748b;
  font-size: 13px;
  margin-top: 16px;
  width: 100%;
  text-align: center;
  border-top: 1px solid #334155;
  padding-top: 16px;
}

@media (max-width: 768px) {
  .bhm-footer-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .bhm-footer-links {
    justify-content: center;
  }
}

/* ==========================================================================
   Weather Center Styles (Dual-Source Dashboard)
   ========================================================================== */

.bhm-weather-hub {
  margin: 10px 0 24px;
}

.bhm-weather-intro {
  text-align: center;
  color: var(--bhm-text-muted);
  font-size: 15px;
  margin-top: -6px;
  margin-bottom: 24px;
}

.bhm-weather-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

@media (max-width: 860px) {
  .bhm-weather-dual-grid {
    grid-template-columns: 1fr;
  }
}

.bhm-source-card {
  background: #f8fafc;
  border: 1px solid var(--bhm-border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
}

.bhm-source-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--bhm-border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.bhm-source-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  background-color: var(--bhm-navy);
  color: #ffffff;
}

.bhm-source-badge.secondary {
  background-color: #0284c7;
}

.bhm-source-timestamp {
  font-size: 12px;
  color: var(--bhm-text-muted);
}

.bhm-source-main {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.bhm-weather-icon-large {
  font-size: 48px;
  line-height: 1;
}

.bhm-source-temp {
  font-size: 42px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1;
}

.bhm-source-condition {
  font-size: 16px;
  font-weight: 600;
  color: #475569;
  margin-top: 4px;
}

.bhm-weather-narrative {
  font-size: 14px;
  line-height: 1.5;
  color: #334155;
  background: #ffffff;
  border: 1px solid var(--bhm-border);
  padding: 12px 14px;
  border-radius: 6px;
  margin-top: auto;
}

.bhm-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: auto;
}

.bhm-metric-box {
  background: #ffffff;
  border: 1px solid var(--bhm-border);
  border-radius: 6px;
  padding: 8px 12px;
  text-align: center;
}

.bhm-metric-label {
  display: block;
  font-size: 11px;
  color: var(--bhm-text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.bhm-metric-val {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

/* 7-Day Forecast Grid */
.bhm-extended-section {
  margin-top: 24px;
}

.bhm-extended-title {
  font-size: 18px;
  color: var(--bhm-navy);
  margin-bottom: 14px;
  font-weight: 700;
  border-bottom: 2px solid var(--bhm-border);
  padding-bottom: 6px;
}

.bhm-forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.bhm-forecast-card {
  background: #f8fafc;
  border: 1px solid var(--bhm-border);
  border-radius: 6px;
  padding: 12px 8px;
  text-align: center;
  transition: transform 0.15s ease;
}

.bhm-forecast-card:hover {
  transform: translateY(-2px);
  background: #ffffff;
}

.bhm-fc-day {
  font-weight: 700;
  font-size: 13px;
  color: var(--bhm-navy);
  margin-bottom: 6px;
}

.bhm-fc-icon {
  font-size: 26px;
  margin: 4px 0;
}

.bhm-fc-temps {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.bhm-fc-temps span {
  color: #94a3b8;
  font-weight: 400;
}

.bhm-fc-cond {
  font-size: 11px;
  color: var(--bhm-text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   Events Calendar Styles
   ========================================================================== */

.bhm-events-hub {
  margin: 10px 0 24px;
}

.bhm-events-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--bhm-border);
  padding-bottom: 14px;
}

.bhm-events-topbar h1 {
  margin: 0;
  text-align: left;
}

.bhm-btn-submit-event {
  display: inline-block;
  background-color: var(--bhm-navy);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: background-color 0.15s;
}

.bhm-btn-submit-event:hover {
  background-color: var(--bhm-navy-light);
  color: #ffffff;
  text-decoration: none;
}

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

.bhm-event-card {
  display: flex;
  background: #f8fafc;
  border: 1px solid var(--bhm-border);
  border-radius: 8px;
  padding: 16px 20px;
  gap: 20px;
  align-items: flex-start;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.bhm-event-card:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.bhm-event-date-box {
  background: var(--bhm-navy);
  color: #ffffff;
  border-radius: 6px;
  min-width: 70px;
  padding: 10px 6px;
  text-align: center;
  flex-shrink: 0;
}

.bhm-event-date-month {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bhm-gold);
}

.bhm-event-date-day {
  display: block;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
}

.bhm-event-date-rel {
  display: block;
  font-size: 10px;
  margin-top: 2px;
  color: #cbd5e1;
}

.bhm-event-details {
  flex-grow: 1;
}

.bhm-event-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #1e293b;
}

.bhm-event-title a {
  color: var(--bhm-navy);
  text-decoration: none;
}

.bhm-event-title a:hover {
  color: #0284c7;
  text-decoration: underline;
}

.bhm-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--bhm-text-muted);
  margin-bottom: 8px;
}

.bhm-event-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bhm-event-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.bhm-event-action {
  flex-shrink: 0;
  align-self: center;
}

.bhm-btn-event {
  display: inline-block;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bhm-navy);
  background: #ffffff;
  border: 1px solid var(--bhm-border);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.15s;
}

.bhm-btn-event:hover {
  background: var(--bhm-navy);
  color: #ffffff;
  border-color: var(--bhm-navy);
  text-decoration: none;
}

/* Single Event Detail View */
.bhm-event-single {
  background: #ffffff;
  padding: 10px 0;
}

.bhm-event-single-title {
  font-size: 26px;
  color: var(--bhm-navy);
  margin-top: 0;
  margin-bottom: 12px;
}

.bhm-event-single-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .bhm-event-card {
    flex-direction: column;
    gap: 12px;
  }
  .bhm-event-single-grid {
    grid-template-columns: 1fr;
  }
  .bhm-event-action {
    align-self: flex-start;
  }
}


