:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --elev: #ffffff;
  --text: #0f172a;
  --muted: #5b6b84;
  --brand: #ff6f61; /* coral */
  --brand-2: #2bb4a0; /* sea green */
  --ring: color-mix(in srgb, var(--brand) 65%, var(--brand-2) 35%);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(16,24,40,.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1000px 700px at 80% -10%, rgba(255, 111, 97, .08), transparent 60%),
    radial-gradient(900px 700px at 0% -10%, rgba(43, 180, 160, .07), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container { width: min(1100px, 92vw); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px; margin: 10px auto; width: min(1100px, 94vw);
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(8px) saturate(140%);
  border: 1px solid rgba(2,6,23,.07);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}
.logo { color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: .4px; }
.lang-switcher { display: flex; gap: 4px; margin-right: 8px; }
.lang-btn { padding: 6px 10px; border: 1px solid rgba(2,6,23,.08); background: #fff; color: var(--text); border-radius: 8px; font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .2s ease; }
.lang-btn:hover { background: rgba(2,6,23,.04); }
.lang-btn.active { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent; }
.menu-toggle { display: none; position: relative; width: 40px; height: 40px; border: 1px solid rgba(2,6,23,.08); background: #fff; color: var(--text); border-radius: 10px; box-shadow: var(--shadow); padding: 0; }
.menu-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: #0f172a; border-radius: 2px; transition: transform .25s ease, opacity .2s ease, top .25s ease; }
.menu-toggle span:nth-child(1) { top: 12px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 26px; }
.site-header.open .menu-toggle span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.site-header.open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.open .menu-toggle span:nth-child(3) { top: 19px; transform: rotate(-45deg); }
.nav a { color: var(--text); text-decoration: none; margin-left: 18px; padding: 8px 14px; border-radius: 12px; opacity: .9 }
.nav a:hover { background: rgba(15,23,42,.06); opacity: 1 }
.nav a.active { background: rgba(255,111,97,.12); color: #7a2a22 }
.nav .cta { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #ffffff; font-weight: 700; }

.hero { position: relative; }
.hero-parallax {
  display: grid; place-items: center; text-align: center;
  background-image: var(--hero-image);
  background-position: center; background-size: cover; background-attachment: scroll;
  height: clamp(320px, 55vw, 520px);
}
.hero-parallax .hero-bg { display: none; }
/* Fixed-height hero on mobile is already handled by clamp(), so no vh hacks needed */
.hero .hero-content { max-width: 760px; padding: 24px; margin: 0 16px; border-radius: var(--radius);
  background: color-mix(in srgb, #ffffff 70%, transparent);
  box-shadow: 0 10px 30px rgba(16,24,40,.08), inset 0 0 0 1px rgba(2,6,23,.06);
}
.hero h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin: 0 0 10px }
.hero p { color: var(--muted); margin: 0 0 18px }

.button { display: inline-block; padding: 10px 16px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #ffffff; text-decoration: none; font-weight: 700; box-shadow: var(--shadow) }
.button.ghost { background: rgba(15,23,42,.06); color: var(--text); border: 1px solid rgba(2,6,23,.08); font-weight: 600 }
.button + .button { margin-left: 10px }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 48px auto }
.feature { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid rgba(2,6,23,.08); border-radius: var(--radius); box-shadow: var(--shadow) }
.feature img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px }

.callout { text-align: center; padding: 40px 0 70px }
.callout h3 { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 8px }
.callout p { color: var(--muted); margin-bottom: 16px }

.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; margin: 60px auto; align-items: center }
.split.diagram-section { margin: 30px auto; }
.split .text p { color: var(--muted) }
h2 { text-align: left; }
.diagram-title-section { margin-top: 40px; margin-bottom: 10px; }
.media img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius) }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.media figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px }
.media.right { order: 2 }
.media.left { order: 1 }

.band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 60px auto }
.card { background: #ffffff; border: 1px solid rgba(2,6,23,.08); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow) }
.card h3 { margin-top: 0 }

.page-intro { margin: 36px auto 20px; }
.page-intro p { color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px auto 60px }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow); border: 1px solid rgba(2,6,23,.08) }
.gallery figcaption { color: var(--muted); font-size: .85rem; margin-top: 6px }

.quote { text-align: center; margin: 10px auto 70px }
.quote blockquote { margin: 0; font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 600; color: #083344 }
.quote .attribution { color: var(--muted); margin-top: 8px }

.trip-list { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 24px 0 60px }
.trip { display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-items: start; background: var(--surface); border: 1px solid rgba(2,6,23,.08); border-radius: var(--radius); overflow: clip; box-shadow: var(--shadow) }
.trip img { width: 100%; aspect-ratio: 16 / 9; height: 100%; object-fit: cover; object-position: center center; display: block; transition: height .35s ease, transform .35s ease; }
.trip.details-open img { transform: scale(1.02); }
.trip .trip-body { padding: 16px }
.trip .meta { list-style: none; padding: 0; margin: 8px 0 10px; display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted) }
.trip details { 
  background: rgba(2,6,23,.03); 
  border: 1px solid rgba(2,6,23,.08); 
  padding: 0; 
  border-radius: 12px; 
  margin: 8px 0 12px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}
