/*--------------------------------------------------------------
# Northrhythm Theme — "Studio Meets Gallery"
# Layers on top of main.css. Reuses the template's existing CSS
# custom properties so buttons, links, nav, etc. reskin for free.
# Loaded on index.php only for now — extend to other pages once approved.
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Northrhythm Theme — Dark TuneGrill Direction
--------------------------------------------------------------*/

:root {

  /* =========================================================
     HOMEPAGE / GLOBAL DARK COLORS
     ========================================================= */

  --background-color: #0d0d0d;
  --default-color: #e8e8e8;
  --heading-color: #ffffff;
  --surface-color: #111111;
  --contrast-color: #ffffff;


  /* =========================================================
     NORTHRHYTHM ACCENT
     ========================================================= */

  --accent-color: #d9ff43;


  /* =========================================================
     FONTS
     ========================================================= */

  --default-font: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --heading-font: "Fraunces", "Playfair Display", serif;
  --nav-font: "Inter", "Poppins", sans-serif;


  /* =========================================================
     NAVBAR COLORS
     ========================================================= */

  --nav-color: rgba(255, 255, 255, 0.82);
  --nav-hover-color: #d9ff43;

  --nav-mobile-background-color: #0d0d0d;

  --nav-dropdown-background-color: #111111;
  --nav-dropdown-color: #e8e8e8;
  --nav-dropdown-hover-color: #d9ff43;


  /* =========================================================
     FRAME LINE
     ========================================================= */

  --frame-line-soft: color-mix(
    in srgb,
    var(--accent-color),
    transparent 70%
  );
}


/* =========================================================
   GLOBAL HOMEPAGE BACKGROUND
   ========================================================= */

html,
body {
  background-color: #0d0d0d !important;
}


/* =========================================================
   MAIN HEADER
   ========================================================= */

.header {
  background-color: #0d0d0d !important;
}


/* Main header section */
.header .main-header {
  background-color: #0d0d0d !important;
}


/* Navigation bar */
.header .header-nav {
  background-color: #0d0d0d !important;
}


/* =========================================================
   NORTHRHYTHM LOGO
   ========================================================= */

.header .sitename {
  color: #ffffff !important;
}


/* Treble clef in the logo */
.header .sitename span {
  color: #d9ff43 !important;
}


/* =========================================================
   NAVIGATION LINKS
   ========================================================= */

.header .navmenu a,
.header .navmenu a:focus {
  color: #e8e8e8 !important;
}


/* Hover + active */
.header .navmenu li:hover > a,
.header .navmenu .active,
.header .navmenu .active:focus {
  color: #d9ff43 !important;
}


/* =========================================================
   NAVIGATION ICONS
   ========================================================= */

.header .navmenu a i,
.header .header-action-btn i,
.header .mobile-nav-toggle {
  color: #ffffff !important;
}


/* Icon hover */
.header .header-action-btn:hover i,
.header .mobile-nav-toggle:hover {
  color: #d9ff43 !important;
}


/* =========================================================
   SEARCH BAR
   ========================================================= */

.header .search-form .form-control {
  background-color: #171717 !important;
  color: #ffffff !important;
  border-color: #292929 !important;
}


.header .search-form .form-control::placeholder {
  color: #888888 !important;
}


.header .search-form .btn {
  background-color: #171717 !important;
  color: #ffffff !important;
  border-color: #292929 !important;
}


/* =========================================================
   CART BADGE
   ========================================================= */

.header #cartCount {
  background-color: #d9ff43 !important;
  color: #0d0d0d !important;
}

  /* Derived helper — a translucent version of the accent color for hairlines */
  --frame-line-soft: color-mix(in srgb, var(--accent-color), transparent 70%);
}

.dark-background {
  --accent-color: #E63946; /* keep the red pop on dark panels too, not white */
}

body {
  font-feature-settings: "ss01" on;
}

::selection {
  background: var(--accent-color);
  color: var(--contrast-color);
}

:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

/* Eyebrow labels — museum-placard tags. Used to encode real categories
   (SOUND / VISUAL / ACCESS), not decorative numbering. */
.eyebrow-label {
  display: inline-block;
  font-family: var(--nav-font);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 0.6rem;
}

/*--------------------------------------------------------------
# Framed Card — the signature element
# Open corner brackets, like a gallery placard or frame corner.
--------------------------------------------------------------*/
.framed-card {
  position: relative;
  background: var(--surface-color);
  padding: 2.25rem 1.85rem;
  height: 100%;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.framed-card::before,
.framed-card::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--accent-color);
  transition: width 0.3s ease, height 0.3s ease;
}

.framed-card::before {
  top: 12px;
  left: 12px;
  border-right: none;
  border-bottom: none;
}

.framed-card::after {
  bottom: 12px;
  right: 12px;
  border-left: none;
  border-top: none;
}

.framed-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.framed-card:hover::before,
.framed-card:hover::after {
  width: 30px;
  height: 30px;
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn-frame {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.7rem;
  border: 1px solid var(--accent-color);
  color: var(--contrast-color);
  font-family: var(--nav-font);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-frame:hover {
  background: var(--accent-color);
  color: var(--background-color);
}

.btn-pill-solid {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  background: var(--accent-color);
  color: #fff;
  font-family: var(--nav-font);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn-pill-solid:hover {
  background: color-mix(in srgb, var(--accent-color), #000 15%);
  color: #fff;
  transform: translateY(-2px);
}

.btn-pill-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  background: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  font-family: var(--nav-font);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-pill-outline:hover {
  background: var(--accent-color);
  color: #fff;
}

.gold-text {
  color: var(--gold-accent);
}

/* Pill-shaped search bar, matching the header's rounded visual language */
.search-form .input-group {
  border-radius: 999px;
  overflow: hidden;
}
.search-form .form-control {
  border-radius: 999px 0 0 999px;
}
.search-form .btn {
  border-radius: 0 999px 999px 0;
  background: var(--accent-color);
  color: #fff;
  border: none;
}

/*--------------------------------------------------------------
# Hero — TuneGrill-inspired: full-bleed dark image, bold headline,
# circular category links instead of the previous crossfade slider.
--------------------------------------------------------------*/
.hero-tune {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 4rem 0 3.5rem;
}

.hero-tune__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-tune__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,10,10,0.96) 0%, rgba(10,10,10,0.75) 45%, rgba(10,10,10,0.4) 100%);
  z-index: 1;
}

.hero-tune__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-tune__title {
  font-family: var(--heading-font);
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  line-height: 1.08;
  color: #fff;
  margin: 0.5rem 0 1rem;
}

.hero-tune__subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 48ch;
  margin-bottom: 1.8rem;
}

.hero-tune__categories {
  display: flex;
  gap: 1.6rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.category-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  width: 92px;
}

.category-circle__img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-color);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.category-circle__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-circle:hover .category-circle__img {
  transform: translateY(-4px);
  border-color: var(--gold-accent);
}

.category-circle span {
  color: #fff;
  font-family: var(--nav-font);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
}

@media (max-width: 575.98px) {
  .hero-tune { min-height: 520px; padding: 3rem 0 2.5rem; }
  .category-circle { width: 76px; }
  .category-circle__img { width: 68px; height: 68px; }
}

/*--------------------------------------------------------------
# Beat Carousel — horizontal-scroll row with a "Show All" + arrow
# nav pair, matching TuneGrill's Trending Beats pattern.
--------------------------------------------------------------*/
.beat-carousel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.beat-carousel-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.beat-carousel-nav a {
  color: var(--accent-color);
  font-family: var(--nav-font);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.beat-carousel-arrows {
  display: flex;
  gap: 0.5rem;
}

.beat-carousel-arrows button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.beat-carousel-arrows button:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.beat-carousel-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.beat-carousel-track::-webkit-scrollbar {
  height: 6px;
}
.beat-carousel-track::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
}

