/* =============================================
   TulumRuins.org — Main Stylesheet
   Earthy / natural aesthetic
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lora:ital,wght@0,400;0,600;1,400&family=Source+Sans+3:wght@300;400;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sand:       #F5F0E8;
  --sand-dark:  #E2D9C5;
  --stone:      #C4B89A;
  --stone-dark: #8B7D5E;
  --jungle:     #3D5C3A;
  --jungle-mid: #4F7249;
  --jungle-pale:#EBF0E8;
  --earth:      #6B4C2A;
  --earth-light:#9B7040;
  --sky:        #B8D4E8;
  --ink:        #2A2018;
  --text-mid:   #5C4A30;
  --text-light: #8B7455;
  --white:      #FEFCF8;
  --nav-h:      56px;
  --max-w:      1100px;
  --r:          4px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--sand);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAVIGATION ── */
.site-nav {
  background: var(--ink);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 2px solid var(--earth);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  color: var(--stone);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.nav-logo span { color: var(--sand); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
}
.nav-links a {
  color: var(--stone);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 0.9rem;
  display: block;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); background: rgba(255,255,255,0.07); }
.nav-links a.nav-cta {
  background: var(--jungle);
  color: var(--sand) !important;
  border-radius: var(--r);
  margin-left: 0.5rem;
  padding: 0.45rem 1rem !important;
}
.nav-links a.nav-cta:hover { background: var(--jungle-mid); }

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--sand-dark);
  padding: 0.6rem 2rem;
  font-size: 0.78rem;
  color: var(--text-light);
}
.breadcrumb a { color: var(--jungle); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.4rem; color: var(--stone); }

/* ── HERO VARIANTS ── */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 5rem 2rem 4rem;
  min-height: 70vh;
}
.hero-full { min-height: 88vh; }

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
  transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1.03); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42,32,24,0.85) 0%, rgba(42,32,24,0.2) 60%, transparent 100%);
}

.hero-content { position: relative; max-width: var(--max-w); margin: 0 auto; width: 100%; }

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1rem;
  animation: fadeUp 0.7s 0.2s both;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  color: var(--sand);
  line-height: 1.1;
  font-weight: 700;
  max-width: 680px;
  animation: fadeUp 0.7s 0.35s both;
}
.hero h1 em { color: var(--stone); font-style: italic; }
.hero-lead {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  color: rgba(245,240,232,0.82);
  max-width: 520px;
  margin-top: 1.25rem;
  line-height: 1.75;
  animation: fadeUp 0.7s 0.5s both;
}
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-top: 2rem;
  animation: fadeUp 0.7s 0.65s both;
}

/* ── QUICK STRIP ── */
.info-strip {
  background: var(--ink);
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(196,184,154,0.1);
}
.info-item {
  flex: 1; min-width: 140px;
  padding: 1.1rem 1.5rem;
  border-right: 1px solid rgba(196,184,154,0.08);
}
.info-item:last-child { border-right: none; }
.info-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone-dark); }
.info-value { font-size: 1rem; font-weight: 600; color: var(--sand); }
.info-note  { font-size: 0.7rem; color: var(--stone-dark); }

/* ── SECTIONS ── */
section { padding: 5rem 2rem; }
section.tight { padding: 3rem 2rem; }
section.dark  { background: var(--ink); }
section.pale  { background: var(--jungle-pale); }
section.white { background: var(--white); }

.inner { max-width: var(--max-w); margin: 0 auto; }

.eyebrow {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--jungle); margin-bottom: 0.6rem;
}
.dark .eyebrow { color: var(--stone-dark); }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
}
.dark .section-title { color: var(--sand); }

.section-lead {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 580px;
  margin-top: 0.75rem;
  line-height: 1.8;
}
.dark .section-lead { color: rgba(196,184,154,0.72); }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.85rem 1.85rem;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.18s;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--earth); color: var(--sand); }
.btn-primary:hover { background: var(--earth-light); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1.5px solid rgba(196,184,154,0.55); color: var(--stone); }
.btn-outline:hover { border-color: var(--stone); color: var(--sand); background: rgba(196,184,154,0.1); }
.btn-jungle { background: var(--jungle); color: var(--sand); }
.btn-jungle:hover { background: var(--jungle-mid); }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(42,32,24,0.1); }

