/* ==========================================================
   Danica AV Tech - main stylesheet
   Built on top of Bootstrap 5, this file just handles the
   brand colours, spacing and the few custom components
   (why-us cards, brand strip, product cards, timeline-ish
   sector pills) that Bootstrap doesn't give us out of the box.
   ========================================================== */

:root {
  --db-navy: #1f374a;
  --db-navy-dark: #172B3A;
  --db-teal: #26B5AA;
  --db-teal-dark: #1e968d;
  --db-orange: #f4a950;
  --db-light: #f6f7fb;
  --db-text: #3a3a45;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--db-text);
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
  min-width: 0;
  max-width: 100%;
}

footer.footer {
  flex-shrink: 0;
  min-width: 0;
  max-width: 100%;
}

/* account for the fixed navbar when jumping to an anchor */
section[id] {
  scroll-margin-top: 85px;
}

/* ensure sub-pages without a hero don't tuck under the fixed navbar */
body > main > section:first-of-type:not(.hero),
main > section:first-of-type:not(.hero) {
  padding-top: 105px !important;
}

a {
  text-decoration: none;
}

.btn-teal {
  background-color: var(--db-teal);
  border-color: var(--db-teal);
  color: #fff;
  transition: all 0.2s ease;
}

.btn-teal:hover {
  background-color: var(--db-teal-dark);
  border-color: var(--db-teal-dark);
  color: #fff;
}

.btn-outline-teal {
  border-color: #fff;
  color: #fff;
  transition: all 0.2s ease;
}

.btn-outline-teal:hover {
  background-color: #fff;
  color: var(--db-navy-dark);
}