.trip details[open] {
  background: rgba(2,6,23,.05);
  border-color: rgba(2,6,23,.12);
}
.trip details summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 6px 20px 6px 12px;
  margin: 0;
  transition: color 0.2s ease;
  display: block;
}
.trip details summary::-webkit-details-marker {
  display: none;
}
.trip details summary::after {
  content: '▼';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.3s ease;
  font-size: 0.7em;
  color: var(--muted);
}
.trip details[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}
.trip details summary:hover {
  color: var(--text);
}
.trip details .details-content {
  padding: 0 12px 12px 12px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
  opacity: 0;
  transform: translateY(-8px);
}
.trip details[open] .details-content {
  opacity: 1;
  transform: translateY(0);
}
.trip .included { color: var(--muted) }
/* Make headers inside details lighter and slightly smaller */
.trip details h3 { font-size: 1rem; line-height: 1.3; margin: 6px 0 4px; color: var(--muted); font-weight: 700 }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 10px 0 30px }
.contact-card { background: var(--surface); border: 1px solid rgba(2,6,23,.08); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow) }
.links { list-style: none; padding: 0; margin: 0 }
.links li { margin: 8px 0 }
.links a { color: #0b4f68; text-decoration: none }
.links a:hover { text-decoration: underline }

.map-wrap { margin: 10px 0 60px }
.map { height: 380px; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(2,6,23,.08); box-shadow: var(--shadow) }

.site-footer { text-align: center; padding: 20px 0 40px; color: var(--muted) }

/* Donation page styles */
.donation-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 40px auto 60px; max-width: 900px; }
.donation-card { background: var(--surface); border: 1px solid rgba(2,6,23,.08); border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.donation-card:hover { transform: translateY(-4px); box-shadow: 0 15px 40px rgba(16,24,40,.12); }
.donation-icon { font-size: 3rem; margin-bottom: 12px; }
.donation-card h2 { margin: 0 0 8px; font-size: 1.5rem; }
.donation-price { font-size: 2rem; font-weight: 800; color: var(--brand); margin: 12px 0; }
.donation-card p { color: var(--muted); margin: 8px 0 20px; }

/* Modal styles */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal { background: #fff; border-radius: var(--radius); padding: 28px; max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); position: relative; transform: scale(.95); transition: transform .3s ease; }
.modal-overlay.active .modal { transform: scale(1); }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 28px; color: var(--muted); cursor: pointer; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all .2s ease; }
.modal-close:hover { background: rgba(2,6,23,.06); color: var(--text); }
.modal h2 { margin: 0 0 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text); }
.donation-summary { background: rgba(2,6,23,.04); border: 1px solid rgba(2,6,23,.08); border-radius: 8px; padding: 12px; font-weight: 600; }
.payment-methods { display: flex; gap: 12px; }
.payment-option { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid rgba(2,6,23,.08); border-radius: 8px; cursor: pointer; transition: all .2s ease; }
.payment-option:hover { background: rgba(2,6,23,.04); }
.payment-option input[type="radio"] { margin: 0; }
.form-group input, .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid rgba(2,6,23,.08); border-radius: 8px; font-family: inherit; font-size: 1rem; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,111,97,.1); }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }
.form-actions .button { flex: 0 0 auto; }

/* Circular diagram styles */
.circular-diagram-container { position: relative; width: 100%; max-width: 600px; min-height: 600px; display: flex; align-items: flex-start; justify-content: center; flex: 1; padding-top: 0; }
.circular-diagram-container svg { display: block; }
.diagram-center { min-height: 200px; display: flex; flex-direction: column; justify-content: center; position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); text-align: center; width: 220px; }
.circular-diagram-container svg rect[class*="step-rect"] { transition: stroke-width 0.6s cubic-bezier(0.4, 0, 0.2, 1), stroke-opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
@media (max-width: 980px) {
  .circular-diagram-container { max-width: 100%; min-height: 600px; }
}
@media (max-width: 640px) {
  .circular-diagram-container { min-height: 500px; flex-direction: column; align-items: center; }
  .circular-diagram-container svg { width: 100%; height: auto; margin-bottom: 0 !important; }
  .diagram-center { position: static !important; width: 100% !important; max-width: 300px !important; margin: 4px auto 0 !important; transform: none !important; order: 2; }
  .circular-diagram-container svg { order: 1; }
  .diagram-center .center-description { font-size: 1.1rem !important; }
}

@media (max-width: 980px) {
  .donation-options { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 100px 1fr; }
  .split { grid-template-columns: 1fr; }
  .media.right, .media.left { order: initial; }
  .band { grid-template-columns: repeat(2, 1fr); }
  .trip { display: block; }
  .trip img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img { height: 160px }
}

/* Compact navigation layout for small screens */
@media (max-width: 640px) {
  /* Make hero taller on small screens so longer copy fits */
  .hero-parallax { height: auto; min-height: calc(var(--vh, 1vh) * 85); padding: 12px 0; }
  .hero .hero-content { max-width: 92vw; }
  .band { grid-template-columns: 1fr; }
  .site-header { position: sticky; top: 0; z-index: 100; flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
  .logo { font-size: 1rem; }
  .lang-switcher { order: 2; margin-left: auto; margin-right: 8px; }
  .menu-toggle { display: inline-block; order: 3; }
  .nav { position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; display: flex; flex-direction: column; gap: 0; background: #ffffff; border: 1px solid rgba(2,6,23,.08); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
  .site-header.open .nav { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav a { display: block; margin-left: 0; text-align: left; padding: 10px 12px; font-size: 1rem; border: none; border-radius: 8px; background: transparent; }
  .nav a:hover { background: rgba(2,6,23,.03); }
  .nav .cta { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; text-align: center; }
}


