/* Kevin & Mandy — styled after ontarioparks.ca */

:root {
  --nav-bg: #212529;        /* dark top bar */
  --footer-bg: #1f3231;     /* deep forest green footer */
  --card-overlay: rgba(0, 15, 3, 0.9);
  --op-blue: #0475bc;       /* "Make a Reservation" button */
  --op-blue-dark: #035a91;
  --op-green: #00834e;
  --text: #212529;
  --heading: #4c4e5e;
  --page-bg: #fafafa;
  --tab-w: 90px;
  --tab-h: 130px;
}

* { box-sizing: border-box; }

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

body {
  font-family: "Open Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: var(--page-bg);
  color: var(--text);
  line-height: 1.5;
  border-top: 2px solid #ddd;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

img { max-width: 100%; display: block; }

a { color: var(--op-blue); }

h1, h2, h3, h4, h5 { font-weight: 600; }

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  color: #fff;
}
.skip-link:focus { left: 8px; top: 8px; z-index: 1000; }

/* ---------- Top navigation ---------- */

.navbar {
  background-color: var(--nav-bg);
  border-bottom: 2px solid #fff;
  padding: 14px 0;
  position: relative;
  z-index: 50;
}

.navbar .container {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 40px;
}

/* White tab with the logo, hanging below the bar */
.brand-tab {
  position: absolute;
  top: -16px;
  left: 16px;
  width: var(--tab-w);
  height: var(--tab-h);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  z-index: 60;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.brand-tab img { width: 100%; height: 100%; object-fit: contain; }

.nav-inner {
  margin-left: calc(var(--tab-w) + 20px);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-links {
  list-style: none;
  margin: 0 auto 0 0;
  padding: 0;
  display: flex;
  gap: 4px;
}

.nav-links a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  font-size: 1.05em;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a:focus { text-decoration: underline; }
.nav-links a[aria-current="page"] { border-bottom-color: #d3d3d3; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.75);
  margin: 5px 0;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: #000;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: auto;
  min-height: 380px;
  max-height: 85vh;
  object-fit: cover;
}

.hero-caption {
  position: absolute;
  left: 25px;
  bottom: 14px;
  color: #fff;
  font-size: 1.1em;
  text-shadow: 2px 2px 0 #000;
}
.hero-caption span {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 3px 6px;
  border-radius: 5px;
}

.hero-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22%;
  text-align: center;
  padding: 0 16px;
}

.hero-text h1 {
  color: #fff;
  font-weight: 700;
  font-size: 2em;
  line-height: 2em;
  text-shadow: 2px 2px #000;
  margin: 0 0 12px;
}
.hero-text h1 em {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  padding: 5px 10px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.btn-op-blue {
  display: inline-block;
  background-color: var(--op-blue);
  color: #fff;
  font-weight: 700;
  font-size: 1.1em;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.15s ease-in-out;
}
.btn-op-blue:hover,
.btn-op-blue:focus { background-color: var(--op-blue-dark); color: #fff; }

/* ---------- Key details strip ---------- */

.details {
  background: var(--op-green);
  color: #fff;
  padding: 18px 0;
}
.details .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 48px;
  font-size: 1.15em;
}
.details strong { font-weight: 700; }

/* ---------- Feature cards ---------- */

.intro {
  margin: 48px auto 0;
  max-width: 760px;
  text-align: center;
}
.intro h2 {
  font-size: 1.7em;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 12px;
}
.intro p { margin: 0; font-size: 1.1em; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.card {
  display: block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  background: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover img,
.card:focus img { transform: scale(1.04); }

.card-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 75px;
  background-color: var(--card-overlay);
  color: #fff;
  font-size: 1.1em;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-label .arrow {
  flex: none;
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.9em;
}

/* Fade-up on scroll, like the original's promo panels */
.fadeup {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}
.fadeup.visible { opacity: 1; transform: none; }

/* ---------- Under construction ---------- */

.page-header {
  padding: 88px 0 8px;
}
.page-header h1 {
  font-size: 1.7em;
  font-weight: 700;
  color: var(--heading);
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #ddd;
}

.notice {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: stretch;
  margin: 32px 0 0;
}
.notice > img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.alert {
  border-left: 6px solid #e7b82d;
  background: #fff8e1;
  padding: 18px 22px;
  border-radius: 4px;
}
.alert h2 { margin: 0 0 8px; font-size: 1.3em; color: var(--text); }
.alert p { margin: 0 0 16px; }

/* ---------- Footer ---------- */

footer {
  margin-top: 64px;
  color: #fff;
}
footer a { color: #fff; }

.footer-top {
  background-color: var(--footer-bg);
  padding: 1em 0 35px;
}
.footer-top h2 { font-size: 2em; font-weight: 700; margin: 0.5em 0 0.75em; }

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 4px; }
.footer-cols p { margin: 0 0 4px; }

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
  .nav-toggle { display: block; margin-left: auto; }
  .nav-inner { flex-wrap: wrap; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin: 12px 0 0;
  }
  .navbar.open .nav-links { display: flex; }
  .cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  :root { --tab-w: 64px; --tab-h: 92px; }
  .brand-tab { padding: 5px; }
  .hero img { min-height: 420px; }
  .hero-text { bottom: 18%; }
  .hero-text h1 { font-size: 1.4em; line-height: 1.9em; }
  .hero-caption { left: 12px; font-size: 0.9em; }
  .cards { grid-template-columns: 1fr; }
  .notice { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .details .container { flex-direction: column; align-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .fadeup { opacity: 1; transform: none; transition: none; }
  .card img { transition: none; }
}

/* Notice at the top, cat at the bottom, lined up with the photo */
.side { display: flex; flex-direction: column; justify-content: space-between; }

/* Cat photo under the construction notice */
.dev { margin: 24px 0 0; text-align: center; }
.dev img {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.dev figcaption { margin: 10px 0 0; font-style: italic; color: var(--heading); }

/* ---------- Venue info page (park page layout) ---------- */

.park-banner { background: #000; }
.park-banner img {
  width: 100%;
  height: 410px;
  object-fit: cover;
}

.park-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 48px;
  margin-top: 24px;
}
.park-title h1 {
  color: var(--op-blue);
  font-size: 2em;
  font-weight: 700;
  margin: 0;
}

.btn-park-dark {
  display: inline-block;
  background: #02578f;
  color: #fff;
  font-size: 1.05em;
  letter-spacing: 0.03em;
  padding: 6px 14px;
  border-radius: 4px;
  text-decoration: none;
}
.btn-park-dark:hover,
.btn-park-dark:focus { background: #014470; color: #fff; }

.park-tabs { margin: 24px 0 40px; }
.park-tabs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.park-tabs a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #02578f;
  text-decoration: none;
  font-size: 1.05em;
  padding: 8px 12px;
  margin: 0 2px;
  border-bottom: 3px solid #e6e6e6;
}
.park-tabs a:hover { color: var(--op-blue); border-bottom-color: var(--op-green); }
.park-tabs a[aria-selected="true"] { color: var(--text); border-bottom-color: var(--op-green); }

.park-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 48px;
}
.park-cols h2 { font-size: 1.5em; margin: 0 0 16px; color: var(--text); }

.schedule {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.1em;
}
.schedule th {
  text-align: left;
  font-weight: 400;
  padding: 8px 12px;
  border-bottom: 2px solid #212529;
}
.schedule td {
  padding: 14px 12px;
  border-bottom: 1px solid #ccc;
  vertical-align: middle;
}
.schedule .usage { white-space: nowrap; }
.schedule .usage img { display: inline-block; margin-right: 18px; vertical-align: middle; }
.schedule .usage img:last-child { margin-right: 0; }

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.info-grid p { margin: 0 0 6px; }
.info-grid .addr { line-height: 1.6; }

.coming-soon { max-width: 640px; }
.coming-soon p { margin: 0; }

@media (max-width: 900px) {
  .park-cols { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .park-banner img { height: 220px; }
  .park-title h1 { font-size: 1.6em; }
  .park-tabs a { padding: 8px 6px; font-size: 1em; }
  .schedule { font-size: 1em; }
  .schedule th, .schedule td { padding-left: 6px; padding-right: 6px; }
  .schedule .usage img { margin-right: 6px; }
  .info-grid { grid-template-columns: 1fr; }
}

/* Language switch, top right of the nav bar */
.nav-lang {
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  font-size: 1.05em;
}
.nav-lang:hover,
.nav-lang:focus { text-decoration: underline; color: #fff; }

/* French page message */
.zut {
  max-width: 720px;
  margin: 48px auto 0;
  text-align: center;
  font-size: 1.15em;
}
.zut h1 {
  color: var(--op-blue);
  font-size: 2em;
  font-weight: 700;
  margin: 0 0 16px;
}
.zut p { margin: 0 0 16px; }
.zut .sign { font-style: italic; margin-bottom: 28px; }

@media (max-width: 991px) {
  .nav-lang { display: none; width: 100%; }
  .navbar.open .nav-lang { display: block; }
}

/* Free-text reminders under General Information */
.info-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #ccc;
  font-size: 1.05em;
}
.info-note p { margin: 0 0 8px; }

/* Accommodations tab: tables stacked in one column */
.park-stack { max-width: 720px; }
.park-stack .schedule { margin-bottom: 56px; }
.park-stack .schedule th:first-child { width: 42%; }
.park-stack .schedule th:nth-child(2) { width: 18%; }

/* Maps tab */
.map-wrap {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  background: #e6e6e6;
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 480px;
  border: 0;
}
.map-caption { margin: 14px 0 0; font-size: 1.05em; }

@media (max-width: 700px) {
  .map-wrap iframe { height: 360px; }
}

/* ---------- Save the Date questionnaire ---------- */

.std { max-width: 760px; }
.std-card {
  background: #fff;
  border: 1px solid #e0e2db;
  border-radius: 10px;
  padding: 28px 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.std-card h2 { font-size: 1.5em; margin: 0 0 16px; color: var(--text); outline: none; }
.std-card p { margin: 0 0 14px; }

.std-name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.std-name-row-3 { grid-template-columns: 1fr 1fr 1.4fr; }
.std-field { margin-bottom: 14px; }
.std-field label { display: block; font-weight: 600; margin-bottom: 4px; }
.std-field input {
  width: 100%;
  font: inherit;
  padding: 9px 12px;
  border: 1px solid #b9bdc2;
  border-radius: 6px;
  background: #fff;
}
.std-field input:focus { outline: 2px solid var(--op-blue); outline-offset: -1px; border-color: var(--op-blue); }

.std-choice { border: 0; padding: 0; margin: 22px 0 18px; }
.std-choice legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.std-options { display: flex; flex-wrap: wrap; gap: 10px; }
.std-options label { position: relative; cursor: pointer; }
.std-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.std-options span {
  display: inline-block;
  min-width: 96px;
  text-align: center;
  padding: 8px 18px;
  border: 2px solid #b9bdc2;
  border-radius: 6px;
  background: #fff;
  font-weight: 600;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.std-options label:hover span { border-color: var(--op-blue); }
.std-options input:focus-visible + span { outline: 3px solid rgba(4, 117, 188, 0.4); outline-offset: 2px; }
.std-options input:checked + span { background: var(--op-blue); border-color: var(--op-blue); color: #fff; }

.std-actions { display: flex; gap: 12px; align-items: center; margin-top: 22px; }
.std-actions .btn-op-blue { border: 0; cursor: pointer; font-family: inherit; }
.std-back {
  background: none;
  border: 2px solid #b9bdc2;
  border-radius: 6px;
  padding: 7px 16px;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.std-back:hover { border-color: var(--text); }
button:disabled { opacity: 0.6; cursor: wait; }

.std-error {
  color: #a3221b;
  background: #fdecea;
  border-left: 4px solid #a3221b;
  padding: 8px 12px;
  border-radius: 4px;
  margin: 12px 0 0;
}

.std-result:not(:empty) { margin-top: 24px; }
.std-notfound,
.std-suggest {
  border-left: 6px solid #e7b82d;
  background: #fff8e1;
  padding: 18px 22px;
  border-radius: 4px;
}
.std-notfound p:last-child,
.std-suggest p:last-child { margin-bottom: 0; }
.std-sign { font-style: italic; }
.std-small { font-size: 0.92em; }
.std-dym { font-weight: 700; }
.std-suggest-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.std-suggest-list .btn-op-blue { border: 0; cursor: pointer; font-family: inherit; }

.std-note {
  background: #e8f5ee;
  border-left: 4px solid var(--op-green);
  padding: 10px 14px;
  border-radius: 4px;
}
.std-q { font-weight: 600; }
.std-email {
  font-size: 1.15em;
  font-weight: 700;
  color: var(--op-blue);
  word-break: break-all;
}

.std-plusone + .std-plusone { border-top: 1px solid #e0e2db; margin-top: 8px; }
.std-plusone-details { margin-top: -4px; }

.std-summary { list-style: none; margin: 0 0 18px; padding: 0; border-top: 2px solid #212529; }
.std-summary li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 12px 4px;
  border-bottom: 1px solid #ccc;
}
.std-summary .is-self .std-person { font-weight: 700; }
.std-person { font-size: 1.1em; }
.std-tag {
  font-size: 0.8em;
  background: #e6eef5;
  color: #02578f;
  padding: 1px 8px;
  border-radius: 10px;
}
.std-person-email { color: #555; margin-left: auto; word-break: break-all; }

.std-answers { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
.std-answers dt { font-weight: 600; }
.std-answers dd { margin: 0; }

.std-edit-person { border: 1px solid #e0e2db; border-radius: 8px; padding: 10px 16px 2px; margin: 0 0 14px; }
.std-edit-person legend { font-weight: 700; padding: 0 6px; }

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

@media (max-width: 700px) {
  .std-card { padding: 20px 16px; }
  .std-name-row,
  .std-name-row-3 { grid-template-columns: 1fr; gap: 0; }
  .std-options span { min-width: 80px; padding: 8px 12px; }
  .std-person-email { margin-left: 0; flex-basis: 100%; }
}
