/* ============================================================
   BOARDING COMPLETE — Brand Stylesheet
   Flight deals finder · business & premium cabin
   Single source of truth: design tokens + core components.
   Font: Jost (Google Fonts). Load weights 400/500/600/700.
   ============================================================ */

/* ---- 1. TOKENS ------------------------------------------- */
:root {
  /* Brand core */
  --bc-teal:      #3AFFCB;   /* primary brand accent — "spring" */
  --bc-red:       #FF0000;   /* energy / savings / hot deal     */
  --bc-ink:       #000000;   /* text + signature linework       */
  --bc-paper:     #FFFFFF;   /* white                           */
  --bc-mist:      #EAE9ED;   /* brand background grey           */

  /* Teal tints (derived) */
  --bc-teal-deep: #14C99A;   /* hover / links on light          */
  --bc-teal-ink:  #06392B;   /* text on teal surfaces           */
  --bc-teal-soft: #C9FFEF;   /* pale teal surface               */

  /* Red tints (derived) */
  --bc-red-deep:  #D40000;   /* hover                           */
  --bc-red-soft:  #FFE1E1;   /* pale red surface                */

  /* Neutrals */
  --bc-ink-70:    #36363B;   /* secondary text                  */
  --bc-ink-50:    #6E6E78;   /* muted text                      */
  --bc-cloud:     #F4F4F6;   /* lifted surface                  */
  --bc-hairline:  #E0DFE4;   /* subtle divider (non-structural) */

  /* Typography */
  --bc-font: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bc-fw-regular: 400;
  --bc-fw-medium:  500;
  --bc-fw-semibold:600;
  --bc-fw-bold:    700;

  /* Type scale (px) */
  --bc-text-display-xl: 72px;
  --bc-text-display:    56px;
  --bc-text-h1:         44px;
  --bc-text-h2:         34px;
  --bc-text-h3:         26px;
  --bc-text-h4:         20px;
  --bc-text-body-lg:    18px;
  --bc-text-body:       16px;
  --bc-text-sm:         14px;
  --bc-text-eyebrow:    13px;

  /* Spacing (4-base) */
  --bc-space-1: 4px;
  --bc-space-2: 8px;
  --bc-space-3: 12px;
  --bc-space-4: 16px;
  --bc-space-5: 24px;
  --bc-space-6: 32px;
  --bc-space-7: 48px;
  --bc-space-8: 64px;
  --bc-space-9: 96px;
  --bc-space-10:128px;

  /* Radius — rounded tiles are a brand signature */
  --bc-radius-sm:   8px;
  --bc-radius-md:   16px;
  --bc-radius-lg:   24px;
  --bc-radius-xl:   32px;
  --bc-radius-pill: 999px;

  /* Borders — thick black linework, straight from the logo */
  --bc-border:      2px solid var(--bc-ink);
  --bc-border-bold: 3px solid var(--bc-ink);

  /* Shadows */
  --bc-shadow-pop:    5px 5px 0 var(--bc-ink);      /* sticker / punchy */
  --bc-shadow-pop-lg: 8px 8px 0 var(--bc-ink);
  --bc-shadow-soft:   0 12px 32px rgba(0,0,0,.10);  /* calm elevation   */
  --bc-shadow-card:   0 2px 10px rgba(0,0,0,.06);

  /* Motion */
  --bc-ease: cubic-bezier(.2,.8,.2,1);
  --bc-dur:  .18s;
}

