/* Phone and tablet layer. Loads after the theme cascade and nv-adaptive.css.

   The theme was captured from WordPress at a 1440px design and its own small-screen
   rules are thin: no side gutters, 100px+ headings, a hamburger that stays scaled to
   zero until a scroll handler adds .active, and a testimonial track that clips on
   the left. This file gives phones real sizes (no body zoom) and tablets sane ones.
   Everything is scoped to max-width media queries, so desktop is untouched. */

:root { --nv-gutter: 20px; --nv-ease: cubic-bezier(0.23, 1, 0.32, 1); }

/* ---------- every width up to tablet landscape ---------- */
/* the off-canvas menu panel pokes 2 to 10px past the edge at every width */
html, body { overflow-x: clip; }

@media (max-width: 1024px) {
  /* the menu is the only nav here, so the button is always on screen */
  .hamburg-menu { transform: scale(1); top: 16px; right: var(--nv-gutter); width: 52px; height: 52px; }
  .hamburg-menu span { height: 1.5px; }
  .hamburg-menu:active { transform: scale(0.96); }
  .hamburg-menu::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
  .header-menu-wrap .custom-container .custom-row { min-height: 80px; }
  .header-menu-wrap .logo img { max-width: 104px; }
  body .header-menu-wrap .custom-container { padding-left: var(--nv-gutter) !important; padding-right: 84px !important; }
  /* the text menu collides with the logo and button at these widths: the button is the nav */
  body .header-menu-wrap .navbar .menu > li { display: none !important; }
}

/* ---------- phones ---------- */
@media (max-width: 767px) {
  body { zoom: 1 !important; }

  /* gutters: the WP inline CSS zeroes every .custom-container, so out-rank it */
  body .custom-container { padding-left: var(--nv-gutter) !important; padding-right: var(--nv-gutter) !important; }
  body .section-header { padding-left: 0 !important; padding-right: 0 !important; }

  /* type that reads on a phone */
  body { font-size: 16px; line-height: 1.55; }
  .hero-sec .hero-title { font-size: clamp(34px, 9.6vw, 44px); line-height: 1.06; letter-spacing: -0.02em; }
  .hero-top-desc p { font-size: 15px; line-height: 1.5; }
  body .section-title, body .about-sec .section-header .section-title { font-size: clamp(30px, 8.6vw, 40px) !important; line-height: 1.14 !important; letter-spacing: -0.02em !important; margin: 0 !important; overflow-wrap: break-word; }
  body .section-title .word, body .section-title .char { font-size: inherit; }
  .section-subtitle { font-size: 13px; }
  .section-header { gap: 16px; }
  .about-sec .section-header { margin-bottom: 40px; }
  .about-sec .section-header .right { gap: 28px; }
  .nv-lead-link { margin-top: 20px; }

  /* rhythm: the desktop paddings are 90 to 120px, far too loose for a phone */
  body .about-sec, body .service-sec, body .testimonial-sec, body .faq-sec { padding-top: 56px; padding-bottom: 56px; }
  .elementor-268 .elementor-element.elementor-element-789f564 { margin-top: 0; margin-bottom: 0; padding: 36px 0; }

  /* hero: the swirl is bright behind the copy, so lay a scrim under the text */
  .hero-sec .hero-inner { position: relative; }
  .hero-sec .hero-inner::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5,5,16,0.15) 0%, rgba(5,5,16,0.55) 45%, rgba(5,5,16,0.85) 100%); }
  .hero-sec .hero-top, .hero-sec .hero-bottom { position: relative; z-index: 1; }
  .hero-sec .hero-top .hero-top-desc p { color: #eceaf2; text-shadow: 0 1px 12px rgba(0,0,0,0.5); }

  /* sections the theme builds without a .custom-container */
  .elementor-widget-container > .section-header, .project-single-header, .project-single-content-wrap .section-header { padding-left: var(--nv-gutter); padding-right: var(--nv-gutter); }
  main .e-con.e-grid, main .e-con.e-flex.e-parent:not(:first-child):not(.elementor-hidden-desktop + .e-con) { padding-left: var(--nv-gutter); padding-right: var(--nv-gutter); }
  .service-box .service-inner, .service-box .service-inner .title, .service-box .service-inner .service-feature-lists { padding-left: 20px; padding-right: 20px; }

  /* the fixed music bar sits over the last 70px of the page, so give the footer room */
  footer { padding-bottom: 76px; }

  /* inner pages open with a big title under the fixed header: clear it */
  body:not(.home) .aixor-main > .elementor > .e-con:first-child, body:not(.home) .aixor-main > .elementor > .elementor-hidden-desktop:first-child + .e-con { margin-top: 96px !important; }
  .elementor-widget-form .elementor-button, .wpcf7-submit, input[type=submit], button[type=submit] { font-size: 15px; letter-spacing: 0.04em; min-height: 52px; }

  .project-single-header .section-header, .project-single-wrap .section-header { padding-left: 0; padding-right: 0; }
}

/* menu panel on touch screens: a real close target, room above the music bar, no cursor ball */
@media (max-width: 1024px) {
  .header-sidebar-wrap .header-sidebar-content .close-header-sidebar { top: 16px; right: var(--nv-gutter); width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; font-size: 24px; border-radius: 50%; transition: background 0.15s ease, transform 0.1s var(--nv-ease); }
  .header-sidebar-wrap .header-sidebar-content .close-header-sidebar:active { transform: scale(0.96); background: rgba(255, 255, 255, 0.08); }
  .header-sidebar-wrap .header-sidebar-content .header-sidebar-bottom { padding-bottom: 88px; }
}
@media (hover: none) { #ball, .ball { display: none !important; } }

/* ---------- motion ---------- */
/* press feedback: the theme only has hover. 100ms, scale 0.96, on every pointer type */
.theme-btn, .elementor-button, .hamburg-menu, button[type=submit], input[type=submit] { transition-property: background-color, color, border-color, transform, opacity; transition-duration: 0.15s; transition-timing-function: var(--nv-ease); }
.theme-btn:active, .elementor-button:active, button[type=submit]:active, input[type=submit]:active { transform: scale(0.96); transition-duration: 0.1s; }

/* scroll reveals: the theme's AOS travels 100px, which on a phone is a third of the screen */
@media (max-width: 767px) {
  [data-aos=fade-up] { transform: translate3d(0, 28px, 0); }
  [data-aos=fade-down] { transform: translate3d(0, -28px, 0); }
  [data-aos=fade-left] { transform: translate3d(28px, 0, 0); }
  [data-aos=fade-right] { transform: translate3d(-28px, 0, 0); }
}

/* reduced motion: same content, no travel. A short fade is all that is left. */
@media (prefers-reduced-motion: reduce) {
  [data-aos] { transform: none !important; transition-property: opacity !important; transition-duration: 0.15s !important; transition-delay: 0s !important; }
  .theme-btn:active, .elementor-button:active, button[type=submit]:active, input[type=submit]:active { transform: none; }
  .hamburg-menu { transition: none; }
}
