/* Bridger the Beaver — mascot of FordFinds and 33HQsi. */

:root {
  --navy: #07122A;
  --navy-2: #0c1b3d;
  --ff-navy: #102B52;
  --gold: #D4AF37;
  --gold-lt: #E8CD6E;
  --green: #217A30;
  --green-wash: #f1f8ee;
  --white: #ffffff;
  --ink: #12203c;
  --muted: #4a5560;
  --panel: rgba(255, 255, 255, 0.9);
  --radius: 10px;
  --header-h: 3.15rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Lato", "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background-color: var(--navy);
  background-image:
    linear-gradient(180deg, rgba(7, 18, 42, 0.28) 0%, rgba(7, 18, 42, 0.42) 100%),
    url("/assets/christmas-downtown-canton.jpg");
  background-size: cover;
  background-position: center 40%;
  background-attachment: fixed;
  line-height: 1.4;
  padding-top: var(--header-h);
  min-height: 100dvh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ff-navy); }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus {
  left: 0.4rem;
  top: calc(var(--header-h) + 0.3rem);
  z-index: 300;
  background: var(--white);
  color: var(--navy);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0; right: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.65rem;
  min-height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 1px 6px rgba(7, 18, 42, 0.08);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}
.brand img {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.brand-text {
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.wrap {
  max-width: 26rem;
  margin: 0 auto;
  padding: 0.55rem 0.7rem 0.7rem;
}

.panel {
  background: var(--panel);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 0.55rem 0.65rem 0.6rem;
  margin-bottom: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 10px rgba(7, 18, 42, 0.08);
}
.panel h1, .panel h2 {
  font-family: inherit;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
  line-height: 1.2;
}
.panel p { margin: 0 0 0.35rem; }
.panel p:last-child { margin-bottom: 0; }
.lede { color: var(--muted); font-size: 0.78rem; }

/* Video — capped so it stays in the first phone screen */
.video-panel { padding: 0.4rem; }
.video-wrap {
  width: auto;
  height: 248px;
  max-height: 248px;
  max-width: 140px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 16;
}
.video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

/* Calendar — compact month grid */
.cal-intro { margin-bottom: 0.3rem; }
.cal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin: 0 0 0.2rem;
}
.cal-month {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  text-align: center;
  flex: 1;
}
.cal-nav {
  width: 1.7rem;
  height: 1.7rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.cal-nav:hover, .cal-nav:focus-visible {
  background: rgba(7, 18, 42, 0.08);
  outline: none;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}
.cal-dow {
  text-align: center;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 0.08rem 0 0.12rem;
}
.cal-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 1.65rem;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-family: inherit;
  font-size: 0.72rem;
  line-height: 1;
  border-radius: 6px;
  padding: 0.08rem 0 0.12rem;
  cursor: pointer;
}
.cal-day.outside { color: #9aa3ad; cursor: default; }
.cal-day.has-event { font-weight: 700; }
.cal-day .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 2px;
}
.cal-day.selected {
  background: var(--navy);
  color: var(--white);
}
.cal-day.selected .dot { background: var(--gold-lt); }
.cal-day.today:not(.selected) {
  box-shadow: inset 0 0 0 1.5px var(--gold);
}
.cal-detail {
  margin: 0.3rem 0 0;
  padding: 0.35rem 0.45rem;
  background: rgba(244, 247, 251, 0.95);
  border-radius: 7px;
  border: 1px dashed rgba(18, 58, 112, 0.25);
  font-size: 0.75rem;
  color: var(--ink);
  min-height: 2.1rem;
}
.cal-detail p { margin: 0 0 0.15rem; }
.cal-detail p:last-child { margin-bottom: 0; }
.cal-detail .when { font-weight: 700; color: var(--navy); font-size: 0.75rem; }
.cal-detail .empty { color: var(--muted); }

.coming-up { margin: 0.4rem 0 0; padding: 0; }
.coming-up h3 {
  margin: 0 0 0.2rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
}
.coming-up ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.coming-up li {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 0.35rem;
  font-size: 0.72rem;
  line-height: 1.25;
  padding: 0.08rem 0;
  border-top: 1px solid rgba(18, 58, 112, 0.1);
  color: var(--ink);
}
.coming-up li:first-of-type { border-top: 0; }
.coming-up time {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.badge {
  display: inline-block;
  margin-right: 0.25rem;
  padding: 0.02rem 0.28rem;
  border-radius: 999px;
  background: #f3e3b0;
  color: #5a3d00;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 0.06em;
}

/* Two small home buttons, side by side */
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}
.action {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: var(--navy);
  background: var(--panel);
  border: 1.5px solid var(--navy);
  border-radius: 8px;
  padding: 0.4rem 0.4rem;
  min-height: 2.7rem;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(7, 18, 42, 0.08);
}
.action:hover, .action:focus-visible {
  background: var(--navy);
  color: var(--white);
  outline: none;
}

.about {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--ink);
}

