/* ===========================
   FORGE — Costa Rica
   Stylesheet
   =========================== */

:root {
  --bg: #0b0b0b;
  --bg-2: #111111;
  --bg-3: #161616;
  --ink: #f5f3ee;
  --ink-dim: #c8c4bb;
  --ink-mute: #8a857c;
  --gold: #c9a44c;
  --gold-bright: #e0bf6a;
  --line: rgba(245,243,238,0.12);
  --shadow: 0 30px 80px rgba(0,0,0,0.5);
  --max: 1240px;
  --pad: clamp(20px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; transition: color .3s ease; }
a:hover { color: var(--gold-bright); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ===========================
   TYPOGRAPHY
   =========================== */

.h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.lead {
  font-size: 1.08rem;
  color: var(--ink-dim);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.col-text p {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink-dim);
  margin-bottom: 1.5rem;
}
.col-text p:last-of-type { margin-bottom: 0; }

.section-sub {
  color: var(--ink-dim);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
  font-size: 1.05rem;
  text-wrap: balance;
}

p { color: var(--ink-dim); }

/* ===========================
   NAV
   =========================== */

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(11,11,11,0);
  transition: background .35s ease, padding .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11,11,11,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0;
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1rem;
}
.logo-mark-img {
  height: 28px;
  width: 28px;
  object-fit: contain;
  display: block;
  /* Convert the dark logo to light so it reads on dark nav, with a gold tint */
  filter: invert(1) sepia(1) saturate(4) hue-rotate(5deg) brightness(1);
}
.logo-text {
  font-weight: 800;
  letter-spacing: 0.28em;
  font-size: 0.95rem;
}
.nav-links {
  display: flex; gap: 32px; list-style: none;
}
.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-dim);
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all .3s ease;
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--bg);
}

.nav-toggle {
  display: none;
  background: none; border: none;
  width: 32px; height: 26px;
  flex-direction: column; justify-content: space-between;
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--ink); transition: all .3s ease;
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
  display: inline-block;
  padding: 16px 32px;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .3s ease;
  text-align: center;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg);
  border: 1px solid var(--gold);
}
.btn-primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--bg);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(245,243,238,0.3);
}
.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-lg { padding: 20px 44px; font-size: 0.9rem; }

/* ===========================
   HERO
   =========================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.55);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11,11,11,0.55) 0%,
    rgba(11,11,11,0.35) 40%,
    rgba(11,11,11,0.85) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 24px 100px;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-eyebrow {
  position: relative;
  z-index: 3;
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: clamp(36px, 6vw, 60px);
  white-space: nowrap;
}
.hero-title {
  position: relative;
  z-index: 1;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(3.5rem, 12vw, 8rem);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--ink);
  margin: 0;
}
.hero-divider {
  position: relative;
  z-index: 3;
  width: 80px;
  height: 2px;
  background: var(--gold);
  margin: clamp(28px, 4vw, 42px) auto clamp(24px, 3vw, 32px);
}
.hero-subtitle {
  position: relative;
  z-index: 3;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 300;
  color: var(--ink);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.5;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ===========================
   SECTIONS
   =========================== */

.section {
  padding: clamp(80px, 12vw, 140px) 0;
  position: relative;
}

.section-head {
  max-width: 820px;
  margin: 0 auto clamp(40px, 6vw, 70px);
  text-align: center;
}
.section-head.light .h2,
.section-head.light .section-sub {
  color: var(--ink);
}

/* About */
.section-about { background: var(--bg-2); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.col-image img {
  border-radius: 2px;
  box-shadow: var(--shadow);
  width: 100%;
  height: 540px;
  object-fit: cover;
}

.badges {
  display: flex; flex-wrap: wrap; gap: 10px;
  list-style: none;
  margin-top: 1.5rem;
}
.badges li {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line);
  color: var(--ink-dim);
}

