/* =========================================================
   Beyond Borders Travel — Shared Design System
   ========================================================= */

:root {
  /* Colors */
  --signal-red: #c41c35;
  --gold: #d4a574;
  --near-black: #1a1a1a;
  --off-white: #f9f7f3;
  --white: #ffffff;
  --cream: #e8d5b7;
  --very-dark: #0a0a0a;
  --rule: #e5e5e0;
  --muted: #666666;
  --muted-2: #555555;
  --muted-3: #999999;

  /* Type */
  --display: "Montserrat", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;

  /* Sizes */
  --h1: 68px;
  --h2: 56px;
  --h3: 22px;
  --body-size: 17px;
  --small: 15px;
  --label: 13px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--body-size);
  color: var(--near-black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 900;
  margin: 0;
  text-transform: uppercase;
  line-height: 1.1;
}

h1 { font-size: var(--h1); letter-spacing: -2px; }
h2 { font-size: var(--h2); letter-spacing: -1px; }
h3 { font-size: var(--h3); font-weight: 700; letter-spacing: 0; text-transform: none; line-height: 1.25; }
h4 { font-size: var(--label); font-weight: 700; letter-spacing: 1px; }

p { margin: 0; }

/* =========================================================
   Header / Nav
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  padding: 24px 60px;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1440px;
  margin: 0 auto;
}

.logo {
  font-family: var(--display);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 1.5px;
  color: var(--gold);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo .mark {
  width: 22px;
  height: 22px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: inline-block;
  position: relative;
}
.logo .mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--gold);
  border-radius: 50%;
  transform: scale(0.55);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-nav a {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--near-black);
  transition: color .25s ease;
}

.site-nav a:hover { color: var(--signal-red); }

.site-nav .phone {
  color: var(--signal-red);
  font-weight: 600;
}

.site-nav .pill {
  border: 1px solid var(--near-black);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 1px;
  transition: all .25s ease;
}
.site-nav .pill.is-active {
  background: var(--near-black);
  color: var(--white);
}
.site-nav .pill:hover { background: var(--near-black); color: var(--white); }
.site-nav .pill.is-active:hover { background: var(--signal-red); border-color: var(--signal-red); }

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 16px 50px;
  border: 2px solid currentColor;
  background: transparent;
  cursor: pointer;
  transition: all .3s ease;
}

.btn-red {
  color: var(--signal-red);
  border-color: var(--signal-red);
  background: transparent;
}
.btn-red:hover { background: var(--signal-red); color: var(--white); }

.btn-white {
  color: var(--white);
  border-color: var(--white);
  background: transparent;
}
.btn-white:hover { background: var(--white); color: var(--signal-red); }

.btn-white-fill {
  color: var(--signal-red);
  border-color: var(--white);
  background: var(--white);
}
.btn-white-fill:hover { background: transparent; color: var(--white); }

.btn-gold {
  color: var(--gold);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold); color: var(--near-black); }

.btn-gold-dark:hover { background: var(--gold); color: var(--near-black); border-color: var(--gold); }

/* =========================================================
   Sections / Layout
   ========================================================= */

.section {
  padding: 100px 80px;
}
.section.lux {
  padding: 120px 80px;
}
.section .container {
  max-width: 1280px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-family: var(--body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--signal-red);
  margin-bottom: 24px;
}
.eyebrow.gold { color: var(--gold); }
.eyebrow.cream { color: var(--cream); }

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 14px;
  transform: translateY(-2px);
}

.lede {
  font-size: 18px;
  line-height: 2.0;
  color: var(--near-black);
}
.lede.cream { color: var(--cream); }
.lede.muted { color: var(--muted-2); }

.stack-32 > * + * { margin-top: 32px; }
.stack-24 > * + * { margin-top: 24px; }
.stack-16 > * + * { margin-top: 16px; }

/* =========================================================
   Placeholder imagery
   ========================================================= */