/* ---- 2. BASE --------------------------------------------- */
.bc {
  font-family: var(--bc-font);
  color: var(--bc-ink);
  font-weight: var(--bc-fw-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.bc h1,.bc h2,.bc h3,.bc h4 { margin: 0; line-height: 1.08; letter-spacing: -.02em; font-weight: var(--bc-fw-bold); }
.bc p { margin: 0; line-height: 1.5; }

/* Type utility classes */
.bc-display-xl { font-size: var(--bc-text-display-xl); font-weight: 700; line-height: .98; letter-spacing: -.03em; }
.bc-display    { font-size: var(--bc-text-display);    font-weight: 700; line-height: 1.0;  letter-spacing: -.03em; }
.bc-h1 { font-size: var(--bc-text-h1); font-weight: 700; letter-spacing: -.025em; }
.bc-h2 { font-size: var(--bc-text-h2); font-weight: 700; letter-spacing: -.02em; }
.bc-h3 { font-size: var(--bc-text-h3); font-weight: 600; letter-spacing: -.015em; }
.bc-h4 { font-size: var(--bc-text-h4); font-weight: 600; }
.bc-body-lg { font-size: var(--bc-text-body-lg); line-height: 1.55; }
.bc-body    { font-size: var(--bc-text-body);    line-height: 1.55; }
.bc-sm      { font-size: var(--bc-text-sm);      line-height: 1.5; }
.bc-eyebrow {
  font-size: var(--bc-text-eyebrow); font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
}
.bc-muted { color: var(--bc-ink-50); }

/* ---- 3. BUTTONS ------------------------------------------ */
.bc-btn {
  font-family: var(--bc-font);
  font-weight: 600; font-size: 16px; line-height: 1;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  border: var(--bc-border-bold);
  border-radius: var(--bc-radius-pill);
  background: var(--bc-paper); color: var(--bc-ink);
  cursor: pointer; white-space: nowrap;
  text-decoration: none;
  transition: transform var(--bc-dur) var(--bc-ease),
              box-shadow var(--bc-dur) var(--bc-ease),
              background var(--bc-dur) var(--bc-ease);
}
.bc-btn:active { transform: translate(2px,2px); }

/* primary — teal sticker */
.bc-btn--primary { background: var(--bc-teal); color: var(--bc-ink); box-shadow: var(--bc-shadow-pop); }
.bc-btn--primary:hover { transform: translate(-1px,-1px); box-shadow: var(--bc-shadow-pop-lg); }
.bc-btn--primary:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--bc-ink); }

/* accent — red sticker, for urgency / save */
.bc-btn--accent { background: var(--bc-red); color: var(--bc-paper); box-shadow: var(--bc-shadow-pop); }
.bc-btn--accent:hover { transform: translate(-1px,-1px); box-shadow: var(--bc-shadow-pop-lg); }
.bc-btn--accent:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--bc-ink); }

/* ink — solid black */
.bc-btn--ink { background: var(--bc-ink); color: var(--bc-paper); border-color: var(--bc-ink); }
.bc-btn--ink:hover { background: var(--bc-ink-70); }

/* outline / ghost */
.bc-btn--outline { background: var(--bc-paper); }
.bc-btn--outline:hover { background: var(--bc-cloud); }
.bc-btn--ghost { border-color: transparent; background: transparent; }
.bc-btn--ghost:hover { background: var(--bc-cloud); }

/* sizes */
.bc-btn--sm { font-size: 14px; padding: 10px 18px; }
.bc-btn--lg { font-size: 18px; padding: 19px 34px; }
.bc-btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; transform: none; }

/* ---- 4. BADGES / TAGS ------------------------------------ */
.bc-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 13px; line-height: 1;
  padding: 7px 13px; border: var(--bc-border); border-radius: var(--bc-radius-pill);
  background: var(--bc-paper); color: var(--bc-ink);
  white-space: nowrap;
}
.bc-badge--teal { background: var(--bc-teal); }
.bc-badge--red  { background: var(--bc-red); color: var(--bc-paper); }
.bc-badge--ink  { background: var(--bc-ink); color: var(--bc-paper); }
.bc-badge--soft { background: var(--bc-teal-soft); border-color: var(--bc-teal-deep); color: var(--bc-teal-ink); }
.bc-badge--ghost{ background: transparent; border-color: var(--bc-hairline); color: var(--bc-ink-50); }

/* ---- 5. INPUTS / FORMS ----------------------------------- */
.bc-field { display: flex; flex-direction: column; gap: 8px; }
.bc-label { font-size: 14px; font-weight: 600; }
.bc-input, .bc-select, .bc-textarea {
  font-family: var(--bc-font); font-size: 16px; font-weight: 500;
  padding: 14px 16px; border: var(--bc-border); border-radius: var(--bc-radius-md);
  background: var(--bc-paper); color: var(--bc-ink); width: 100%;
  transition: box-shadow var(--bc-dur) var(--bc-ease), border-color var(--bc-dur) var(--bc-ease);
  box-sizing: border-box;
}
.bc-input::placeholder, .bc-textarea::placeholder { color: var(--bc-ink-50); font-weight: 400; }
.bc-input:focus, .bc-select:focus, .bc-textarea:focus {
  outline: none; box-shadow: 0 0 0 4px var(--bc-teal);
}
.bc-input--error { border-color: var(--bc-red); }
.bc-input--error:focus { box-shadow: 0 0 0 4px var(--bc-red-soft); }
.bc-hint { font-size: 13px; color: var(--bc-ink-50); }
.bc-hint--error { color: var(--bc-red-deep); }

