/* Nikluma responsive system
   This file is loaded last so the current site composition is not overridden
   by the older product and legacy marketing layers. */

html {
  overflow-x: hidden;
}

body.enterprise-shell {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
}

.enterprise-page,
.enterprise-header,
.home-main,
.seo-main,
.th-main,
.enterprise-footer,
.footer-shell,
.footer-columns,
.home-hero,
.home-hero-copy,
.home-visual,
.home-automation-visual,
.home-intro,
.home-areas,
.home-process,
.home-bridge,
.home-routine,
.home-products,
.home-proof,
.home-cta,
.seo-hero,
.seo-grid,
.seo-proof,
.th-hero,
.th-proof,
.th-capabilities,
.th-flow,
.th-note {
  min-width: 0;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.home-hero h1,
.home-intro h2,
.home-section-heading h2,
.home-bridge h2,
.home-routine h2,
.home-proof-copy h2,
.home-cta h2,
.seo-hero h1,
.seo-panel h2,
.seo-proof h2,
.th-hero h1,
.th-proof h2,
.th-section-heading h2,
.th-flow h2,
.th-note h2 {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* A compact desktop uses the same deliberate menu pattern as mobile. */
@media (min-width: 681px) and (max-width: 1100px) {
  .enterprise-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    height: 68px !important;
    min-height: 68px !important;
    padding: 0 24px !important;
    gap: 18px !important;
    overflow: visible !important;
  }

  .enterprise-brand,
  .enterprise-brand img {
    width: 132px !important;
    height: 42px !important;
    flex-basis: 132px !important;
  }

  .enterprise-product,
  .enterprise-nav,
  .enterprise-header-cta {
    display: none !important;
  }

  .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    justify-self: end;
    margin: 0 !important;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #8db3c9;
    border-radius: 9px;
    background: #eaf5fa;
    color: #0b4778;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .04em;
  }

  .menu-toggle[aria-expanded="true"] {
    background: #0b4778;
    border-color: #0b4778;
    color: #fff;
  }

  .enterprise-nav.is-open {
    position: absolute !important;
    top: 68px !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 60 !important;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 10px 24px 16px;
    background: #f8fbfd;
    border-bottom: 1px solid #bfd3df;
    box-shadow: 0 16px 28px rgba(9, 40, 68, .15);
  }

  .enterprise-nav.is-open .enterprise-nav-link,
  .enterprise-nav.is-open .enterprise-nav-menu summary {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 44px;
    padding: 0 9px;
    border-radius: 8px;
    font-size: 13px;
  }

  .enterprise-nav.is-open .enterprise-nav-menu {
    display: block;
    width: 100%;
    height: auto;
    align-self: auto;
  }

  .enterprise-nav.is-open .enterprise-nav-submenu {
    position: static;
    display: block;
    width: 100%;
    margin: 2px 0 5px;
    padding: 4px 0 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .enterprise-nav.is-open .enterprise-nav-submenu a {
    display: grid;
    min-height: 0;
    margin: 6px 0 0;
    padding: 12px;
    border: 1px solid #c1d7e3;
    border-radius: 9px;
  }

  .footer-shell {
    gap: 42px;
  }

  .footer-bottom span:nth-child(3) {
    display: none;
  }
}

@media (max-width: 680px) {
  .enterprise-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    height: 68px !important;
    min-height: 68px !important;
    padding: 0 16px !important;
    gap: 12px !important;
    overflow: visible !important;
  }

  .enterprise-page {
    overflow: visible !important;
  }

  .enterprise-brand,
  .enterprise-brand img {
    width: 122px !important;
    height: 40px !important;
    flex-basis: 122px !important;
  }

  .enterprise-product,
  .enterprise-nav,
  .enterprise-header-cta {
    display: none !important;
  }

  .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    justify-self: end;
    margin: 0 !important;
    height: 38px;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid #8db3c9;
    border-radius: 9px;
    background: #eaf5fa;
    color: #0b4778;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .04em;
  }

  .menu-toggle[aria-expanded="true"] {
    background: #0b4778;
    border-color: #0b4778;
    color: #fff;
  }

  .enterprise-nav.is-open {
    position: absolute !important;
    top: 68px !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 60 !important;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 10px 16px 16px;
    background: #f8fbfd;
    border-bottom: 1px solid #bfd3df;
    box-shadow: 0 16px 28px rgba(9, 40, 68, .15);
  }

  .enterprise-nav.is-open .enterprise-nav-link,
  .enterprise-nav.is-open .enterprise-nav-menu summary {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 44px;
    padding: 0 9px;
    border-radius: 8px;
    font-size: 13px;
  }

  .enterprise-nav.is-open .enterprise-nav-menu {
    display: block !important;
    width: 100%;
    height: auto;
    align-self: auto;
  }

  .enterprise-nav.is-open .enterprise-nav-submenu {
    position: static !important;
    display: block !important;
    width: 100%;
    margin: 2px 0 5px;
    padding: 4px 0 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .enterprise-nav.is-open .enterprise-nav-submenu a {
    display: grid !important;
    min-height: 0;
    margin: 6px 0 0;
    padding: 12px;
    border: 1px solid #c1d7e3;
    border-radius: 9px;
  }

  .enterprise-nav.is-open .enterprise-nav-submenu strong {
    font-size: 15px;
  }

  .enterprise-nav.is-open .enterprise-nav-submenu small {
    font-size: 11px;
  }

  .home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 38px 20px 42px;
  }

  .home-hero-copy,
  .home-automation-visual,
  .home-visual,
  .home-intro > *,
  .home-section-heading > *,
  .home-proof > *,
  .home-cta > *,
  .home-bridge > * {
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .home-hero h1 {
    max-width: none;
    margin: 17px 0 18px;
    font-size: clamp(42px, 11.5vw, 56px);
    line-height: .94;
    white-space: normal;
  }

  .home-hero h1 em {
    display: inline;
  }

  .home-hero-copy > p {
    max-width: none;
    margin-bottom: 22px;
    font-size: 15px;
    line-height: 1.52;
  }

  .home-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .home-actions .enterprise-button,
  .home-actions .enterprise-text-link {
    width: 100%;
    text-align: center;
  }

  .home-trust {
    gap: 8px;
    margin-top: 24px;
    font-size: 9px;
  }

  .home-trust span {
    padding-right: 8px;
  }

  .home-automation-visual,
  .home-visual {
    border-radius: 10px;
  }

  .automation-visual-top,
  .automation-visual-footer,
  .home-visual-bar,
  .home-visual-caption {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 13px;
    font-size: 8px;
  }

  .automation-visual-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 14px;
  }

  .automation-step {
    min-height: 96px;
  }

  .automation-step strong {
    margin-top: 17px;
  }

  .automation-arrow {
    transform: rotate(90deg);
  }

  .home-flow-tag {
    position: static;
    justify-content: center;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .home-intro,
  .home-areas,
  .home-process,
  .home-routine,
  .home-products,
  .home-proof,
  .home-bridge,
  .home-cta {
    padding-right: 20px;
    padding-left: 20px;
  }

  .home-intro,
  .home-process,
  .home-areas,
  .home-routine,
  .home-products,
  .home-proof {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .home-intro,
  .home-section-heading,
  .home-proof,
  .home-bridge,
  .home-cta {
    display: block;
  }

  .home-intro > p,
  .home-section-heading > p {
    margin-top: 22px;
    font-size: 14px;
    line-height: 1.55;
  }

  .home-intro h2,
  .home-section-heading h2,
  .home-areas h2,
  .home-routine h2,
  .home-bridge h2,
  .home-proof-copy h2,
  .home-cta h2 {
    max-width: none;
    font-size: clamp(34px, 10.2vw, 42px);
  }

  .home-section-heading {
    margin-bottom: 28px;
  }

  .home-area-grid,
  .home-product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 28px;
  }

  .home-area-card,
  .home-product-card {
    min-height: 0;
    padding: 20px;
  }

  .home-area-card h3,
  .home-product-card h3 {
    margin-top: 24px;
  }

  .home-product-card h3 {
    font-size: 28px;
  }

  .home-process-list article,
  .home-routine-list article {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 17px 0;
  }

  .home-process-list article > strong,
  .home-routine-list article > strong {
    grid-column: 2;
    text-align: left;
  }

  .home-process-list h3,
  .home-routine-list h3 {
    font-size: 18px;
  }

  .home-process-list p,
  .home-routine-list p {
    font-size: 12px;
  }

  .home-bridge {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .home-bridge p,
  .home-cta p {
    font-size: 14px;
  }

  .home-bridge-flow {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 25px;
  }

  .home-bridge-flow div {
    min-height: 70px;
    border-right: 0;
    border-bottom: 1px solid rgba(222, 243, 249, .28);
  }

  .home-bridge-flow div:last-child {
    border-bottom: 0;
  }

  .home-proof {
    gap: 28px;
  }

  .home-proof-visual {
    margin-bottom: 28px;
  }

  .home-proof-copy li {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 10px;
    font-size: 12px;
  }

  .home-cta {
    padding-top: 38px;
    padding-bottom: 42px;
  }

  .home-cta .enterprise-button {
    width: 100%;
    margin-top: 24px;
  }

  .seo-breadcrumb {
    padding: 18px 20px 0;
    overflow-wrap: anywhere;
  }

  .seo-hero,
  .th-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 32px 20px 42px;
  }

  .seo-hero h1,
  .th-hero h1 {
    max-width: none;
    font-size: clamp(42px, 11.5vw, 58px);
  }

  .seo-intro,
  .th-hero-copy > p {
    font-size: 15px;
  }

  .seo-grid,
  .th-proof,
  .th-capabilities,
  .th-flow,
  .th-note {
    grid-template-columns: minmax(0, 1fr);
  }

  .seo-panel,
  .seo-panel.dark,
  .seo-proof,
  .th-proof,
  .th-capabilities,
  .th-flow,
  .th-note {
    padding: 38px 20px;
  }

  .seo-proof {
    gap: 28px;
  }

  .gallery-grid,
  .directory-list,
  .th-capability-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-gallery,
  .related-section,
  .library-directory,
  .library-hero {
    padding-right: 20px;
    padding-left: 20px;
  }

  .product-gallery,
  .related-section,
  .library-directory {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .library-hero {
    padding-top: 36px;
    padding-bottom: 42px;
  }

  .library-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    padding: 8px 13px;
  }

  .library-search input {
    height: 44px;
    min-width: 0;
  }

  .library-search small {
    grid-column: 2;
  }

  .enterprise-footer {
    padding: 0 18px;
  }

  .footer-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding: 42px 0 36px;
  }

  .footer-intro {
    max-width: 340px;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 14px;
    padding: 17px 0;
    font-size: 10px;
  }

  .footer-bottom span:nth-child(3) {
    display: none;
  }
}

