/* Yair Barouch Tours — public site styles.
   Uses logical properties (inline-start/end) so Hebrew (RTL) mirrors automatically. */

:root {
  --ink: #1d2831;
  --slate: #304251;
  --slate-2: #435c71;
  --accent: #b07941;
  --accent-dark: #8a5d2f;
  --sand: #f7f5ef;
  --sand-2: #efe9dc;
  --line: #ddd5c4;
  --muted: #5b6b78;
  --white: #fff;
  --wa: #1fa855;
  --wa-dark: #178a45;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(29, 40, 49, 0.08);
  --font: 'Poppins', 'Heebo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-he: 'Heebo', 'Poppins', system-ui, sans-serif;
  --step: 1rem;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: calc(100% * var(--text-scale, 1));
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--sand);
  overflow-x: hidden;
}

html[lang='he'] body {
  font-family: var(--font-he);
}

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

a {
  color: var(--accent-dark);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--slate);
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  color: var(--slate);
  margin: 0 0 0.6em;
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow {
  max-width: 780px;
}

.center {
  text-align: center;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
}

.preview-bar {
  background: #ffe28a;
  color: var(--ink);
  text-align: center;
  padding: 6px;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 60;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(29, 40, 49, 0.96);
  color: var(--white);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
  margin-inline-end: auto;
}

.brand-logo {
  height: 44px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.nav-link,
.sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  color: var(--white);
  text-decoration: none;
  font: inherit;
  font-size: 0.98rem;
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.nav-link:hover,
.sub-toggle:hover,
.nav-link[aria-current='page'] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.chev {
  width: 8px;
  height: 8px;
  border-inline-end: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.has-sub {
  position: relative;
}

.sub-list {
  display: none;
  position: absolute;
  inset-inline-start: 0;
  top: 100%;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.has-sub.is-open .sub-list {
  display: block;
}

.sub-link {
  display: block;
  padding: 8px 12px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
}

.sub-link:hover {
  background: var(--sand);
  color: var(--ink);
}

.lang-switch {
  margin-inline-start: 8px;
  padding: 8px 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.lang-switch:hover {
  background: var(--white);
  color: var(--ink);
}

.lang-switch[lang='he'] {
  font-family: var(--font-he);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  color: var(--white);
  cursor: pointer;
  border-radius: 8px;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 24px;
  height: 2px;
  margin: auto;
  background: currentColor;
  position: relative;
  transition: transform 0.2s;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: '';
  position: absolute;
}

.nav-toggle-bars::before {
  top: -7px;
}

.nav-toggle-bars::after {
  top: 7px;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bars::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 12px var(--gutter) 20px;
    background: var(--ink);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
  }

  .nav-link,
  .sub-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 12px;
    font-size: 1.05rem;
  }

  .sub-list {
    position: static;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.06);
  }

  .sub-link {
    color: var(--white);
  }

  .sub-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
  }

  .lang-switch {
    margin: 12px 0 0;
    text-align: center;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--white);
}

.btn-secondary {
  border-color: currentColor;
  color: var(--slate);
  background: transparent;
}

.btn-secondary:hover {
  background: var(--slate);
  border-color: var(--slate);
  color: var(--white);
}

.has-image .btn-secondary,
.cta .btn-secondary {
  color: var(--white);
}

.has-image .btn-secondary:hover,
.cta .btn-secondary:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.btn-whatsapp {
  background: var(--wa);
  color: var(--white);
}

