:root {
  --navy: #0a2540;
  --navy-2: #0f3155;
  --mist: #f6f9fc;
  --slate: #425466;
  --line: #e6ebf1;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --white: #ffffff;
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: "Barlow", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
h4 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap--narrow {
  max-width: 820px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 12px;
}
.eyebrow--light {
  color: #9ec2ff;
}
.section {
  padding: 88px 0;
}
.section--alt {
  background: var(--mist);
}
.section__title {
  font-size: clamp(28px, 3.4vw, 42px);
  margin-bottom: 18px;
}
.lede {
  font-size: 18px;
  max-width: 760px;
  margin-bottom: 32px;
}
.footnote {
  margin-top: 24px;
  font-size: 14px;
  color: #6b7c93;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
  cursor: pointer;
}
.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.28);
}
.btn--accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}
.btn--ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}
.btn--sm {
  padding: 10px 20px;
  font-size: 15px;
}

/* Top disclaimer (homepage only) — static strip, scrolls away with the page */
.top-disclaimer {
  background: #f8fafc;
  border-bottom: 1px solid #eef2f7;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.45;
  color: #8494a7;
  padding: 4px 14px;
}
.top-disclaimer__short {
  display: none;
}
@media (max-width: 640px) {
  .top-disclaimer {
    font-size: 9.5px;
    padding: 3px 10px;
  }
  .top-disclaimer__full {
    display: none;
  }
  .top-disclaimer__short {
    display: inline;
  }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 82px;
}
/* ===== AnglerPermit Canada lockup (real brand asset + CANADA line) ===== */
.ap-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-decoration: none;
}
.ap-logo picture {
  display: block;
  line-height: 0;
}
.ap-logo__img {
  display: block;
  height: 48px; /* 960×249 asset — width resolves to ~185px */
  width: auto;
}
.ap-logo__canada {
  display: flex;
  align-items: center;
  gap: 5px;
}
.ap-logo__canada svg {
  width: 13px;
  height: 13px;
}
.ap-logo__canada span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #0a2540;
}
/* dark variant — any `.on-dark` ancestor (navy surfaces, e.g. the footer)
   uses the white logo asset; only the CANADA text needs recolouring here */
.on-dark .ap-logo__canada span {
  color: #ffffff;
}
@media (max-width: 640px) {
  .ap-logo__img {
    height: 38px;
  }
  .ap-logo__canada svg {
    width: 11px;
    height: 11px;
  }
  .ap-logo__canada span {
    font-size: 9.5px;
  }
}
.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.nav a:hover {
  color: var(--accent);
}
.burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 4px 0;
}
.mobilenav {
  display: none;
  flex-direction: column;
  padding: 8px 24px 16px;
  border-top: 1px solid var(--line);
  font-weight: 600;
  color: var(--navy);
}
.mobilenav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__img,
.cta__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    105deg,
    rgba(10, 37, 64, 0.94) 0%,
    rgba(10, 37, 64, 0.82) 45%,
    rgba(10, 37, 64, 0.5) 100%
  );
}
.hero__inner {
  padding-top: 96px;
  padding-bottom: 96px;
  max-width: 900px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(34px, 5.2vw, 60px);
  max-width: 16ch;
}
.hero__sub {
  color: #d5e2f0;
  font-size: 18px;
  margin-top: 20px;
  max-width: 62ch;
}
.quick {
  margin-top: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 18px;
  max-width: 640px;
  backdrop-filter: blur(6px);
}
.quick__label {
  display: block;
  color: #c7d6e6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.quick__row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.quick__select {
  flex: 1 1 240px;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-size: 16px;
  font-family: inherit;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.chips li {
  font-size: 13px;
  color: #dbe7f3;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 6px 14px;
}

/* Photo credit */
.photocred {
  font-size: 11px;
  color: #7b8ca0;
  letter-spacing: 0.02em;
}
.photocred--hero {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.62);
}

