/* BookTours.ca – styles. Palette and typographic rhythm follow the familiar Canadian
   government web look (navy, slate menu bar, red accent bar), without using any official marks. */

@font-face { font-family: Lato; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/lato-700.woff2) format('woff2'); }
@font-face { font-family: 'Noto Sans'; font-weight: 400 700; font-style: normal; font-display: swap; src: url(/fonts/noto-sans.woff2) format('woff2'); }

:root {
  --navy: #26374a;
  --slate: #335075;
  --link: #284162;
  --link-hover: #0535d2;
  --link-visited: #7834bc;
  --red: #af3c43;
  --text: #333;
  --muted: #5a6470;
  --border: #cfd4da;
  --bg-alt: #f1f2f3;
  --bg-note: #f8f8f8;
  --focus: #303fc2;
  --error: #d3080c;
  --ok: #278400;
  --radius: 4px;
  --font-body: 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-head: Lato, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 1.0625rem/1.6 var(--font-body); color: var(--text); background: #fff; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--link); text-decoration: underline; text-underline-offset: .14em; }
a:visited { color: var(--link-visited); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.small { font-size: .875rem; }
.mt { margin-top: 2rem; }
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48em) { .wrap { padding: 0 1.5rem; } }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin-top: 1.6em; }
h3 { font-size: 1.2rem; }
@media (min-width: 48em) { h1 { font-size: 2.5rem; } h2 { font-size: 1.75rem; } }
p, ul, ol { margin: 0 0 1em; }

.skip-link { position: absolute; left: -999px; top: 0; background: #fff; color: var(--navy); padding: .75rem 1rem; z-index: 100; border: 3px solid var(--focus); }
.skip-link:focus { left: .5rem; top: .5rem; }

/* Header */
.site-header { background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .9rem; padding-bottom: .9rem; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--navy); }
.logo:visited, .logo:hover { color: var(--navy); }
.logo-leaf { width: 2rem; height: 2rem; color: var(--red); flex: none; }
.logo-text { font: 700 1.75rem/1 var(--font-head); letter-spacing: -.01em; }
.logo-ca { color: var(--red); }
.header-contact { font-size: .95rem; color: var(--muted); display: none; }
@media (min-width: 40em) { .header-contact { display: block; } }

