@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --bb-navy: #16222E;
  --bb-navy-light: #1F313F;
  --bb-navy-lighter: #2A4152;
  --bb-terracotta: #C1502E;
  --bb-terracotta-light: #D96A46;
  --bb-gold: #D4A24C;
  --bb-cream: #F3ECDD;
  --bb-cream-dim: #C9C0AC;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

html, body {
  background: var(--bb-navy);
  color: var(--bb-cream);
  font-family: var(--font-body);
  scroll-behavior: smooth;
}

a { color: var(--bb-gold); }
a:hover { color: var(--bb-terracotta-light); }

.section-pad { padding: 4.5rem 1.5rem; }
@media (max-width: 768px) { .section-pad { padding: 3rem 1rem; } }

.container-narrow { max-width: 980px; margin: 0 auto; }

/* ---------- Kilim pattern divider (signature motif) ---------- */
.kilim-strip {
  height: 14px;
  width: 100%;
  background-image: repeating-linear-gradient(
    45deg,
    var(--bb-terracotta) 0px, var(--bb-terracotta) 6px,
    var(--bb-gold) 6px, var(--bb-gold) 12px,
    transparent 12px, transparent 18px,
    var(--bb-gold) 18px, var(--bb-gold) 24px,
    var(--bb-terracotta) 24px, var(--bb-terracotta) 30px,
    transparent 30px, transparent 36px
  );
  opacity: 0.85;
}

.kilim-frame {
  border-top: 3px solid transparent;
  border-image: repeating-linear-gradient(90deg, var(--bb-terracotta) 0 10px, var(--bb-gold) 10px 20px) 3;
  padding-top: 1.5rem;
}

/* ---------- Nav ---------- */
.bb-nav {
  background: var(--bb-navy);
  border-bottom: 1px solid var(--bb-navy-lighter);
}
.bb-nav .navbar-item, .bb-nav .navbar-link {
  color: var(--bb-cream) !important;
  font-family: var(--font-body);
  font-weight: 500;
}
.bb-nav .navbar-item:hover, .bb-nav .navbar-brand .navbar-item {
  background: transparent !important;
  color: var(--bb-gold) !important;
}
.bb-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--bb-cream) !important;
}
.lang-switch a {
  padding: 0.25rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
.lang-switch a.is-active {
  color: var(--bb-terracotta-light) !important;
  font-weight: 700;
}

/* ---------- Hero ---------- */
.hero-balkan {
  background:
    radial-gradient(ellipse at top right, rgba(212,162,76,0.12), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(193,80,46,0.10), transparent 55%),
    var(--bb-navy);
  padding: 5.5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero-balkan::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/images/hero-adriatic.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  mix-blend-mode: luminosity;
  pointer-events: none;
}
.hero-kicker {
  font-family: var(--font-mono);
  color: var(--bb-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  position: relative;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  color: var(--bb-cream);
  max-width: 16ch;
  margin: 0.75rem 0 1.25rem;
  position: relative;
}
.hero-subtitle {
  color: var(--bb-cream-dim);
  font-size: 1.15rem;
  max-width: 55ch;
  margin-bottom: 2rem;
  position: relative;
}
.btn-primary {
  background: var(--bb-terracotta);
  color: var(--bb-cream);
  border: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary:hover { background: var(--bb-terracotta-light); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--bb-cream);
  border: 1px solid var(--bb-cream-dim);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
}
.btn-ghost:hover { border-color: var(--bb-gold); color: var(--bb-gold); }

/* ---------- Section titles ---------- */
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--bb-cream);
  margin-bottom: 0.4rem;
}
.section-subtitle {
  color: var(--bb-cream-dim);
  max-width: 60ch;
  margin-bottom: 2.5rem;
}

