
/* =========================================
   TRACTIS TECH - FULL WIDTH PAGE LAYOUT
   ========================================= */

/* Prevent the page from being constrained or overflowing */
html,
body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Make all main page wrappers span the full screen */
.container-xxl {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Remove Bootstrap's maximum width from inner containers */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl {
    width: 100% !important;
    max-width: 100% !important;
}

/* Keep comfortable spacing so content does not touch screen edges */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    padding-left: clamp(16px, 3vw, 48px);
    padding-right: clamp(16px, 3vw, 48px);
}

/* Ensure the navbar and hero use the available screen width */
.navbar {
    width: 100%;
    box-sizing: border-box;
}

.hero-header {
    width: 100%;
    box-sizing: border-box;
}

/* Section links (/#about, /#contact) stop below the fixed navbar instead of under it */
section[id] {
    scroll-margin-top: calc(var(--navbar-height, 70px) + 10px);
}

/* Mobile/tablet: keep the navbar fixed at the top while scrolling.
   The template switches it back to position: relative below 992px, which let it scroll away.
   --navbar-height is measured in main.js; 70px is the fallback. */
@media (max-width: 991.98px) {
    .navbar-light,
    .sticky-top.navbar-light {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        background: #FFFFFF;
    }

    /* Reserve the navbar's space so the hero doesn't slide underneath it */
    .site-header {
        padding-top: var(--navbar-height, 70px) !important;
    }

    /* An open menu scrolls on its own if it is taller than the screen */
    .navbar-light .navbar-collapse {
        max-height: calc(100vh - var(--navbar-height, 70px) - 15px);
        overflow-y: auto;
    }
}

/* Prevent images from extending beyond their sections */
img {
    max-width: 100%;
    height: auto;
}



/* =========================================
   TRACTIS TECH - COOKIE PREFERENCES MODAL
   ========================================= */
.cookie-modal {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
}

.cookie-modal .modal-header {
    padding: 22px 24px 14px;
    border-bottom: 0;
}

.cookie-modal .modal-title {
    color: #205d5c;
    font-weight: 700;
}

.cookie-modal .modal-body {
    padding: 12px 24px 20px;
    color: #454545;
}

.cookie-modal .modal-body > p {
    line-height: 1.6;
}

.cookie-modal .modal-body a {
    color: #205d5c;
    text-decoration: underline;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 6px 0;
}

.cookie-option .h6 {
    color: #222;
    font-weight: 700;
}

.cookie-always-active {
    color: #205d5c;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.cookie-modal .form-check-input {
    width: 2.6em;
    height: 1.35em;
    cursor: pointer;
}

.cookie-modal .form-check-input:checked {
    background-color: #205d5c;
    border-color: #205d5c;
}

.cookie-modal .modal-footer {
    padding: 14px 24px 22px;
    border-top: 0;
    gap: 8px;
}

@media (max-width: 575.98px) {
    .cookie-modal .modal-header,
    .cookie-modal .modal-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .cookie-modal .modal-footer {
        padding-left: 18px;
        padding-right: 18px;
        flex-wrap: wrap;
    }

    .cookie-modal .modal-footer .btn {
        flex: 1 1 auto;
    }
}



/* =========================================
   TRACTIS TECH - FOOTER
   ========================================= */
/* Taller tap targets for the copyright-row links (WCAG 2.2 minimum is 24px) */
.footer .footer-menu a,
.footer .footer-menu-button {
    display: inline-block;
    padding-top: 6px;
    padding-bottom: 6px;
}

.footer .footer-menu-button {
    margin-right: 15px;
    padding-left: 0;
    padding-right: 15px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, .1);
    background: none;
    color: var(--light);
    font: inherit;
    cursor: pointer;
}



/* =========================================
   TRACTIS TECH - PARTNERS & CLIENTS CAROUSEL
   ========================================= */
#partners .testimonial-carousel .brand-logo-card {
    height: 150px;
    margin: 8px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#partners .brand-logo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

#partners .brand-logo-card img {
    height: 150px;
    max-width: 50%;
    object-fit: contain;
}

/* Meridian SMI */
#partners .brand-meridian {
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(22px, 2.2vw, 32px);
    font-weight: 900;
    font-style: italic;
    letter-spacing: -1px;
    color: #dd940c;
}

@media (max-width: 767.98px) {
    #partners .testimonial-carousel .brand-logo-card {
        height: 125px;
        margin: 6px;
        padding: 14px;
    }
}



/* =========================================
   TRACTIS TECH - CONTACT FORM
   ========================================= */
.form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status:empty {
    display: none;
}



/* =========================================
   TRACTIS TECH - LEGAL DOCUMENTS (privacy policy)
   ========================================= */
.legal-document {
    font-size: 1rem;
    line-height: 1.75;
    color: #555555;
}

/* Section headings: smaller than page headings, separated like document sections */
.legal-document > h2:not(.h1) {
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #E3E7F5;
    font-size: 1.5rem;
}

.legal-document > h3 {
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.legal-document > h4 {
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
}

/* A heading directly under another heading needs less space above it */
.legal-document > h2 + h3,
.legal-document > h3 + h4 {
    margin-top: 1.25rem;
}

/* Anchor targets (e.g. /privacy/#cookies) clear the sticky navbar */
.legal-document [id] {
    scroll-margin-top: 100px;
}

.legal-document p {
    margin-bottom: 1rem;
}

/* Lists: indented, with markers in the brand colour */
.legal-document ul {
    margin-bottom: 1.25rem;
    padding-left: 1.75rem;
    list-style: disc;
}

.legal-document ul ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    list-style: circle;
}

.legal-document li {
    margin-bottom: 0.6rem;
    padding-left: 0.35rem;
}

.legal-document li::marker {
    color: var(--primary);
}

/* Paragraphs inside a list item belong together */
.legal-document li > p {
    margin-bottom: 0.35rem;
}

.legal-document li > p:last-child {
    margin-bottom: 0;
}

/* Defined terms and labels stand out from body text */
.legal-document strong {
    font-weight: 700;
    color: #222222;
}

.legal-document a {
    text-decoration: underline;
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    .legal-document {
        font-size: 0.95rem;
    }

    .legal-document > h2:not(.h1) {
        margin-top: 2.25rem;
        padding-top: 1.5rem;
        font-size: 1.3rem;
    }

    .legal-document > h3 {
        font-size: 1.15rem;
    }

    .legal-document ul {
        padding-left: 1.25rem;
    }
}



/* =========================================
   TRACTIS TECH - MAINTENANCE PAGE
   ========================================= */
.maintenance-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.maintenance-page .maintenance-brand {
    color: #ffffff;
}

.maintenance-page .maintenance-lead {
    max-width: 560px;
    font-size: 1.1rem;
}



/* =========================================
   TRACTIS TECH - ACCESSIBILITY
   ========================================= */

/* Body text: #888 on white is 3.5:1, below WCAG AA (4.5:1) */
body {
    color: #666666;
}

.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2000;
    padding: 10px 18px;
    border-radius: 6px;
    background: var(--primary);
    color: #ffffff;
}

main:focus {
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .wow {
        visibility: visible !important;
    }
}