.nav-bar { background: var(--slate); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; position: relative; }
.nav-toggle { background: none; border: 0; color: #fff; font: 700 1rem var(--font-body); padding: .85rem 0; cursor: pointer; }
.nav-toggle::after { content: ' ▾'; }
.nav-toggle[aria-expanded="true"]::after { content: ' ▴'; }
.site-nav { display: none; width: 100%; order: 3; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0 0 .75rem; }
.site-nav a { display: block; color: #fff; text-decoration: none; padding: .6rem 0; border-top: 1px solid rgba(255,255,255,.15); }
.site-nav a:visited { color: #fff; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 2px; }
.btn-nav { background: #fff; color: var(--navy) !important; font-weight: 700; padding: .45rem .9rem; margin: .45rem 0; border-radius: var(--radius); text-decoration: none; }
.btn-nav:hover { background: #e7eaee; }
@media (min-width: 62em) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; width: auto; order: 0; }
  .site-nav ul { display: flex; padding: 0; gap: 1.6rem; }
  .site-nav a { border: 0; padding: 1rem 0; }
}
.nav-bar a:focus-visible, .nav-bar button:focus-visible { outline-color: #fff; }

/* Breadcrumbs */
.breadcrumbs { background: #fff; border-bottom: 1px solid var(--border); font-size: .9rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: .7rem 0; }
.breadcrumbs li + li::before { content: '›'; margin: 0 .55rem; color: var(--muted); }

/* Page header with the red accent bar under h1 */
.page-head { padding: 2rem 0 .5rem; }
.page-head h1::after, .hero h1::after { content: ''; display: block; width: 4.5rem; border-bottom: 6px solid var(--red); margin-top: .5rem; }
.lead { font-size: 1.2rem; max-width: 46rem; color: #444; }

/* Hero */
.hero { background: linear-gradient(180deg, #f4f6f8 0, #e9edf1 100%); border-bottom: 1px solid var(--border); background-size: cover; background-position: center; }
.hero.has-img { color: #fff; }
.hero-inner { padding-top: 2.5rem; padding-bottom: 2.75rem; }
.hero-copy { max-width: 46rem; }
.hero-photo { display: none; }
@media (min-width: 62em) {
  .hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
  .hero-photo { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
  .hero-photo img { width: 100%; height: 22rem; object-fit: cover; }
}
.hero h1 { font-size: 2.25rem; }
@media (min-width: 48em) { .hero h1 { font-size: 3rem; } .hero-inner { padding-top: 3.5rem; padding-bottom: 3.75rem; } }
.finder { display: grid; gap: .9rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; margin-top: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
@media (min-width: 48em) { .finder { grid-template-columns: 1fr 1fr auto; align-items: end; } }

/* Trust strip */
.trust-strip { background: var(--navy); color: #fff; }
.trust-grid { display: grid; gap: 1.25rem; padding-top: 1.75rem; padding-bottom: 1.5rem; }
.trust-grid h2 { color: #fff; font-size: 1.1rem; margin: 0 0 .25rem; }
.trust-grid p { margin: 0; font-size: .95rem; color: #e1e6ec; }
@media (min-width: 48em) { .trust-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }

/* Sections */
.section { padding: 2.5rem 0; }
.section-alt { background: var(--bg-alt); }
.h-bar { margin-top: 0; margin-bottom: 1.25rem; }
.h-bar::after { content: ''; display: block; width: 3.5rem; border-bottom: 5px solid var(--red); margin-top: .4rem; }
.section-cta { margin-top: 1.75rem; }
.narrow-split { display: grid; gap: 2rem; }
@media (min-width: 62em) { .narrow-split { grid-template-columns: 2fr 1fr; align-items: start; } }

/* Buttons */
.btn { display: inline-block; font: 700 1rem/1.2 var(--font-body); padding: .7rem 1.2rem; border-radius: var(--radius); border: 1px solid transparent; text-decoration: none; cursor: pointer; text-align: center; }
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:visited { color: #fff; }
.btn-primary:hover { background: #1b2937; color: #fff; }
.btn-secondary { background: #e1e4e9; color: #333; border-color: #bbb; }
.btn-secondary:visited { color: #333; }
.btn-secondary:hover { background: #cfd4da; color: #111; }
.btn-link { padding-left: .4rem; padding-right: .4rem; background: none; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1.1rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Cards */
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 40em) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.card[hidden] { display: none; }
.card-img { display: block; aspect-ratio: 3 / 2; background: var(--bg-alt); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.img-fallback { width: 100%; height: 100%; aspect-ratio: 3 / 2; display: grid; place-items: center; background: linear-gradient(135deg, #dfe6ee, #c5d1de); color: var(--slate); }
.img-fallback svg { width: 22%; opacity: .55; }
.card-body { padding: 1rem 1.1rem .5rem; flex: 1; }
.card h3 { font-size: 1.15rem; margin: .35rem 0 .5rem; }
.card h3 a { text-decoration: none; color: var(--navy); }
.card h3 a:hover { text-decoration: underline; }
.card p { font-size: .95rem; }
.tag-row { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: #e7eef6; color: var(--navy); padding: .15rem .5rem; border-radius: 2px; }
.tag-alt { background: #f3e7e8; color: #7d2a30; }
.meta { list-style: none; margin: 0 0 .5rem; padding: 0; font-size: .875rem; color: var(--muted); display: grid; gap: .2rem; }
.meta li { display: flex; align-items: center; gap: .4rem; }
.meta svg, .facts svg { width: 1rem; height: 1rem; flex: none; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem 1.1rem 1.1rem; }

/* Destination grid */
.dest-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 40em) { .dest-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .dest-grid { grid-template-columns: repeat(3, 1fr); } }
.dest-grid a { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--border); border-left: 6px solid var(--red); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.dest-grid a:hover { border-color: var(--slate); border-left-color: var(--red); background: #fbfbfc; }
.dest-grid strong { font: 700 1.2rem var(--font-head); color: var(--link); text-decoration: underline; text-underline-offset: .15em; }
.dest-grid .count { font-size: .85rem; font-weight: 700; color: var(--muted); }

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1.25rem; }
.steps > li { counter-increment: step; position: relative; padding-left: 3.25rem; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 700 1.1rem var(--font-head); }
.steps h3, .steps h2 { margin: 0 0 .25rem; font-size: 1.2rem; }
.steps-lg h2 { margin-top: 0; }
.mini-steps { padding-left: 1.2rem; margin: 0; }
.mini-steps li { margin-bottom: .5rem; }

.note-box { background: var(--bg-note); border: 1px solid var(--border); border-left: 6px solid var(--slate); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.25rem; }
.note-box h3 { margin-top: 0; font-size: 1.1rem; }
.note-box p:last-child { margin-bottom: 0; }

.prose { max-width: 50rem; }
.prose h2 { font-size: 1.4rem; }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 1.7rem; position: relative; margin-bottom: .4rem; }
.ticks li::before { content: ''; position: absolute; left: .15rem; top: .45em; width: .7rem; height: .4rem; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg); }
.credits li { margin-bottom: .5rem; }

/* FAQ */
.faq { border-bottom: 1px solid var(--border); padding: .25rem 0; }
.faq summary { cursor: pointer; font: 700 1.1rem var(--font-head); color: var(--link); padding: .75rem 0; }
.faq summary:hover { color: var(--link-hover); }
.faq p { margin: 0 0 1rem; }

/* Tour page */
.tour-layout { display: grid; gap: 2rem; }
@media (min-width: 62em) { .tour-layout { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; } .tour-side { position: sticky; top: 1rem; } }
.tour-hero { border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; background: var(--bg-alt); aspect-ratio: 3 / 2; }
.tour-hero img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); margin: 0 0 1.5rem; overflow: hidden; }
.facts > div { background: #fff; padding: .7rem .9rem; }
.facts dt { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); display: flex; align-items: center; gap: .35rem; }
.facts dd { margin: .1rem 0 0; font-weight: 700; color: var(--navy); font-size: .95rem; }
@media (min-width: 40em) { .facts { grid-template-columns: repeat(4, 1fr); } }
.tour-main h2:first-of-type { margin-top: 0; }

.quote-box { background: #fff; border: 1px solid var(--border); border-top: 6px solid var(--navy); border-radius: var(--radius); padding: 1.25rem; }
.quote-box > h2 { margin-top: 0; font-size: 1.4rem; }
.form-layout { display: grid; gap: 2rem; }
@media (min-width: 62em) { .form-layout { grid-template-columns: 1.6fr 1fr; align-items: start; } }

/* Forms */
.field { margin-bottom: 1rem; }
.field label, .field .label { display: block; font-weight: 700; margin-bottom: .3rem; }
.req { font-weight: 400; font-size: .85rem; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; padding: .6rem .7rem; border: 2px solid #6b7580; border-radius: var(--radius); background: #fff; color: var(--text); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 30em) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-check { margin-bottom: 1rem; }
.field-row .field-check { align-self: end; padding-bottom: .65rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400 !important; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; flex: none; accent-color: var(--navy); }
.static-value { margin: 0; padding: .6rem .7rem; background: var(--bg-note); border: 1px solid var(--border); border-radius: var(--radius); font-weight: 700; color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .875rem; color: var(--muted); margin: .75rem 0 0; }
.form-error { border-left: 6px solid var(--error); background: #fdf0f0; padding: .8rem 1rem; margin-bottom: 1rem; color: #7a0a0c; font-weight: 700; }
.form-success { border-left: 6px solid var(--ok); background: #f0f8ec; padding: 1rem 1.2rem; margin-top: 1rem; }
.form-success h3 { margin-top: 0; color: #1c5d00; }
.bt-form .btn { width: 100%; }
.bt-form.is-done > *:not(.form-success) { display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.field .err { color: var(--error); font-weight: 700; font-size: .9rem; margin-top: .25rem; }

.filter-bar { display: grid; gap: .8rem 1rem; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; align-items: end; }
.filter-bar .field { margin: 0; }
@media (min-width: 48em) { .filter-bar { grid-template-columns: 2fr 1.4fr 1.4fr auto; } }
.result-count { color: var(--muted); font-size: .95rem; }
.empty { padding: 2rem 0; font-size: 1.1rem; }

/* Footer */
.site-footer { margin-top: 0; }
.footer-main { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 2.25rem 0 1.5rem; }
.footer-grid { display: grid; gap: 1.75rem; }
@media (min-width: 48em) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-h { font-size: 1.1rem; margin: 0 0 .6rem; }
.footer-main ul { list-style: none; margin: 0; padding: 0; }
.footer-main li { margin-bottom: .4rem; }
.footer-legal { background: var(--navy); color: #fff; padding: 1.25rem 0 1.5rem; }
.footer-legal a { color: #fff; }
.footer-legal a:visited { color: #fff; }
.footer-legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 .9rem; padding: 0; }
.footer-legal p { margin: 0; color: #d6dce3; max-width: 52rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header .nav-bar, .site-footer, .quote-box, .skip-link { display: none; } }

/* SEO content blocks */
.answer-box { font-size: 1.15rem; line-height: 1.55; border-left: 6px solid var(--navy); background: var(--bg-note); padding: 1rem 1.25rem; margin: 0 0 1.5rem; max-width: 52rem; color: #222; }
.prose-p { max-width: 52rem; }
.byline { color: var(--muted); font-size: .95rem; margin: 0 0 1rem; }
.article { max-width: 52rem; }
.article h2 { margin-top: 2rem; }
.toc { background: var(--bg-note); border: 1px solid var(--border); border-radius: var(--radius); padding: .5rem 1.25rem 1rem; margin: 0 0 1.5rem; }
.toc h2 { font-size: 1.1rem; margin: .75rem 0 .4rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.two-col { display: grid; gap: 1.5rem; }
@media (min-width: 62em) { .two-col { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { margin-bottom: .4rem; }
.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chip-list a { display: inline-block; padding: .55rem 1rem; background: #fff; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; font-weight: 700; }
.chip-list a:hover { border-color: var(--slate); background: #fbfbfc; }
.guide-card h3 { font-size: 1.15rem; }
.footer-h2 { margin-top: 1.25rem; }
.section-alt .faq summary, .tour-main .faq summary { font-size: 1.05rem; }

/* Conversion elements */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -2px 10px rgba(0,0,0,.12); }
.sticky-cta[hidden] { display: none; }
.sticky-cta span { font-size: .8rem; color: var(--muted); text-align: right; }
.sticky-cta .btn { flex: 1 1 auto; }
@media (min-width: 62em) { .sticky-cta { display: none !important; } }
body { padding-bottom: 0; }
@media (max-width: 61.99em) { .site-footer { padding-bottom: 4.5rem; } }

.cta-band { display: grid; gap: 1rem; align-items: center; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.25rem 1.4rem; margin: 1.75rem 0; border-left: 8px solid var(--red); }
.cta-band h2 { color: #fff; font-size: 1.35rem; margin: 0 0 .25rem; }
.cta-band p { margin: 0; color: #e1e6ec; }
.cta-band .cta-actions { display: grid; gap: .4rem; justify-items: start; }
.cta-band .btn-primary { background: #fff; color: var(--navy); border-color: #fff; }
.cta-band .btn-primary:hover { background: #e7eaee; color: var(--navy); }
.cta-band .btn-primary:visited { color: var(--navy); }
.cta-note { font-size: .85rem; color: #cfd6de; }
@media (min-width: 48em) { .cta-band { grid-template-columns: 1.6fr 1fr; } .cta-band .cta-actions { justify-items: end; text-align: right; } }
.section-tight { padding: .5rem 0; }

.top-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: .25rem 0 0; }
.top-cta span, .hero-cta span { font-size: .9rem; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 1.1rem 0 0; }
.hero-cta span { max-width: 22rem; }

.more-fields { border: 1px solid var(--border); border-radius: var(--radius); padding: 0 .9rem; margin: 0 0 1rem; background: #fbfbfc; }
.more-fields summary { cursor: pointer; font-weight: 700; padding: .75rem 0; color: var(--link); }
.more-fields summary span { font-weight: 400; color: var(--muted); font-size: .9rem; }
.more-fields[open] summary { border-bottom: 1px solid var(--border); margin-bottom: .9rem; }
.more-fields[open] { padding-bottom: .1rem; }
.form-assure { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: .8rem 0 0; padding: 0; font-size: .85rem; color: var(--muted); justify-content: center; }
.form-assure li::before { content: '✓ '; color: var(--ok); font-weight: 700; }
.side-help { margin-top: 1rem; background: var(--bg-note); border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem 1rem; }
.side-help h3 { font-size: 1rem; margin: 0 0 .25rem; }
.side-help p { margin: 0; font-size: .95rem; }
.trust-list { margin: 0 0 1rem; }