/* Pillars */
.section-pillars { background: var(--bg); }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pillar {
  background: var(--bg-3);
  padding: 40px 30px;
  border: 1px solid var(--line);
  transition: all .4s ease;
  position: relative;
  overflow: hidden;
}
.pillar::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s ease;
}
.pillar:hover::before { transform: scaleX(1); }
.pillar:hover {
  background: #1c1c1c;
  transform: translateY(-4px);
}
.pillar-num {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.pillar h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 14px;
  color: var(--ink);
}

/* Experience */
.section-experience { background: var(--bg-2); }
.exp-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto clamp(50px, 8vw, 100px);
  padding: 0 var(--pad);
}
.exp-row:last-child { margin-bottom: 0; }
.exp-row.reverse { grid-template-columns: 1fr 1.1fr; }
.exp-row.reverse .exp-img { order: 2; }
.exp-img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.exp-text h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 18px;
  color: var(--ink);
  line-height: 1.15;
}

/* Venue */
.section-venue { background: var(--bg); }
.venue-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 14px;
}
.venue-tile {
  overflow: hidden;
  position: relative;
}
.venue-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.venue-tile:hover img { transform: scale(1.05); }
.venue-tile.tall { grid-row: span 2; }
.venue-tile.wide { grid-column: span 2; }

/* Team */
.section-team { background: var(--bg-2); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  transition: all .4s ease;
}
.team-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}
.team-photo {
  width: 150px; height: 150px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #7a5e1f);
  display: grid; place-items: center;
  overflow: hidden;
  border: 2px solid var(--gold);
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Per-person crops — face anchored to circle center, scaled to fill */
.team-photo-james img {
  object-position: 50% 22%;
  transform: scale(2.3);
  transform-origin: 50% 22%;
}
.team-photo-mark img {
  object-position: 48% 8%;
  transform: scale(3.2);
  transform-origin: 48% 8%;
}
.team-photo-branden img {
  object-position: 45% 55%;
  transform: scale(1.7);
  transform-origin: 45% 55%;
}
.team-photo-chelsey img {
  object-position: 35% 42%;
  transform: scale(1.6);
  transform-origin: 35% 42%;
}
.team-initials {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--bg);
}
.team-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.team-role {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.team-tags { font-size: 0.9rem; margin-bottom: 14px; }
.team-link {
  font-size: 0.85rem;
  color: var(--ink-dim);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

/* Impact */
.section-impact { background: var(--bg); }
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.impact-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: all .4s ease;
}
.impact-card:hover { border-color: var(--gold); }
.impact-img {
  height: 240px;
  overflow: hidden;
}
.impact-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.impact-card:hover .impact-img img { transform: scale(1.05); }
.impact-card .impact-num,
.impact-card h3,
.impact-card p {
  padding-left: 28px;
  padding-right: 28px;
}
.impact-num {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  margin-top: 26px;
  margin-bottom: 12px;
  font-size: 1rem;
  letter-spacing: 0.12em;
}
.impact-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: var(--ink);
}
.impact-card p { padding-bottom: 32px; }

/* Video */
.section-video { background: var(--bg-2); }
.video-wrap {
  max-width: 1080px;
  margin: 0 auto;
}
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.muted { color: var(--ink-mute); }

/* Details */
.section-details {
  position: relative;
  overflow: hidden;
  padding: clamp(100px, 14vw, 160px) 0;
}
.details-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4);
}
.details-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,11,0.85), rgba(11,11,11,0.95));
}
.section-details .container { position: relative; z-index: 2; }
.details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  max-width: 1100px;
  margin: 0 auto;
}
.detail-item {
  background: rgba(11,11,11,0.85);
  padding: 36px 28px;
  text-align: center;
}
.detail-item.wide { grid-column: span 2; }
.detail-label {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.detail-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--ink);
}