.card-img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: var(--sand-dark);
}
.card-img-tall { aspect-ratio: 3/4; }
.card-body { padding: 1.25rem 1.5rem; }
.card-body h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; margin-bottom: 0.4rem; color: var(--ink); }
.card-body p  { font-size: 0.9rem; color: var(--text-mid); line-height: 1.65; }
.card-body .meta { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-dark); margin-bottom: 0.4rem; }

/* ── GRID HELPERS ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.grid-auto-sm { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }

/* ── FACT CARD ── */
.fact-card {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-left: 3px solid var(--earth);
  padding: 1.1rem 1.4rem;
  border-radius: var(--r);
}
.fact-card h4 { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone-dark); margin-bottom: 0.2rem; }
.fact-card p  { font-size: 0.93rem; color: var(--ink); }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--sand-dark); }
.faq-item:first-child { border-top: 1px solid var(--sand-dark); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 1.2rem 0;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
  font-family: 'Lora', serif; font-size: 1rem; color: var(--ink); font-weight: 600;
}
.faq-q:hover { color: var(--jungle); }
.dark .faq-q { color: var(--sand); }
.dark .faq-q:hover { color: var(--stone); }
.dark .faq-item { border-color: rgba(196,184,154,0.15); }
.dark .faq-item:first-child { border-color: rgba(196,184,154,0.15); }
.dark .faq-icon { border-color: var(--stone-dark); color: var(--stone-dark); }
.dark .faq-item.open .faq-icon { border-color: var(--stone); color: var(--stone); }
.faq-icon {
  width: 22px; height: 22px; border: 1.5px solid var(--stone); border-radius: 50%;
  flex-shrink: 0; margin-left: 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--stone); transition: transform 0.22s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); border-color: var(--jungle); color: var(--jungle); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a-inner { padding-bottom: 1.25rem; font-size: 0.95rem; color: var(--text-mid); line-height: 1.8; }
.faq-item.open .faq-a { max-height: 400px; }

/* ── TICKET CARDS ── */
.ticket-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(196,184,154,0.15);
  border-radius: var(--r);
  padding: 1.75rem 1.5rem;
  position: relative;
}
.ticket-card.featured { border-color: var(--earth); background: rgba(107,76,42,0.15); }
.ticket-badge {
  position: absolute; top: -10px; left: 1.5rem;
  background: var(--earth); color: var(--sand);
  font-size: 0.63rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 2px;
}
.ticket-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone-dark); margin-bottom: 0.5rem; }
.ticket-price { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--sand); line-height: 1; margin-bottom: 0.25rem; }
.ticket-price span { font-size: 1rem; font-weight: 400; color: var(--stone-dark); }
.ticket-desc { font-size: 0.85rem; color: rgba(196,184,154,0.72); margin-top: 0.5rem; line-height: 1.5; }
.ticket-note { font-size: 0.74rem; color: var(--stone-dark); margin-top: 0.65rem; font-style: italic; }

/* ── CALLOUT BOX ── */
.callout {
  background: var(--jungle-pale);
  border-left: 3px solid var(--jungle);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--r) var(--r) 0;
  margin: 1.5rem 0;
}
.callout-dark {
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--earth);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--r) var(--r) 0;
}
.callout p, .callout-dark p { font-size: 0.93rem; line-height: 1.75; }
.callout strong { color: var(--jungle); }
.callout-dark strong { color: var(--stone); }
.callout-dark p { color: rgba(196,184,154,0.75); }

/* ── INTERNAL LINK GRID ── */
.page-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.page-link-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(196,184,154,0.15);
  border-radius: var(--r);
  padding: 1.25rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.page-link-card:hover { background: rgba(255,255,255,0.09); border-color: var(--stone-dark); }