/* search field — pill with embedded button */
.bc-search {
  display: flex; align-items: center; gap: 10px;
  border: var(--bc-border-bold); border-radius: var(--bc-radius-pill);
  background: var(--bc-paper); padding: 8px 8px 8px 22px;
}
.bc-search input {
  border: none; outline: none; flex: 1;
  font-family: var(--bc-font); font-size: 16px; font-weight: 500;
  background: transparent; color: var(--bc-ink);
}
.bc-search input::placeholder { color: var(--bc-ink-50); font-weight: 400; }

/* ---- 6. CARDS -------------------------------------------- */
.bc-card {
  background: var(--bc-paper);
  border: var(--bc-border); border-radius: var(--bc-radius-lg);
  padding: var(--bc-space-5);
}
.bc-card--pop { box-shadow: var(--bc-shadow-pop); }
.bc-card--soft { border: none; box-shadow: var(--bc-shadow-soft); }
.bc-card--flat { border: none; background: var(--bc-cloud); }

/* ---- 7. NAV ---------------------------------------------- */
.bc-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--bc-space-6); padding: 16px 28px;
  background: var(--bc-paper); border: var(--bc-border-bold); border-radius: var(--bc-radius-pill);
}
.bc-nav__links {
  display: flex; align-items: center; gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.bc-nav__links a {
  color: var(--bc-ink); text-decoration: none;
  font-weight: 500; font-size: 16px; white-space: nowrap;
}
.bc-nav__links a:hover { color: var(--bc-teal-deep); }

/* ---- 8. DEAL CARD (core product) ------------------------- */
.bc-deal {
  background: var(--bc-paper); border: var(--bc-border-bold);
  border-radius: var(--bc-radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
}
.bc-deal__media { position: relative; aspect-ratio: 16/10; background: var(--bc-mist); overflow: hidden; }
.bc-deal__placeholder {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, #E4E3E8 0 14px, #ECEBEF 14px 28px);
  display: grid; place-items: center;
}
.bc-deal__placeholder-code {
  font-size: 48px; font-weight: 700; letter-spacing: -.04em;
  color: rgba(0,0,0,.12);
}
.bc-deal__tags { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.bc-deal__save {
  position: absolute; top: 12px; right: 12px; width: 42px; height: 42px;
  border: var(--bc-border); border-radius: 50%; background: var(--bc-paper);
  display: grid; place-items: center; cursor: pointer;
}
.bc-deal__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.bc-deal__route {
  display: flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 700; letter-spacing: -.02em;
}
.bc-deal__foot { display: flex; align-items: flex-end; justify-content: space-between; }
.bc-deal__price { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.bc-deal__price s { color: var(--bc-ink-50); font-weight: 500; font-size: 16px; }

/* ---- 9. HELPERS ------------------------------------------ */
.bc-pill-divider {
  display: inline-flex; width: 26px; height: 26px; border-radius: 50%;
  border: var(--bc-border); align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ---- 10. LAYOUT HELPERS ---------------------------------- */
.bc-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.bc-wrap--narrow { max-width: 720px; margin: 0 auto; padding: 0 32px; }

.bc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bc-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bc-grid-deals { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

@media (max-width: 900px) {
  .bc-grid-2 { grid-template-columns: 1fr; }
  .bc-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .bc-grid-3 { grid-template-columns: 1fr; }
  .bc-grid-deals { grid-template-columns: 1fr; }
  .bc-wrap { padding: 0 20px; }
  .bc-wrap--narrow { padding: 0 20px; }
  .bc-nav__links { display: none; }
  .bc-nav { padding: 12px 20px; }
}

/* ---- 11. SECTION SPACING --------------------------------- */
.bc-section { padding: 72px 0; }
.bc-section--sm { padding: 48px 0; }
.bc-section--lg { padding: 96px 0; }

/* ---- 12. TEAL HERO BAND ---------------------------------- */
.bc-band--teal {
  background: var(--bc-teal);
  border-top: var(--bc-border-bold);
  border-bottom: var(--bc-border-bold);
}
.bc-band--ink {
  background: var(--bc-ink);
  color: var(--bc-paper);
}
