/* assets/styles.css */
/* Date - 2026-04-14 */
/* Version - 1.3.1 */
/* Notes - Cleaned duplicate .site-logo blocks; fixed hero height calc; bumped logo to 90px; added --headerH variable; added .notice-card */
/* Author - David Taylor */

:root {
  --bg: #071525;
  --surface: rgba(20, 65, 110, 0.96);
  --surfaceSoft: rgba(10, 30, 55, .88);
  --text: #fff;
  --muted: rgba(255,255,255,.82);
  --accent: #f2c14b;
  --blue: rgba(31,105,160,.92);
  --focus: #ffde7a;
  --max: 820px;
  --headerH: 110px;

  --card: rgba(255,255,255,.08);
  --cardBorder: rgba(255,255,255,.18);
  --shadow: 0 10px 24px rgba(0,0,0,.25);
  --shadowLarge: 0 30px 80px rgba(0,0,0,.45);
}

* { box-sizing: border-box }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}

/* =========================
   Injected Header
   ========================= */

#siteHeader {
  position: relative;
  z-index: 1000;
  display: flex;
  justify-content: center;
  height: var(--headerH);
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1rem;
  transition:
    background-color .25s ease,
    box-shadow .25s ease,
    backdrop-filter .25s ease,
    border-radius .25s ease;
}

.site-header.is-dark {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.site-header.is-solid {
  background: rgba(20, 65, 110, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
  border-radius: 0 0 18px 18px;
}

.site-brand {
  display: flex;
  align-items: center;
  overflow: hidden;
  min-width: 0;
  flex: 0 1 auto;
  padding: .25rem .1rem;
}

.site-logo {
  display: block;
  height: 90px;
  width: auto;
  max-width: 360px;
}

.logo-light { display: none; }

.site-header.is-dark .logo-dark { display: none; }
.site-header.is-dark .logo-light { display: block; }

.site-header.is-solid .logo-dark { display: none; }
.site-header.is-solid .logo-light { display: block; }

.site-header-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-left: auto;
}

.weather {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 42px;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
  color: var(--text);
}

.weather:hover,
.weather:focus-visible { background: rgba(255,255,255,.14); }

.site-header.is-solid .weather { background: rgba(255,255,255,.10); }

.menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.menu-toggle:hover,
.menu-toggle:focus-visible { background: rgba(255,255,255,.14); }

.site-header.is-solid .menu-toggle { background: rgba(255,255,255,.10); }

.site-menu {
  position: absolute;
  top: calc(100% + .5rem);
  right: 1rem;
  width: min(360px, calc(100vw - 2rem));
  display: none;
  flex-direction: column;
  gap: .65rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  box-shadow: var(--shadowLarge);
  backdrop-filter: blur(12px);
}

.site-menu.is-open { display: flex; }

.site-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: 100%;
  padding: .9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
}

.site-menu a:hover,
.site-menu a:focus-visible { background: rgba(255,255,255,.12); }

/* =========================
   Main Layout
   ========================= */

main {
  display: grid;
  place-items: center;
  padding: 8px 1rem 1rem;
}

/* =========================
   Hero
   ========================= */

.hero {
  width: 100%;
  max-width: var(--max);
  height: calc(100vh - var(--headerH) - 1rem);
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  background: #000;
  display: flex;
  flex-direction: column;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.2), rgba(0,0,0,.7));
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 2rem 1.25rem 1.25rem;
  text-align: center;
}

.hero-top h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 6vw, 3.3rem);
}

.hero-top p {
  margin: .6rem auto 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-bottom {
  padding-bottom: .25rem;
  display: grid;
  gap: 1rem;
}

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

.cta-row {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: .75rem;
}

.btn {
  padding: .85rem;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  display: inline-block;
}

.btn.secondary {
  background: var(--blue);
  color: #fff;
}

.btn.primary {
  background: var(--accent);
  color: #1b1b1b;
  font-size: 1.1rem;
}

.footer {
  padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,.2);
  font-size: .9rem;
  color: rgba(255,255,255,.75);
}

.footer-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .5rem;
}

.footer-row > *:first-child { text-align: left; }
.footer-row > *:last-child { text-align: right; }

