/* Magik Tours — site styles. No framework, no build step. */
:root {
  --ink: #10283a;
  --ink-2: #2c4458;
  --muted: #5d6b77;
  --sand: #f7f2ea;
  --sand-2: #efe6d8;
  --paper: #ffffff;
  --accent: #b9472f;
  --accent-ink: #8f3420;
  --gold: #c99a3d;
  --line: #e3dbcf;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(16,40,58,.06), 0 8px 24px rgba(16,40,58,.08);
  --shadow-lg: 0 2px 4px rgba(16,40,58,.06), 0 18px 48px rgba(16,40,58,.14);
  --wrap: 1180px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* fallback colour behind every photo, so a missing image still looks intentional */
  --photo-fallback: linear-gradient(135deg, #1d4b63 0%, #2f6f78 45%, #c99a3d 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font: 17px/1.6 var(--sans); color: var(--ink); background: var(--sand); }
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; display: block; }
.lead { font-size: 1.18rem; color: var(--ink-2); max-width: 46rem; }
.muted { color: var(--muted); }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section.alt { background: var(--paper); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 999px; font: 600 .98rem/1 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sand); color: var(--ink); }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: .2rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,242,234,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: flex; align-items: baseline; gap: .45rem; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.45rem; font-weight: 700; letter-spacing: .02em; }
.brand span { color: var(--accent); font-style: italic; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .3rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; padding: .5rem .75rem; border-radius: 999px; white-space: nowrap; }
@media (max-width: 1240px) { .nav { gap: 0; } .nav a { padding: .5rem .55rem; font-size: .92rem; } .nav .btn { padding: .6rem .9rem; } }
.nav a:hover, .nav a[aria-current="page"] { background: var(--sand-2); color: var(--ink); }
.nav .lang { border: 1px solid var(--line); font-size: .85rem; font-weight: 600; letter-spacing: .05em; }
.nav .btn { margin-left: .4rem; padding: .65rem 1.1rem; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 28px; height: 28px; }
@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--sand); padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: .85rem 1rem; font-size: 1.05rem; }
  .nav .btn { margin: .6rem 0 0; justify-content: center; }
}

