/* Cenote Dzitnup — site styles */
:root {
  --ink: #12282b;
  --ink-soft: #3f5558;
  --muted: #6b7d7f;
  --water: #0b7f8a;
  --water-deep: #07535c;
  --water-light: #d9f0ef;
  --sand: #faf6ee;
  --stone: #efe6d6;
  --stone-line: #e0d4bf;
  --jungle: #2e5b3c;
  --sun: #e2a03a;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(7, 46, 52, 0.28);
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--water-deep); text-underline-offset: 3px; }
a:hover { color: var(--water); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: 0.35em; }
strong { font-weight: 600; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 238, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--stone-line);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; white-space: nowrap; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); line-height: 1; }
.brand span { line-height: 1.1; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav a { display: block; padding: 8px 11px; border-radius: 8px; text-decoration: none; color: var(--ink-soft); font-size: 0.93rem; font-weight: 500; }
.main-nav a:hover { background: var(--stone); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--water-deep); background: var(--water-light); }

.lang-switch { display: flex; border: 1px solid var(--stone-line); border-radius: 999px; overflow: hidden; flex: none; background: var(--white); }
.lang-switch a, .lang-switch span { padding: 6px 12px; font-size: 0.82rem; font-weight: 600; text-decoration: none; letter-spacing: 0.04em; }
.lang-switch span { background: var(--water-deep); color: #fff; }
.lang-switch a { color: var(--ink-soft); }
.lang-switch a:hover { background: var(--water-light); color: var(--water-deep); }

.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--stone-line); border-radius: 8px; width: 42px; height: 40px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }

@media (max-width: 980px) {
  .nav-toggle { display: grid; place-items: center; }
  .main-nav { position: absolute; top: 66px; left: 0; right: 0; background: var(--sand); border-bottom: 1px solid var(--stone-line); display: none; margin: 0; padding: 8px var(--gutter) 16px; box-shadow: var(--shadow); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 12px 10px; font-size: 1rem; }
  .lang-switch { order: 3; }
}
@media (max-width: 420px) {
  .brand small { display: none; }
  .brand { font-size: 1.05rem; }
}

