/* ProSound — project overrides. Theme files are never edited; all overrides live here. */

/* Language switcher: theme styles buttons, we render real <a> links */
.lang-switch a {
  background: none;
  border: 0;
  padding: 0;
  color: #fff;
  font-family: "Roboto Mono", monospace;
  font-size: .8125rem;
  opacity: .42;
  text-decoration: none;
}

.lang-switch a.active {
  opacity: 1;
  font-weight: 700;
}

/* Hero video background (YouTube IFrame API) */
.hero-media .hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media .hero-video-cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: opacity .6s;
}

.hero-media .hero-video-cover.hidden {
  opacity: 0;
  pointer-events: none;
}

.hero-media .hero-video-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 0;
}

/* Forms (theme ships none) — inner pages are light (#f6f7fb) */
.inner-page .page-body .form-label {
  color: var(--ps-navy);
  font-weight: 600;
}

.inner-page .page-body .form-label .accent-lime {
  color: var(--ps-blue);
}

.inner-page .page-body .form-control {
  background: #fff;
  border: 1px solid #d5d9e4;
  color: var(--ps-navy);
  border-radius: 0;
  padding: .7rem 1rem;
}

.inner-page .page-body .form-control:focus {
  border-color: var(--ps-blue);
  box-shadow: none;
}

.inner-page .page-body .form-control.is-invalid {
  border-color: #dc3545;
}

/* PNG icons inside why-section rings */
.why .icon-ring img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Service cards as links */
.service-card-link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Service detail top image (816px slot, stored 1200px for retina) */
.detail-content .detail-top-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

/* Gallery spacing utilities used by the gallery block */
.mb-40 { margin-bottom: 40px; }
.mt-40 { margin-top: 40px; }

/* Gallery Section (from gallery-plugin package README) */
.gallery-section :has(> .d-flex).row {
  row-gap: var(--bs-gutter-x);
}
.gallery-section .img-fluid {
  object-fit: cover;
}
.gallery-section .overlay {
  border-radius: 5px;
}
.effect-image-1 {
  position: relative;
  display: block;
}
.effect-image-1 img {
  border-radius: 5px;
}
.overlay {
  position: absolute;
  display: grid;
  place-content: center;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: rgba(0, 0, 0, .2);
  border-radius: 10%;
  opacity: 0;
  visibility: hidden;
  transition: all .4s linear;
}
.simple-overlay {
  opacity: 0;
  visibility: hidden;
}
.effect-image-1:hover .simple-overlay {
  visibility: visible;
  opacity: 1;
}
.lg-backdrop {
  background-color: rgba(30, 30, 30, 0.9);
}
.lg-outer .lg-thumb-outer {
  background-color: transparent;
}

/* Desktop: dropdowns open on hover so the services parent stays a real link */
@media (min-width: 992px) {
  .navbar .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

/* Content images from the editor never overflow on small screens */
.detail-content img {
  max-width: 100%;
  height: auto;
}

/* Gallery grid thumbs: uniform 16:9 rectangles regardless of upload ratio */
.gallery-section .faq-gal-img {
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
}

/* Footer social icons */
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  font-size: .9375rem;
  transition: all .25s;
}

.footer-social a:hover {
  background: var(--ps-lime);
  border-color: var(--ps-lime);
  color: #0c0c12;
}


/* News detail sidebar: recent news rows */
.news-side li + li {
  margin-top: 14px;
}

.news-side a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.news-side img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.news-side .t {
  display: block;
  font-weight: 600;
  font-size: .875rem;
  line-height: 1.3;
}

.news-side .d {
  display: block;
  font-size: .75rem;
  opacity: .65;
  margin-top: 2px;
}

/* ============================================================
   Mobile menu — "ghost nav" pattern (from reference spec):
   burger (3 bars -> X), 290px dark panel slides in from the RIGHT,
   page pushes LEFT + dim backdrop, submenus via Bootstrap Collapse.
   Breakpoint: < 992px (desktop navbar-expand-lg takes over above).
   ============================================================ */

