/* ==========================================================================
   Biking Dutchman — Ecuador Mountain Bike Tours
   Modern stylesheet (pure CSS, no external dependencies)
   ========================================================================== */

/* ----- Design tokens ----- */
:root {
  --brand: #0b5c5f;            /* deep teal — evolved from the 2004 #006666 */
  --brand-dark: #07393c;
  --brand-soft: #e3f0f0;
  --accent: #f2a444;           /* Andean sun */
  --accent-dark: #cf7f16;
  --ink: #16323a;
  --muted: #567179;
  --bg: #f6fafb;
  --card: #ffffff;
  --border: #dce8ea;
  --shadow: 0 10px 30px rgba(7, 57, 60, 0.08);
  --shadow-sm: 0 4px 14px rgba(7, 57, 60, 0.07);
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

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

h1, h2, h3, h4 { line-height: 1.25; color: var(--brand-dark); margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(1.85rem, 4vw, 2.55rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }

/* Single centered layout column for every page */
.container { max-width: 1080px; margin: 0 auto; padding-inline: 22px; }

.container-narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand-dark); color: #fff;
  padding: 10px 18px; border-radius: 0 0 10px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ----- Header / navigation ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex; align-items: center; gap: 18px;
  min-height: 74px; flex-wrap: wrap; padding-block: 10px;
}

.brand { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.brand img { width: 62px; height: auto; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.12rem; color: var(--brand-dark); letter-spacing: -0.01em; }
.brand-text span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-dark); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  padding: 8px 12px; border-radius: 8px;
  color: var(--ink); font-size: 0.95rem; font-weight: 600;
}
.main-nav a:hover, .main-nav a:focus-visible {
  background: var(--brand-soft); color: var(--brand-dark); text-decoration: none;
}
.main-nav a[aria-current="page"] {
  background: var(--brand); color: #fff;
}

.nav-toggle {
  display: none;
  background: var(--brand); color: #fff; border: 0;
  font: inherit; font-weight: 700; padding: 10px 14px;
  border-radius: 9px; cursor: pointer;
}
.nav-toggle svg { vertical-align: -3px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding-bottom: 12px;
  }
  .main-nav a { padding: 12px 14px; }
  .main-nav.open { display: flex; }
}