/* 7-Continent Journey */
.journey {
  max-width: 1100px;
  margin: clamp(50px, 7vw, 80px) auto 0;
  padding: clamp(28px, 4vw, 44px);
  background: rgba(11,11,11,0.7);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.journey-label {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  font-weight: 600;
}
.journey-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}
.journey-list li {
  position: relative;
  padding: 16px 8px 14px;
  text-align: center;
  border-right: 1px solid var(--line);
  opacity: 0.55;
  transition: opacity .3s ease;
}
.journey-list li:last-child { border-right: none; }
.journey-list li.done { opacity: 0.75; }
.journey-list li.active {
  opacity: 1;
  background: linear-gradient(180deg, rgba(201,164,76,0.18), rgba(201,164,76,0.03));
  border-left: 1px solid rgba(201,164,76,0.35);
  border-right: 1px solid rgba(201,164,76,0.35);
}
.journey-list .step {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.journey-list .cont {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.3;
}
.journey-list .loc {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-mute);
  line-height: 1.4;
}
.journey-list li.active .cont { color: var(--gold-bright); }
.journey-list li.active .loc { color: var(--ink-dim); }

@media (max-width: 860px) {
  .journey-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .journey-list li {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .journey-list li:nth-child(2n) { border-right: none; }
  .journey-list li:nth-last-child(-n+2) { border-bottom: none; }
  .journey-list li.active { border: 1px solid rgba(201,164,76,0.35); }
}

/* Apply / Form */
.section-apply { background: var(--bg-2); }
.apply-form {
  max-width: 760px;
  margin: 0 auto;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-section-title {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  padding-bottom: 12px;
  margin: 32px 0 24px;
  border-bottom: 1px solid var(--line);
}
.form-section-title:first-child { margin-top: 0; }

.apply-form label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-weight: 500;
  margin-bottom: 20px;
}
.apply-form input,
.apply-form textarea {
  width: 100%;
  margin-top: 10px;
  padding: 14px 16px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
  transition: border-color .3s ease;
}
.apply-form input:focus,
.apply-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.apply-form textarea { resize: vertical; min-height: 100px; }

.apply-form label.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.9rem;
  color: var(--ink-dim);
  margin: 24px 0 30px;
  cursor: pointer;
}
.apply-form label.checkbox input {
  width: auto;
  margin: 4px 0 0 0;
  flex-shrink: 0;
  accent-color: var(--gold);
}

.form-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--ink-mute);
  text-align: center;
}

.form-success {
  text-align: center;
  padding: 60px 30px;
  border: 1px solid var(--gold);
  background: rgba(201,164,76,0.06);
}
.form-success-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--gold-bright);
  margin-bottom: 16px;
}
.form-success-body {
  color: var(--ink-dim);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Footer */
.footer {
  background: var(--bg);
  padding: 60px 0 40px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.footer-meta { font-size: 0.85rem; color: var(--ink-mute); text-align: right; }
.footer-meta p { color: var(--ink-mute); }

/* ===========================
   ANIMATIONS
   =========================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(11,11,11,0.97);
    padding: 24px;
    border-top: 1px solid var(--line);
  }
  .nav.menu-open .nav-cta {
    display: inline-block;
    margin: 0 24px 24px;
  }
  .nav-toggle { display: flex; }

  .two-col { grid-template-columns: 1fr; }
  .col-image img { height: 360px; }

  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .exp-row, .exp-row.reverse {
    grid-template-columns: 1fr;
  }
  .exp-row.reverse .exp-img { order: 0; }
  .exp-img img { height: 320px; }

  .venue-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .venue-tile.tall { grid-row: span 1; }
  .venue-tile.wide { grid-column: span 2; }

  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { grid-template-columns: 1fr; }

  .details-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-item.wide { grid-column: span 2; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-meta { text-align: center; }
}

@media (max-width: 720px) {
  .hero-eyebrow {
    white-space: normal;
    letter-spacing: 0.18em;
    line-height: 1.8;
  }
}

@media (max-width: 540px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .details-grid { grid-template-columns: 1fr; }
  .detail-item.wide { grid-column: span 1; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}
