/* ==========================================================================
   SS SOUND & EVENTS - Master Responsive & Layout Stylesheet
   Complete Breakpoint Coverage: Mobile (320px-576px), Tablet (577px-991px),
   Laptop (992px-1199px), and Desktop (1200px+)
   ========================================================================== */

/* ─── Global Reset & Anti-Overflow Rules ────────────────────────── */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img, video, iframe, canvas, svg {
  max-width: 100%;
  height: 700px;
}

/* ─── Scroll Reveal Animations ─────────────────────────────────── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.23, 1, 0.32, 1), transform 0.65s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* ─── Breakpoint: Large Desktops (>= 1400px) ────────────────────── */
@media (min-width: 1400px) {
  .hero-title {
    font-size: 4.2rem;
  }
  .container {
    max-width: 1320px;
  }
}

/* ─── Breakpoint: Desktops & Laptops (1200px - 1399px) ─────────── */
@media (min-width: 1200px) and (max-width: 1399px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .nav-menu {
    gap: 14px;
  }
  .nav-link {
    font-size: 0.82rem;
  }
  .vinyl-card {
    left: 20px;
  }
  .vol-knob {
    right: 20px;
  }
}

/* ─── Breakpoint: Small Laptops / Landscape Tablets (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .hero-title {
    font-size: 3.0rem;
  }
  .section {
    padding: 75px 0;
  }
  .hero-stage {
    max-width: 800px;
  }
  .vinyl-card {
    left: 10px;
    width: 200px;
  }
  .vol-knob {
    right: 10px;
  }
  .vinyl {
    width: 260px;
    height: 260px;
  }
  .vinyl-label {
    width: 80px;
    height: 80px;
  }
  .vinyl-arm {
    height: 110px;
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .expertise-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

/* ─── Breakpoint: Tablets (768px - 991px) ───────────────────────── */
@media (min-width: 768px) and (max-width: 991px) {
  .section {
    padding: 70px 0;
  }

  .hero {
    padding-top: 130px;
    padding-bottom: 70px;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  /* Stack hero vinyl stage vertically on tablet */
  .hero-stage {
    flex-direction: column;
    gap: 20px;
  }

  .vinyl-card {
    position: static;
    transform: none;
    margin: 0 auto;
    width: 100%;
    max-width: 320px;
  }

  .vol-knob {
    display: none;
  }

  .vinyl {
    width: 240px;
    height: 240px;
  }

  .about-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-main-img {
    height: 380px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .client-logo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-img {
    max-height: 300px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

/* ─── Breakpoint: Large Mobile & Phablets (577px - 767px) ───────── */
@media (min-width: 577px) and (max-width: 767px) {
  .top-bar {
    display: none !important;
  }

  .has-top-bar .main-header {
    top: 0 !important;
  }

  .main-header {
    padding: 10px 0;
  }

  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }

  .brand-logo {
    max-width: calc(100% - 130px);
    overflow: hidden;
  }

  .brand-name {
    font-size: 1.1rem;
    white-space: nowrap;
  }

  .btn-header-call {
    display: none !important;
  }

  .btn-header-quote {
    display: inline-flex !important;
    padding: 7px 13px;
    font-size: 0.78rem;
  }

  .hamburger-btn {
    display: flex !important;
    flex-shrink: 0;
  }

  .section {
    padding: 60px 0;
  }

  .hero {
    padding-top: 115px;
    padding-bottom: 50px;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .hero-stage {
    flex-direction: column;
    gap: 16px;
  }

  .vinyl-card {
    position: static;
    transform: none;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .vol-knob {
    display: none !important;
  }

  .vinyl {
    width: 210px;
    height: 210px;
  }

  .about-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-main-img {
    height: 320px;
  }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .client-logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-img {
    max-height: 260px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .quote-card {
    padding: 24px 18px;
  }
}

/* ─── Breakpoint: Mobile Standard & Small (<= 576px) ─────────────── */
@media (max-width: 576px) {
  .top-bar {
    display: none !important;
  }

  .has-top-bar .main-header {
    top: 0 !important;
  }

  .main-header {
    padding: 10px 0;
  }

  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
  }

  .brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 50px);
    overflow: hidden;
  }

  .brand-logo-img {
    width: auto;
    height: 38px;
    max-width: 44px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 0;
  }

  .brand-name {
    font-size: 1.05rem;
    letter-spacing: 0.8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-sub {
    font-size: 0.52rem;
    letter-spacing: 0.8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .btn-header-call {
    display: none !important;
  }

  .btn-header-quote {
    display: none !important;
  }

  .hamburger-btn {
    display: flex !important;
    margin-left: auto;
    flex-shrink: 0;
    width: 34px;
    height: 28px;
  }

  .section {
    padding: 50px 0;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .section-title {
    font-size: 1.85rem;
    line-height: 1.25;
  }

  .section-subtitle {
    font-size: 0.88rem;
    margin-top: 8px;
  }

  .hero {
    padding-top: 100px;
    padding-bottom: 50px;
    min-height: auto;
  }

  .hero-title {
    font-size: 1.95rem;
    line-height: 1.15;
    margin-bottom: 8px;
  }

  .hero-desc {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .hero-badge-wrap {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 5px 12px;
    text-align: center;
  }

  .hero-stage {
    flex-direction: column;
    margin-bottom: 16px;
    gap: 14px;
  }

  .vinyl-card {
    position: static;
    transform: none;
    width: 100%;
    max-width: 270px;
    margin: 0 auto;
  }

  .vol-knob {
    display: none;
  }

  .vinyl {
    width: 180px;
    height: 180px;
  }

  .vinyl-label {
    width: 55px;
    height: 55px;
  }

  .vinyl-label-tag {
    font-size: 0.45rem;
  }

  .vinyl-label-title {
    font-size: 0.6rem;
  }

  .vinyl-arm {
    height: 80px;
    right: -10px;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-btns .btn {
    width: 100%;
    padding: 13px 20px;
    font-size: 0.88rem;
    justify-content: center;
  }

  /* Stats cards in 2x2 grid */
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stats-card {
    padding: 16px 10px;
  }

  .stats-number {
    font-size: 1.6rem;
  }

  .stats-label {
    font-size: 0.74rem;
    margin-top: 4px;
  }

  .stats-icon {
    font-size: 1.4rem;
    margin-bottom: 8px;
  }

  /* About section mobile */
  .about-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-main-img {
    height: 260px;
  }

  .experience-badge {
    bottom: 10px;
    right: 10px;
    padding: 8px 12px;
  }

  .exp-num {
    font-size: 1.5rem;
  }

  .exp-text {
    font-size: 0.68rem;
  }

  /* Grids */
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .process-step-card {
    padding: 20px 16px;
  }

  .client-logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .client-logo-item {
    padding: 14px 10px;
  }

  .client-logo-item h4 {
    font-size: 0.88rem;
  }

  .client-logo-item span {
    font-size: 0.72rem;
  }

  /* Project cards */
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-img {
    height: 200px;
    max-height: 200px;
  }

  .project-info-body {
    padding: 18px 16px;
  }

  .project-title {
    font-size: 1.15rem;
  }

  .project-desc {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .filter-tabs {
    gap: 6px;
    margin-bottom: 24px;
  }

  .filter-tab {
    padding: 7px 14px;
    font-size: 0.78rem;
  }

  /* Forms on mobile */
  .quote-card {
    padding: 20px 14px;
    border-radius: var(--radius-md);
  }

  .quote-card form .grid-2 {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-control {
    padding: 11px 14px;
    font-size: 0.86rem;
  }

  .form-label {
    font-size: 0.82rem;
    margin-bottom: 5px;
  }

  /* CTA Banner on mobile */
  .cta-banner {
    padding: 30px 16px;
    border-radius: var(--radius-md);
  }

  .cta-banner h2 {
    font-size: 1.65rem;
    line-height: 1.2;
  }

  .cta-banner p {
    font-size: 0.85rem;
    margin: 12px 0 20px;
  }

  .cta-banner div {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .cta-banner .btn {
    width: 100%;
    justify-content: center;
  }

  /* Footer on mobile */
  .main-footer {
    padding: 50px 0 24px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 36px;
  }

  .footer-col h4 {
    font-size: 1.05rem;
    margin-bottom: 14px;
  }

  .footer-links li {
    margin-bottom: 8px;
  }

  .footer-links a {
    font-size: 0.85rem;
  }

  .footer-contact-item {
    font-size: 0.84rem;
    gap: 10px;
  }

  .footer-bottom {
    padding-top: 20px;
    font-size: 0.76rem;
  }

  /* Floating UI on mobile: non-overlapping and compact */
  .float-audio-pill {
    bottom: 14px;
    left: 12px;
    padding: 5px 10px 5px 5px;
    gap: 8px;
    border-radius: 30px;
    max-width: 180px;
  }

  .float-audio-btn {
    width: 32px;
    height: 32px;
    font-size: 0.78rem;
  }

  .float-audio-title {
    font-size: 0.74rem;
    max-width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .float-audio-sub {
    font-size: 0.62rem;
  }

  .float-vol-slider {
    display: none;
  }

  .floating-actions {
    bottom: 14px;
    right: 12px;
    gap: 8px;
  }

  .float-btn {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  /* Service detail page mobile */
  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .service-sidebar {
    order: 2;
  }

  .service-main-content {
    order: 1;
    padding: 18px 14px;
  }

  .service-hero-img {
    height: 200px;
  }

  .specs-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .spec-card {
    padding: 14px 12px;
  }
}

/* ─── Breakpoint: Ultra-Small Mobile (<= 360px) ─────────────────── */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.7rem;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .client-logo-grid {
    grid-template-columns: 1fr;
  }

  .float-audio-title {
    display: none;
  }

  .float-audio-sub {
    display: none;
  }

  .float-audio-pill {
    padding: 4px;
    border-radius: 50%;
    max-width: none;
  }
}
