/* ==========================================================================
   Joel Kisakye Music — Global Theme
   Gold & Black brand colors built on top of the Instant template (main.css)
   All custom components consolidated here. Load AFTER main.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Color Variables (gold/black brand — overrides Instant template defaults)
   -------------------------------------------------------------------------- */
:root {
  --background-color: #040000;
  --default-color: #f8f8f8;
  --heading-color: #ffffff;
  --accent-color: #e59d02;
  --surface-color: #191919;
  --contrast-color: #ffffff;

  --nav-color: #f8f8f8;
  --nav-hover-color: #e59d02;
  --nav-mobile-background-color: #1b1a1a;
  --nav-dropdown-background-color: #1b1a1a;
  --nav-dropdown-color: #f8f8f8;
  --nav-dropdown-hover-color: #e59d02;

  /* Extended brand tokens */
  --accent-dark: #b87b00;
  --accent-light: #f5b73a;
  --surface2: #1f1e1d;
  --line: rgba(255, 255, 255, .08);
  --muted: #8a8a8a;
}

.light-background {
  --background-color: #1b1a1a;
  --surface-color: #282828;
}

.dark-background {
  --background-color: #000000;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #1b1b1b;
  --contrast-color: #ffffff;
}

/* --------------------------------------------------------------------------
   2. Header / Logo
   -------------------------------------------------------------------------- */
.header .logo { gap: 10px; }

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent-color));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  flex-shrink: 0;
}

.header .logo h1.sitename,
.footer .sitename {
  font-size: 22px;
  letter-spacing: -.02em;
  background: linear-gradient(90deg, var(--accent-light), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header .btn-getstarted {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent-color));
}

@media (min-width: 1200px) {
  .navmenu a,
  .navmenu a:focus { padding: 18px 10px; font-size: 14.5px; }
}

.scrolled .header::before { background: rgba(4, 0, 0, .78); }

/* --------------------------------------------------------------------------
   3. Hero / Page Title
   -------------------------------------------------------------------------- */
.hero .hero-title .typed::after { display: none; }

.hero .badge-pill {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
  background: rgba(229, 157, 2, .12);
  border: 1px solid rgba(229, 157, 2, .3);
  margin-bottom: 24px;
}

.hero .hero-title span {
  background: linear-gradient(90deg, var(--accent-light), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-title {
  background:
    radial-gradient(ellipse 60% 80% at 50% 0, rgba(229, 157, 2, .16), transparent 70%),
    var(--background-color);
}

/* --------------------------------------------------------------------------
   4. Song Cards / Music Grid
   -------------------------------------------------------------------------- */
.jk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}

.jk-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface-color);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color .2s, transform .2s;
}

.jk-card:hover {
  border-color: rgba(229, 157, 2, .4);
  transform: translateY(-2px);
}

.jk-play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent-color));
  color: #fff;
  font-size: 24px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(229, 157, 2, .35);
  transition: transform .15s;
}

.jk-play:hover { transform: scale(1.08); }

.jk-meta { min-width: 0; flex: 1; }

.jk-meta strong {
  display: block;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jk-meta small,
.jk-sub { color: var(--muted); font-size: 13px; }

.jk-badge {
  padding: 3px 11px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(229, 157, 2, .12);
  color: var(--accent-light);
  border: 1px solid rgba(229, 157, 2, .25);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   5. Albums
   -------------------------------------------------------------------------- */
.jk-albums {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.jk-album {
  background: var(--surface-color);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}

.jk-album h3 { font-size: 19px; margin: 14px 0 2px; }

.jk-cover {
  aspect-ratio: 1.6 / 1;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(229, 157, 2, .5), transparent 60%),
    linear-gradient(135deg, #2a1c00, var(--surface-color));
}

.jk-cover span {
  font: 700 54px Raleway, sans-serif;
  color: rgba(255, 255, 255, .85);
}

.jk-album ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  max-height: 170px;
  overflow-y: auto;
}

.jk-album li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.jk-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: rgba(229, 157, 2, .18);
  color: var(--accent-light);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.jk-mini:hover { background: var(--accent-color); color: #fff; }

/* --------------------------------------------------------------------------
   6. Empty States
   -------------------------------------------------------------------------- */
.jk-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 42px 16px;
  color: var(--muted);
}

.jk-empty i {
  font-size: 34px;
  display: block;
  margin-bottom: 8px;
  color: #3a352a;
}

/* --------------------------------------------------------------------------
   7. Toolbars / Chips
   -------------------------------------------------------------------------- */
.jk-tools {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.jk-tools .form-control,
.jk-tools .form-select { max-width: 260px; }

.jk-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.jk-chip {
  padding: 7px 16px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface-color);
  color: var(--default-color);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.jk-chip.on {
  border-color: var(--accent-color);
  color: #fff;
  background: rgba(229, 157, 2, .2);
}

/* --------------------------------------------------------------------------
   8. Modal (song / video player)
   -------------------------------------------------------------------------- */
.jk-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, .75);
  backdrop-filter: blur(6px);
}

.jk-modal.on { display: grid; }

.jk-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--surface-color);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
}