.section-eyebrow {
  color: var(--db-teal);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.section-title {
  font-weight: 700;
  color: var(--db-navy-dark);
}

.bg-light-soft {
  background-color: var(--db-light);
}

/* ---------- navbar ---------- */
.navbar-danica {
  background-color: var(--db-navy-dark);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  transition: padding 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Header and page sections share one inset, so the logo lines up with
   the content and Contact Us lines up with the right edge of the page. */
.navbar-danica > .container,
main .container,
footer.footer > .container {
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.navbar-danica .navbar-brand {
  padding: 0;
  display: flex;
  align-items: center;
}

.navbar-danica .navbar-brand img {
  height: 42px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  display: block;
}

.navbar-danica .navbar-nav {
  gap: 0.35rem 0.7rem !important;
}

.navbar-danica .nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.45rem 0.45rem;
  transition: color 0.2s ease;
}

/* Desktop labels stay on one line. They were shrinking and wrapping
   ("About Us", "Contact Us") once the row got tight. */
@media (min-width: 992px) {
  .navbar-danica .nav-item,
  .navbar-danica .nav-link,
  .navbar-danica .btn-teal.btn-sm {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* Large desktops were using the same narrow column as a laptop,
   so the header looked cramped in the middle of the screen. */
@media (min-width: 1400px) {
  .navbar-danica > .container,
  main .container,
  footer.footer > .container {
    max-width: 1360px;
  }

  .navbar-danica .navbar-nav {
    gap: 0.35rem 0.7rem !important;
  }

  .navbar-danica .navbar-brand img {
    height: 46px;
    max-width: 230px;
  }

  .navbar-danica .nav-link {
    font-size: 1.02rem;
    padding: 0.5rem 0.35rem;
  }
}

@media (min-width: 1800px) {
  .navbar-danica > .container,
  main .container,
  footer.footer > .container {
    max-width: 1560px;
  }

  .navbar-danica .navbar-nav {
    gap: 0.4rem 1.2rem !important;
  }

  .navbar-danica .nav-link {
    font-size: 1.08rem;
  }
}

/* A 2560px screen was leaving about 500px empty on each side of the
   1560px column. Half of that side space, so the column grows with the screen.
   Text is rem-based, so a 20px root (up from 16px) scales headings, body,
   menu, buttons and form labels together. The side inset stays 28px. */
@media (min-width: 2400px) {
  html {
    font-size: 20px;
  }

  .navbar-danica > .container,
  main .container,
  footer.footer > .container {
    max-width: calc(50vw + 780px);
    padding-left: 28px;
    padding-right: 28px;
  }
}

.navbar-danica .nav-link:hover,
.navbar-danica .nav-link.active {
  color: var(--db-teal);
}

.navbar-danica .dropdown-menu {
  border: 1px solid rgba(23, 43, 58, 0.08);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(23, 43, 58, 0.15);
  padding: 0.6rem;
}

.navbar-danica .dropdown-item {
  border-radius: 8px;
  padding: 0.55rem 0.95rem;
  color: var(--db-navy-dark);
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.navbar-danica .dropdown-item:hover {
  background-color: #eaf8f7;
  color: var(--db-teal-dark);
}

.navbar-danica .dropdown-item.active,
.navbar-danica .dropdown-item:active {
  background-color: var(--db-teal) !important;
  color: #ffffff !important;
}

/* Keep labels on one line. Below 1400px the shared container is narrower,
   so the type and gap step down just enough to stay inside that column. */
@media (min-width: 992px) and (max-width: 1399.98px) {
  .navbar-danica .offcanvas-body,
  .navbar-danica .navbar-nav {
    flex-wrap: nowrap;
  }

  .navbar-danica .navbar-nav {
    gap: 0.2rem 0.4rem !important;
  }

  .navbar-danica .navbar-brand img {
    height: 38px;
    max-width: 168px;
  }

  .navbar-danica.navbar-expand-lg .navbar-nav .nav-link {
    font-size: 0.92rem;
    padding: 0.4rem 0.3rem;
    white-space: nowrap;
  }

  .navbar-danica .btn-teal.btn-sm {
    font-size: 0.88rem;
    margin-left: 0.45rem !important;
    padding: 0.4rem 0.75rem;
    white-space: nowrap;
  }
}

/* The More menu is only for a 1024-wide laptop. Everywhere else,
   CMS Signage, Headsets & Audio and Gallery stay as their own links. */
.navbar-danica .nav-more-1024 {
  display: none !important;
}

/* About 1024px those three links wrap and make the header a second row.
   Fold them into More so the bar stays a single line. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-danica .nav-collapse-1024 {
    display: none !important;
  }

  .navbar-danica .nav-more-1024 {
    display: list-item !important;
  }

  .navbar-danica > .container,
  .navbar-danica .offcanvas,
  .navbar-danica .offcanvas-body,
  .navbar-danica .navbar-nav {
    flex-wrap: nowrap;
  }

  .navbar-danica .offcanvas {
    flex-basis: auto;
  }

  .navbar-danica .offcanvas-body {
    margin-top: 0;
    padding: 0;
  }

  .navbar-danica .navbar-nav {
    margin-left: auto !important;
    margin-right: 0 !important;
    gap: 0.15rem 0.35rem !important;
  }

  .navbar-danica.navbar-expand-lg .navbar-nav .nav-link {
    font-size: 0.9rem;
    padding: 0.35rem 0.28rem;
  }

  .navbar-danica .btn-teal.btn-sm {
    font-size: 0.85rem;
    margin-left: 0.4rem !important;
    margin-top: 0 !important;
    padding: 0.35rem 0.7rem;
  }
}

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--db-navy-dark), var(--db-navy) 65%);
  color: #fff;
  padding: 6.75rem 0 5.75rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: rgba(38, 181, 170, 0.18);
}

.hero h1 {
  font-weight: 700;
  line-height: 1.15;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.85);
}

.hero-stat {
  border-left: 3px solid var(--db-teal);
  padding-left: 0.9rem;
}

.hero-stat .num {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.hero-stat .label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- why us ---------- */
.why-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  height: 100%;
  border: 1px solid #eceef5;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(44, 42, 72, 0.1);
}

.why-card img,
.why-card .why-icon {
  height: 64px;
  width: 64px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.why-card .why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--db-light);
  color: var(--db-teal-dark);
  font-size: 1.8rem;
}

.why-card h5 {
  font-weight: 600;
  color: var(--db-navy-dark);
}

/* ---------- brand strip ---------- */
.brand-strip {
  background: var(--db-light);
}

.brand-logo {
  background: #fff;
  border-radius: 12px;
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 95px;
  border: 1px solid #eceef5;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.brand-logo img {
  max-height: 48px;
  max-width: 82%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand-logo img.brand-sony-img {
  max-height: 30px;
  max-width: 68%;
}

.brand-logo:hover img {
  transform: scale(1.05);
}

/* Fade the brands heading and logo cards up when the section enters view.
   Hidden state is applied only after JS marks the section ready, so the
   logos stay visible if scripting is off. */
#brands.motion-ready > .container > .text-center,
#brands.motion-ready .row > .col {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

#brands.motion-ready.is-inview > .container > .text-center,
#brands.motion-ready.is-inview .row > .col {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  #brands.motion-ready > .container > .text-center,
  #brands.motion-ready .row > .col,
  #brands.motion-ready.is-inview > .container > .text-center,
  #brands.motion-ready.is-inview .row > .col {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- sectors ---------- */
.sector-pill {
  background: #fff;
  border: 1px solid #e3e5f0;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-weight: 500;
  color: var(--db-navy-dark);
  display: inline-block;
}

/* ---------- product / category cards ---------- */
.cat-card {
  border: 1px solid #eceef5;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  background: #fff;
}

.cat-card .cat-img-wrap {
  background: var(--db-light);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cat-card .cat-img-wrap.led-img-wrap {
  height: 250px;
}

.cat-card .cat-img-wrap.led-img-wrap img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.cat-card .cat-img-wrap.led-img-wrap img.outdoor-led-img {
  object-position: center 30%;
}

.cat-card.led-cat-card:hover .cat-img-wrap.led-img-wrap img {
  transform: scale(1.05);
}

.cat-card .cat-img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.cat-card .cat-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.cat-card h5 {
  color: var(--db-navy-dark);
  font-weight: 700;
}

.pill-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--db-teal-dark);
  background: rgba(47, 176, 166, 0.12);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.6rem;
}

/* product mini card, used in the VC / wireless grids */
.product-mini {
  background: #fff;
  border: 1px solid #eceef5;
  border-radius: 14px;
  padding: 1.25rem 1rem;
  height: 100%;
  text-align: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-mini:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.product-mini .img-wrap {
  height: 165px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.product-mini .img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.product-mini:hover .img-wrap img {
  transform: scale(1.06);
}

.product-mini h6 {
  font-weight: 700;
  color: var(--db-navy-dark);
  margin-bottom: 0.15rem;
}

.product-mini small {
  color: #7a7a86;
}



/* ---------- all-in-one section ---------- */
.allinone-slide-card {
  background: #fff;
  border: 1px solid #e9edf5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.allinone-slide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
}

.allinone-slide-card img {
  width: 100%;
  height: auto;
  display: block;
}


.allinone-photo-card {
  background: #fff;
  border: 1px solid #e9edf5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  height: 310px;
}


.allinone-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}


.allinone-photo-card:hover img {
  transform: scale(1.05);
}

.allinone-badge {
  background: #fff;
  border: 1px solid #e9edf5;
  border-radius: 14px;
  padding: 1.25rem 1rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
}

.allinone-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  border-color: rgba(47, 176, 166, 0.4);
}

/* platform pill badge */
.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #fff;
  border: 1px solid #dce2ee;
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  color: var(--db-navy-dark);
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
}

.platform-pill:hover {
  background: #f8fafc;
  border-color: var(--db-teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.platform-pill img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* ---------- gallery ---------- */
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  height: 220px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* dedicated gallery page styles */
.filter-pill {
  background: #fff;
  border: 1px solid #dce2ee;
  color: var(--db-navy-dark);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  transition: all 0.2s ease;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--db-teal);
  color: #fff;
  border-color: var(--db-teal);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.gallery-card {
  background: #fff;
  border: 1px solid #e9edf5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.09);
}

.gallery-card-img {
  position: relative;
  height: 260px;
  overflow: hidden;
  cursor: pointer;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-card-img img {
  transform: scale(1.06);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-card-img:hover .gallery-card-overlay {
  opacity: 1;
}

.gallery-zoom-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--db-navy-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: scale(0.85);
  transition: transform 0.2s ease;
}

.gallery-card-img:hover .gallery-zoom-btn {
  transform: scale(1);
}

.gallery-card-body {
  padding: 1.35rem 1.4rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.gallery-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--db-navy-dark);
  margin-bottom: 0.5rem;
}

.gallery-card-text {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 0;
  line-height: 1.5;
}

.badge-subtle {
  background: #f0fdfa;
  color: var(--db-teal);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  display: inline-block;
  align-self: flex-start;
  border: 1px solid rgba(13, 148, 136, 0.2);
}

/* ---------- contact ---------- */
.contact-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(44, 42, 72, 0.08);
  border: 1px solid #eceef5;
}

.contact-info-item {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 1.3rem;
}

.contact-info-item .icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 10px;
  background: rgba(47, 176, 166, 0.12);
  color: var(--db-teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.map-embed {
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  flex: 1 1 auto;
  border: 0;
  border-radius: 14px;
}

/* ---------- footer ---------- */
.footer {
  background: var(--db-navy-dark);
  color: rgba(255, 255, 255, 0.75);
}

.footer-brand {
  display: block;
  width: auto;
  height: auto;
  max-height: 38px;
  max-width: 100%;
}

.footer h6 {
  color: #fff;
  font-weight: 700;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
}

.footer a:hover {
  color: var(--db-teal);
}

.social-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.social-dot:hover {
  background: var(--db-teal);
}

/* back to top */
#backToTop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--db-teal);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  z-index: 999;
}

/* ==========================================================
   Mobile Responsiveness Enhancements
   Targeting mobile (<= 576px), phablet (<= 767px),
   and tablet devices (<= 991px)
   ========================================================== */

/* Tablet & Mobile Nav Adjustments (Bootstrap lg breakpoint < 992px) */
@media (max-width: 991.98px) {
  .navbar-danica {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .navbar-danica .navbar-brand img {
    height: 36px;
    max-width: 200px;
  }

  .navbar-danica .offcanvas {
    --bs-offcanvas-width: min(320px, 86vw);
    background-color: var(--db-navy-dark);
    color: #fff;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -16px 0 40px rgba(10, 20, 30, 0.35);
  }

  .navbar-danica .offcanvas-header {
    padding: 1.15rem 1.15rem 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-danica .offcanvas-title {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0;
  }

  .navbar-danica .offcanvas-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1.15rem 1.5rem;
    overflow-y: auto;
    text-align: left;
  }

  .navbar-danica .offcanvas .navbar-nav {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
    align-items: stretch;
    text-align: left;
  }

  .navbar-danica .offcanvas .nav-item,
  .navbar-danica .offcanvas .nav-link,
  .navbar-danica .offcanvas .dropdown-item {
    text-align: left;
    justify-content: flex-start;
    width: 100%;
  }

  .navbar-danica .offcanvas .btn-teal {
    align-self: flex-start;
    margin-left: 0;
    margin-top: 0.85rem;
  }

  .navbar-danica .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    outline: none;
  }

  .navbar-danica .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(38, 181, 170, 0.35);
  }

  .navbar-danica .navbar-toggler-icon {
    filter: invert(1);
    width: 1.35em;
    height: 1.35em;
  }

  .navbar-danica .nav-link {
    padding: 0.65rem 0.5rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .navbar-danica .dropdown-menu {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
    margin: 0.4rem 0 0.8rem 0.5rem;
    padding: 0.4rem 0.5rem;
  }

  .navbar-danica .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.55rem 0.75rem;
  }

  .navbar-danica .dropdown-item:hover,
  .navbar-danica .dropdown-item:focus {
    background: rgba(38, 181, 170, 0.2);
    color: var(--db-teal);
  }

  .navbar-danica .dropdown-item.active,
  .navbar-danica .dropdown-item:active {
    background: var(--db-teal) !important;
    color: #fff !important;
  }

  /* Fixed navbar scroll-margin offset */
  section[id] {
    scroll-margin-top: 75px;
  }

  body > main > section:first-of-type:not(.hero),
  main > section:first-of-type:not(.hero) {
    padding-top: 90px !important;
  }
}

/* Tablets and Mobile Devices (< 768px) */
@media (max-width: 767.98px) {
  /* Hero section adjustments */
  .hero {
    padding: 5.3125rem 0 3.25rem;
    text-align: center;
  }

  .hero::after {
    width: 280px;
    height: 280px;
    right: -80px;
    top: -80px;
  }

  .hero h1 {
    font-size: 1.85rem;
    line-height: 1.25;
  }

  .hero .lead {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 1.5rem !important;
  }

  .hero-stat {
    text-align: left;
    padding-left: 0.75rem;
  }

  .hero-stat .num {
    font-size: 1.5rem;
  }

  .hero-stat .label {
    font-size: 0.78rem;
  }

  /* Section headers */
  .section-title {
    font-size: 1.65rem;
    line-height: 1.3;
  }

  .section-eyebrow {
    font-size: 0.8rem;
  }

  /* Brand logos grid */
  .brand-logo {
    height: 75px;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
  }

  .brand-logo img {
    max-height: 38px;
    max-width: 85%;
  }

  .brand-logo img.brand-sony-img {
    max-height: 24px;
  }

  /* Sector pills */
  .sector-pill {
    padding: 0.45rem 0.95rem;
    font-size: 0.85rem;
  }

  /* Product & Category Cards */
  .cat-card .cat-img-wrap {
    height: 170px;
  }

  .cat-card .cat-img-wrap.led-img-wrap {
    height: 200px;
  }

  .cat-card .cat-body {
    padding: 1.15rem;
  }

  .product-mini {
    padding: 1rem 0.75rem;
  }

  .product-mini .img-wrap {
    height: 140px;
  }

  .product-mini h6 {
    font-size: 0.95rem;
  }

  /* All-in-one Cards */
  .allinone-photo-card {
    height: 220px;
  }

  .allinone-badge {
    padding: 1rem 0.75rem;
  }

  .platform-pill {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
  }

  /* Gallery Items & Cards */
  .gallery-item {
    height: 160px;
  }

  .gallery-card-img {
    height: 190px;
  }

  .gallery-card-body {
    padding: 1.15rem;
  }

  .gallery-card-title {
    font-size: 1rem;
  }

  .filter-pill {
    font-size: 0.82rem;
    padding: 0.4rem 0.95rem;
  }

  /* Contact & Map Form */
  .contact-card {
    padding: 1.35rem 1.15rem;
  }

  .contact-info-item {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .contact-info-item .icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    font-size: 1rem;
  }

  .contact-info-item h6 {
    font-size: 0.95rem;
  }

  .contact-info-item p {
    font-size: 0.85rem;
    word-break: break-word;
  }

  .map-embed {
    min-height: 240px;
    margin-bottom: 1rem;
  }

  .map-embed iframe {
    min-height: 240px;
  }

  /* Footer adjustments */
  .footer {
    text-align: left;
  }

  /* Back to top button position on mobile */
  #backToTop {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

/* Small Smart Phones (<= 576px) */
@media (max-width: 575.98px) {
  /* g-5 rows use a 3rem gutter. Their negative margin is wider than the
     container padding, so the display sections slide past the screen edge. */
  .row {
    --bs-gutter-x: 1.5rem;
  }

  .navbar-danica .navbar-brand img {
    height: 32px;
    max-width: 175px;
  }

  .hero {
    padding: 5.3125rem 0 2.5rem;
  }

  .hero .badge {
    white-space: normal;
    max-width: 100%;
    line-height: 1.45;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero .btn-lg {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .hero .d-flex.flex-wrap {
    flex-direction: column;
    gap: 0.5rem !important;
  }

  /* Ensure hero stat cards wrap cleanly and look balanced */
  .hero-stat {
    border-left-width: 2.5px;
    padding-left: 0.65rem;
    margin-bottom: 0.25rem;
  }

  .hero-stat .num {
    font-size: 1.35rem;
  }

  .hero-stat .label {
    font-size: 0.72rem;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .why-card {
    padding: 1.25rem 0.85rem;
  }

  .why-card img,
  .why-card .why-icon {
    height: 52px;
    width: 52px;
    font-size: 1.5rem;
  }

  .why-card h5 {
    font-size: 1rem;
  }

  .brand-logo {
    height: 68px;
    padding: 0.4rem 0.6rem;
  }

  .brand-logo img {
    max-height: 32px;
  }

  .brand-logo img.brand-sony-img {
    max-height: 20px;
  }

  .gallery-item {
    height: 140px;
  }

  .gallery-card-img {
    height: 175px;
  }

  .contact-card {
    padding: 1.25rem 1rem;
  }

  /* Form controls easy tap targets on phones */
  .form-control,
  .form-select,
  .btn {
    min-height: 44px;
    font-size: 0.95rem;
  }

  .btn-sm {
    min-height: 36px;
  }
}

/* Touch-friendly device adjustments (hover states and tapping) */
@media (hover: none) and (pointer: coarse) {
  /* Prevent sticky hover effects on touch screens */
  .why-card:hover,
  .product-mini:hover,
  .allinone-slide-card:hover,
  .allinone-badge:hover,
  .gallery-card:hover,
  .platform-pill:hover,
  .brand-logo:hover {
    transform: none !important;
  }

  /* Keep tap highlights natural and ensure adequate target sizing */
  .nav-link,
  .dropdown-item,
  .btn,
  .filter-pill,
  .sector-pill {
    -webkit-tap-highlight-color: rgba(38, 181, 170, 0.2);
  }
}