/* =========================
   Subpages
   ========================= */

.page {
  width: 100%;
  max-width: var(--max);
  border-radius: 26px;
  background: rgba(20, 65, 110, 0.6);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-top: 8;
}

.page-header {
  padding: 1.25rem 1.25rem 1rem;
  background: linear-gradient(to bottom, rgba(255,255,255,.06), rgba(255,255,255,0));
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.page-header h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4.6vw, 2.6rem);
}

.page-header p {
  margin: .5rem 0 0;
  color: var(--muted);
  max-width: 100%;
}

.grid {
  padding: 1rem 1.25rem 1.25rem;
  display: grid;
  gap: .9rem;
  grid-template-columns: 1fr;
}

.card {
  background: var(--card);
  border: 1px solid var(--cardBorder);
  border-radius: 18px;
  padding: 1rem;
  display: grid;
  gap: .55rem;
}

.card h2 {
  margin: 0;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.notice-card {
  background: rgba(242,193,75,.08);
  border: 2px solid rgba(242,193,75,.35);
  border-radius: 18px;
  padding: 1rem;
  display: grid;
  gap: .55rem;
}

.notice-card h2 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--accent);
}

.notice-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.notice-card ul {
  margin: .25rem 0 0 1.25rem;
  display: grid;
  gap: .35rem;
  color: rgba(255,255,255,.85);
}

a.card {
  text-decoration: none;
  color: inherit;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
  cursor: pointer;
}

a.card:hover,
a.card:focus-visible {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.3);
  transform: translateY(-2px);
}

.tags {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .25rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
  font-weight: 700;
  font-size: .85rem;
  color: rgba(255,255,255,.9);
}

.tag.quick { border-color: rgba(242,193,75,.35); }
.tag.week { border-color: rgba(120,220,255,.35); }

.page-footer {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
  color: rgba(255,255,255,.75);
  font-size: .9rem;
}

/* =========================
   Legacy Overlay Menu
   ========================= */

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,15,25,.85);
  backdrop-filter: blur(12px);
  z-index: 999;
  display: none;
}

.menu-overlay.open { display: block; }

.menu-panel {
  max-width: var(--max);
  margin: 5rem auto 0;
  padding: 1.1rem;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 22px;
  box-shadow: var(--shadowLarge);
}

.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .25rem .25rem .9rem;
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.menu-title {
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0;
  font-size: 1.05rem;
}

.menu-close {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text);
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  padding: 1rem .25rem .25rem;
}

.menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
  font-weight: 800;
}

.menu-link:hover,
.menu-link:focus-visible { background: rgba(255,255,255,.12); }

.menu-sub {
  display: block;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  margin-top: .2rem;
}

.menu-foot {
  padding: 1rem .25rem .25rem;
  border-top: 1px solid rgba(255,255,255,.18);
  margin-top: 1rem;
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,.75);
  font-size: .9rem;
}

/* =========================
   Responsive
   ========================= */

@media (min-width: 760px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .menu-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .site-header {
    left: 0;
    transform: none;
    max-width: none;
    padding: .85rem 1rem;
  }

  #siteHeader { height: 90px; }

  .site-logo {
    height: 72px;
    max-width: 280px;
  }

  .weather {
    font-size: .9rem;
    padding: .42rem .65rem;
  }

  .site-menu {
    right: 1rem;
    width: min(340px, calc(100vw - 2rem));
  }

  .hero { height: calc(100vh - 90px - 1rem); }
}

@media (max-width: 640px) {
  .site-header { gap: .5rem; }
  .site-header-actions { gap: .45rem; }

  #siteHeader { height: 76px; }

  .site-logo {
    height: 58px;
    max-width: 220px;
  }

  .weather {
    min-height: 38px;
    padding: .4rem .6rem;
    font-size: .85rem;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
  }

  .site-menu { width: calc(100vw - 2rem); }
  .cta-row { grid-template-columns: 1fr; }

  .hero { height: calc(100vh - 76px - 1rem); }
}

@media (max-width: 420px) {
  .footer-row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  #siteHeader { height: 68px; }

  .site-logo {
    height: 50px;
    max-width: 190px;
  }

  .hero { height: calc(100vh - 68px - 1rem); }
}
