/* ============================================
   BAIN TRAVEL CO. — STYLES
   Brand: navy #1B2A4A · brass #C9A84C · parchment
   Fonts: Playfair Display · Inter · JetBrains Mono
   ============================================ */

:root {
  --navy: #1B2A4A;
  --navy-light: #243660;
  --brass: #C9A84C;
  --brass-dim: rgba(201,168,76,0.18);
  --parchment: #F8F5EE;
  --parchment-deep: #F0EBDF;
  --cream: #FDFBF7;
  --ink: #1B2A4A;
  --ink-soft: rgba(27,42,74,0.72);
  --ink-muted: rgba(27,42,74,0.48);
  --border: rgba(27,42,74,0.09);
  --border-light: rgba(255,255,255,0.12);
  --radius: 4px;
  --max-w: 1100px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass); text-decoration: none; transition: color var(--transition); }
a:hover { color: #b5922e; }

/* ---------- TYPOGRAPHY ---------- */

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 0.95rem; font-weight: 700; }

.eyebrow {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  display: block;
  margin-bottom: 10px;
}
.eyebrow--light { color: rgba(201,168,76,0.85); }

.lede {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 560px;
}

.divider {
  border: none;
  border-top: 2px solid var(--brass);
  width: 44px;
  margin: 16px 0 20px;
}
.divider--center { margin-left: auto; margin-right: auto; }

/* ---------- LAYOUT ---------- */

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 72px 0; }
.section--sm { padding: 48px 0; }

.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.center .divider { margin-left: auto; margin-right: auto; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- BUTTONS ---------- */

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
}
.btn--gold { background: var(--brass); color: var(--navy); border-color: var(--brass); }
.btn--gold:hover { background: #b5922e; border-color: #b5922e; color: var(--navy); }
.btn--light { border-color: rgba(255,255,255,0.5); color: #fff; background: transparent; }
.btn--light:hover { background: rgba(255,255,255,0.12); }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: var(--parchment); }
.btn--outline-brass { border-color: var(--brass); color: var(--brass); background: transparent; }
.btn--outline-brass:hover { background: var(--brass); color: var(--navy); }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.center .btn-row { justify-content: center; }

/* ---------- HEADER ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--parchment);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.site-header .nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand {
  text-decoration: none;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-crest-img {
  width: 44px;
  height: auto;
  display: block;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand .mark {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
}
.brand .sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 1px;
}
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
  padding: 4px 0;
}
.nav-links a:hover,
.nav-links a.active { color: var(--brass); }
.nav-links .nav-cta {
  background: var(--brass);
  color: var(--navy) !important;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.82rem;
}
.nav-links .nav-cta:hover { background: #b5922e; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.2s ease;
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.hero--home { padding: 88px 0 80px; }
.hero--page { padding: 56px 0 48px; }

.hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.12;
}
.hero__bg svg { width: 100%; height: 100%; }

.scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,42,74,0.15) 0%, rgba(27,42,74,0.85) 100%);
}

.hero__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 0 28px;
}
.hero h1 { color: #fff; margin-bottom: 14px; }
.hero .lede { color: rgba(255,255,255,0.82); margin: 0 auto 28px; }
.hero .tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--brass);
  margin-bottom: 24px;
  display: block;
}

/* ---------- HERO SPLIT LAYOUT (real logo left, content right) ---------- */
.hero__inner--split {
  max-width: 1180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 140px;
  text-align: left;
}
.hero-logo-block {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--parchment);
  padding: 28px 24px;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}
.hero-logo {
  width: 300px;
  height: auto;
  display: block;
}
.hero-content { flex: 1; min-width: 0; max-width: 560px; }
.hero-content .btn-row { justify-content: flex-start; }
@media (max-width: 900px) {
  .hero__inner--split { flex-direction: column; gap: 28px; text-align: center; align-items: center; }
  .hero-content { text-align: center; }
  .hero-content .btn-row { justify-content: center; }
  .hero-logo { width: 240px; }
}

/* ---------- CARDS ---------- */

.card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(27,42,74,0.06); }
.card .num {
  font-family: 'Playfair Display', serif;
  color: var(--brass);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }

/* dark-bg cards */
.bg-ink .card {
  background: var(--navy-light);
  border-color: var(--border-light);
}
.bg-ink .card h3 { color: #fff; }
.bg-ink .card p { color: rgba(255,255,255,0.68); }

/* ---------- JOURNEY CARDS ---------- */

.journey {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.journey:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(27,42,74,0.1); }
.journey__img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--navy);
  border-radius: 6px;
}

/* Masonry-style journey grid using CSS columns */
.journey-masonry {
  column-count: 3;
  column-gap: 20px;
}
.journey-masonry .journey {
  break-inside: avoid;
  margin-bottom: 20px;
  display: inline-block;
  width: 100%;
}
@media (max-width: 768px) { .journey-masonry { column-count: 2; } }
@media (max-width: 480px) { .journey-masonry { column-count: 1; } }
.journey__body { padding: 16px 4px 8px; }
.journey .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
}
.journey h3 { margin: 6px 0 4px; font-size: 1.08rem; }
.journey p { margin: 0; font-size: 0.86rem; color: var(--ink-soft); }