.beat-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
}

.beat-card__cover {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin-bottom: 0.85rem;
}

.beat-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.beat-card__title {
  color: #fff;
  font-family: var(--nav-font);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.beat-card .btn-outline-dark {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255,255,255,0.35);
  --bs-btn-hover-bg: var(--accent-color);
  --bs-btn-hover-border-color: var(--accent-color);
}


/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
#about .content h2 {
  font-family: var(--heading-font);
}

#about .content .lead {
  color: var(--accent-color);
  font-weight: 500;
}

#about .image-wrapper {
  position: relative;
}

#about .image-wrapper::before,
#about .image-wrapper::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border: 3px solid var(--accent-color);
  z-index: 1;
}

#about .image-wrapper::before { top: -12px; left: -12px; border-right: none; border-bottom: none; }
#about .image-wrapper::after { bottom: -12px; right: -12px; border-left: none; border-top: none; }

/*--------------------------------------------------------------
# Services — grouped as SOUND / VISUAL / ACCESS
--------------------------------------------------------------*/
.services .service-item {
  background: transparent;
}

.services .service-icon {
  color: var(--accent-color);
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.services h3 {
  font-family: var(--heading-font);
  font-size: 1.25rem;
}

.services .service-link {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.9rem;
}

/*--------------------------------------------------------------
# Call To Action — "Limited Release" panel
--------------------------------------------------------------*/
.call-to-action.section {
  background: var(--background-color);
}

.call-to-action .offer-badge {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  border: 1px solid var(--accent-color);
  padding: 0.4rem 1rem;
  margin-bottom: 1.4rem;
}

.call-to-action .limited-time {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: var(--accent-color);
}

.call-to-action .offer-text {
  color: var(--contrast-color);
  font-weight: 700;
}

.call-to-action h2 {
  font-family: var(--heading-font);
  color: var(--contrast-color);
}

.call-to-action .countdown h3 {
  font-family: var(--heading-font);
  color: var(--accent-color);
  font-size: 2.4rem;
}

.call-to-action .countdown h4 {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.call-to-action .btn-shop-now {
  background: var(--accent-color);
  color: var(--background-color);
  padding: 0.85rem 1.8rem;
  font-weight: 700;
  margin-right: 0.75rem;
  display: inline-block;
}

.call-to-action .btn-view-deals {
  border: 1px solid var(--frame-line-soft);
  color: var(--contrast-color);
  padding: 0.85rem 1.8rem;
  display: inline-block;
}

/*--------------------------------------------------------------
# Contact — retokenized to match the theme instead of hardcoded hex
--------------------------------------------------------------*/
.contact-section {
  background: var(--background-color);
  color: var(--default-color);
}

.contact-card,
.contact-form-card {
  background: var(--surface-color);
  border-radius: 0;
  position: relative;
  padding: 2rem;
  box-shadow: none;
}

.contact-card::before,
.contact-form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--frame-line-soft);
  pointer-events: none;
}

.contact-card h5,
.contact-form-card h4 {
  font-family: var(--heading-font);
  color: var(--contrast-color);
  margin-top: 15px;
}

.contact-card p,
.contact-card small,
.contact-form-card p {
  color: color-mix(in srgb, var(--default-color), transparent 15%);
}

.icon-box {
  background: var(--frame-line-soft);
  border-radius: 0;
}

.icon-box i {
  color: var(--accent-color);
}

.contact-link {
  color: var(--accent-color);
}

.contact-form-card input,
.contact-form-card textarea {
  background: var(--background-color);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 60%);
  color: var(--contrast-color);
  border-radius: 0;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
  border-color: var(--accent-color);
}

.contact-form-card button {
  background: var(--accent-color);
  color: var(--background-color);
  border-radius: 0;
  font-weight: 700;
}