.jk-box h4 { font-size: 18px; margin: 0 38px 2px 0; }

.jk-embed { margin: 16px 0 12px; }

.jk-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.jk-open { font-size: 13px; font-weight: 600; }

/* --------------------------------------------------------------------------
   9. Events
   -------------------------------------------------------------------------- */
.jk-event {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--surface-color);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 12px;
}

.jk-date {
  width: 58px;
  text-align: center;
  padding: 8px 0;
  border-radius: 12px;
  background: rgba(229, 157, 2, .12);
  flex-shrink: 0;
}

.jk-date b {
  display: block;
  font: 700 22px/1 Raleway, sans-serif;
  color: #fff;
}

.jk-date span { font-size: 12px; color: var(--accent-light); }

.jk-ev-body { flex: 1; min-width: 0; }
.jk-ev-body strong { display: block; color: #fff; }
.jk-ev-body small { color: var(--muted); }

.jk-link { font-weight: 600; font-size: 13px; }

/* --------------------------------------------------------------------------
   10. Panels / Placeholders
   -------------------------------------------------------------------------- */
.jk-panel {
  background: var(--surface-color);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
}

.jk-ph {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  color: var(--muted);
  border: 1.5px dashed #3a352a;
  background:
    radial-gradient(circle at 30% 20%, rgba(229, 157, 2, .18), transparent 60%),
    var(--surface-color);
}

.jk-ph b {
  display: block;
  font: 700 56px Raleway, sans-serif;
  color: var(--accent-light);
}

/* --------------------------------------------------------------------------
   11. Gallery
   -------------------------------------------------------------------------- */
.jk-gal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.jk-gal img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .3s;
}

.jk-gal img:hover { transform: scale(1.03); }

.jk-light {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, .92);
  display: none;
  place-items: center;
}

.jk-light.on { display: grid; }
.jk-light img { max-width: 94vw; max-height: 88vh; border-radius: 12px; }

/* --------------------------------------------------------------------------
   12. Forms
   -------------------------------------------------------------------------- */
.form-control,
.form-select {
  background: var(--surface2);
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--default-color);
  border-radius: 12px;
  padding: 12px 14px;
}

.form-control:focus,
.form-select:focus {
  background: var(--surface2);
  color: #fff;
  border-color: rgba(229, 157, 2, .6);
  box-shadow: 0 0 0 3px rgba(229, 157, 2, .15);
}

.form-control::placeholder { color: #5a5a5a; }

.form-label { font-size: 13px; font-weight: 600; color: #a8a8a8; }

.form-check-input:checked {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.jk-submit {
  border: 0;
  border-radius: 14px;
  padding: 14px 30px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent-color));
}

.jk-submit:disabled { opacity: .5; }

.jk-note { margin-top: 12px; font-size: 14px; }
.jk-note.ok { color: #4ade80; }
.jk-note.bad { color: #f87171; }

/* --------------------------------------------------------------------------
   13. Tables / Reviews
   -------------------------------------------------------------------------- */
.jk-table { width: 100%; border-collapse: collapse; }
.jk-table td { padding: 12px 0; border-bottom: 1px solid var(--line); }
.jk-table td:last-child { text-align: right; font-weight: 700; color: var(--accent-light); }

.jk-review {
  background: var(--surface-color);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  height: 100%;
}

.jk-review p { font-style: italic; margin-bottom: 12px; }

/* --------------------------------------------------------------------------
   14. Pricing tweaks
   -------------------------------------------------------------------------- */
.pricing .pricing-card .btn-plan { text-align: center; }
.pricing .plan-pricing .period { display: block; margin-bottom: 4px; }

/* --------------------------------------------------------------------------
   15. Misc
   -------------------------------------------------------------------------- */
.section-note {
  font-size: 13px;
  color: var(--muted);
  max-width: 760px;
  margin: 24px auto 0;
  text-align: center;
}

:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   16. Panel CTA Button — fix oversized "Request a Quote" in panels
   Applies to .btn-getstarted when used inside a .jk-panel or section CTA.
   Header usage is untouched.
   -------------------------------------------------------------------------- */
.jk-panel .btn-getstarted {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  max-width: max-content;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent-color));
  color: var(--contrast-color);
  box-shadow: 0 8px 25px rgba(229, 157, 2, .35);
  transition: all .3s ease;
  text-decoration: none;
}

.jk-panel .btn-getstarted:hover,
.jk-panel .btn-getstarted:focus:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(229, 157, 2, .5);
  background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  color: var(--contrast-color);
}