/* ---------- Price matrix ---------- */
.source-toggle {
  display: inline-flex;
  gap: 0.4rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.source-toggle button {
  font-family: var(--font-mono);
  background: var(--bb-navy-light);
  color: var(--bb-cream-dim);
  border: 1px solid var(--bb-navy-lighter);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}
.source-toggle button.is-active {
  background: var(--bb-gold);
  color: var(--bb-navy);
  border-color: var(--bb-gold);
  font-weight: 700;
}

.matrix-wrap {
  overflow-x: auto;
  border-radius: 6px;
  background: var(--bb-navy-light);
  border: 1px solid var(--bb-navy-lighter);
}
table.price-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 780px;
}
table.price-matrix th, table.price-matrix td {
  padding: 0.65rem 0.9rem;
  text-align: right;
  color: var(--bb-cream);
  border-bottom: 1px solid var(--bb-navy-lighter);
  white-space: nowrap;
}
table.price-matrix th {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--bb-gold);
  text-align: right;
  position: sticky;
  top: 0;
  background: var(--bb-navy-light);
}
table.price-matrix th:first-child,
table.price-matrix td:first-child { text-align: left; }
table.price-matrix td.tier-cell {
  text-align: left;
  color: var(--bb-cream-dim);
  font-size: 0.82rem;
}
table.price-matrix td.price-cell {
  font-family: var(--font-mono);
  font-weight: 600;
}
table.price-matrix tr.lang-first-row td:first-child {
  border-top: 1px solid var(--bb-navy-lighter);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--bb-cream);
  font-size: 1rem;
}
table.price-matrix tbody tr:hover { background: rgba(212,162,76,0.06); }
.price-cell.is-updating { color: var(--bb-terracotta-light); }

/* ---------- Rush toggle ---------- */
.rush-panel {
  margin-top: 2.5rem;
  padding: 1.75rem;
  border-radius: 8px;
  background: var(--bb-navy-light);
  border: 1px solid var(--bb-navy-lighter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.rush-copy .rush-label { font-weight: 600; color: var(--bb-cream); }
.rush-copy .rush-note { color: var(--bb-cream-dim); font-size: 0.88rem; max-width: 40ch; }

.rush-stat {
  font-family: var(--font-mono);
  text-align: center;
}
.rush-stat .stat-value {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--bb-gold);
  transition: color 0.2s ease;
}
.rush-stat.is-days .stat-value { color: var(--bb-terracotta-light); }
.rush-stat .stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bb-cream-dim);
}

.rush-switch {
  position: relative;
  width: 58px;
  height: 30px;
  background: var(--bb-navy-lighter);
  border-radius: 999px;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.rush-switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bb-cream);
  transition: transform 0.25s cubic-bezier(.4,1.6,.6,1);
}
.rush-switch.is-on { background: var(--bb-terracotta); }
.rush-switch.is-on::after { transform: translateX(28px); }

/* ---------- Team ---------- */
.team-card {
  background: var(--bb-navy-light);
  border: 1px solid var(--bb-navy-lighter);
  border-radius: 8px;
  padding: 2rem;
}
.team-card + .team-card { margin-top: 1.5rem; }
.team-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--bb-cream);
}
.team-role {
  color: var(--bb-gold);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}
.team-bio { color: var(--bb-cream-dim); margin-bottom: 1rem; }
.team-quote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--bb-cream);
  border-left: 3px solid var(--bb-terracotta);
  padding-left: 1rem;
}

/* ---------- Compliance ---------- */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.compliance-card {
  background: var(--bb-navy-light);
  border: 1px solid var(--bb-navy-lighter);
  border-radius: 8px;
  padding: 1.5rem;
}
.compliance-card h3 {
  font-family: var(--font-display);
  color: var(--bb-gold);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.compliance-card p { color: var(--bb-cream-dim); font-size: 0.92rem; }

/* ---------- Quote form ---------- */
.quote-panel {
  background: var(--bb-navy-light);
  border: 1px solid var(--bb-navy-lighter);
  border-radius: 8px;
  padding: 2rem;
}
.quote-panel .label { color: var(--bb-cream); }
.quote-panel .input, .quote-panel .textarea, .quote-panel .select select {
  background: var(--bb-navy);
  border-color: var(--bb-navy-lighter);
  color: var(--bb-cream);
}
.quote-panel .select:not(.is-multiple):not(.is-loading)::after { border-color: var(--bb-gold); }

/* ---------- Footer ---------- */
.bb-footer {
  background: var(--bb-navy);
  border-top: 1px solid var(--bb-navy-lighter);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--bb-cream-dim);
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