.contact-form-card button:hover {
  background: color-mix(in srgb, var(--accent-color), #000 12%);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer.dark-background {
  background: var(--background-color);
}

.footer .sitename {
  font-family: var(--heading-font);
  color: var(--contrast-color);
}

.footer h4,
.footer h5 {
  color: var(--accent-color);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer .footer-links a,
.footer .contact-item span {
  color: color-mix(in srgb, var(--default-color), transparent 10%);
}

.footer .footer-links a:hover {
  color: var(--accent-color);
}

.footer .social-icons a {
  border: 1px solid var(--frame-line-soft);
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Music toggle — small refinement to the existing .music-toggle rule
--------------------------------------------------------------*/
.music-toggle {
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.music-toggle[aria-pressed="true"] {
  background: #fff;
  color: #000;
}

/*--------------------------------------------------------------
# Motion & accessibility floor
--------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  .category-circle__img {
    transition: none;
  }
  .framed-card,
  .framed-card::before,
  .framed-card::after {
    transition: none;
  }
}

@media (max-width: 575.98px) {
  .hero-tune {
    padding: 3.5rem 0 2.5rem;
  }
  .framed-card {
    padding: 1.75rem 1.4rem;
  }
}


/* New Beats — Basic Lease Price */
.beat-card__price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 8px 0 12px;
    color: #999;
    font-size: 0.85rem;
}

.beat-card__price span {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

/* =========================================================
   FRAMES PROMOTIONAL SECTION
   ========================================================= */

.frames-promo-section {
    position: relative;
    width: 100%;
    min-height: 480px;
    margin: 0 !important;
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
    isolation: isolate;
    background: #050505;
}

/* Background image */
.frames-promo-bg {
    position: absolute;
    inset: -8%;
    z-index: -3;

    background-image: url("../img/frames-banner.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    transform: scale(1.05);
    will-change: transform;
}

/* Dark overlay */
.frames-promo-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;

    background:
        linear-gradient(
            90deg,
            rgba(3, 3, 3, 0.97) 0%,
            rgba(3, 3, 3, 0.88) 28%,
            rgba(3, 3, 3, 0.55) 55%,
            rgba(3, 3, 3, 0.18) 100%
        );
}

/* Content */
.frames-promo-content {
    position: relative;
    z-index: 2;

    width: min(560px, 90%);
    min-height: 480px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 70px 0 70px 7%;
}

/* Small heading */
.frames-promo-eyebrow {
    display: block;

    margin-bottom: 18px;

    color: #b7b7b7;

    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

/* Main heading */
.frames-promo-content h2 {
    margin: 0 0 20px;

    color: #fff;

    font-family: var(--heading-font, Georgia, serif);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.05;
}

/* Description */
.frames-promo-content p {
    max-width: 500px;

    margin: 0 0 30px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 1rem;
    line-height: 1.8;
}

/* Button */
.frames-promo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    width: fit-content;

    padding: 14px 25px;

    border: 1px solid rgba(255, 255, 255, 0.8);

    color: #fff;

    text-decoration: none;

    font-size: 0.95rem;
    font-weight: 500;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.frames-promo-btn span {
    font-size: 1.3rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.frames-promo-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
}

.frames-promo-btn:hover span {
    transform: translateX(5px);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .frames-promo-section {
        min-height: 520px;
        margin: 0 !important;
        padding: 0;
        border-radius: 0;
    }

    .frames-promo-bg {
        inset: -10%;
        background-position: 65% center;
    }

    .frames-promo-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(3, 3, 3, 0.96) 0%,
                rgba(3, 3, 3, 0.78) 55%,
                rgba(3, 3, 3, 0.45) 100%
            );
    }

    .frames-promo-content {
        width: 90%;
        min-height: 520px;
        padding: 60px 5%;
    }

    .frames-promo-content h2 {
        font-size: clamp(2.3rem, 11vw, 3.5rem);
    }

    .frames-promo-content p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

}