.btn-whatsapp:hover {
  background: var(--wa-dark);
  color: var(--white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

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

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  background: var(--slate);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero-large {
  min-height: min(88vh, 820px);
}

.hero-medium {
  min-height: min(60vh, 560px);
}

.hero-small {
  min-height: 300px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero.has-image::after,
.cta.has-image::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(29, 40, 49, 0.15) 0%, rgba(29, 40, 49, 0.78) 100%);
}

.hero-content {
  padding-block: clamp(48px, 10vh, 110px);
  max-width: var(--container);
}

.hero-title {
  color: var(--white);
  max-width: 16ch;
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  font-weight: 700;
}

.hero-text {
  max-width: 60ch;
  font-size: 1.2rem;
  opacity: 0.95;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  font-weight: 600;
  color: #f0c58f;
  margin-bottom: 12px;
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(48px, 8vw, 96px);
}

.section-tint {
  background: var(--sand-2);
}

.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.page-head {
  padding-block: clamp(40px, 7vw, 80px) 0;
}

.page-head + .section {
  padding-top: clamp(24px, 4vw, 40px);
}

.crumb {
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.crumb a {
  text-decoration: none;
  color: var(--muted);
}

[dir='rtl'] .arrow {
  display: inline-block;
  transform: scaleX(-1);
}

/* ---------- Prose (rich text) ---------- */

.prose {
  max-width: 72ch;
}

.wide .prose,
.container:not(.narrow) > .prose {
  max-width: none;
}

.prose h2 {
  margin-top: 1.6em;
}

.prose h3 {
  margin-top: 1.4em;
}

.prose ul,
.prose ol {
  padding-inline-start: 1.4em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose blockquote {
  margin: 1.5em 0;
  padding-inline-start: 20px;
  border-inline-start: 4px solid var(--accent);
  color: var(--slate-2);
  font-style: italic;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2em 0;
}

/* ---------- Split (image + text) ---------- */

.split {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split-reverse .split-media {
    order: 2;
  }

  .split-form {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.split-media {
  margin: 0;
}

.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Cards ---------- */

.grid {
  display: grid;
  gap: 24px;
}

.cards {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.card:has(.card-link):hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(29, 40, 49, 0.14);
}

.card-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 24px;
}

.card-meta {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 6px;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.card-link {
  color: inherit;
  text-decoration: none;
}

/* Whole card is clickable via the title link. */
.card-link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.card-text {
  color: var(--muted);
  font-size: 0.98rem;
}

.card-cta {
  margin-top: auto;
  font-weight: 600;
  color: var(--accent-dark);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter {
  font: inherit;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.filter.is-active {
  background: var(--slate);
  border-color: var(--slate);
  color: var(--white);
}

.grid-item[hidden] {
  display: none;
}

/* ---------- Photo grid & lightbox ---------- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.photo {
  display: block;
  border-radius: 10px;
  overflow: hidden;
}

.photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.3s;
}

.photo:hover img {
  transform: scale(1.04);
}

.photo-caption {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 6px 2px 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-rows: 1fr auto;
  background: rgba(10, 14, 18, 0.94);
  color: var(--white);
  padding: 56px 16px 16px;
  border: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
}

.lightbox:not([open]) {
  display: none;
}

.lightbox::backdrop {
  background: rgba(10, 14, 18, 0.94);
}

.lightbox img {
  margin: auto;
  max-height: calc(100vh - 140px);
  width: auto;
  object-fit: contain;
}

.lightbox-caption {
  text-align: center;
  margin: 12px 0 0;
  min-height: 1.5em;
}

.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.lightbox button:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lb-close {
  top: 12px;
  inset-inline-end: 12px;
}

.lb-prev,
.lb-next {
  top: 50%;
  transform: translateY(-50%);
}

.lb-prev {
  inset-inline-start: 12px;
}

.lb-next {
  inset-inline-end: 12px;
}

[dir='rtl'] .lb-prev,
[dir='rtl'] .lb-next {
  transform: translateY(-50%) scaleX(-1);
}

/* ---------- Timeline ---------- */

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 11px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding-inline-start: 48px;
  padding-bottom: 36px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  inset-inline-start: 4px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--sand);
}

.timeline-date {
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 6px;
}

.timeline-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.timeline-card img {
  margin-top: 12px;
  border-radius: 10px;
}

/* ---------- Reviews ---------- */

.reviews {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.review {
  margin: 0;
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.review blockquote {
  margin: 0 0 12px;
}

.stars {
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.stars-empty {
  color: var(--line);
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--slate);
  color: var(--white);
  padding-block: clamp(56px, 9vw, 110px);
  text-align: center;
}

.cta h1,
.cta h2 {
  color: var(--white);
}

.cta .lead {
  color: rgba(255, 255, 255, 0.85);
  max-width: 60ch;
  margin-inline: auto;
}

.cta .btn-row {
  justify-content: center;
}

/* ---------- FAQ ---------- */

.faq details {
  background: var(--white);
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}

.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  list-style-position: inside;
}

.faq details p {
  padding: 0 20px 16px;
  margin: 0;
}

/* ---------- Forms ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin-bottom: 20px;
}

.field {
  grid-column: 1 / -1;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

@media (min-width: 640px) {
  .field.half {
    grid-column: span 1;
  }
}

.field label,
.field legend {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
}

.field input:not([type='checkbox']),
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--slate-2);
}

.field .check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  margin-bottom: 6px;
}

.check input {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.req {
  color: #b3261e;
}

.hp {
  position: absolute;
  inset-inline-start: -9999px;
}

.form-status {
  margin-top: 16px;
  font-weight: 600;
}

.form-status.is-error {
  color: #b3261e;
}

.form-status.is-success {
  color: #1d6b3a;
}

.cf-turnstile {
  margin-bottom: 16px;
}

/* ---------- Contact list ---------- */

.contact-aside {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.contact-items {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.contact-items li {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 2px;
}

.hours dl {
  margin: 6px 0 0;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
}

.hours-row dt,
.hours-row dd {
  margin: 0;
}

/* ---------- Tour page ---------- */

.tour-layout {
  display: grid;
  gap: 40px;
}

@media (min-width: 960px) {
  .tour-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
  }

  .tour-aside {
    position: sticky;
    top: 92px;
  }
}

.tour-main section {
  margin-block: 40px;
}

.facts {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.facts dl {
  margin: 0 0 8px;
}

.fact {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--sand-2);
}

.fact dt {
  color: var(--muted);
}

.fact dd {
  margin: 0;
  font-weight: 600;
  text-align: end;
}

.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-inline-start: 30px;
  margin-bottom: 10px;
}

.checklist li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  color: var(--accent);
  font-weight: 700;
}

.itinerary {
  list-style: none;
  padding: 0;
  counter-reset: stop;
}

.itinerary li {
  position: relative;
  padding-inline-start: 56px;
  padding-bottom: 20px;
  counter-increment: stop;
}

.itinerary li::before {
  content: counter(stop);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--slate);
  color: var(--white);
  font-weight: 600;
}

.itinerary h3 {
  margin-bottom: 4px;
  padding-top: 5px;
}

/* ---------- Blog post ---------- */

.post-cover {
  margin-block: 24px 40px;
}

.post-cover img {
  border-radius: var(--radius);
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

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

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 56px;
}

.site-footer a {
  color: var(--white);
}

.site-footer .contact-label {
  color: rgba(255, 255, 255, 0.6);
}

.site-footer .hours-row {
  border-color: rgba(255, 255, 255, 0.15);
}

.footer-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  padding-bottom: 40px;
}

.footer-brand {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.social {
  display: flex;
  gap: 16px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px 96px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

/* ---------- Floating buttons ---------- */

.wa-float,
.a11y-toggle {
  position: fixed;
  bottom: 20px;
  z-index: 70;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  border: 0;
  cursor: pointer;
}

.wa-float {
  inset-inline-end: 20px;
  background: var(--wa);
  color: var(--white);
}

.wa-float:hover {
  background: var(--wa-dark);
  color: var(--white);
}

.a11y-toggle {
  inset-inline-start: 20px;
  background: #1f4e8c;
  color: var(--white);
}

.a11y-panel {
  position: fixed;
  bottom: 88px;
  inset-inline-start: 20px;
  z-index: 70;
  width: min(280px, calc(100vw - 40px));
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.a11y-panel[hidden] {
  display: none;
}

.a11y-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.a11y-option {
  font: inherit;
  text-align: start;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.a11y-option[aria-pressed='true'] {
  background: #1f4e8c;
  border-color: #1f4e8c;
  color: var(--white);
}

.a11y-statement {
  margin-top: 6px;
  font-size: 0.95rem;
}

/* Accessibility modes toggled by the menu */

html.a11y-contrast body {
  background: #fff;
  color: #000;
}

html.a11y-contrast .card,
html.a11y-contrast .review,
html.a11y-contrast .timeline-card,
html.a11y-contrast .facts {
  border: 2px solid #000;
  box-shadow: none;
}

html.a11y-contrast .card-text,
html.a11y-contrast .lead,
html.a11y-contrast .photo-caption,
html.a11y-contrast .contact-label {
  color: #000;
}

html.a11y-contrast .hero.has-image::after,
html.a11y-contrast .cta.has-image::after {
  background: rgba(0, 0, 0, 0.82);
}

html.a11y-contrast a:not(.btn) {
  color: #0000c8;
}

html.a11y-contrast .site-header a,
html.a11y-contrast .site-footer a {
  color: #ffff00;
}

html.a11y-links a:not(.btn) {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  background: #fff3b0;
  color: #000 !important;
}

html.a11y-font body,
html.a11y-font button,
html.a11y-font input {
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0.02em;
}

html.a11y-motion *,
html.a11y-motion *::before,
html.a11y-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .wa-float,
  .a11y,
  .site-footer {
    display: none;
  }
}
