:root {
  --ink: #141414;
  --muted: #555;
  --paper: #fff;
  --accent: #b51f1f;
  --link: #b51f1f;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}
h1, h2, h3 { font-family: "Open Sans", Helvetica, Arial, sans-serif; }
a { color: var(--link); }

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  color: #fff;
  padding: 0.85rem 0;
  background: transparent;
}
.site-header .bar {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}
.logo {
  display: inline-block;
  background: transparent;
  padding: 0;
  line-height: 0;
}
.logo img {
  height: 108px;
  width: auto;
}
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 3px 6px;
  background: #fff;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
  gap: 0.2rem 1.65rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
nav a {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
nav a:hover {
  color: #fff;
  opacity: 0.85;
}
nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: #111 url("../images/1920x1080-san-ignacio-bikers.webp") center/cover no-repeat;
  display: flex;
  align-items: flex-end;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,.18) 45%, rgba(0,0,0,.28));
}
.hero .copy {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto 5.5rem;
  color: #fff;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.75rem;
  max-width: 16ch;
}
.hero .lede {
  max-width: 38rem;
  font-size: 1.05rem;
  color: rgba(255,255,255,.88);
  margin: 0;
}

.wrap { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; }
.section { padding: 3.25rem 0; }

.notice {
  background: #3a3a3a;
  color: #fff;
  padding: 2.4rem 0;
}
.notice p { margin: 0 0 0.85rem; max-width: 46rem; }
.notice p:last-child { margin-bottom: 0; }
.notice a { color: #fff; }

.section h2.trips-heading {
  font-size: 2.4rem;
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-align: center;
  margin: 0 0 1.35rem;
}

.trips {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.trip {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
}
.trip img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.trip h3 {
  margin: 1.05rem 1.15rem 0.2rem;
  font-size: 1.15rem;
  font-weight: 600;
}
.trip .meta {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 1.15rem 0.45rem;
}
.trip p {
  margin: 0 1.15rem 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.trip-cta {
  display: inline-block;
  margin: auto 1.15rem 1.15rem;
  padding: 0.62rem 1.1rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  align-self: flex-start;
}
.trip-cta:hover { background: #6e2118; }

.partners p {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
}

.past-section { padding: 3.5rem 0 2.5rem; }
.past-heading {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 2rem;
}
.past-layout {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
}
.past-map {
  width: 100%;
  height: auto;
  display: block;
}
.past-list { display: flex; flex-direction: column; gap: 1.35rem; }
.past-trip {
  display: grid;
  grid-template-columns: 168px 1fr auto;
  gap: 1.1rem 1.25rem;
  align-items: start;
}
.past-trip img {
  width: 168px;
  height: 118px;
  object-fit: cover;
  display: block;
}
.past-trip h3 {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.15;
}
.past-trip p {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.past-view {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.past-view:hover { text-decoration: underline; }
.past-place {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: right;
  padding-top: 0.2rem;
  min-width: 6.5rem;
}

.custom-trips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
  background: #101010;
  color: #fff;
}
.custom-trips-photo {
  background: #101010 url("../images/pyrenees-hay-bale.jpg") center/cover no-repeat;
  min-height: 420px;
}
.custom-trips-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 8vw 3.5rem 3.5rem;
  background: linear-gradient(180deg, rgba(16,16,16,0.93) 0%, #101010 100%);
}
.custom-trips-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.custom-trips-copy p {
  margin: 0 0 1.25rem;
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.5;
}
.custom-trips-copy a {
  color: #fff;
  font-weight: 700;
}

.overview {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 280px);
  gap: 2rem;
  align-items: start;
}
.overview p { color: var(--muted); }
.overview h2 {
  font-size: 1.65rem;
  margin: 0 0 0.75rem;
}
.overview img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.highlights {
  margin: 1.25rem 0 0;
  padding: 0 0 0 1.1rem;
  color: var(--muted);
}
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.person img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
}
.person h3 { margin: 0.7rem 0 0.35rem; font-size: 1.15rem; }
.person p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.it-hero { min-height: 100vh; min-height: 100dvh; }
.it-hero h1 { max-width: 18ch; }
.it-title {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 2.25rem 0 0.75rem;
}
.days { padding-bottom: 1rem; }
.day {
  display: grid;
  grid-template-columns: minmax(240px, 40%) 1fr;
  gap: 1.75rem;
  align-items: start;
  padding: 1.85rem 0;
  border-top: 1px solid #e8e8e8;
}
.day img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}
.day-label {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}
.day h3 {
  margin: 0 0 0.65rem;
  font-size: 1.45rem;
  font-weight: 550;
}
.day p { margin: 0 0 0.7rem; color: var(--muted); }
.day-miles {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.it-cta { padding: 0.5rem 0 2.5rem; text-align: center; }
.it-cta .trip-cta { margin: 0; align-self: center; }
.video-embed {
  position: relative;
  width: 100%;
  max-width: 46rem;
  margin: 1.5rem auto 2rem;
  padding-bottom: 56.25%;
  height: 0;
  background: #111;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.it-crumb {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.25rem auto 2rem;
}
.it-crumb a { color: inherit; }
.it-gallery { padding: 0 0 3.5rem; }
.it-gallery.wrap { width: min(1600px, calc(100% - 2rem)); }
.it-shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.it-shots a {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #111;
  cursor: zoom-in;
}
.it-shots a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.45s ease;
  pointer-events: none;
}
.it-shots a:hover::after,
.it-shots a:focus-visible::after {
  background: rgba(0, 0, 0, 0.32);
}
.it-shots img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}
.it-shots a:hover img,
.it-shots a:focus-visible img {
  transform: scale(1.08);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(96vw, 1400px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.lightbox button {
  position: absolute;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.4rem 0.7rem;
  opacity: 0.85;
}
.lightbox button:hover { opacity: 1; }
.lightbox-close { top: 0.8rem; right: 1rem; font-size: 2.4rem; }
.lightbox-prev { left: 0.4rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 0.4rem; top: 50%; transform: translateY(-50%); }

.pg-hero {
  min-height: 100vh;
  min-height: 100dvh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.pg-hero h1 { max-width: 22ch; }
.pg-article {
  max-width: 46rem;
  margin: 0 auto;
}
.pg-article::after {
  content: "";
  display: table;
  clear: both;
}
.pg-article .wrap { max-width: 46rem; }
.section > .wrap.pg-article { max-width: 46rem; }
.pg-article h2 {
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  margin: 1.75rem 0 0.7rem;
}
.pg-article h3 { font-size: 1.2rem; margin: 1.25rem 0 0.45rem; }
.pg-article p { color: var(--muted); margin: 0 0 0.85rem; }
.pg-article img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  margin: 1rem 0 1.25rem;
}
.pg-article img[src*="icon-pro"],
.pg-article img[src*="ico-finger"],
.pg-article img[src*="cyclist-icon"],
.pg-article img[src*="5-stars"],
.pg-article img[src*="mountain-icon"] {
  width: auto;
  height: 1.15em;
  max-height: 1.25em;
  display: inline;
  vertical-align: -0.15em;
  margin: 0 0.2em;
  border-radius: 0;
  object-fit: contain;
}
.pg-article img.alignright,
.pg-article img.alignleft {
  width: auto;
  max-width: min(280px, 46%);
  max-height: 280px;
  height: auto;
  object-fit: contain;
  display: inline;
  float: right;
  margin: 0.2rem 0 1rem 1.15rem;
}
.pg-article img.alignleft {
  float: left;
  margin: 0.2rem 1.15rem 1rem 0;
}
.pg-article img[src*="pinarello-prince"] {
  width: auto;
  max-width: 300px;
  max-height: 200px;
  object-fit: contain;
  display: block;
}
.pg-article ul, .pg-article ol { color: var(--muted); }
.trip-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  justify-content: center;
  padding: 1.15rem 0 0.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.trip-switch a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.15rem;
}
.trip-switch a:hover,
.trip-switch a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.faq-item {
  border-top: 1px solid #e8e8e8;
  padding: 0.85rem 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-a { margin-top: 0.65rem; color: var(--muted); }
.trips-archive { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 900px) {
  .trips-archive { grid-template-columns: 1fr; }
}

.site-footer {
  background: #000;
  color: #fff;
  padding: 3rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
}
.site-footer a { color: #b8b8b8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { margin: 0 0 1rem; color: #b8b8b8; }
.footer-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
}
.footer-logo { display: inline-block; margin: 0 0 1rem; }
.footer-logo img {
  display: block;
  height: 92px;
  width: auto;
  background: transparent;
  padding: 0;
}
.footer-col h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 0.45rem; }
.footer-col a { color: #b8b8b8; font-weight: 600; }
.footer-copy {
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  padding: 1rem 1rem 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.gone-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
}

@media (max-width: 900px) {
  .trips { grid-template-columns: 1fr; }
  .overview,
  .team { grid-template-columns: 1fr; }
  .person img { height: 280px; }
}
@media (max-width: 900px) {
  .past-layout { grid-template-columns: 1fr; }
  .past-map { display: none; }
  .custom-trips { grid-template-columns: 1fr; min-height: 0; }
  .custom-trips-photo { min-height: 320px; }
  .custom-trips-copy { padding: 2.25rem 1.25rem 2.75rem; }
}
@media (max-width: 800px) {
  .logo img { height: 72px; }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: rgba(0, 0, 0, 0.94);
  }
  body.nav-open nav { display: flex; }
  nav a {
    display: block;
    width: 100%;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .past-trip { grid-template-columns: 1fr; }
  .past-trip img { width: 100%; height: 180px; }
  .past-place { text-align: left; }
}
@media (max-width: 900px) {
  .it-shots { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .day { grid-template-columns: 1fr; }
  .day img { height: 200px; }
  .footer-grid { grid-template-columns: 1fr; }
}