/* Stats band */
.band {
  background: var(--navy);
  padding: 44px 0;
}
.band__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.band__grid strong {
  display: block;
  color: #fff;
  font-size: clamp(30px, 4.5vw, 40px);
  font-weight: 800;
  line-height: 1;
}
.band__grid span {
  display: block;
  margin-top: 8px;
  color: #a9c0d6;
  font-size: 14px;
}

/* Grid + cards */
.grid {
  display: grid;
  gap: 24px;
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 2px 10px rgba(10, 37, 64, 0.04);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(10, 37, 64, 0.1);
}
.card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.card--highlight {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.12);
  position: relative;
}
.card--highlight .btn {
  margin-top: 22px;
}
.tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  background: rgba(37, 99, 235, 0.09);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
}

/* Provinces */
.prov {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.prov:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 18px 40px rgba(10, 37, 64, 0.1);
}
.prov h3 {
  font-size: 20px;
}
.prov__count {
  font-size: 14px;
  margin-top: 6px;
}
.prov__price {
  margin-top: 10px;
  color: var(--navy);
  font-weight: 700;
  font-size: 18px;
}
.prov__link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* Split */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.split__media {
  margin: 0;
  position: sticky;
  top: 100px;
}
.split__media img {
  width: 100%;
  aspect-ratio: 3 / 2; /* matches the source image (1200x800) — reserves space, no CLS */
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(10, 37, 64, 0.14);
}
.split__media figcaption {
  margin-top: 8px;
}
.essentials {
  display: grid;
  gap: 26px;
  margin-top: 8px;
}
.essentials h3 {
  font-size: 19px;
  margin-bottom: 6px;
}

/* Tiles */
.tile {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.tile strong {
  display: block;
  color: var(--navy);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}
.tile span {
  display: block;
  margin-top: 8px;
  font-size: 15px;
}

/* Seasons */
.seasons figure {
  margin: 0;
}
.seasons img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.3s ease;
}
.seasons figure:hover img {
  transform: translateY(-4px);
}
.seasons figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 10px;
}
.seasons__cap {
  color: var(--navy);
  font-weight: 700;
}

/* FAQ */
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  margin-top: 12px;
}
.faq a {
  color: var(--accent);
  text-decoration: underline;
}