/* ---------- SECTIONS (BG) ---------- */

.bg-ink { background: var(--navy); color: #fff; }
.bg-ink h2, .bg-ink h3 { color: #fff; }
.bg-paper { background: var(--parchment-deep); }

/* ---------- QUOTE / TESTIMONIAL ---------- */

.quote-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
}
.quote-card .mark {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: var(--brass);
  line-height: 1;
  margin-bottom: 4px;
}
.quote-card blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 12px;
}
.quote-card .who {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.placeholder-note {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 16px;
}

/* ---------- SERVICE LIST ---------- */

.service-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.service-row:last-child { border-bottom: none; }
.service-row .service-icon {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brass);
  background: var(--brass-dim);
  padding: 8px 12px;
  border-radius: var(--radius);
  flex-shrink: 0;
  letter-spacing: 0.04em;
  min-width: 52px;
  text-align: center;
}
.service-row h3 { margin-bottom: 6px; }
.service-row p { font-size: 0.9rem; color: var(--ink-soft); }
.service-row .fee-note {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--brass);
  font-family: 'JetBrains Mono', monospace;
}

/* ---------- FEE TABLE ---------- */

.fee-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.92rem;
}
.fee-table th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--brass);
}
.fee-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.fee-table tr:last-child td { border-bottom: none; }
.fee-table .tier-name {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1rem;
}
.fee-table .tier-fee {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--brass);
  font-size: 0.95rem;
}

/* ---------- GALLERY ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--navy);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item--tall { grid-row: span 2; aspect-ratio: auto; }

/* ---------- CONTACT ---------- */

.contact-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px;
}
.contact-card h3 { margin-bottom: 16px; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.95rem;
}
.contact-row .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  min-width: 60px;
}

/* ---------- TERMS / LEGAL ---------- */

.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h1 { font-size: 1.8rem; margin-bottom: 8px; }
.legal-content h2 { font-size: 1.3rem; margin-top: 36px; margin-bottom: 12px; }
.legal-content h3 { margin-top: 24px; margin-bottom: 8px; }
.legal-content p { margin-bottom: 14px; color: var(--ink-soft); }
.legal-content ul, .legal-content ol {
  margin: 0 0 14px 24px;
  color: var(--ink-soft);
}
.legal-content li { margin-bottom: 6px; }
.legal-content .caps { text-transform: uppercase; }

/* ---------- FOOTER ---------- */

.site-footer {
  background: #101c33;
  color: rgba(255,255,255,0.82);
  padding: 52px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}
.site-footer .mark {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}
.site-footer .sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 2px;
}
.site-footer .footer-about {
  margin-top: 16px;
  max-width: 320px;
  color: rgba(255,255,255,0.58);
  font-size: 0.88rem;
}
.site-footer h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
}
.site-footer nav a {
  display: block;
  color: rgba(255,255,255,0.68);
  margin-bottom: 8px;
  font-size: 0.88rem;
}
.site-footer nav a:hover { color: var(--brass); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 32px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.42);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }

/* ---------- CTA BAND ---------- */

.cta-band {
  background: var(--navy);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band .lede { color: rgba(255,255,255,0.72); margin: 0 auto 28px; }

/* ---------- RESPONSIVE ---------- */

@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero--home { padding: 56px 0 52px; }
  .section { padding: 52px 0; }
  .fee-table { font-size: 0.84rem; }
  .fee-table th, .fee-table td { padding: 10px 10px; }
}

@media (max-width: 560px) {
  .nav-links { display: none; }
  .header-crest-img { width: 36px; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--parchment);
    border-bottom: 1px solid var(--border);
    padding: 16px 28px;
    gap: 12px;
  }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero--home { padding: 44px 0 40px; }
  .section { padding: 40px 0; }
  .service-row { flex-direction: column; gap: 8px; }
}

/* ---------- UTILITY ---------- */

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 36px; }
.mt-4 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 24px; }
.mb-3 { margin-bottom: 36px; }

.gallery-masonry {
  column-count: 4;
  column-gap: 14px;
}
.gallery-masonry .gallery-tile {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  display: block;
}
.gallery-masonry .gallery-tile img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-masonry .gallery-tile:hover img { transform: scale(1.03); }
.gallery-masonry .gallery-tile .cap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(27,42,74,0.82), transparent);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  padding: 20px 10px 8px;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-masonry .gallery-tile:hover .cap { opacity: 1; }
.gallery-masonry .gallery-tile--empty {
  background: var(--navy);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-masonry .gallery-tile--empty span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.4);
}
@media (max-width: 900px) { .gallery-masonry { column-count: 3; } }
@media (max-width: 640px) { .gallery-masonry { column-count: 2; } }
@media (max-width: 420px) { .gallery-masonry { column-count: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