.page-link-card .plc-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone-dark); margin-bottom: 0.3rem; }
.page-link-card .plc-title { font-size: 1rem; font-weight: 600; color: var(--sand); }
.page-link-card .plc-arrow { font-size: 0.85rem; color: var(--stone-dark); margin-top: 0.4rem; }

/* ── PROSE ── */
.prose p { font-size: 1rem; color: var(--text-mid); line-height: 1.85; margin-bottom: 1.15rem; }
.prose p:first-child { font-family: 'Lora', serif; font-size: 1.08rem; color: var(--ink); }
.prose h3 { font-family: 'Playfair Display', serif; font-size: 1.35rem; color: var(--ink); margin: 2rem 0 0.5rem; }
.prose ul { margin: 0 0 1.15rem 1.5rem; }
.prose li { font-size: 0.97rem; color: var(--text-mid); line-height: 1.75; margin-bottom: 0.3rem; }

/* ── STAR RATING ── */
.stars { color: var(--earth-light); font-size: 1rem; letter-spacing: 1px; }

/* ── TABLE ── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data-table th { background: var(--ink); color: var(--stone); text-align: left; padding: 0.85rem 1.1rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.data-table td { padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--sand-dark); color: var(--text-mid); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--jungle-pale); }

/* ── FOOTER ── */
.site-footer {
  background: var(--ink);
  padding: 3.5rem 2rem 2rem;
  border-top: 2px solid var(--earth);
}
.footer-grid { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { font-family: 'Playfair Display', serif; font-size: 1.25rem; color: var(--stone); margin-bottom: 0.6rem; }
.footer-desc { font-size: 0.84rem; color: var(--stone-dark); line-height: 1.7; }
.footer-col h4 { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone-dark); margin-bottom: 0.85rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.footer-col a { color: var(--stone); text-decoration: none; font-size: 0.86rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--sand); }
.footer-bottom { max-width: var(--max-w); margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(196,184,154,0.1); display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.76rem; color: var(--stone-dark); }
.footer-disclaimer { font-size: 0.7rem; color: rgba(139,125,101,0.55); max-width: 480px; line-height: 1.5; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-nav { padding: 0 1rem; }
  .nav-links { display: none; }
  section { padding: 3rem 1.25rem; }
  .hero { padding: 3rem 1.25rem 3rem; min-height: 60vh; }
  .hero-full { min-height: 75vh; }
  .footer-grid { grid-template-columns: 1fr; }
  .breadcrumb { padding: 0.6rem 1.25rem; }
}

/* ── IMAGE CAPTION ── */
.img-caption { font-size: 0.74rem; color: var(--text-light); margin-top: 0.5rem; font-style: italic; text-align: center; }

/* ── PHOTO GRID ── */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.photo-item img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--r); display: block; border: 1px solid var(--sand-dark); }
.photo-item p { font-size: 0.74rem; color: var(--text-light); margin-top: 0.4rem; font-style: italic; }

/* ── TOUR CARD ── */
.tour-card {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tour-card img { width: 100%; height: 200px; object-fit: cover; }
.tour-body { padding: 1.35rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.tour-body h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: 0.35rem; color: var(--ink); }
.tour-body p  { font-size: 0.88rem; color: var(--text-mid); line-height: 1.65; flex: 1; }
.tour-body .price { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--earth); font-weight: 700; margin: 0.85rem 0 0; }
.tour-body .price span { font-size: 0.8rem; color: var(--stone-dark); font-family: 'Source Sans 3', sans-serif; font-weight: 400; }
.tour-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.tour-tag { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; background: var(--jungle-pale); color: var(--jungle); padding: 3px 8px; border-radius: 2px; }

/* ── IMAGE ERROR FALLBACK ── */
img {
  background: linear-gradient(135deg, var(--sand-dark), var(--stone));
}
img[src=""], img:not([src]) {
  visibility: hidden;
}


/* ── IMAGE FALLBACK (gradient shown before photo loads) ── */
img { background: linear-gradient(135deg, var(--sand-dark), var(--stone)); }