@media (min-width: 681px) and (max-width: 980px) {
  .home-hero,
  .home-intro,
  .home-proof,
  .home-bridge {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero-copy,
  .home-automation-visual,
  .home-visual,
  .home-proof-copy {
    width: 100%;
    max-width: 900px;
  }

  .home-hero {
    gap: 34px;
  }

  .home-intro,
  .home-process,
  .home-areas,
  .home-routine,
  .home-products,
  .home-proof,
  .home-bridge,
  .home-cta {
    padding-right: 48px;
    padding-left: 48px;
  }

  .home-area-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-product-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 380px) {
  .enterprise-header {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  .enterprise-brand,
  .enterprise-brand img {
    width: 114px !important;
    flex-basis: 114px !important;
  }

  .home-hero,
  .home-intro,
  .home-areas,
  .home-process,
  .home-routine,
  .home-products,
  .home-proof,
  .home-bridge,
  .home-cta,
  .seo-hero,
  .seo-panel,
  .seo-panel.dark,
  .seo-proof,
  .th-hero,
  .th-proof,
  .th-capabilities,
  .th-flow,
  .th-note,
  .product-gallery,
  .related-section,
  .library-directory,
  .library-hero {
    padding-right: 16px;
    padding-left: 16px;
  }

  .home-hero h1,
  .seo-hero h1,
  .th-hero h1 {
    font-size: 40px;
  }
}
