/* ---------- Reset & Base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
 
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #1f2733;
  background-color: #f4f7fa;
  line-height: 1.6;
}
 
a {
  text-decoration: none;
  color: inherit;
}
 
/* ---------- Header ---------- */
.site-header {
  background-color: #1c3d5a;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
 
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
 
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
 
.logo span {
  color: #7fc4e8;
}
 
.nav-tabs ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
 
.nav-tabs a {
  display: block;
  padding: 0.6rem 1.1rem;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}
 
.nav-tabs a:hover,
.nav-tabs a:focus {
  background-color: #2f5d84;
  color: #ffffff;
}
 
/* ---------- Main / Hero ---------- */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}
 
.hero {
  position: relative;
  background-image: linear-gradient(rgba(15, 30, 46, 0.65), rgba(15, 30, 46, 0.65)), url("clouds.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
  padding: 3.5rem 2.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  margin-bottom: 2.5rem;
}
 
.hero h1 {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 1rem;
}
 
.hero p {
  margin-bottom: 1rem;
  color: #e6edf3;
  max-width: 75ch;
}
 
.hero p:last-child {
  margin-bottom: 0;
}
 
/* ---------- Intro Cards ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}
 
.intro-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-top: 4px solid #7fc4e8;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
 
.intro-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
 
.intro-card h2 {
  font-size: 1.15rem;
  color: #1c3d5a;
  margin-bottom: 0.5rem;
}
 
.intro-card p {
  font-size: 0.95rem;
  color: #5a6472;
}
 
/* ---------- Footer ---------- */
.site-footer {
  background-color: #1c3d5a;
  color: #cfe0ec;
  text-align: center;
  padding: 1.25rem 1rem;
  font-size: 0.9rem;
}

/* ---------- NWS Station Lookup ---------- */

.nws-lookup-section {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 1.75rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-top: 2.5rem;
}

.nws-lookup-section h2 {
  font-size: 1.3rem;
  color: #1c3d5a;
  margin-bottom: 0.5rem;
}

.nws-lookup-section > p {
  color: #3c4756;
  max-width: 75ch;
}

.nws-lookup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.nws-lookup-form input,
.nws-lookup-form select {
  padding: 0.6rem 0.9rem;
  border: 1px solid #cfd8e0;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: #ffffff;
}

.nws-lookup-form input#nws-city {
  flex: 1 1 220px;
}

.nws-lookup-form select#nws-state {
  flex: 0 0 110px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%231c3d5a' d='M5.5 7.5l4.5 4.5 4.5-4.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 1rem;
  padding-right: 2.1rem;
}

.nws-lookup-form select#nws-state:focus {
  outline: none;
  border-color: #1c3d5a;
  box-shadow: 0 0 0 3px rgba(28, 61, 90, 0.12);
}

.nws-lookup-form input:focus {
  outline: none;
  border-color: #1c3d5a;
  box-shadow: 0 0 0 3px rgba(28, 61, 90, 0.12);
}

.nws-lookup-form button {
  flex: 0 0 auto;
  padding: 0.6rem 1.3rem;
  background-color: #1c3d5a;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.nws-lookup-form button:hover,
.nws-lookup-form button:focus {
  background-color: #2f5d84;
}

.nws-lookup-result {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.nws-lookup-result.loading {
  color: #5a6472;
}

.nws-lookup-result.success {
  color: #1c3d5a;
  font-size: 1.05rem;
}

.nws-office-link {
  display: inline-block;
  margin-top: 0.6rem;
  margin-left: 0.25rem;
  padding: 0.45rem 0.9rem;
  background-color: #1c3d5a;
  color: #ffffff;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background-color 0.2s ease;
}

.nws-office-link:hover,
.nws-office-link:focus {
  background-color: #2f5d84;
}

.nws-lookup-result.error {
  color: #b3372c;
}

/* ---------- Contact Section ---------- */

.contact-section {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 1.75rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-top: 2.5rem;
}

.contact-section h2 {
  font-size: 1.3rem;
  color: #1c3d5a;
  margin-bottom: 0.5rem;
}

.contact-section > p {
  color: #3c4756;
  max-width: 75ch;
  margin-bottom: 1.25rem;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
}

.contact-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.contact-icon-image {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.contact-label {
  font-weight: 600;
  color: #1c3d5a;
}

.contact-value {
  color: #1c3d5a;
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact-value:hover,
.contact-value:focus {
  color: #2f5d84;
  text-decoration: underline;
}

.contact-discord-link {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background-color: #1c3d5a;
  color: #ffffff;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.contact-discord-link:hover,
.contact-discord-link:focus {
  background-color: #2f5d84;
}

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

.enlargeable-image {
  cursor: zoom-in;
}

.image-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 30, 46, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}

.image-lightbox.open {
  display: flex;
}

.image-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* ---------- Toggle Cards (click-to-reveal) ---------- */

.toggle-card-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}

.toggle-card {
  position: relative;
}

.toggle-card-label {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  background-color: #eaf2f8;
  color: #1c3d5a;
  border: 1px solid #cfe0ec;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.toggle-card-label:hover {
  background-color: #d7e6f1;
}

.toggle-card.open .toggle-card-label {
  background-color: #1c3d5a;
  color: #ffffff;
}

.toggle-card-panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  width: 320px;
  max-width: 80vw;
  margin-top: 0.5rem;
  padding: 1.1rem 1.25rem;
  background-color: #ffffff;
  border: 1px solid #dde5ec;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.toggle-card-panel p {
  color: #3c4756;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.toggle-card-panel p:last-child {
  margin-bottom: 0;
}

.toggle-card-panel .external-link-button {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  padding: 0.5rem 0.9rem;
}

.toggle-card.open .toggle-card-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
 
/* ---------- Responsive ---------- */
@media (min-width: 700px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}