/* Final CTA */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
}
.cta__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 37, 64, 0.92), rgba(10, 37, 64, 0.88));
}
.cta__img {
  opacity: 0.45;
}
.cta__inner {
  padding: 92px 24px;
  text-align: center;
}
.cta h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
}
.cta p {
  color: #cfe0f0;
  margin-top: 14px;
}
.cta__btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* Footer */
.footer {
  background: var(--navy);
  color: #b9cbdd;
  padding: 64px 0 40px;
  font-size: 15px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer li {
  margin-bottom: 8px;
}
.footer a:hover {
  color: #fff;
}
.footer__one {
  margin-top: 14px;
  max-width: 44ch;
}
.footer__legal {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  color: #91a7bd;
  display: grid;
  gap: 12px;
}

/* Sticky mobile CTA */
.stickycta {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 15px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(10, 37, 64, 0.3);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
/* Reduced motion — disable transitions, animations and scroll-reveals */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card:hover,
  .prov:hover,
  .btn--accent:hover,
  .seasons figure:hover img {
    transform: none;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .split__media {
    position: static;
  }
  .nav,
  .header__cta {
    display: none;
  }
  .burger {
    display: block;
  }
  .mobilenav {
    display: flex;
  }
  .mobilenav[hidden] {
    display: none;
  }
}
@media (max-width: 760px) {
  .section {
    padding: 60px 0;
  }
  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }
  .band__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero {
    min-height: 0;
  }
  .hero__inner {
    padding-top: 64px;
    padding-bottom: 120px;
  }
  .footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
  }
  .footer__grid a {
    overflow-wrap: anywhere; /* long strings (e.g. the support email) never force sideways scroll */
  }
  /* comfortable tap targets for footer links on touch screens */
  .footer__grid li {
    margin-bottom: 0;
  }
  .footer__grid li a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 4px 0;
  }
  .stickycta {
    display: block;
  }
  /* keep the fixed bottom CTA from covering footer content */
  .footer {
    padding-bottom: 112px;
  }
}
/* Province cards (and stat tiles): 2 columns until 640px, then a single column */
@media (max-width: 640px) {
  .grid--4 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ── Legal / content pages ─────────────────────────────────────────────── */
.legal__head {
  background: var(--navy);
  padding: 64px 0 56px;
}
.legal__head h1 {
  color: #fff;
  font-size: clamp(32px, 4.4vw, 52px);
}
.legal__dates {
  color: #a9c0d6;
  font-size: 14px;
  margin-top: 14px;
}
.legal__body {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  padding-top: 64px;
  padding-bottom: 88px;
  align-items: start;
}
.legal__toc {
  position: sticky;
  top: 100px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
  padding: 22px;
}
.legal__toc h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
}
.legal__toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}
.legal__toc li {
  margin-bottom: 8px;
}
.legal__toc a {
  font-size: 14px;
  line-height: 1.4;
  display: block;
}
.legal__toc a:hover {
  color: var(--accent);
}
.prose {
  max-width: 72ch;
}
.legal__section {
  margin-bottom: 40px;
  scroll-margin-top: 110px;
}
.legal__section h2 {
  font-size: 24px;
  margin-bottom: 12px;
}
.legal__section p + p {
  margin-top: 12px;
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
}
.bullets {
  list-style: disc;
  padding-left: 20px;
  margin-top: 10px;
}
.bullets li {
  margin-bottom: 8px;
}
.callout {
  background: var(--mist);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 18px 20px;
  color: var(--navy);
  font-weight: 600;
}
.portals {
  list-style: none;
  padding: 0;
  margin-top: 12px;
}
.portals li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.portals strong {
  color: var(--navy);
}
.addr {
  margin-top: 10px;
  font-size: 15px;
}
.contact__email {
  font-size: 22px;
  font-weight: 700;
  margin: 8px 0 14px;
}
.contact__email a {
  color: var(--accent);
}
.card h2 {
  font-size: 22px;
  margin-bottom: 10px;
}
.card p + p {
  margin-top: 12px;
}
@media (max-width: 1024px) {
  .legal__body {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 40px;
  }
  .legal__toc {
    position: static;
  }
}

/* ── New homepage sections: "Know the rules" band + "Iconic fisheries" cards ── */
/* Official-information band (navy, mirrors .band) with three rule cards */
.band--rules {
  padding: 88px 0;
}
.section__title--light {
  color: #fff;
}
.band--rules .grid {
  margin-top: 30px;
}
.rulecard {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.rulecard h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 10px;
}
.rulecard p {
  color: #c2d4e6;
  font-size: 15.5px;
  flex: 1 1 auto;
}
.rulecard__link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #9ec2ff;
}
.rulecard__link:hover {
  color: #fff;
}
.rulecard__sources {
  margin-top: 26px;
  font-size: 12.5px;
  color: #7d94ab;
}

/* Iconic Canadian fisheries — photo cards */
.fishery {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.fishery:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(10, 37, 64, 0.1);
}
.fishery > img {
  width: 100%;
  height: auto; /* neutralize the height attribute so aspect-ratio wins */
  aspect-ratio: 3 / 2; /* matches the 1200×800 sources — space reserved, no CLS */
  object-fit: cover;
}
.fishery__body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.fishery__body h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.fishery__body p {
  font-size: 15.5px;
  flex: 1 1 auto;
}
.fishery__cta {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.fishery__cta:hover {
  color: var(--accent-dark);
}
.fishery__body .photocred {
  display: block;
  margin-top: 10px;
}
@media (max-width: 760px) {
  /* .grid--3 already collapses to one column here (see rule above) */
  .band--rules {
    padding: 60px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fishery:hover {
    transform: none;
  }
}