:root {
  --mm-width: 290px;
  --mm-accent: var(--ps-lime, #b1e503);
  --mm-panel-bg: #0b0d16;
  --mm-speed: .2s;
}

body { overflow-x: hidden; }

.mm-site {
  transition: transform var(--mm-speed);
  position: relative;
}

body.mm-open .mm-site {
  transform: translateX(var(--mm-width));
}

.mm-site::after {
  content: ""; position: absolute; inset: 0; z-index: 1050;
  background: #000; opacity: 0; pointer-events: none;
  transition: opacity var(--mm-speed);
}

body.mm-open .mm-site::after { opacity: .3; pointer-events: all; }
body.mm-open { overflow: hidden; }

/* Burger button (3 bars -> X) */
.mm-burger {
  width: 42px; height: 38px; padding: 10px 11px;
  background: transparent; border: 1px solid #fff; border-radius: 4px;
  cursor: pointer; display: inline-block;
}

.mm-burger span {
  display: block; width: 100%; height: 2px; background: #fff;
  transition: transform .4s, opacity .4s;
  transform-origin: 8.33% 50%;
}

.mm-burger span + span { margin-top: 5px; }
.mm-burger:hover, .mm-burger:focus { opacity: .6; outline: none; }
.mm-burger.active .mm-b-top { transform: rotate(45deg) scaleX(1.13); }
.mm-burger.active .mm-b-mid { transform: scaleX(0); }
.mm-burger.active .mm-b-bot { transform: rotate(-45deg) scaleX(1.13); }

@media (min-width: 992px) {
  .mm-burger.mm-burger-header { display: none; }
}

/* Slide-in panel */
.mm-panel {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 1060;
  width: var(--mm-width);
  background: var(--mm-panel-bg);
  transform: translateX(calc(-1 * var(--mm-width)));
  transition: transform var(--mm-speed);
  overflow-y: auto;
  padding: 60px 20px 20px 15px;
}

body.mm-open .mm-panel { transform: translateX(0); }

.mm-panel .mm-burger-close { position: absolute; top: 20px; right: 20px; z-index: 9; }

/* Menu list */
.mm-menu { list-style: none; margin: 0; padding: 0; }
.mm-menu li { position: relative; display: block; }

.mm-menu a {
  display: block; color: #fff; text-decoration: none;
  font-size: 16px; font-weight: 400;
  padding: 10px 0; min-height: 40px;
  transition: color .15s;
}

.mm-menu a:hover, .mm-menu a:focus,
.mm-menu li.active > a { color: var(--mm-accent); }

/* Submenu expand toggle (angle icon) */
.mm-showchildren {
  position: absolute; right: 0; top: 0; z-index: 10;
  background: transparent; border: 0; color: #fff; cursor: pointer;
  padding: 10px 15px; line-height: 1;
}

.mm-showchildren:hover, .mm-showchildren:active { color: var(--mm-accent); }

.mm-showchildren .mm-angle {
  display: inline-block; width: .6em; height: .6em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .25s;
  vertical-align: .15em;
}

.mm-showchildren[aria-expanded="true"] .mm-angle {
  transform: rotate(225deg);
  vertical-align: -.1em;
}

/* Submenu */
.mm-submenu { list-style: none; margin: 0; padding-left: 15px; }
.mm-submenu a { font-size: 13px; font-weight: 700; padding: 8px 0; min-height: auto; }

.mm-submenu a::before {
  content: ""; display: inline-block; width: .45em; height: .45em;
  border-right: 2px solid currentColor; border-top: 2px solid currentColor;
  transform: rotate(45deg);
  margin-right: 10px; vertical-align: .05em;
}

/* Filled CTA item */
.mm-menu li.mm-nav-button { margin-top: 15px; }

.mm-menu li.mm-nav-button > a {
  display: inline-block; min-height: auto;
  font-size: 17px; font-weight: 700; line-height: 20px;
  padding: 6px 18px;
  border: 3px solid var(--mm-accent);
  background: var(--mm-accent); color: #0b0d16;
  text-transform: capitalize;
}

.mm-menu li.mm-nav-button > a:hover {
  background: transparent; color: var(--mm-accent);
}

/* Language switcher row */
.mm-menu li.mm-lang { margin-top: 20px; color: rgba(255, 255, 255, .5); }
.mm-menu li.mm-lang a { display: inline-block; min-height: auto; padding: 4px 6px; }
.mm-menu li.mm-lang a.active { color: var(--mm-accent); }

/* "Niyə ProSound" items: centered on mobile, desktop unchanged */
@media (max-width: 767.98px) {
  .why .col-md-4 {
    text-align: center;
  }

  .why .col-md-4 .icon-ring {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Footer on mobile: centered stack + header-like side gaps */
@media (max-width: 767.98px) {
  .footer .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .footer .container > .d-flex {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

/* Hero overlay: slightly darker than theme default (.6 -> .7) */
.hero-media::after {
  background: rgba(1, 19, 72, .7);
}

/* CTA is always on blue: force white text regardless of page theme */
.cta {
  color: #fff;
}

/* lightGallery on mobile: keep toolbar below the status bar / notch,
   and above everything of ours */
.lg-outer {
  z-index: 2000;
}

.lg-backdrop {
  z-index: 1990;
}

.lg-toolbar {
  padding-top: env(safe-area-inset-top, 0px);
}

/* Mobile: gallery thumb gaps halved (both axes follow the gutter var) */
@media (max-width: 767.98px) {
  .gallery-section .row {
    --bs-gutter-x: .75rem;
    row-gap: .75rem;
  }
}

/* Fun facts on mobile — Variant B: aligned rows (number right-aligned in a
   fixed column, lime-barred label beside it). Desktop untouched. */
@media (max-width: 991.98px) {
  .stats .row {
    --bs-gutter-y: 0;
  }

  .stats .col-stat {
    width: 100%;
    align-items: center !important;
    gap: 18px !important;
    padding: 16px 0 16px 0;
  }

  .stats .col-stat + .col-stat {
    border-left: 0;
  }

  .stats .num {
    flex: 0 0 150px;
    text-align: right;
    font-size: 52px;
    letter-spacing: -1px;
  }

  .stats .label {
    border-left: 3px solid var(--ps-lime, #b1e503);
    padding-left: 16px;
    font-size: 13px;
    letter-spacing: 2px;
    line-height: 1.6;
    max-width: none;
  }
}

/* Page head centered on mobile (title + breadcrumb) */
@media (max-width: 767.98px) {
  .page-head {
    text-align: center;
  }

  .page-head .breadcrumb {
    justify-content: center;
  }
}
