/* Fallsky Weather — standalone rebuild */

:root {
  --brand: #1f6fb2;
  --brand-dark: #17557f;
  --accent: #e8a33d;
  --ink: #333;
  --muted-bg: #eee;
  --line: #ddd;
  --white: #fff;
  --topbar-bg: #17557f;
  --header-h: 90px;
  --maxw: 1320px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Oxygen", -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--white);
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: "Anton", Impact, sans-serif; font-weight: 400; letter-spacing: .5px; line-height: 1.1; }
h2 { font-size: 2rem; margin: 0 0 .5em; }
h3 { font-size: 1.35rem; margin: 0 0 .5em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--topbar-bg); color: var(--white); font-size: .9rem; }
.topbar__inner { display: flex; justify-content: flex-end; }
.topbar__contact { list-style: none; display: flex; gap: 24px; margin: 0; padding: 8px 0; flex-wrap: wrap; }
.topbar__contact a { color: var(--white); }
.topbar .ico { opacity: .85; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 115;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 20px; }
.logo img { display: block; }

.menu { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.menu__item { position: relative; }
.menu__item > a,
.menu__heading {
  display: block; padding: 10px 14px; color: var(--ink); font-weight: 700;
  cursor: pointer; white-space: nowrap; background: none; border: 0; font: inherit;
}
.menu__item > a:hover,
.menu__heading:hover { color: var(--brand); text-decoration: none; }
.menu__item--has-children > .menu__heading::after { content: " \25BE"; font-size: .7em; opacity: .6; }

.submenu {
  list-style: none; margin: 0; padding: 8px 0;
  position: absolute; right: 0; top: 100%; min-width: 240px;
  background: var(--white); box-shadow: 0 8px 24px rgba(0,0,0,.15);
  border-radius: 4px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.menu__item--has-children:hover > .submenu,
.menu__item--has-children:focus-within > .submenu,
.submenu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 8px 18px; color: var(--ink); font-size: .95rem; }
.submenu a:hover { background: var(--muted-bg); color: var(--brand); text-decoration: none; }

/* hamburger */
.nav-toggle, .nav-close { display: none; }
.nav-toggle {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px; padding: 0;
}
.nav-toggle span { display: block; height: 3px; width: 26px; background: var(--ink); border-radius: 2px; }

.nav-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 110;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 520px; overflow: hidden; background: #000; }
.hero__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity .8s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  color: var(--white); text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
.hero__memorial { font-style: italic; margin: 0 0 .5rem; max-width: 640px; font-size: 1.1rem; }
.hero__title { font-size: clamp(2.5rem, 7vw, 5rem); margin: 0; color: var(--white); }
.hero__tagline { font-size: 1.3rem; margin: .4rem 0 0; }
.hero__dots { position: absolute; left: 20px; bottom: 22px; z-index: 3; display: flex; gap: 10px; }
.hero__dots button {
  width: 34px; height: 4px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.5); border-radius: 2px;
}
.hero__dots button.is-active { background: var(--white); }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section--muted { background: var(--muted-bg); }
.section__title { text-align: center; margin-bottom: 1.2rem; }

/* split (two-column) rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.split--wide-left { grid-template-columns: 2fr 1fr; }
.split--wide-right { grid-template-columns: 1fr 2fr; }
.split__aside { text-align: center; }

.small { font-size: .8rem; opacity: .8; }

/* card grids */
.card-grid { display: grid; gap: 24px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { text-align: center; margin: 0; }
.card img { margin: 0 auto; border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.card--plain img { box-shadow: none; }

.widget-cell { min-height: 60px; }

/* embeds */
.embed { width: 100%; border: 0; display: block; }
.embed--mosaic { height: 480px; }
.embed--radar { height: 550px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--brand); color: var(--white);
  padding: 12px 22px; border-radius: 40px; font-weight: 700; border: 0; cursor: pointer;
  transition: background .18s ease;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; color: var(--white); }
.btn--block { display: block; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: #dfe9f2; padding: 34px 0; text-align: center; font-size: .92rem; }
.site-footer a { color: var(--white); text-decoration: underline; }
.site-footer p { margin: .5rem 0; }

/* ---------- Prose / About page ---------- */
.prose { max-width: 900px; }
.prose__title { font-size: 2.6rem; margin: 0 0 .4rem; }
.prose__rule { border: 0; border-top: 1px solid var(--line); margin: 0 0 1.6rem; }
.prose__subhead { margin-top: 1.6rem; }
.prose p { margin: 0 0 1.2rem; }
.prose__figure {
  float: right; width: 360px; max-width: 45%;
  margin: 0 0 1rem 1.6rem; border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
@media (max-width: 600px) {
  .prose__figure { float: none; width: 100%; max-width: 100%; margin: 0 0 1.2rem; }
  .prose__title { font-size: 2rem; }
}

/* scroll-up */
.scroll-up {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brand); color: var(--white); font-size: 1.3rem; line-height: 1;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s;
}
.scroll-up.is-visible { opacity: 1; visibility: visible; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  /* off-canvas menu */
  .nav-toggle { display: flex; }
  .nav-close {
    display: block; position: absolute; top: 10px; right: 14px;
    border: 0; background: none; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--ink);
  }
  .main-nav {
    position: fixed; top: 0; right: 0; z-index: 120;
    width: 300px; max-width: 85vw; height: 100vh; overflow-y: auto;
    background: var(--white); box-shadow: -4px 0 24px rgba(0,0,0,.2);
    transform: translateX(100%); transition: transform .25s ease;
    padding: 60px 0 24px;
  }
  .main-nav.is-open { transform: translateX(0); }
  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu__item { border-bottom: 1px solid var(--line); }
  .menu__item > a, .menu__heading { padding: 14px 20px; width: 100%; text-align: left; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; min-width: 0; padding: 0; border-radius: 0;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
    background: #f7f7f7;
  }
  .submenu.is-open { max-height: 640px; }
  .menu__item--has-children:hover > .submenu { max-height: 0; } /* hover disabled on mobile */
  .menu__item--has-children:hover > .submenu.is-open { max-height: 640px; }
}

@media (max-width: 767px) {
  .split, .split--wide-left, .split--wide-right { grid-template-columns: 1fr; }
  .card-grid--3, .card-grid--4 { grid-template-columns: 1fr; }
  .hero { height: 440px; }
}
