/* ==========================================================================
   Layout system: one content width, one section rhythm, tablet/phone type
   --------------------------------------------------------------------------
   .home-wrap  content column: 90% of the screen on laptops and up (5% empty
               on each side), comfortable gutters on tablets and phones.
   .home-pad   the same vertical space above and below every homepage section.
   ========================================================================== */
:root {
    --wrap-gutter: 1.25rem;
    --sec-pad: 3rem;
}
@media (min-width: 576px) { :root { --wrap-gutter: 1.75rem; } }
@media (min-width: 768px) { :root { --sec-pad: 4rem; --wrap-gutter: 2rem; } }
@media (min-width: 992px) { :root { --sec-pad: 5rem; } }

.home-wrap { width: 100%; max-width: none; margin-left: auto; margin-right: auto; padding-left: var(--wrap-gutter); padding-right: var(--wrap-gutter); }
@media (min-width: 992px) {
    .home-wrap { width: 90%; padding-left: 0; padding-right: 0; }
}
.home-wrap.home-pad { padding-top: var(--sec-pad) !important; padding-bottom: var(--sec-pad) !important; }

/* header on the homepage uses the same 90% column on laptops and up */
@media (min-width: 1200px) {
    .home-header.home-header-wide { padding-left: 5% !important; padding-right: 5% !important; }
    .home-header-wide .dropdown-mega .dropdown-menu { left: 5% !important; right: 5% !important; }
}

/* ---------- homepage type scale: tablet and phone ---------- */
@media (max-width: 991.98px) {
    .home-sec h2.fs-13, .home-sec h2.fs-16 { font-size: .75rem !important; letter-spacing: .08em; }
    .home-sec h3.fs-28, .home-sec h3.fs-26 { font-size: 1.625rem !important; line-height: 1.25; }
    .home-sec h3.fs-24 { font-size: 1.4rem !important; line-height: 1.3; }
    .home-sec p.fs-24 { font-size: 1.25rem !important; line-height: 1.35; }
}
@media (max-width: 767.98px) {
    .home-sec h3.fs-28, .home-sec h3.fs-26 { font-size: 1.45rem !important; }
    .home-sec h3.fs-24 { font-size: 1.3rem !important; }
    .home-sec p.fs-24 { font-size: 1.125rem !important; }
    .home-sec p.fs-14, .home-sec .fs-14.text-muted { font-size: .9375rem !important; line-height: 1.6; }
    .home-sec .fs-13 { font-size: .875rem !important; }
    .home-sec h4.fs-15, .home-sec h4.fs-16 { font-size: 1rem !important; }
    .home-sec .mb-7 { margin-bottom: 1.75rem !important; }
    .home-sec .mb-10 { margin-bottom: 2rem !important; }
}
@media (max-width: 575.98px) {
    .home-sec .px-xl-10, .home-sec .px-xxl-15, .home-sec .px-lg-12, .home-sec .px-xl-6 { padding-left: 0 !important; padding-right: 0 !important; }
}

/* ---------- mobile / tablet header: even, vertically centred controls ---------- */
@media (max-width: 991.98px) {
    .home-header { align-items: center; padding-left: var(--wrap-gutter); padding-right: var(--wrap-gutter); }
    .home-header .navbar-brand { display: flex; align-items: center; margin: 0; }
    .home-header .navbar-brand img { height: 48px !important; width: auto; }
    .home-header .navbar-other { margin-left: auto; display: flex; align-items: center; }
    .navbar-other ul.navbar-nav { align-items: center; gap: .5rem; }
    .navbar-other .nav-item { margin: 0 !important; }
    .navbar-other .btn.btn-sm.btn-primary { margin: 0 !important; display: inline-flex; align-items: center; height: 38px; padding: 0 .95rem !important; }
    .navbar-other .app-button,
    .navbar-other .hamburger { width: 40px; height: 40px; padding: 0; margin: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: .6rem; }
    .navbar-other .app-button::after { display: none; }

    /* SaaS products launcher: a panel right under the header bar, never off-screen.
       Positioned against the header (not a transformed ancestor) so it also works in the sticky clone. */
    .navbar-other .dropdown { position: static; }
    .home-header { position: relative; }
    .navbar-other .dropdown-menu {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: 12px !important; right: 12px !important;
        width: auto !important; max-width: 420px; margin: 0 0 0 auto !important;
        transform: none !important; padding: .75rem !important;
        border-radius: .9rem; box-shadow: 0 1rem 2.5rem rgba(20, 24, 40, .25);
        z-index: 1100;
    }
    .navbar-other .dropdown-menu .app-grid { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; background: transparent; }
    .navbar-other .dropdown-menu .app-grid > div { flex: none; padding: .6rem .25rem; }
    .navbar-other .dropdown-menu .title { font-size: .95rem; margin: .25rem .25rem .6rem; }
}
@media (max-width: 575.98px) {
    .navbar-other .btn.btn-sm.btn-primary { height: 36px; padding: 0 .8rem !important; font-size: .8rem; }
    .navbar-other .btn.btn-sm.btn-primary i { display: none; }
    .home-header .navbar-brand img { height: 42px !important; }
}

