/* Isix brand colors (site.css loads after style.css) */
:root {
    --primary: #37498e;
    --blue: #37498e;
    --isix-primary: #37498e;
    --isix-primary-dark: #293669;
    --isix-primary-hover: #2d3c75;
    --isix-primary-light: #6b94de;
    --isix-primary-tint: rgba(55, 73, 142, 0.1);
}

/* Isix logo: colored on light backgrounds, white on dark */

.brand-logo--on-dark {
    filter: brightness(0) invert(1);
}

.brand-logo-switcher .brand-logo--dark {
    display: none;
    filter: brightness(0) invert(1);
}

@media (prefers-color-scheme: dark) {
    .brand-logo-switcher .brand-logo--light {
        display: none;
    }

    .brand-logo-switcher .brand-logo--dark {
        display: inline-block;
    }
}

html[data-theme='light'] .brand-logo-switcher .brand-logo--dark {
    display: none;
}

html[data-theme='light'] .brand-logo-switcher .brand-logo--light {
    display: inline-block;
}

html[data-theme='dark'] .brand-logo-switcher .brand-logo--light {
    display: none;
}

html[data-theme='dark'] .brand-logo-switcher .brand-logo--dark {
    display: inline-block;
}

/* Home banner — min 700px tall (theme-style hero) */
.banner-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    min-height: 700px;
    background: linear-gradient(40deg, var(--isix-primary) 0%, var(--isix-primary-light) 100%);
}

.page-title-stripe {
    background-image: linear-gradient(40deg, var(--isix-primary) 0%, var(--isix-primary-light) 100%);
}

.banner-container .banner-carousel,
.banner-container .banner-carousel .carousel-inner,
.banner-container .banner-carousel .carousel-item {
    min-height: 700px;
}

.banner-container .banner-carousel .embed-responsive.embed-responsive-16by9::before {
    display: none;
}

.banner-container .banner-carousel .embed-responsive.embed-responsive-16by9 {
    min-height: 700px;
    height: 700px;
}

.banner-container .banner-carousel .embed-responsive-item {
    object-fit: cover;
    object-position: center center;
}

.banner-bottom-shape {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    max-height: 120px;
    z-index: 3;
    pointer-events: none;
    display: block;
}

/* Home page — alternating section backgrounds */
.home-section--tint {
    background-color: var(--isix-primary-tint);
}

.home-section--white {
    background-color: #fbfbfd;
}

.banner-next-section {
    position: relative;
    margin-top: 0;
    padding-top: 3rem;
    padding-bottom: 2.5rem;
}

.banner-next-section .container {
    background-color: transparent;
}

.banner-next-section .home-block-title {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-family: "NunitoBold", "Nunito", sans-serif;
    color: #1a1a1a;
}

@media (min-width: 768px) {
    .banner-next-section .home-block-title {
        font-size: 1.875rem;
    }
}

/* Theme sets h2 { margin-bottom: 70px } globally — keep block headings compact */
.banner-next-section h2.home-block-title {
    margin-bottom: 1rem;
}

/* Footer — tighter line spacing (override theme h2 margin) */
.footer .footer-heading,
.footer h2.footer-heading {
    font-size: 1.15rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    line-height: 1.25;
    color: #fff;
}

.footer .footer-links li,
.footer .footer-links li a {
    color: #fff;
}

.footer .footer-links li a:hover {
    color: #fff;
    opacity: 0.85;
    text-decoration: none;
}

.footer .contact-links li,
.footer .contact-links li a,
.footer .contact-links li span,
.footer .contact-links li span i {
    color: #fff;
}

.footer .contact-links li a:hover {
    color: #fff;
    opacity: 0.85;
    text-decoration: none;
}

.footer .footer-quick-links {
    line-height: 1.3;
    margin-bottom: 1.25rem;
}

.footer .footer-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 1rem;
    margin-bottom: 0.35rem !important;
}

.footer .footer-links-row li {
    margin-bottom: 0;
    line-height: 1.35;
}

.footer .footer-links li a {
    line-height: 1.35;
}

.footer .footer-links li a.active {
    color: #fff;
    font-family: "NunitoBold", "Nunito", sans-serif;
    font-weight: 700;
    text-decoration: none;
    opacity: 1;
}

.footer .footer-links li a:not(.active) {
    opacity: 0.95;
}