/* ----- Hero ----- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(242, 164, 68, 0.22), transparent 60%),
    linear-gradient(140deg, var(--brand-dark) 0%, var(--brand) 58%, #0e6f72 100%);
  color: #fff;
  padding-block: 64px;
}
.hero-grid {
  display: grid; gap: 40px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
}
.hero h1 { color: #fff; margin-bottom: 0.4em; }
.hero p.lead { font-size: 1.13rem; color: #e9f4f4; max-width: 34em; margin-bottom: 1.6em; }
.hero .kicker {
  display: inline-block; background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffe9c9; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 1.2em;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo img {
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  border: 4px solid rgba(255, 255, 255, 0.18);
}
.hero-photo figcaption {
  font-size: 0.8rem; color: #cfe6e6; margin-top: 10px; text-align: center;
}

@media (max-width: 820px) {
  .hero { padding-block: 46px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-photo { max-width: 420px; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 12px 22px; border-radius: 11px;
  font-weight: 700; font-size: 0.97rem; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover, .btn:focus-visible { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #3a2503; box-shadow: 0 8px 18px rgba(207, 127, 22, 0.35); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--accent-dark); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover, .btn-light:focus-visible { background: #eef7f7; }
.btn-outline { border-color: rgba(255, 255, 255, 0.65); color: #fff; background: transparent; }
.btn-outline:hover, .btn-outline:focus-visible { background: rgba(255, 255, 255, 0.12); }
.btn-ghost { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--brand-soft); }

/* ----- Sections ----- */
.section { padding-block: 58px; }
.section.tight { padding-block: 40px; }
.section-alt { background: #eef5f6; }

.section-head { max-width: 680px; margin-bottom: 34px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow {
  color: var(--accent-dark); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 8px;
}

/* ----- Grids & cards ----- */
.grid { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 14px;
  background: var(--brand-soft); color: var(--brand);
}
.card-icon svg { width: 24px; height: 24px; }

/* Tour cards (image on top) */
.tour-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.tour-card .tour-media { overflow: hidden; background: #0a2f33; }
.tour-card .tour-media img { width: 100%; object-fit: cover; aspect-ratio: 16 / 10; transition: transform 0.3s ease; }
.tour-card:hover .tour-media img { transform: scale(1.04); }
.tour-card .tour-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.tour-card h3 { margin: 0 0 4px; font-size: 1.08rem; }
.tour-card p { color: var(--muted); font-size: 0.93rem; margin-bottom: 0.9em; }
.tour-card .more { margin-top: auto; font-weight: 700; font-size: 0.92rem; }

.meta-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 0.82rem; color: var(--muted); }

/* Rating badges */
.badge {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-easy { background: #e2f4e4; color: #1d6b2c; }
.badge-moderate { background: #fdf1dc; color: #a3640a; }
.badge-challenging { background: #fde3e0; color: #ab3a26; }
.badge-brand { background: var(--brand-soft); color: var(--brand-dark); }

/* ----- Trust strip ----- */
.trust-strip { background: var(--brand-dark); color: #d9ecec; padding-block: 22px; }
.trust-grid { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-item svg { width: 26px; height: 26px; flex: none; color: var(--accent); }
.trust-item strong { display: block; color: #fff; font-size: 0.98rem; }
.trust-item span { font-size: 0.85rem; color: #b7d4d4; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .trust-grid { grid-template-columns: 1fr; } }

/* ----- Testimonials ----- */
.quote-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; position: relative;
  box-shadow: var(--shadow-sm);
}
.quote-card::before {
  content: "\201C";
  position: absolute; top: 2px; right: 18px;
  font-size: 4.2rem; line-height: 1;
  font-family: Georgia, serif; color: var(--brand-soft);
}
.quote-card blockquote { margin: 0 0 14px; font-style: italic; color: #2c4a52; }
.quote-card cite { font-style: normal; font-weight: 700; color: var(--brand-dark); font-size: 0.9rem; }
.quote-card .flag { display: block; color: var(--muted); font-size: 0.83rem; }

/* ----- CTA band ----- */
.cta-band {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: var(--radius); color: #eaf6f6;
  padding: 42px; text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; margin-bottom: 0.3em; }
.cta-band p { color: #d5eaea; max-width: 44em; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; margin-top: 10px; }

/* ----- Prose (article-style pages) ----- */
.prose { font-size: 1.02rem; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose img.rounded { border-radius: 10px; box-shadow: var(--shadow-sm); }
.prose figure { margin: 1.4em 0; }
.prose figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 8px; }
.prose .note {
  background: #fff7e8; border: 1px solid #f4d9a8; border-left: 5px solid var(--accent);
  padding: 14px 18px; border-radius: 10px; margin: 1.2em 0; font-size: 0.95rem;
}

.tour-block {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px; margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
  display: grid; gap: 26px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}
.tour-block > :last-child { margin-bottom: 0; }
.tour-block h2 { margin-top: 0; font-size: 1.35rem; }
.tour-block.reverse { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.tour-block figure { margin: 0; align-self: center; }
.tour-block figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 760px) {
  .tour-block, .tour-block.reverse { grid-template-columns: 1fr; }
}

.specs { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 1em; }

/* Itinerary day pills */
.day-pill {
  display: inline-block; background: var(--brand); color: #fff;
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 999px; padding: 5px 14px; margin-bottom: 10px;
}

/* ----- Tables ----- */
.table-wrap { overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); font-size: 0.94rem; }
table.compare th, table.compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
table.compare thead th { background: var(--brand); color: #fff; font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.06em; }
table.compare tbody tr:nth-child(even) { background: #f2f8f9; }
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare td a { font-weight: 600; }

/* ----- Breadcrumbs ----- */
.breadcrumbs { padding-block: 18px 4px; font-size: 0.86rem; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "\203A"; margin-right: 6px; color: #9db5bb; }
.breadcrumbs a { color: var(--muted); font-weight: 600; }
.breadcrumbs [aria-current="page"] { color: var(--brand-dark); font-weight: 700; }

/* ----- Page intro band ----- */
.page-hero {
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(242, 164, 68, 0.18), transparent 55%),
    linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  color: #fff; padding-block: 46px;
}
.page-hero h1 { color: #fff; margin-bottom: 0.25em; }
.page-hero .lead { color: #dbeeee; font-size: 1.07rem; max-width: 46em; margin-bottom: 0; }
.page-hero .kicker { margin-bottom: 0.9em; }

/* ----- FAQ (details/summary) ----- */
details.faq {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 0; margin-bottom: 12px;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
details.faq summary {
  cursor: pointer; list-style: none;
  padding: 17px 20px; font-weight: 700; color: var(--brand-dark);
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; font-size: 1.4rem; color: var(--accent-dark); line-height: 1;
  font-weight: 400;
}
details.faq[open] summary::after { content: "\2212"; }
details.faq .faq-body { padding: 0 20px 20px; color: #33525b; border-top: 1px dashed var(--border); padding-top: 14px; margin-top: -1px; }
details.faq[open] summary { border-bottom: 1px dashed var(--border); }

/* ----- Forms ----- */
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.form-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--brand-dark); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 11px 13px;
  border: 1.5px solid var(--border); border-radius: 9px;
  font: inherit; color: var(--ink); background: #fff;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 92, 95, 0.14);
}
.form-field textarea { resize: vertical; min-height: 120px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

/* Contact info list */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; color: var(--accent-dark); flex: none; margin-top: 3px; }
.contact-list strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 2px; }

/* ----- Footer ----- */
.site-footer { background: #08282c; color: #a8c6c6; margin-top: 0; padding-block: 52px 0; font-size: 0.92rem; }
.footer-grid { display: grid; gap: 34px; grid-template-columns: 1.4fr 1fr 1fr 1fr; padding-bottom: 38px; }
.footer-brand img { width: 130px; height: auto; border-radius: 8px; margin-bottom: 14px; }
.footer-brand p { color: #8fb3b3; }
.site-footer h3 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #a8c6c6; }
.site-footer a:hover, .site-footer a:focus-visible { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 20px; display: flex; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; font-size: 0.83rem; color: #7ea1a1;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ----- Utilities ----- */
.text-center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }

.tag-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 9px; }
.tag-list li {
  background: var(--brand-soft); color: var(--brand-dark);
  border-radius: 999px; padding: 5px 13px; font-size: 0.83rem; font-weight: 600;
}

/* Photo gallery strip */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 10px; box-shadow: var(--shadow-sm); width: 100%; object-fit: cover; }
.gallery figcaption { font-size: 0.78rem; color: var(--muted); margin-top: 7px; }
@media (max-width: 620px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Print friendliness */
@media print {
  .site-header, .site-footer, .cta-band, .hero-actions { display: none; }
  body { background: #fff; }
}

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