/* Photos with graceful fallback */
.photo { background: var(--photo-fallback); background-size: cover; background-position: center; position: relative; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo img.broken { visibility: hidden; }

/* Hero */
.hero { position: relative; color: #fff; min-height: min(86vh, 760px); display: grid; align-items: end; isolation: isolate; }
.hero .photo { position: absolute; inset: 0; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,25,36,.15) 0%, rgba(10,25,36,.35) 45%, rgba(10,25,36,.82) 100%); }
.hero .wrap { padding: 7rem 0 4.5rem; }
.hero h1 { max-width: 15ch; }
.hero .lead { color: rgba(255,255,255,.9); }
.hero .eyebrow { color: #f3d08a; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-facts { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.25); font-size: .95rem; color: rgba(255,255,255,.85); }
@media (max-width: 520px) { .hero-facts { gap: 1.4rem; font-size: .85rem; } .hero-facts strong { font-size: 1.5rem; } }
.hero-facts strong { display: block; font-family: var(--serif); font-size: 1.8rem; color: #fff; line-height: 1.1; }

/* Page hero (inner pages) */
.page-hero { position: relative; color: #fff; isolation: isolate; }
.page-hero .photo { position: absolute; inset: 0; z-index: -2; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,25,36,.85) 0%, rgba(10,25,36,.45) 70%, rgba(10,25,36,.25) 100%); }
.page-hero .wrap { padding: clamp(5rem, 12vw, 8.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.page-hero .lead { color: rgba(255,255,255,.9); }
.page-hero.plain { background: var(--ink); }
.page-hero.plain::after { display: none; }
.crumbs { font-size: .88rem; margin-bottom: 1rem; color: rgba(255,255,255,.75); }
.crumbs a { color: inherit; }

/* Cards & grids */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.card .photo { aspect-ratio: 4 / 3; }
.card .photo img { transition: transform .6s; }
a.card:hover .photo img { transform: scale(1.04); }
.card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card-body h3 { margin: 0; }
.card-meta { display: flex; gap: .6rem; flex-wrap: wrap; font-size: .84rem; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: .3rem; background: var(--sand); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .65rem; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.price { margin-top: auto; padding-top: .8rem; display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); }
.price strong { font-family: var(--serif); font-size: 1.25rem; color: var(--accent-ink); }
.badge { position: absolute; top: 1rem; left: 1rem; background: rgba(255,255,255,.92); color: var(--ink); padding: .3rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; }

/* Tile (region/experience) */
.tile { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 4; display: flex; align-items: end; color: #fff; text-decoration: none; isolation: isolate; box-shadow: var(--shadow); }
.tile .photo { position: absolute; inset: 0; z-index: -2; }
.tile .photo img { transition: transform .6s; }
.tile:hover .photo img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(10,25,36,.85)); }
.tile-body { padding: 1.4rem; }
.tile-body h3 { margin: 0 0 .2rem; font-size: 1.5rem; }
.tile-body span { font-size: .9rem; opacity: .85; }
.tile:hover { color: #fff; }
.tiles-wide .tile { aspect-ratio: 16 / 11; }

/* Split / feature */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split .photo { border-radius: var(--radius-lg); aspect-ratio: 5 / 4; box-shadow: var(--shadow-lg); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .55rem; }
.ticks li { padding-left: 1.8rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }

/* Quote */
.quote { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); position: relative; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.4; }
.quote blockquote::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--gold); margin-bottom: .6rem; }
.quote figcaption { margin-top: 1.4rem; color: rgba(255,255,255,.75); font-size: .95rem; }
.quote figcaption strong { color: #fff; }

/* CTA band */
.cta-band { background: var(--accent); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 .3rem; }
.cta-band p { margin: 0; opacity: .92; }

/* Tour detail */
.tour-layout { display: grid; grid-template-columns: 1fr 340px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 960px) { .tour-layout { grid-template-columns: 1fr; } }
.facts { position: sticky; top: 96px; background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.6rem; }
.facts dl { margin: 0 0 1.3rem; display: grid; gap: .9rem; }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.facts dd { margin: .1rem 0 0; font-weight: 600; }
.facts .big { font-family: var(--serif); font-size: 1.9rem; color: var(--accent-ink); line-height: 1.1; }
.facts .btn { width: 100%; justify-content: center; }
.facts .phone { display: block; text-align: center; margin-top: .9rem; font-size: .92rem; }
.prose h2 { font-size: 1.7rem; margin-top: 2.4rem; }
.prose h2:first-child { margin-top: 0; }
.ext-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ext { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.ext h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.ext .card-meta { margin-bottom: .5rem; }
.disclaimer { font-size: .85rem; color: var(--muted); margin-top: 2rem; }

/* Filters */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filters button { font: 600 .9rem var(--sans); padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { display: none; padding: 2rem; text-align: center; color: var(--muted); }

/* Team */
.person { text-align: center; }
.person .avatar { width: 128px; height: 128px; border-radius: 50%; margin: 0 auto 1rem; box-shadow: var(--shadow); display: grid; place-items: center; font: 600 2.4rem var(--serif); color: #fff; }
.person h3 { margin-bottom: .1rem; }
.person .role { color: var(--accent); font-weight: 600; font-size: .9rem; margin-bottom: .6rem; }
.person p { font-size: .95rem; color: var(--ink-2); }

/* Forms */
.form { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.field input, .field textarea, .field select { width: 100%; font: inherit; padding: .8rem .95rem; border: 1px solid #cfc5b6; border-radius: 10px; background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink-2); outline: 3px solid rgba(201,154,61,.35); outline-offset: 0; }
.field textarea { min-height: 150px; resize: vertical; }
.field .err { color: var(--accent-ink); font-size: .85rem; margin-top: .3rem; display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--accent); }
.field.invalid .err { display: block; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.consent input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 1rem 1.2rem; border-radius: 10px; font-weight: 600; display: none; }
.form-status.ok { display: block; background: #e5f2e8; color: #1f5a31; }
.form-status.fail { display: block; background: #fbe7e2; color: var(--accent-ink); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1.2rem; }
.contact-list dt, .contact-list .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.contact-list a { font-size: 1.15rem; font-weight: 600; text-decoration: none; }

/* Resources */
.res { background: var(--paper); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow); }
.res ul { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.res ul a { display: inline-block; padding: .35rem .8rem; border-radius: 999px; background: var(--sand); border: 1px solid var(--line); text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--ink); }
.res ul a:hover { background: var(--sand-2); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding: 4rem 0 2rem; margin-top: 0; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer .brand { color: #fff; margin-bottom: .8rem; }
.socials { display: flex; gap: .6rem; margin-top: 1rem; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); }
.socials a:hover { background: rgba(255,255,255,.2); }
.socials svg { width: 18px; height: 18px; fill: #fff; }
.legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: rgba(255,255,255,.6); }

/* Reveal on scroll (progressive enhancement) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* At-a-glance answer box (AEO) */
.glance { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-bottom: 2.4rem; }
.glance h2 { font-size: 1.05rem !important; font-family: var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin: 0 0 .6rem !important; }
.glance p { font-size: 1.08rem; margin-bottom: 1rem; }
.glance dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem 1.2rem; margin: 0; }
.glance dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.glance dd { margin: .1rem 0 0; font-weight: 600; }

/* FAQ accordion */
.faq h2 { margin-top: 2.4rem; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 1.05rem 2rem 1.05rem 0; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: .2rem; top: .8rem; font-size: 1.5rem; color: var(--accent); transition: transform .2s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa summary h3 { display: inline; font-size: 1.12rem; margin: 0; }
.qa p { margin: 0 0 1.1rem; color: var(--ink-2); }

/* Footer trust badges (IATA, OPC) */
.trust { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.badge-trust { display: inline-flex; align-items: center; min-height: 48px; padding: .45rem .9rem; border-radius: 10px; background: #fff; color: var(--ink); text-decoration: none; font: 600 .82rem/1.2 var(--sans); letter-spacing: .02em; }
.site-footer .badge-trust, .site-footer .badge-trust:hover { color: var(--ink); }
.badge-trust img { height: 64px; width: auto; display: block; }

/* Rotating hero photos (home, sports) */
.slides img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.slides img.on { opacity: 1; }