/* Keep header button sized correctly and unaffected by the above */
.header .btn-getstarted {
  width: auto;
  max-width: max-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 26px;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   17. Fix oversized header CTA button (Request a Quote)
   Forces single-line, compact pill in the navbar on all pages.
   -------------------------------------------------------------------------- */
.header .btn-getstarted,
.header .btn-getstarted:focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: max-content;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  border-radius: 50px;
  margin: 0;
  text-align: center;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent-color));
  color: var(--contrast-color);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.header .btn-getstarted:hover,
.header .btn-getstarted:focus:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(229, 157, 2, .4);
  background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  color: var(--contrast-color);
}

/* Give the nav room so the button never wraps or overlaps */
@media (min-width: 1200px) {
  .header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap;
  }
  .header .navmenu { flex: 0 1 auto; }
  .header .navmenu ul { flex-wrap: nowrap; }
  .header .btn-getstarted { margin-left: 15px; }
}

/* Tablet / mobile sizing — keep it small but readable */
@media (max-width: 1199px) {
  .header .btn-getstarted {
    padding: 7px 18px;
    font-size: 13px;
    margin: 0 10px 0 0;
  }
}

/* --------------------------------------------------------------------------
   18. Mobile: hide header CTA, show a matching CTA inside the hero/page-title
   -------------------------------------------------------------------------- */

/* Inject a hero CTA that reuses the header button's text via ::after on hero-actions */
@media (max-width: 1199px) {

  /* Hide the header "Request a Quote" button on mobile */
  .header .btn-getstarted,
  .header .btn-getstarted:focus {
    display: none !important;
  }

  /* Give the logo full room now that the button is gone */
  .header .logo {
    margin-right: auto;
  }

  /* Add a "Request a Quote" pill inside the hero actions on mobile */
  .hero .hero-actions::after {
    content: "Request a Quote";
    order: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 280px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    border-radius: 50px;
    color: var(--contrast-color);
    background: linear-gradient(135deg, var(--accent-dark), var(--accent-color));
    box-shadow: 0 8px 25px rgba(229, 157, 2, .35);
    margin-top: 4px;
  }

  /* Optional: same for pages that use .page-title instead of .hero */
  .page-title .container::after {
    content: "Request a Quote";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    border-radius: 50px;
    color: var(--contrast-color);
    background: linear-gradient(135deg, var(--accent-dark), var(--accent-color));
    box-shadow: 0 8px 25px rgba(229, 157, 2, .35);
    cursor: pointer;
  }
}

/* Extra tidy-up for phones */
@media (max-width: 576px) {
  .hero .hero-actions::after {
    max-width: 100%;
    padding: 13px 26px;
    font-size: 14.5px;
  }
}

/* --------------------------------------------------------------------------
   19. Brand logo image — replaces text "Joel Kisakye Music" in header + footer
   -------------------------------------------------------------------------- */

/* Hide the text wordmark everywhere */
.header .logo h1.sitename,
.header .logo .sitename,
.footer .sitename,
.header .logo h1,
.header .logo h2 {
  /* keep accessible text but visually hide it */
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Give the logo anchor a fixed, well-proportioned clickable area */
.header .logo a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  text-decoration: none;
}

/* Replace the icon mark with your logo image */
.header .logo .logo-mark {
  width: 140px;              /* adjust to your logo's aspect ratio */
  height: 40px;
  border-radius: 8px;        /* set to 0 for a square/rectangular logo */
  background: url("../img//logo.png") no-repeat center center / contain;
  color: transparent;        /* hide the fallback icon glyph */
  font-size: 0;
  box-shadow: none;
}

/* If your HTML puts the wordmark inside <h1><span>, remove the mark entirely
   when you already have a full-width wordmark logo. Uncomment if needed: */
/*
.header .logo .logo-mark { display: none; }
*/

/* --- Footer logo (uses .sitename span, no .logo-mark) --- */
.footer .footer-about .logo {
  display: inline-block;
  height: 44px;
  width: 140px;
  background: url("../img/logo.png") no-repeat left center / contain;
}

/* Fallback: if you want a text logo but smaller/hidden off-canvas — leave as above */