/* readability: body copy a touch darker on tablet and phone */
@media (max-width: 991.98px) {
    .home-sec p.text-muted, .home-sec .text-muted.fs-13, .home-sec .text-muted.fs-14 { color: #5b6275 !important; }
}

/* ==========================================================================
   Mobile / tablet menu: Products and Services mega menus become accordions
   ========================================================================== */
@media (max-width: 991.98px) {
    .offcanvas-nav .dropdown-mega .dropdown-menu {
        position: static !important;
        width: 100% !important; min-width: 0 !important; max-width: 100% !important;
        left: auto !important; right: auto !important; transform: none !important;
        margin: 0 !important; padding: .35rem 0 .85rem .25rem !important;
        background: transparent !important; border: 0 !important; box-shadow: none !important;
    }
    .offcanvas-nav .dropdown-mega .dropdown-menu .row { display: block; margin: 0; }
    .offcanvas-nav .dropdown-mega .dropdown-menu [class*="col-"] { width: 100%; max-width: 100%; padding: 0 !important; }

    /* Products */
    .offcanvas-nav .product-mega-right { display: none !important; }
    .offcanvas-nav .product-mega-list { display: flex; flex-direction: column; gap: .5rem; }
    .offcanvas-nav .product-mega-item { padding: .55rem .65rem; gap: .75rem; border-color: rgba(255, 255, 255, .14) !important; background: rgba(255, 255, 255, .04); }
    .offcanvas-nav .product-mega-item:hover { transform: none; }
    .offcanvas-nav .product-mega-thumb { width: 44px; height: 44px; flex: none; background: rgba(255, 255, 255, .08) !important; border-color: rgba(255, 255, 255, .12) !important; }
    .offcanvas-nav .product-mega-thumb img { width: 100%; height: 100%; object-fit: contain; }
    .offcanvas-nav .product-mega-item-title { color: #fff !important; font-size: .9rem; }
    .offcanvas-nav .product-mega-item-desc { color: rgba(255, 255, 255, .6) !important; font-size: .78rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .offcanvas-nav .product-mega-arrow { color: rgba(255, 255, 255, .5) !important; }
    .offcanvas-nav .product-mega-cta-row { margin-top: .6rem; }
    .offcanvas-nav .product-mega-cta-btn { display: flex; width: 100%; justify-content: center; align-items: center; padding: .6rem 1rem; border-radius: .6rem; }

    /* Services: category list; tapping a category opens its services right under it */
    .offcanvas-nav .service-mega-menu .service-area { display: none; }
    .offcanvas-nav .service-mega-menu .service-menu { margin: 0; padding: 0; }
    .offcanvas-nav .service-menu > li { margin: 0 0 .4rem; }
    .offcanvas-nav .service-mega-menu .service-menu .nav-link {
        white-space: normal !important; width: 100%; padding: .65rem .75rem; font-size: .88rem;
        color: #fff !important; background: rgba(255, 255, 255, .05) !important; border: 1px solid rgba(255, 255, 255, .14) !important; border-radius: .6rem;
    }
    .offcanvas-nav .service-menu .nav-link.active { border-color: rgba(var(--bs-primary-rgb), .5) !important; }
    .offcanvas-nav .service-menu .service-menu-arrow { margin-left: auto; transition: transform .2s ease; transform: rotate(90deg); }
    .offcanvas-nav .service-menu > li.is-open > .nav-link .service-menu-arrow { transform: rotate(-90deg); }
    .offcanvas-nav .service-menu .service-menu-icon { flex: none; }
    .svc-acc-pane { display: none; padding: .45rem 0 .35rem .35rem; }
    .offcanvas-nav .service-menu > li.is-open > .svc-acc-pane { display: block; }
    .svc-acc-pane .row { display: block; margin: 0; }
    .svc-acc-pane [class*="col-"] { width: 100%; max-width: 100%; padding: 0; margin-bottom: .35rem !important; }
    .svc-acc-pane .service-card { padding: .6rem .7rem !important; border-radius: .6rem; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); text-decoration: none; }
    .svc-acc-pane .service-card .service-title { color: #fff !important; font-size: .88rem !important; margin-bottom: .15rem !important; }
    .svc-acc-pane .service-card p.fs-14 { color: rgba(255, 255, 255, .6) !important; font-size: .76rem !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .svc-acc-pane .service-card .ms-4 { margin-left: .75rem !important; }
}
@media (min-width: 992px) { .svc-acc-pane { display: none !important; } }
@media (max-width: 991.98px) {
    .offcanvas-nav .service-menu .nav-link { align-items: center; }
    .offcanvas-nav .service-menu .nav-link .service-menu-arrow { opacity: 1 !important; visibility: visible !important; flex: none; margin-left: auto; font-size: 1.05rem; color: rgba(255, 255, 255, .6); transform: rotate(90deg); }
    .offcanvas-nav .service-menu > li.is-open > .nav-link .service-menu-arrow { transform: rotate(-90deg); }
}
@media (max-width: 991.98px) {
    .svc-acc-pane { padding-left: 0; }
    .svc-acc-pane .service-card { align-items: center !important; gap: 0; }
    .svc-acc-pane .service-card-icon { width: 34px !important; height: 34px !important; min-width: 34px; display: inline-flex !important; align-items: center; justify-content: center; font-size: 1.05rem !important; border-radius: .5rem; }
    .svc-acc-pane .service-card-icon img { width: 20px !important; height: 20px !important; }
    .svc-acc-pane .service-card .d-block.ms-4 { margin-left: .65rem !important; min-width: 0; }
    .offcanvas-nav .service-mega-menu .service-menu .nav-link { gap: .6rem; padding: .6rem .7rem; }
    .offcanvas-nav .service-menu .service-menu-icon { width: 30px; height: 30px; }
}

/* ==========================================================================
   Mobile menu: full-width panel, roomier items
   ========================================================================== */
@media (max-width: 767.98px) {
    .navbar-collapse.offcanvas.offcanvas-nav { --bs-offcanvas-width: 100vw; width: 100vw !important; max-width: 100vw !important; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar-collapse.offcanvas.offcanvas-nav { --bs-offcanvas-width: min(440px, 100vw); width: min(440px, 100vw) !important; }
}
@media (max-width: 991.98px) {
    .offcanvas-nav .offcanvas-header { padding: 1.25rem var(--wrap-gutter) .5rem; }
    .offcanvas-nav .offcanvas-body { padding: .5rem var(--wrap-gutter) 1.5rem; }
    .offcanvas-nav .navbar-nav > .nav-item > .nav-link { padding: .8rem 0; font-size: 1.05rem; }

    /* no darker slab behind the open sub-menus */
    .offcanvas-nav .dropdown-mega .dropdown-menu,
    .offcanvas-nav .dropdown-mega .dropdown-menu .row,
    .offcanvas-nav .product-mega-left,
    .offcanvas-nav .product-mega-list,
    .offcanvas-nav .service-menu-panel,
    .offcanvas-nav .service-area { background: transparent !important; }

    .offcanvas-nav .dropdown-mega .dropdown-menu { padding: .25rem 0 1rem !important; }

    /* Products: breathing room between cards */
    .offcanvas-nav .product-mega-list { gap: .75rem; }
    .offcanvas-nav .product-mega-item { padding: .85rem .9rem; gap: 1rem; margin: 0; }
    .offcanvas-nav .product-mega-text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; flex: 1; }
    .offcanvas-nav .product-mega-item-title { font-size: 1rem; line-height: 1.3; }
    .offcanvas-nav .product-mega-item-desc { font-size: .84rem; line-height: 1.45; -webkit-line-clamp: 2; }
    .offcanvas-nav .product-mega-cta-row { margin-top: 1rem; }

    /* Services: categories and their services, never touching */
    .offcanvas-nav .service-menu > li { margin: 0 0 .75rem; }
    .offcanvas-nav .service-mega-menu .service-menu .nav-link { padding: .85rem .95rem; gap: .85rem; font-size: .95rem; line-height: 1.35; }
    .offcanvas-nav .service-menu .service-menu-icon { width: 34px; height: 34px; flex: none; }
    .svc-acc-pane { padding: .65rem 0 .25rem; }
    .svc-acc-pane [class*="col-"] { margin-bottom: .6rem !important; }
    .svc-acc-pane .service-card { padding: .85rem .9rem !important; gap: .85rem; }
    .svc-acc-pane .service-card .d-block.ms-4 { margin-left: 0 !important; }
    .svc-acc-pane .service-card .service-title { font-size: .95rem !important; line-height: 1.3 !important; margin-bottom: .25rem !important; }
    .svc-acc-pane .service-card p.fs-14 { font-size: .82rem !important; line-height: 1.45; }
}
@media (max-width: 991.98px) {
    .offcanvas-nav .product-mega-item-desc { white-space: normal !important; text-overflow: clip; }
    .svc-acc-pane .service-card p.fs-14 { white-space: normal !important; }
}
@media (max-width: 991.98px) {
    .offcanvas-nav .navbar-nav > .nav-item > .nav-link { display: flex; align-items: center; gap: .65rem; }
    .offcanvas-nav .navbar-nav > .nav-item > .nav-link.dropdown-toggle::after { margin-left: auto; position: static !important; transform: none !important; top: auto !important; }
}

/* ==========================================================================
   Same format on About, Products, Product details and the product landing page
   ========================================================================== */
/* product landing sections: one vertical rhythm (hero keeps room for the fixed header) */
.dyn-sec:not(.saas-hero-section) { padding-top: var(--sec-pad) !important; padding-bottom: var(--sec-pad) !important; }
.saas-hero-section.dyn-sec { padding-bottom: var(--sec-pad) !important; }
@media (max-width: 991.98px) {
    .dyn-sec .saas-title, .dyn-sec h2.saas-title { font-size: 1.6rem !important; line-height: 1.25; }
    .dyn-sec .saas-subtitle, .dyn-sec .saas-lead { font-size: .98rem !important; line-height: 1.6; }
}
@media (max-width: 767.98px) {
    .dyn-sec .saas-title, .dyn-sec h2.saas-title { font-size: 1.4rem !important; }
    .dyn-sec p { font-size: .95rem; }
    .saas-hero-section.dyn-sec h1 { font-size: 2rem !important; line-height: 1.15; }
}
.pd-hero .home-wrap { padding-top: 6.5rem; padding-bottom: 2.5rem; }
@media (max-width: 991.98px) { .pd-hero .home-wrap { padding-top: 6rem; padding-bottom: 2rem; padding-left: var(--wrap-gutter); padding-right: var(--wrap-gutter); } }
/* floating hero decorations on the product landing page must never widen the page */
.dyn-sec { overflow-x: clip; }

/* content stays above each section's decorative grid / glow layers */
section > .home-wrap, .wrapper > .home-wrap { position: relative; z-index: 1; }

/* decorative shapes and sliders inside a section can never widen the page (clip keeps sticky children working) */
section.home-sec { overflow-x: clip; }