.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      rgba(0,0,0,0.04) 0 1px,
      transparent 1px 12px),
    var(--off-white);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.ph.dark {
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.05) 0 1px,
      transparent 1px 12px),
    #2a2a26;
  border-color: rgba(255,255,255,0.08);
}
.ph .ph-label {
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--rule);
}
.ph.dark .ph-label {
  background: rgba(0,0,0,0.55);
  color: var(--cream);
  border-color: rgba(212,165,116,0.4);
}

/* =========================================================
   Footer (shared)
   ========================================================= */

.site-footer {
  background: var(--very-dark);
  color: var(--muted-3);
  padding: 80px;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 80px;
  max-width: 1280px;
  margin: 0 auto;
}
.site-footer h4 {
  color: var(--signal-red);
  font-family: var(--body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.site-footer.lux h4 { color: var(--gold); }
.site-footer p, .site-footer a {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted-3);
}
.site-footer a { transition: color .25s ease; }
.site-footer a:hover { color: var(--signal-red); }
.site-footer.lux a:hover { color: var(--gold); }

.footer-brand .word-mark {
  font-family: var(--display);
  font-weight: 900;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  display: block;
}
.footer-brand .tagline {
  font-family: var(--display);
  font-weight: 900;
  color: var(--white);
  font-size: 22px;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
  line-height: 1.3;
  text-transform: uppercase;
}

.footer-contact a, .footer-contact p {
  display: block;
  margin-bottom: 10px;
}

.footer-metrics {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.metric .number {
  font-family: var(--display);
  font-weight: 900;
  font-size: 48px;
  color: var(--signal-red);
  letter-spacing: -1px;
  line-height: 1;
}
.site-footer.lux .metric .number { color: var(--gold); }
.metric .label {
  font-size: 12px;
  color: var(--muted-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
}

.footer-base {
  max-width: 1280px;
  margin: 60px auto 0;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: #555;
}

/* =========================================================
   Booking section (editorial — tabbed) — shared
   ========================================================= */

.booking {
  background: var(--very-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
  --booking-accent: var(--gold);
}
.booking.accent-red { --booking-accent: var(--signal-red); }

.booking::before {
  content: "";
  position: absolute;
  top: -240px;
  left: 50%;
  width: 820px;
  height: 820px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--booking-accent) 16%, transparent), transparent 65%);
  pointer-events: none;
}

.booking .booking-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 72px;
  position: relative;
  z-index: 1;
}
.booking .booking-head h2 {
  color: var(--white);
  margin-bottom: 28px;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -1.5px;
}
.booking .booking-head h2 em {
  font-style: italic;
  font-weight: 700;
  color: var(--booking-accent);
  letter-spacing: -1px;
  text-transform: lowercase;
}
.booking .booking-head .lede-sub {
  color: var(--cream);
  font-size: 18px;
  line-height: 1.8;
  max-width: 540px;
  margin: 0 auto;
  font-weight: 400;
  opacity: 0.85;
}

/* Hairline rule under header */
.booking .booking-head::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--booking-accent);
  margin: 40px auto 0;
}

/* Tab switcher */
.booking .switcher {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.booking .switcher-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 56px;
  border-bottom: 1px solid rgba(232,213,183,0.12);
  padding-bottom: 0;
}
.booking .tab {
  background: transparent;
  border: 0;
  color: rgba(232,213,183,0.55);
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 18px 32px;
  cursor: pointer;
  position: relative;
  transition: color .25s ease;
}
.booking .tab::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: -1px;
  height: 2px;
  background: var(--booking-accent);
  transform: scaleX(0);
  transition: transform .3s ease;
}
.booking .tab:hover { color: var(--cream); }
.booking .tab.is-active {
  color: var(--white);
}
.booking .tab.is-active::after { transform: scaleX(1); }

.booking .panel { display: none; }
.booking .panel.is-active { display: block; animation: bookingFade .4s ease; }
@keyframes bookingFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Calendly panel */
.calendly-wrap {
  background: var(--white);
  border-radius: 2px;
  min-height: 720px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.5);
}
.calendly-inline-widget {
  min-width: 320px;
  height: 720px;
  width: 100%;
}