/* ---------- Language suggestion banner ---------- */
.lang-banner { background: var(--water-deep); color: #fff; font-size: 0.92rem; }
.lang-banner .wrap { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.lang-banner a { color: #fff; font-weight: 600; }
.lang-banner button { margin-left: auto; background: transparent; border: 1px solid rgba(255,255,255,0.5); color: #fff; border-radius: 6px; padding: 4px 10px; cursor: pointer; font: inherit; font-size: 0.85rem; }
.lang-banner[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--water-deep); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 30, 34, 0.15) 0%, rgba(4, 30, 34, 0.35) 45%, rgba(4, 30, 34, 0.85) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 120px; padding-bottom: clamp(40px, 7vw, 80px); width: 100%; }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: 0.3em; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 46ch; color: rgba(255,255,255,0.92); }
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sun); margin-bottom: 14px; }
.hero .eyebrow { color: #ffd38a; }
.hero-credit { position: absolute; right: 12px; bottom: 8px; z-index: 1; font-size: 0.7rem; color: rgba(255,255,255,0.7); }
.hero-credit a { color: inherit; }

.page-hero { position: relative; color: #fff; background: var(--water-deep); overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,30,34,0.35), rgba(4,30,34,0.82)); }
.page-hero .wrap { position: relative; z-index: 1; padding-top: clamp(90px, 14vw, 170px); padding-bottom: clamp(36px, 6vw, 64px); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); max-width: 20ch; }
.page-hero .lead { color: rgba(255,255,255,0.9); max-width: 60ch; font-size: 1.12rem; margin: 0; }
.page-hero.plain { background: linear-gradient(135deg, var(--water-deep), var(--jungle)); }
.page-hero.plain::after { display: none; }

.breadcrumb { font-size: 0.85rem; margin-bottom: 14px; color: rgba(255,255,255,0.8); }
.breadcrumb a { color: rgba(255,255,255,0.9); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; opacity: 0.7; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 0.98rem; text-decoration: none; border: 2px solid transparent; transition: transform 0.15s ease, background 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sun); color: #2b1a00; }
.btn-primary:hover { background: #f0b04c; color: #2b1a00; }
.btn-ghost { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-dark { background: var(--water-deep); color: #fff; }
.btn-dark:hover { background: var(--water); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Quick facts ---------- */
.facts { background: var(--white); border-bottom: 1px solid var(--stone-line); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 22px 20px; border-left: 1px solid var(--stone-line); margin: 0; }
.facts li:first-child { border-left: 0; }
.facts .k { display: block; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.facts .v { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--ink); line-height: 1.3; margin-top: 4px; }
.facts .s { display: block; font-size: 0.85rem; color: var(--ink-soft); }
@media (max-width: 820px) {
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--stone-line); }
}

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 96px) 0; }
section.tight { padding: clamp(40px, 6vw, 64px) 0; }
.alt { background: var(--white); }
.stone { background: var(--stone); }
.deep { background: var(--water-deep); color: #e8f6f5; }
.deep h2, .deep h3 { color: #fff; }
.deep a { color: #a8e6e2; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.deep .section-head p { color: #cfe9e7; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }

/* ---------- Figures ---------- */
figure { margin: 0; }
figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 8px; }
figcaption a { color: inherit; }
.deep figcaption { color: #9fc7c4; }
.fig-tall img { aspect-ratio: 3 / 4; object-fit: cover; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--stone-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border-radius: 0; box-shadow: none; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--ink-soft); }
.card-body .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.card-body .more::after { content: " →"; }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--water-deep); background: var(--water-light); padding: 3px 9px; border-radius: 999px; margin-bottom: 10px; align-self: flex-start; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.feature { background: var(--white); border: 1px solid var(--stone-line); border-radius: var(--radius); padding: 22px; }
.stone .feature, .alt .feature { background: var(--sand); }
.feature svg { width: 30px; height: 30px; color: var(--water); margin-bottom: 10px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 6px; font-family: var(--font-body); font-weight: 600; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--stone-line); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--stone-line); vertical-align: top; }
th { background: var(--stone); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
tr:last-child td { border-bottom: 0; }
td.price { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; white-space: nowrap; }
.note { font-size: 0.88rem; color: var(--muted); margin-top: 12px; }

/* ---------- Callouts & lists ---------- */
.callout { border-left: 4px solid var(--sun); background: #fff7e8; padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.4em 0; }
.callout p:last-child { margin: 0; }
.callout.info { border-color: var(--water); background: var(--water-light); }

.check-list, .x-list { list-style: none; padding: 0; }
.check-list li, .x-list li { position: relative; padding-left: 30px; }
.check-list li::before, .x-list li::before { position: absolute; left: 0; top: 0.1em; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; }
.check-list li::before { content: "✓"; background: var(--water-light); color: var(--water-deep); }
.x-list li::before { content: "✕"; background: #fde8e4; color: #a33a24; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; margin-bottom: 18px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--water-deep); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: var(--white); border: 1px solid var(--stone-line); border-radius: var(--radius-sm); padding: 0 20px; }
.faq-list summary { cursor: pointer; padding: 18px 30px 18px 0; font-weight: 600; list-style: none; position: relative; font-size: 1.03rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--water); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details > div { padding-bottom: 18px; color: var(--ink-soft); }
.faq-list details > div p:last-child { margin: 0; }
.faq-group { margin-bottom: 44px; }
.faq-group h2 { font-size: 1.6rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; }
.gallery figure { position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; transition: transform 0.5s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 22px 12px 8px; background: linear-gradient(transparent, rgba(0,0,0,0.65)); color: #fff; font-size: 0.75rem; }
.gallery .w2 { grid-column: span 2; }
.gallery .h2 { grid-row: span 2; }
@media (max-width: 820px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; } }

/* ---------- Map ---------- */
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--stone-line); aspect-ratio: 16 / 10; background: var(--stone); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.coords { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9rem; background: var(--stone); padding: 2px 8px; border-radius: 6px; }

/* ---------- Nearby list ---------- */
.nearby-item { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--stone-line); }
.nearby-item:last-child { border-bottom: 0; }
.nearby-item .num { width: 48px; height: 48px; border-radius: 50%; background: var(--water-light); color: var(--water-deep); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.nearby-item h3 { margin-bottom: 4px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.88rem; color: var(--muted); margin-bottom: 8px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--water-deep), #0b6a73 60%, var(--jungle)); color: #fff; border-radius: var(--radius); padding: clamp(28px, 5vw, 52px); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { margin: 0; color: #d6efed; }

/* ---------- Footer ---------- */
.site-footer { background: #0c2326; color: #b9cfcf; font-size: 0.93rem; padding: 64px 0 28px; }
.site-footer a { color: #e2f1f0; 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: 36px; }
.site-footer h2 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand { font-family: var(--font-display); color: #fff; font-size: 1.4rem; font-weight: 600; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 44px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.83rem; color: #8aa5a5; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.card figcaption { padding: 8px 24px 0; }
.meta svg { width: 14px; height: 14px; vertical-align: -2px; }
