:root {
  --ink: #1a1816;
  --paper: #f4f1ea;
  --paper-2: #e6e3dc;
  --accent: #d9482b;
  --muted: #5d5a55;
  --radius: 14px;
  /* Content column width; sections stay full-bleed and pad their content in to this width */
  --max: 560px;
  --pad: max(20px, calc((100% - var(--max)) / 2));
}
* { box-sizing: border-box; margin: 0; padding: 0; }
/* Canvas is dark so any Safari bounce past the footer stays footer-colored */
html { scroll-behavior: smooth; background: var(--ink); overscroll-behavior-y: none; }
body {
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3 { font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
section { padding: 48px var(--pad); }
h2 { font-size: 30px; padding-bottom: 14px; margin-bottom: 20px; position: relative; }
h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 120px; height: 3px; background: var(--accent); }
section p { color: var(--muted); }

.topbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--pad) 34px; color: #fff; background: linear-gradient(to bottom, rgba(0,0,0,.7) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,0) 100%); pointer-events: none; font-weight: 800; font-size: 14px; letter-spacing: .08em;
}
.topbar a { color: inherit; text-decoration: none; }
/* Underline drawn outside the box so the word itself centers on the logo */
.topbar .book-link { font-size: 12px; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }

.hero {
  background: url("../assets/images/hero-bg.webp?v=4") center top / cover no-repeat;
  color: #fff; min-height: 420px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 36px;
  position: relative;
}
.hero h1, .hero .eyebrow { text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 2px 14px rgba(0,0,0,.75); }
.hero > * { position: relative; z-index: 2; }
/* Dark scrim rising from the bottom so the headline stays readable over the busy grass */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 30%, rgba(0,0,0,.38) 58%, rgba(0,0,0,.72) 100%);
}
.hero-atvs {
  width: 112%; max-width: none; margin: 0 0 28px 12%; align-self: flex-start;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.6));
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; z-index: 3; left: 0; right: 0; bottom: -1px; height: 14px; background: var(--paper);
  clip-path: polygon(0 100%, 4% 0, 8% 100%, 12% 0, 16% 100%, 20% 0, 24% 100%, 28% 0, 32% 100%, 36% 0, 40% 100%, 44% 0, 48% 100%, 52% 0, 56% 100%, 60% 0, 64% 100%, 68% 0, 72% 100%, 76% 0, 80% 100%, 84% 0, 88% 100%, 92% 0, 96% 100%, 100% 0, 100% 100%);
}
.eyebrow { color: #ddd; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 14px; }
.hero h1 { font-size: 50px; }
.accent { color: var(--accent); }

.intro p { margin: 4px 0 24px; }
.intro h2::after { width: 80px; }
.btn {
  display: block; text-align: center; padding: 16px; border-radius: 999px;
  font-weight: 800; text-decoration: none; margin-bottom: 12px; border: 2px solid var(--ink);
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { color: var(--ink); }

.gallery { background: var(--ink); color: #fff; padding-inline: 0; overflow: hidden; }
.gallery h2 { margin-inline: var(--pad); }
.marquee { overflow: hidden; margin-bottom: 14px; }
.track { display: flex; gap: 14px; width: max-content; will-change: transform; animation: scroll-left 60s linear infinite; }
.marquee[data-direction="right"] .track { animation-name: scroll-right; }
.track { align-items: center; }
.gallery { --t: 1; }
.tile { flex: none; width: calc(150px * var(--t)); height: calc(200px * var(--t)); border-radius: var(--radius); overflow: hidden; background: #5d6358; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile:nth-child(4n+2) { width: calc(135px * var(--t)); height: calc(190px * var(--t)); }
.tile:nth-child(4n+3) { width: calc(165px * var(--t)); height: calc(215px * var(--t)); }
.tile:nth-child(4n) { width: calc(145px * var(--t)); height: calc(180px * var(--t)); }
.marquee:nth-of-type(2) .tile:nth-child(4n+1) { width: calc(170px * var(--t)); height: calc(220px * var(--t)); }
.marquee:nth-of-type(2) .tile:nth-child(4n+2) { width: calc(150px * var(--t)); height: calc(195px * var(--t)); }
.marquee:nth-of-type(2) .tile:nth-child(4n+3) { width: calc(160px * var(--t)); height: calc(230px * var(--t)); }
.marquee:nth-of-type(2) .tile:nth-child(4n) { width: calc(140px * var(--t)); height: calc(205px * var(--t)); }
@keyframes scroll-left { to { transform: translateX(-50%); } }
@keyframes scroll-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.routes { background: var(--paper-2); padding-inline: 0; }
.routes h2, .routes > p { margin-inline: var(--pad); }
.route-list {
  display: flex; gap: 14px; overflow-x: auto; padding: 20px var(--pad); margin-top: 8px;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
}
.route-card { flex: 0 0 78%; scroll-snap-align: start; background: #fff; border-radius: var(--radius); overflow: hidden; padding-bottom: 16px; }
.route-card img { display: block; width: 100%; height: auto; aspect-ratio: 1088 / 436; }
.route-card h3 { font-size: 18px; margin: 16px 16px 6px; }
.route-card p { font-size: 13px; margin: 0 16px 10px; }
.route-card a { margin: 0 16px; color: var(--ink); font-weight: 800; font-size: 14px; }

.offer, .rules ol { list-style: none; }
.about h3 { font-size: 13px; letter-spacing: .1em; margin: 24px 0 12px; }
.offer li { padding-left: 28px; position: relative; margin-bottom: 12px; }
.offer li::before { content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; background: var(--accent); }

.rules { background: var(--ink); color: #fff; }
.rules li { display: flex; gap: 16px; margin-bottom: 18px; }
.rules b { color: var(--accent); }

.pricing { background: var(--paper-2); }
.pricing > p { margin-bottom: 24px; }
.receipt-wrap { filter: drop-shadow(0 12px 14px rgba(26,24,22,.16)); }
/* Bottom edge torn into zig-zags: each 2*--zz wide tile keeps only the wedge above its bottom-center point */
.receipt {
  --zz: 10px;
  --cut: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zz)) 100%;
  background: #fff; padding: 26px 20px calc(22px + var(--zz)); border-radius: var(--radius) var(--radius) 0 0;
  font-family: "Space Mono", "Courier New", monospace; font-size: 14px; line-height: 1.4;
  -webkit-mask: var(--cut); mask: var(--cut);
}
.rc-head { display: grid; gap: 2px; text-align: center; font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.rc-head strong { font-family: "Poppins", "Helvetica Neue", Arial, sans-serif; font-size: 26px; letter-spacing: -.01em; color: var(--ink); margin-bottom: 4px; }
.rc-picks, .rc-lines { border-top: 2px dashed #cfc9bd; margin-top: 18px; padding-top: 18px; }
.rc-picks fieldset { border: 0; min-width: 0; }
.rc-picks legend { font-size: 11px; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 7px 0; border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span, .stepper button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rc-row { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-weight: 700; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); background: none; color: var(--ink); font: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
.stepper button:disabled { opacity: .25; cursor: default; }
.stepper output { min-width: 2ch; text-align: center; font-size: 18px; }
.rc-note { font-size: 12px; margin-top: 10px; }
.rc-lines { list-style: none; display: grid; gap: 8px; }
.rc-lines li { display: flex; align-items: baseline; gap: 6px; }
.rc-lines li[hidden] { display: none; }
.rc-lines i { flex: 1; border-bottom: 2px dotted #cfc9bd; }
.rc-lines span:last-child { white-space: nowrap; }
.rc-lines .incl { color: var(--muted); }
.rc-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 4px double var(--ink); margin-top: 18px; padding-top: 12px; color: var(--ink); font-weight: 700; font-size: 16px; }
.rc-total output { display: inline-flex; align-items: flex-start; font-size: 28px; line-height: 1.15; white-space: pre; }
/* Odometer: each digit is a 0-9 strip that rolls to its value, one column after another */
.roll { display: inline-block; height: 1.15em; overflow: hidden; }
.roll > span { display: flex; flex-direction: column; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.roll > span > span { height: 1.15em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.receipt .btn { margin: 20px 0 0; font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; }
.rc-foot { text-align: center; font-size: 11px; letter-spacing: .04em; margin-top: 18px; text-wrap: balance; }
.barcode {
  height: 44px; width: 72%; margin: 10px auto 0;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, #0000 2px 4px, var(--ink) 4px 5px, #0000 5px 8px, var(--ink) 8px 11px, #0000 11px 12px, var(--ink) 12px 13px, #0000 13px 16px);
}
@media (prefers-reduced-motion: reduce) { .roll > span { transition: none; } }

.contact { background: var(--paper-2); padding-bottom: 76px; }
.contact p { margin-bottom: 20px; }
.contact-row {
  display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px; margin-bottom: 12px;
  border: 2px solid var(--ink); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 700;
}

@media (prefers-reduced-motion: reduce) { .track { animation-play-state: paused; } }

button.btn { width: 100%; background: transparent; font: inherit; font-weight: 800; cursor: pointer; }
dialog { margin: auto; width: min(90%, 360px); border: 0; border-radius: var(--radius); padding: 24px; background: var(--paper); }
dialog::backdrop { background: rgba(0,0,0,.6); }
dialog h3 { font-size: 22px; margin-bottom: 18px; }
dialog .close { background: none; border: 0; font: inherit; color: var(--muted); width: 100%; padding: 8px; cursor: pointer; }

.brand img { display: block; height: 40px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)); }

.lbl { display: inline-flex; align-items: center; gap: 10px; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

#call-options { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .9s cubic-bezier(.22,.61,.36,1), opacity .9s ease; }
#call-options.open { grid-template-rows: 1fr; opacity: 1; }
.call-inner { overflow: hidden; min-height: 0; }
.call-inner .btn { transform: translateY(-12px); transition: transform .9s cubic-bezier(.22,.61,.36,1); }
#call-options.open .call-inner .btn { transform: none; }
#call-options.open .call-inner .btn:nth-child(2) { transition-delay: .12s; }

dialog[open] { animation: sheet-in .7s cubic-bezier(.22,.61,.36,1) both; }
dialog[open]::backdrop { animation: fade-in .7s ease both; }
dialog.closing { animation: sheet-out .45s ease-in both; }
dialog.closing::backdrop { animation: fade-out .45s ease-in both; }
@keyframes sheet-in { from { transform: translateY(60px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sheet-out { to { transform: translateY(40px) scale(.97); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { dialog[open], dialog.closing, #call-options, .call-inner .btn { animation: none; transition: none; } }

.topbar a { pointer-events: auto; }

/* Footer band overlaps the contact section so its rounded corners show paper-2 behind them */
.site-foot {
  position: relative; margin-top: -28px; border-radius: 28px 28px 0 0; padding: 30px var(--pad) calc(34px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px;
  color: #fff; background: radial-gradient(circle at 88% 0%, rgba(217,72,43,.32), rgba(217,72,43,0) 55%), var(--ink);
}
.foot-brand { display: grid; justify-items: center; color: inherit; text-decoration: none; }
.foot-brand strong { font-family: "Poppins", "Helvetica Neue", Arial, sans-serif; font-size: 26px; line-height: 1.1; letter-spacing: -.01em; }
.foot-brand span { font-size: 9px; font-weight: 800; letter-spacing: .16em; opacity: .8; }
.foot-icons { display: flex; gap: 8px; }
.foot-icons a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.35); color: #fff; transition: background .2s, border-color .2s;
}
.foot-icons a:hover, .foot-icons a:focus-visible { background: rgba(255,255,255,.1); border-color: #fff; }
.foot-icons .ico { width: 19px; height: 19px; }
.foot-credit {
  flex-basis: 100%; margin: 4px 0 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 10.5px; color: rgba(255,255,255,.6);
}
.foot-credit a { color: inherit; font-weight: 700; text-decoration: none; }

/* ===================== Tablet & desktop ===================== */
.top-nav, .hint-wide { display: none; }
.contact-list { display: grid; }

@media (min-width: 600px) {
  :root { --max: 1180px; --pad: max(32px, calc((100% - var(--max)) / 2)); }
  section { padding-block: 80px; }
  h2 { font-size: 38px; padding-bottom: 16px; margin-bottom: 24px; }
  section p { font-size: 17px; }

  .topbar { padding-top: 22px; padding-bottom: 44px; }
  .brand img { height: 52px; }
  .topbar .book-link { font-size: 13px; }

  /* Crop sits higher than on phones so the sky, hills and both ATVs all fit */
  .hero { min-height: 560px; padding-bottom: 60px; background-position: center 40%; }
  .hero::after { height: 18px; }
  .eyebrow { font-size: 13px; margin-bottom: 18px; }
  .hero h1 { font-size: 72px; }

  .intro p { max-width: 62ch; }
  .intro .btn { display: inline-block; width: auto; min-width: 220px; padding-inline: 32px; margin: 0 12px 0 0; }

  .gallery { --t: 1.3; }
  .gallery h2 { margin-bottom: 36px; }
  .marquee { margin-bottom: 18px; }
  .track { gap: 18px; }

  .hint-touch { display: none; }
  .hint-wide { display: inline; }
  .routes > p { max-width: 62ch; }
  .route-list {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px;
    overflow: visible; scroll-snap-type: none; padding-block: 28px 0;
  }
  .route-card { display: flex; flex-direction: column; padding-bottom: 22px; }
  .route-card h3 { font-size: 22px; margin: 20px 22px 8px; }
  .route-card p { font-size: 14px; margin: 0 22px 14px; }
  .route-card a { margin: auto 22px 0; }

  /* "Ce oferim" sits in a soft card */
  .offer-box {
    margin-top: 32px; background: #fff; border-radius: var(--radius); padding: 32px 36px 20px;
    box-shadow: 0 10px 30px rgba(26,24,22,.06);
  }
  .about .offer-box h3 { margin: 0 0 20px; }
  .offer li { margin-bottom: 14px; }

  .receipt-wrap { max-width: 440px; }

  .rules ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
  .rules li { margin: 0; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: 17px; }
  .rules b { font-size: 20px; line-height: 1.3; }

  .contact { padding-bottom: 110px; }
  .contact-row { padding: 20px 22px; }

  .site-foot { margin-top: -36px; border-radius: 36px 36px 0 0; padding-top: 40px; }
  .foot-icons a { width: 46px; height: 46px; }
  .foot-credit { font-size: 12px; }

  dialog { width: min(90%, 400px); padding: 32px; }
}

/* Wide tablets / small laptops: sections split into two columns */
@media (min-width: 860px) {
  /* Left text block and the card are centered against each other */
  .about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr; column-gap: 56px; }
  .about > h2 { grid-column: 1; grid-row: 2; }
  .about > p  { grid-column: 1; grid-row: 3; }
  .offer-box { grid-column: 2; grid-row: 1 / span 4; align-self: center; margin: 0; }

  .pricing {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
    grid-template-rows: auto 1fr; column-gap: 48px;
  }
  .pricing > h2 { grid-column: 1; grid-row: 1; }
  .pricing > p  { grid-column: 1; grid-row: 2; align-self: start; max-width: 40ch; }
  .receipt-wrap { grid-column: 2; grid-row: 1 / span 2; max-width: none; }

  .contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
  .contact-row:last-child { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  h2 { font-size: clamp(38px, 3vw, 44px); }
  section { padding-block: 96px; }

  .top-nav { display: flex; gap: 32px; margin: 0 40px 0 auto; font-size: 13px; }
  .top-nav a { pointer-events: auto; padding: 6px 0; text-underline-offset: 6px; text-decoration-thickness: 2px; }

  /* Photo on top, fading into dark; the headline sits below the ATVs.
     Photo is width-fitted: mountain peaks sit ~30vw and the ATVs' wheels ~66vw down the image.
     --fold = where the wheels end; placing it 80px + 36vw down puts the peaks just below the menu,
     so the menu sits fully on sky. Capped by screen height so the headline stays on screen.
     The headline starts ~100px above the fold, so its first line overlaps the tyres. */
  .hero {
    --fold: min(calc(80px + 36vw), 86vh); --fold: min(calc(80px + 36vw), 86svh);
    min-height: 0; padding-top: calc(var(--fold) - 100px); padding-bottom: 60px;
    background: var(--ink) url("../assets/images/hero-bg.webp?v=4") no-repeat;
    background-size: 100% auto; background-position: center calc(var(--fold) - 66vw);
  }
  .hero::before {
    background: linear-gradient(to bottom,
      rgba(26,24,22,0) 0, rgba(26,24,22,0) calc(var(--fold) - 220px),
      rgba(26,24,22,.45) calc(var(--fold) - 60px), rgba(26,24,22,.76) calc(var(--fold) + 30px),
      rgba(26,24,22,.86) 100%);
  }
  /* Scales with screen height too, so the whole headline fits on short laptop screens */
  .hero h1 { font-size: clamp(56px, min(6vw, 10vh), 96px); }

  .intro {
    display: grid; grid-template-columns: 2.5fr 1fr 1fr; column-gap: 16px; align-items: start;
  }
  .intro h2 { grid-column: 1; grid-row: 1 / span 2; margin-right: 48px; font-size: clamp(36px, 3vw, 44px); }
  .intro p { grid-column: 2 / span 2; grid-row: 1; margin: 0 0 28px; font-size: 18px; }
  .intro .btn { grid-row: 2; width: 100%; min-width: 0; margin: 0; }

  .gallery { --t: 1.65; }
  .track { gap: 22px; animation-duration: 80s; }

  .route-list { gap: 32px; }

  .about { column-gap: 96px; }
  .about > p { font-size: 18px; }
  .offer-box { padding: 40px 44px 26px; }

  /* Heading block sits vertically centered beside the receipt */
  .pricing { column-gap: 96px; grid-template-rows: 1fr auto auto 1fr; }
  .pricing > h2 { grid-row: 2; }
  .pricing > p { grid-row: 3; font-size: 18px; }
  .receipt-wrap { grid-row: 1 / span 4; }

  .rules ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .contact {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    grid-template-rows: auto 1fr; column-gap: 96px;
  }
  .contact > h2 { grid-column: 1; grid-row: 1; }
  .contact > p  { grid-column: 1; grid-row: 2; font-size: 18px; }
  .contact-list { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
}

/* Mouse / trackpad niceties */
@media (hover: hover) and (pointer: fine) {
  .btn, .contact-row, .route-card, .tile img, .top-nav a, .book-link { transition: background-color .2s, color .2s, border-color .2s, transform .3s, box-shadow .3s; }
  .btn-dark:hover { background: var(--accent); border-color: var(--accent); }
  .btn-outline:hover { background: var(--ink); color: #fff; }
  .contact-row:hover { background: var(--ink); color: #fff; }
  .route-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(26,24,22,.14); }
  .route-card a:hover { color: var(--accent); }
  .top-nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
  .topbar .book-link:hover { color: var(--accent); }
  .marquee:hover .track { animation-play-state: paused; }
  .tile:hover img { transform: scale(1.05); }
  .stepper button:not(:disabled):hover, .seg label:hover span { background: var(--ink); color: #fff; }
}