/* Message form — editorial, underline-style */
.booking-form {
  max-width: 560px;
  margin: 0 auto;
}
.booking-form .form-fields {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.booking-form .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.booking-form .field {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.booking-form label {
  font-family: var(--body);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.3px;
  text-transform: none;
  color: rgba(232,213,183,0.65);
  font-weight: 400;
}
.booking-form label .req { color: var(--booking-accent); font-style: normal; }
.booking-form input,
.booking-form select,
.booking-form textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(232,213,183,0.22);
  color: var(--white);
  padding: 6px 0 14px;
  font-family: var(--body);
  font-size: 17px;
  font-weight: 400;
  width: 100%;
  border-radius: 0;
  transition: border-color .25s ease;
}
.booking-form input::placeholder,
.booking-form textarea::placeholder {
  color: rgba(232,213,183,0.25);
}
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: none;
  border-bottom-color: var(--booking-accent);
}
.booking-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--booking-accent) 50%), linear-gradient(135deg, var(--booking-accent) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
}
.booking-form select option { background: var(--very-dark); color: var(--white); }
.booking-form textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

.booking-form .submit {
  background: transparent;
  color: var(--booking-accent);
  border: 1px solid var(--booking-accent);
  padding: 18px 48px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  transition: all .3s ease;
  margin-top: 12px;
  align-self: center;
  min-width: 240px;
}
.booking-form .submit:hover {
  background: var(--booking-accent);
  color: var(--very-dark);
}

.booking-form .form-success {
  display: none;
  text-align: center;
  padding: 80px 20px;
  max-width: 480px;
  margin: 0 auto;
}
.booking-form.sent .form-fields { display: none; }
.booking-form.sent .form-success { display: block; }
.form-success .check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--booking-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  color: var(--booking-accent);
  font-size: 18px;
  font-weight: 300;
}
.form-success h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.5px;
  text-transform: none;
  color: var(--white);
  margin-bottom: 16px;
}
.form-success p {
  color: var(--cream);
  font-size: 16px;
  line-height: 1.8;
  font-style: italic;
  opacity: 0.85;
}

/* Direct line below */
.booking .direct-line {
  margin-top: 80px;
  text-align: center;
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 0.5px;
  color: rgba(232,213,183,0.55);
  text-transform: none;
  position: relative;
  z-index: 1;
}
.booking .direct-line .label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 18px;
  color: var(--booking-accent);
  opacity: 0.7;
}
.booking .direct-line .row {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 22px;
}
.booking .direct-line .row a {
  color: var(--cream);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: color .2s ease;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.booking .direct-line .row a:hover {
  color: var(--booking-accent);
  border-color: var(--booking-accent);
}
.booking .direct-line .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(232,213,183,0.3);
  display: inline-block;
}

@media (max-width: 1023px) {
  .booking .booking-head { margin-bottom: 56px; }
  .booking-form .row-2 { grid-template-columns: 1fr; gap: 40px; }
  .booking .tab { padding: 16px 20px; font-size: 13px; letter-spacing: 1px; }
}
@media (max-width: 640px) {
  .booking .switcher-tabs { gap: 0; }
  .booking .tab { padding: 14px 12px; font-size: 11px; letter-spacing: 0.8px; }
  .calendly-inline-widget, .calendly-wrap { min-height: 620px; height: 620px; }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1023px) {
  :root {
    --h1: 56px;
    --h2: 42px;
    --h3: 20px;
    --body-size: 16px;
  }
  .section { padding: 60px 40px; }
  .section.lux { padding: 80px 40px; }
  .site-header { padding: 20px 40px; }
  .site-footer { padding: 60px 40px; }
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }
  .site-nav { gap: 22px; }
}

@media (max-width: 640px) {
  :root {
    --h1: 42px;
    --h2: 32px;
    --h3: 18px;
    --body-size: 15px;
  }
  .section { padding: 40px 20px; }
  .section.lux { padding: 50px 20px; }
  .site-header { padding: 16px 20px; }
  .site-header .inner { gap: 12px; }
  .site-nav { gap: 14px; }
  .site-nav a:not(.phone):not(.pill) { display: none; }
  .site-footer { padding: 50px 24px; }
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-base { flex-direction: column; gap: 8px; }
  .btn { padding: 14px 32px; }
}