/* Footer */
.site-footer {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  text-align: center;
  padding: 0.55rem 0.7rem 0.7rem;
  border-top: 2px solid var(--gold);
}
.footer-badge {
  width: 4.4rem;
  height: 4.4rem;
  margin: 0 auto 0.3rem;
  border-radius: 50%;
}
.site-footer p {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 0.9rem;
  margin: 0.3rem 0 0.2rem;
}
.footer-links a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.8rem;
}
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--green);
  text-decoration: underline;
  outline: none;
}
.fineprint { font-size: 0.68rem; color: var(--muted); }

/* Subpage form */
.back {
  display: inline-block;
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  background: var(--panel);
  border-radius: 8px;
  padding: 0.28rem 0.55rem;
}
.back:hover, .back:focus-visible { text-decoration: underline; outline: none; }

form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy);
}
input, textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 0.42rem 0.55rem;
  border: 1px solid rgba(18, 58, 112, 0.22);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
textarea { min-height: 3.2rem; resize: vertical; }
input:focus, textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.form-note {
  margin: 0;
  padding: 0.4rem 0.5rem;
  background: var(--green-wash);
  border-radius: 7px;
  font-size: 0.75rem;
  color: var(--navy);
  font-weight: 500;
}
button[type="submit"] {
  display: inline-block;
  align-self: flex-start;
  padding: 0.5rem 0.85rem;
  border: 0;
  border-radius: 7px;
  background: var(--navy);
  color: var(--white);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 2.3rem;
}
button[type="submit"]:hover, button[type="submit"]:focus-visible {
  background: #0c1b3d;
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
button[type="submit"]:disabled,
button[disabled] {
  background: #9aa5b1;
  cursor: not-allowed;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-thanks {
  margin: 0;
  padding: 0.7rem 0.75rem;
  background: #E8F4EA;
  border: 1px solid #217A30;
  color: #174F20;
  border-radius: 8px;
  font-size: 0.95rem;
}
.form-status { margin: 0.3rem 0 0; font-size: 0.85rem; }
.form-status.err { color: #8a1c1c; }
.privacy {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}
.cal-detail a { font-weight: 650; }
.coming-up a { color: var(--navy); font-weight: 650; text-decoration: none; }
.coming-up a:hover, .coming-up a:focus-visible { text-decoration: underline; }


body.subpage { padding-top: var(--header-h); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.action.meet {
  display: flex;
  width: 100%;
  margin-bottom: 0.45rem;
}
.story h1 { margin-bottom: 0.55rem; }
.story p {
  margin: 0 0 0.7rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink);
}
.story p:last-child { margin-bottom: 0; }

/* Sticky footer: footer stays at the bottom of the window on tall screens */
body {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; width: 100%; box-sizing: border-box; }
body > .site-footer { flex-shrink: 0; margin-top: auto; }

/* Background sits only above the footer, bottom-aligned, so the beaver,
   Alexa and the dog (feet included) are never hidden behind the footer */
body { background-image: none; padding-top: 0; }
body > main.wrap {
  max-width: none;
  margin: 0;
  padding-top: calc(var(--header-h) + 0.55rem);
  padding-left: max(0.7rem, calc((100% - 26rem) / 2 + 0.7rem));
  padding-right: max(0.7rem, calc((100% - 26rem) / 2 + 0.7rem));
  background-image:
    linear-gradient(180deg, rgba(7, 18, 42, 0.28) 0%, rgba(7, 18, 42, 0.42) 100%),
    url("/assets/christmas-downtown-canton.jpg");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

/* Boxed calendar: every date is its own tappable box */
.cal-grid { gap: 3px; }
.cal-day {
  border: 1px solid #c9d1dc;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 5px;
  min-height: 1.9rem;
}
.cal-day:hover, .cal-day:focus-visible { border-color: var(--gold); background: #fff8e6; }
.cal-day.outside { background: rgba(255, 255, 255, 0.45); border-color: #e1e5ea; }
.cal-day.has-event { border-color: var(--gold); }
.cal-day.today:not(.selected) { box-shadow: inset 0 0 0 2px var(--gold); }
.cal-day.selected { border-color: var(--navy); }
