/* NEXORA — balanced UI/UX enhancement layer
   Scope: homepage, service detail pages, and digital contact card.
   This layer preserves existing brand colors, layouts, content, and interactions.
*/
:root {
  scroll-padding-top: 88px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
:where(a, button, input, select, textarea) {
  -webkit-tap-highlight-color: transparent;
}
:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--cyan, #29B6FF);
  outline-offset: 3px;
}
img, video, iframe { max-width: 100%; }

/* Main corporate homepage */




.nx-home-page .section-head h2,
.nx-home-page .hero h1 {
  text-wrap: balance;
}
.nx-home-page .section-head > p {
  text-wrap: pretty;
}
.nx-home-page :is(.btn, .action-icon-btn, .lang-btn, .menu-btn) {
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}


/* Service detail pages: consistent glass navigation and more usable cards */
.nx-service-page {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}
.nx-service-page header {
  background: rgba(7, 16, 30, .88);
  border-bottom-color: rgba(117, 164, 220, .2);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.nx-service-page header nav.wrap {
  min-height: 72px;
  padding-block: 10px;
}
.nx-service-page nav .brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 10px;
}
.nx-service-page nav .links {
  align-items: center;
  gap: 6px;
}
.nx-service-page nav .links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.nx-service-page nav .links a:hover,
.nx-service-page nav .links a:focus-visible {
  color: #fff;
  background: rgba(41, 182, 255, .1);
  border-color: rgba(41, 182, 255, .25);
}
.nx-service-page .hero {
  padding-block: clamp(42px, 7vw, 76px) clamp(30px, 5vw, 48px);
}
.nx-service-page .hero h1 {
  max-width: 880px;
  text-wrap: balance;
}
.nx-service-page .lead {
  max-width: 820px;
  line-height: 1.95;
  text-wrap: pretty;
}
.nx-service-page section.content {
  padding-block: 24px clamp(42px, 6vw, 60px);
}
.nx-service-page section.content > h2 {
  text-wrap: balance;
}
.nx-service-page .grid {
  gap: clamp(12px, 1.8vw, 18px);
}
.nx-service-page .card {
  min-width: 0;
  padding: clamp(18px, 2.2vw, 24px);
  border-color: rgba(117, 164, 220, .23);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .12);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.nx-service-page .card h3 {
  line-height: 1.55;
  text-wrap: balance;
}
.nx-service-page .card p,
.nx-service-page .card li {
  line-height: 1.85;
  text-wrap: pretty;
}
.nx-service-page .btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.nx-service-page .note {
  line-height: 1.85;
}
.nx-service-page footer {
  line-height: 1.8;
}
@media (hover: hover) and (pointer: fine) {
  .nx-service-page .card:hover {
    transform: translateY(-3px);
    border-color: rgba(41, 182, 255, .42);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
  }
  .nx-service-page .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(41, 182, 255, .16);
    filter: brightness(1.04);
  }
}
@media (max-width: 760px) {
  .nx-service-page header nav.wrap {
    align-items: stretch;
    gap: 8px;
    padding-block: 12px;
  }
  .nx-service-page nav .brand {
    align-self: center;
  }
  .nx-service-page nav .links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 7px;
  }
  .nx-service-page nav .links a {
    min-width: 0;
    padding: 8px 9px;
    text-align: center;
    background: rgba(11, 24, 48, .72);
    border-color: rgba(117, 164, 220, .16);
    font-size: .86rem;
  }
  .nx-service-page .hero {
    padding-top: 38px;
  }
  .nx-service-page .actions {
    gap: 9px;
  }
  .nx-service-page .actions .btn {
    flex: 1 1 210px;
  }
}
@media (max-width: 390px) {
  .nx-service-page .wrap {
    width: min(1080px, calc(100% - 28px));
  }
  .nx-service-page nav .links {
    gap: 6px;
  }
  .nx-service-page nav .links a {
    font-size: .8rem;
    padding-inline: 6px;
  }
  .nx-service-page .card {
    padding: 17px;
  }
}

/* Digital contact card */
.nx-contact-card-page main {
  width: min(680px, 100%);
  padding: clamp(24px, 5vw, 38px) clamp(18px, 4vw, 28px);
}
.nx-contact-card-page main h1 {
  text-wrap: balance;
}
.nx-contact-card-page main > a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nx-contact-card-page .theme-toggle,
.nx-contact-card-page .sound-toggle {
  width: 48px;
  height: 48px;
}
@media (max-width: 360px) {
  .nx-contact-card-page main > a {
    width: min(100%, 260px);
    margin-inline: auto;
  }
}

/* Respect operating-system motion preferences */
@media (prefers-reduced-motion: reduce) {
  :root, .nx-service-page { scroll-behavior: auto !important; }
  .nx-home-page *,
  .nx-service-page *,
  .nx-contact-card-page * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}


/* Refined home navigation: compact, balanced, and reliable in phone desktop mode. */





/* Direction isolation for mixed-language business-hour copy and narrow cards. */





/* NEXORA 2026-11-25: anchored, non-overlapping navigation hints and compact mobile header. */







/* A balanced wide location / business-hours presentation across desktop and phones. */










/* Final correction: the directions CTA is nested inside the map card, not a grid sibling. */