.footer .footer-links li a.active:hover {
    color: #fff;
    opacity: 0.95;
}

.remote-support-downloads--inline {
    margin-bottom: 2rem;
    padding: 1.25rem 1rem;
    background-color: var(--isix-primary-tint);
    border-radius: 0.25rem;
}

.remote-support-downloads--inline .remote-support-downloads__lead {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.45;
    color: #1a1a1a;
}

.footer .contact-links li {
    margin-bottom: 0.4rem !important;
    line-height: 1.35;
}

.footer .contact-links li:last-child {
    margin-bottom: 0 !important;
}

.footer .footer-social {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    padding-top: 0.25rem;
}

.footer .footer-social a {
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
}

.footer .footer-social a:hover {
    opacity: 0.85;
}

.footer .row.my-2 {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.footer .row.text-white p {
    line-height: 1.35;
}

.footer .footer-bottom-bar p {
    line-height: 1.35;
}

.footer .footer-powered-by {
    font-size: 0.875rem;
}

.footer .footer-powered-by a {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.footer .footer-powered-by a:hover {
    text-decoration: underline;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

/* Banner slide headings after the primary H1 keep the same visual weight */
.banner-container .banner-carousel .carousel-item .carousel-caption .banner-slide-heading {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

@media (max-width: 767.98px) {
    .banner-container .banner-carousel .carousel-item .carousel-caption .banner-slide-heading {
        font-size: 0.875rem;
    }
}

/* Product cards — slightly smaller titles than theme default h2 (home + listing) */
.feature-item .card .card-title {
    font-size: 1.15rem;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .feature-item .card .card-title {
        font-size: 1.2rem;
    }
}

@media (min-width: 1200px) {
    .feature-item .card .card-title {
        font-size: 1.25rem;
    }
}

/* Home sections — tighter external spacing */
.feature-section {
    margin-bottom: 2rem !important;
}

.testimonial-section--gray {
    margin-bottom: 2rem !important;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.testimonial-section--gray .container,
.testimonial-section--gray .slick-slider,
.testimonial-section--gray .slick-list,
.testimonial-section--gray .slick-track {
    background-color: transparent;
}

.testimonial-section--gray .testimonial-section__title {
    margin-top: 0;
    margin-bottom: 1.75rem;
}

.testimonial-section--gray .testimonial-section__footer-link {
    margin-top: 0.5rem;
}

.home-faq-section {
    margin-bottom: 2rem !important;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

/* Testimonials — remove theme min-height gap in card body */
.testimonial-section .testimonial-item {
    padding: 0 12px 1rem;
}

.testimonial-section .testimonial-item .card .card-body {
    min-height: 0;
    padding: 1rem 1.25rem 0.75rem;
}

.testimonial-section .testimonial-item .card .card-footer {
    padding: 0.5rem 1.25rem 1rem;
    font-size: 1rem;
    line-height: 1.35;
}

.testimonial-section .testimonial-item .card .card-body .card-text {
    font-size: 0.9rem;
    line-height: 1.45;
}

.testimonial-section .slick-track {
    display: flex !important;
    align-items: stretch;
}

.testimonial-section .slick-slide {
    height: auto;
}

.testimonial-section .slick-slide > div {
    height: 100%;
}

.testimonial-section .testimonial-item .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-section .testimonial-item .card .card-body {
    flex: 1 1 auto;
}

/* Testimonials listing page — static grid, no carousel */
.testimonial-section--list .testimonial-grid .testimonial-item {
    padding: 0;
}

.testimonial-section--list .testimonial-grid .col-md-6 {
    display: flex;
}

/* HTML sitemap — sections stacked; 3 links per row inside each */
.sitemap-xml-note {
    font-size: 0.95rem;
}

.sitemap-xml-note .zmdi {
    margin-right: 0.35rem;
}

.sitemap-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
}

.sitemap-section--bordered {
    border-bottom: 1px solid #e9ecef;
}

.sitemap-column-title {
    font-size: 1.35rem;
    font-family: "NunitoBold", "Nunito", sans-serif;
    color: #1a1a1a;
    margin-bottom: 1.25rem;
    text-align: left;
}

.sitemap-link-row {
    margin-bottom: 0.5rem;
}

.sitemap-link-row:last-child {
    margin-bottom: 0;
}

.sitemap-link-cell {
    margin-bottom: 0.75rem;
}

.sitemap-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
}

.sitemap-link:hover .sitemap-link-icon {
    color: var(--isix-primary-hover);
}

.sitemap-link-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.sitemap-link-label {
    word-break: break-word;
}

/* Draggable WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    cursor: grab;
    touch-action: none;
    user-select: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.whatsapp-float:hover {
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transform: scale(1.05);
}

.whatsapp-float.is-dragging {
    cursor: grabbing;
    transform: scale(1.02);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

/* Skip link — visible on keyboard focus only */
.skip-to-content.sr-only-focusable:focus {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1080;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0.5rem 1rem;
    clip: auto;
    overflow: visible;
    white-space: nowrap;
    background: var(--isix-primary);
    color: #fff;
    border-radius: 0.25rem;
    text-decoration: none;
    font-weight: 600;
}

/* Product detail breadcrumbs */
.product-breadcrumb .breadcrumb {
    font-size: 0.9rem;
}

.product-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #6c757d;
}

.product-breadcrumb .breadcrumb-item.active {
    color: #495057;
}

/* Product detail */
.product-detail .product-image-trigger {
    display: block;
    position: relative;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    border-radius: 0.25rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.product-detail .product-image-trigger:focus {
    outline: 2px solid var(--isix-primary);
    outline-offset: 2px;
}

.product-detail .product-detail-image {
    display: block;
    width: 100%;
    transition: transform 0.25s ease;
}

.product-detail .product-image-trigger:hover .product-detail-image {
    transform: scale(1.02);
}

.product-detail .product-image-zoom-hint {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: rgba(55, 73, 142, 0.92);
    border-radius: 999px;
    pointer-events: none;
}

.product-detail .product-actions .btn {
    margin-right: 0.25rem;
}

.product-image-modal .modal-content {
    border: 0;
    border-radius: 0.25rem;
    overflow: hidden;
}

.product-image-modal .modal-body {
    background: #f8f9fa;
}

/* Contact page — full-width map (form-to-map spacing via .contact-page-content.mb-5) */
.contact-map-section {
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
}

.contact-map-embed {
    position: relative;
    width: 100%;
    height: clamp(280px, 45vw, 480px);
    background-color: #e9ecef;
    line-height: normal;
}

/* Sits on the footer wave over the contact map (contact page only) */
footer.footer .contact-map-open-btn {
    position: absolute;
    top: 1.5rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    z-index: 5;
    padding: 0.5rem 2rem;
    font-size: 1.25rem;
    font-family: "NunitoBold", "Nunito", sans-serif;
    line-height: 1.4;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(55, 73, 142, 0.3);
    background-color: #fff;
}

footer.footer .contact-map-open-btn:hover {
    background-color: var(--isix-primary);
    color: #fff;
}

main:has(.contact-map-section) + footer.footer .footertop-shape {
    z-index: 1;
    pointer-events: none;
}

.contact-map-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Site-wide load & scroll reveal animations */
@media (prefers-reduced-motion: reduce) {
    .page-animate .page-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .page-animate .home-hero .carousel-caption > *,
    .page-animate .home-hero .banner-bottom-shape,
    .page-animate .page-title-stripe h1 {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

@keyframes page-hero-fade-up {
    from {
        opacity: 0;
        transform: translate3d(0, 28px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes page-banner-shape-in {
    from {
        opacity: 0;
        transform: translate3d(0, 16px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes page-title-in {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.page-animate .page-title-stripe h1 {
    opacity: 0;
    animation: page-title-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.page-animate .home-hero .carousel-item.active .carousel-caption > h1,
.page-animate .home-hero .carousel-item.active .carousel-caption > .banner-slide-heading,
.page-animate .home-hero .carousel-item.active .carousel-caption > p {
    opacity: 0;
    animation: page-hero-fade-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.page-animate .home-hero .carousel-item.active .carousel-caption > h1,
.page-animate .home-hero .carousel-item.active .carousel-caption > .banner-slide-heading {
    animation-delay: 0.12s;
}

.page-animate .home-hero .carousel-item.active .carousel-caption > p {
    animation-delay: 0.28s;
}

.page-animate .home-hero .banner-bottom-shape {
    opacity: 0;
    animation: page-banner-shape-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

.page-animate .page-reveal {
    opacity: 0;
    transform: translate3d(0, 32px, 0);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--page-reveal-delay, 0s);
}

.page-animate .page-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}
