:root { color-scheme: light only; }

* { box-sizing: border-box; }           /* avoid accidental growth */

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0px;
    background-color: #fff;
    color: #000;  
    scroll-behavior: smooth;
    overflow-x: clip;
}

h6 a {
    font-size: 16px;
    color: #333;
    font-weight: 400;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* 

        NAVBAR

                    */
.nav-container {
    width: 100%;
    position: fixed;
    margin-right: auto;
    margin-left: auto;
    z-index: 999;
    padding-left: 5px;
    padding-right: 15px;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    top: 0;
    padding-top: 7px;
}

.navbar-logo {
    z-index: 3;  /* above sidebar (z-index: 2) */
    position: relative;  /* needed for z-index to work */
    max-width: 90px;
    margin-left: 5px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.3rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    font-size: 15px;
    color: #000;
    font-weight: 500;
    letter-spacing: -.5px;
}

.nav-menu a:hover {
    text-decoration: underline;
}

.contact-btn {
    padding: 6px 12px;
    border: 1px solid #000;
    border-radius: 50px;
}

.contact-btn:hover {
    background: #000;
    color: #fff;
    text-decoration: none !important;
}

.scrolled .contact-btn:hover {
    background-color: #000;
    border-color: #000;
    color: #fff;
}



/* desktop */
.hamburger { display: none; }

@media (max-width: 900px) {
    /* make the bar a flex row, but don't push everything right */
    .nav-container { display: flex; align-items: center; }

    /* show hamburger; place it after the menu */
    .hamburger {
        display: inline-block;
        order: 3;
        background: none;
        border: 0;
        padding: 0;
        width: 32px;
        height: 32px;
        color: #fff;
        margin-left: 20px;
        cursor: pointer;
        position: relative;
        z-index: 3;
    }
    .hamburger:focus {
        outline: none;
    }

    /* use the same <ul>; push it (and everything after it) to the right */
    .nav-menu { display: flex; margin: 0; padding: 0; order: 2; margin-left: auto; }

    /* hide all items except the last one (Contact Us) */
    .nav-menu li { display: none; }
    .nav-menu li:last-child { display: list-item; }

    .hamburger span {
        display: block;
        width: 32px;
        height: 2px;
        background: currentColor;
        transition: transform 0.3s ease, opacity 0.3s ease;
        position: absolute;
        left: 0;
    }

    .hamburger span:first-child {
        top: 10px;
    }

    .hamburger span:last-child {
        top: 20px;
    }

    /* X state when open */
    .hamburger[aria-expanded="true"] {
        color: #fff !important;  /* force white when open */
    }

    .hamburger[aria-expanded="true"] span:first-child {
        transform: rotate(45deg);
        top: 15px;  /* center it */
    }

    .hamburger[aria-expanded="true"] span:last-child {
        transform: rotate(-45deg);
        top: 15px;  /* center it */
    }
}


/*
      SIDEBAR
                */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #000;
    transform: translateX(100%); /* off-screen by default */
    transition: transform 0.3s ease;
    overflow: hidden;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar.open {
    transform: translateX(0);          /* slide in when open */
}
.sidebar.open ~ .nav-container .navbar-logo {
    content: url('/content/logos/ITW-LOGO-WHITE.png');
    transition: opacity 4s ease;
}
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.sidebar li {
    margin: 40px 0;  /* spacing between links */
}

.sidebar a {
    color: #fff;
    text-decoration: none;
    font-size: 32px;  /* large text */
    font-weight: 300;  /* light weight */
    transition: opacity 0.3s ease;
}

.sidebar a:hover {
    opacity: 0.7;
}

.sidebar-contact-btn {
    display: inline-block;
    margin-top: 60px !important;  /* extra space before button */
    padding: 15px 40px;
    border: 2px solid #fff;
    border-radius: 50px;
    font-size: 18px !important;
    transition: background 0.3s ease, color 0.3s ease;
}

.sidebar-contact-btn:hover {
    background: #fff;
    color: #000;
    opacity: 1 !important;
}
body.sidebar-open {
    overflow: hidden;
}
@media (min-width: 900px) {
    .sidebar {
        display: none !important;
    }
}

/* 
    VIDEO HOMEPAGE 
                    */

.video-container {
    height: 100vh;
    position: relative;
    overflow: hidden;
}
.video-container video {
    object-fit: cover;
    position: absolute;
    background: #000;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
}

.video-text {
    position: absolute;
    bottom: 14vh;
    left: 5%;
    max-width: 650px;
    z-index: 2;
    color: #fff;
    text-align: left;
}

.video-text h1 {
    font-size: 48px;
    font-weight: bold;
    letter-spacing: -.5px;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

@media (max-width: 550px) {
    .video-text h1 {
        font-size: 38px;
    }
}

@media (max-width: 430px) {
    .video-text h1 {
        font-size: 36px;
    }
}
@media (max-width: 410px) {
    .video-text h1 {
        font-size: 34px;
    }
}
@media (max-width: 380px) {
    .video-text h1 {
        font-size: 32px;
    }
}
.video-text .btn {
    background-color: white;
    color: black;
    font-size: 15px;
    padding: 20px 40px;
    border-radius: 50rem;
    transition: opacity 0.3s;
    text-decoration: none;
}
.video-text .btn:hover {
    opacity: 0.7;
} 
.video-text .btn span {
    display: inline-block;
    width: 19px;
    height: 19px;
    margin-left: 5px;
    margin-right: -8px;
    vertical-align: -3px;
}

.scroll-down {
    position: absolute;
    bottom: 30px; 
    left: 50%; 
    transform: translateX(-50%);
    font-size: 1.5rem; 
    color: white;
    cursor: pointer;
    animation: bounce 2s infinite;
    z-index: 100;
}

@media (max-width: 900px) {
  .scroll-down {
    display: none;
  }
}

.scroll-down a {
    color: white;        /* keep the arrow white */
    text-decoration: none;
    text-shadow: 3px 2px 2px #000; /* subtle shadow */
    display: inline-block;
    width: 20px;
    height: 20px;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(10px); }
    60% { transform: translateX(-50%) translateY(5px); }
}



/* TESTIMONIALS */
.testimonial-home {
    padding-top: 40px;
    padding-bottom: 80px;
}
.testimonial-home p {
    font-size: 62px;
    font-weight: 600;
    letter-spacing: -2px;
    text-align: center;
    line-height: 110%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 100px;
    padding-bottom: 60px;
}
.main-testimonial-home {
    padding-bottom: 60px;
}
.main-testimonial-home p {
    max-width: 520px;
}
@media (max-width: 992px) {
    .main-testimonial-home p {
        font-size: 58px;
        max-width: 480px;
    }
}
@media (max-width: 600px) {
    .main-testimonial-home p {
        font-size: 52px;
        max-width: 430px;
        letter-spacing: -1.5px;
    }
}
@media (max-width: 468px) {
    .main-testimonial-home p {
        font-size: 48px;
        max-width: 400px;
    }
}
@media (max-width: 435px) {
    .main-testimonial-home p {
        font-size: 42px;
        max-width: 350px;
    }
}
@media (max-width: 385px) {
    .main-testimonial-home p {
        font-size: 39px;
        max-width: 330px;
    }
}


.secondary-testimonial-home p {
    max-width: 1000px;
}
@media (max-width: 1200px) {
    .secondary-testimonial-home p {
        font-size: 58px;
    }
}
@media (max-width: 992px) {
    .secondary-testimonial-home p {
        font-size: 48px;
        max-width: 600px;
        letter-spacing: -1.5px;
    }
}
@media (max-width: 770px) {
    .secondary-testimonial-home p {
        font-size: 44px;
        max-width: 560px;
    }
}
@media (max-width: 600px) {
    .secondary-testimonial-home p {
        font-size: 48px;
        max-width: 540px;
    }
}
@media (max-width: 475px) {
    .secondary-testimonial-home p {
        font-size: 44px;
        max-width: 410px;
    }
}
@media (max-width: 430px) {
    .secondary-testimonial-home p {
        font-size: 40px;
        max-width: 410px;
    }
}
@media (max-width: 390px) {
    .secondary-testimonial-home p {
        font-size: 38px;
        max-width: 350px;
    }
}
@media (max-width: 370px) {
    .secondary-testimonial-home p {
        font-size: 36px;
        max-width: 330px;
    }
}
/* 

        CAROUSEL

                        */

/* Contain the whole carousel */
.carousel, .carousel__pin,
#carousel-container, #carousel, #text-carousel {
  max-width: 100%;
  /* overflow: hidden; */
}


.carousel {
    background-color: #fff;

    /* Control how long it stays pinned: 100vh is the visible viewport, + dwell for extra scroll while pinned */
    --dwell: 120vh;                   /* tweak to taste (60–200vh) */
    height: calc(100vh + var(--dwell));

    /* snap behavior you already wanted */
    scroll-snap-align: start;
    scroll-snap-stop: always;

    /* layout helpers */
    position: relative;
    margin: 0;                        /* avoid unexpected extra gap */
    padding: 0;                       /* we’ll center inside the pin */
}

/* The content that sticks to the viewport while the section scrolls */
.carousel__pin {
    position: sticky;
    top: 0;                           /* pins to top of the viewport */
    height: 100vh;                    /* occupies full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;          /* vertically center your content */
    align-items: center;              /* center horizontally */
    /* keep the same background so it fully covers whatever is behind */
    background-color: #EDEDED;
    z-index: 1;
}

@media (max-width: 900px) {
  .carousel {
    --dwell: 60vh;                   /* tweak to taste (60–200vh) */
  }
}



.carousel h2 {
    text-align: center;
    font-size: 48px;
    /* font-weight: 400; */
    margin-bottom: -30px;
    letter-spacing: -1px;
}

@media (max-width: 900px) or (max-height: 810px) {
    .carousel h2 {
        font-size: 38px;
    }
}

@media (max-height: 980px) {
    .carousel h2 {
        margin-top: -20px;
    }
}

#carousel-container {
  position: relative;
  width: 800px;
  margin: 60px auto;
}


#carousel {
  overflow: hidden;
  width: 100%;
  border-radius: 12px;
}

#carousel video {
    cursor: grab;
}



#carousel video:active {
    cursor: grabbing;
}

#track {
    display: flex;
    gap: 60px;
}

#controls {
    position: absolute;
    bottom: -150px;
    right: 0;
    display: flex;
    gap: 12px;
    z-index: 10;
    pointer-events: auto;
    transition: all 0.6s ease;
}

@media (max-width: 750px) {
    #controls {
        margin-right: 10px;
    }
}
@media (max-width: 650px) {
    #controls {
        bottom: -180px !important;
    }
}

#controls svg {
  width: 72px;
  height: 72px;
  cursor: pointer;
  transition: all 0.6s ease;
}

/* Responsive sizing */
@media (max-width: 1200px) or (max-height: 950px) {
  #controls svg {
    width: 60px;
    height: 60px;
  }
}

#controls svg circle {
  transition: fill 0.6s ease;
}

#controls svg path {
  transition: stroke 0.6s ease;
}

#controls svg:hover circle {
  fill: #000;
}

#controls svg:hover path {
  stroke: #fff;
}

#controls svg:focus {
  outline: none;
}

#controls svg:focus-visible {
  outline: none;
}

@media (max-width: 900px) {
  #carousel-container {
    width: 90%;
    max-width: 750px;
    margin: 60px auto;
  }
  
  #carousel {
    width: 100%;
  }
  
  #text-carousel {
    width: 100%; /* Match carousel width */
  }
  
  .text-slide {
    width: 100% !important; 
    flex-shrink: 0;
  }
  
  .text-slide > div {
    max-width: 100%;
  }
  
  #text-carousel .text-slide div:first-child {
    font-size: 28px !important;
  }
  
  #text-carousel .text-slide div:last-child {
    font-size: 16px !important;
  }
  
  /* Fix indicators to match carousel width */
  #carousel-indicators {
    width: 90%; /* Match carousel container width */
    max-width: 750px;
  }
  
  .indicator {
    width: 60px; /* Smaller indicators on mobile */
  }
  
  .indicator.active {
    width: 100px; /* Smaller active state */
  }
  
  #controls {
    bottom: -150px;
    right: 0;
  }
  
  #controls svg {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 750px) {
    #carousel-container {
        width: 100%;
        margin: 40px auto;
    }
    #carousel {
        border-radius: 0 !important; /* Remove rounded corners */
    }
    #carousel video {
        border-radius: 0 !important; /* Remove rounded corners from video */
        width: 100% !important;
        height: auto !important; /* Auto height */
        aspect-ratio: 16 / 9; /* Maintain aspect ratio */
    }
    .text-slide {
        width: 100% !important;
    }
    
    #carousel-indicators {
        width: 100%;
    }
    
    #text-carousel {
        margin-left: 20px;
    }

    #text-carousel .text-slide div:first-child {
        font-size: 24px !important;
        width: 90%;
    }
    
    #text-carousel .text-slide div:last-child {
        font-size: 14px !important;
        width: 80%;
    }
    
    #controls svg {
        width: 50px;
        height: 50px;
    }
}
                

@media (max-width: 600px) {
  #controls svg {
    width: 50px;
    height: 50px;
    /* margin: 0 -25px; */
  }
}

#text-carousel {
    width: 800px;
    overflow: hidden;
    margin-top: -50px;
    position: relative;
    z-index: 0;
    transition: all 0.6s ease;

}
@media (min-width: 860px) and (max-height: 900px) {
    #text-carousel {
        margin-top: -60px;
    }
}
@media (min-width: 860px) and (max-height: 840px) {
    #text-carousel {
        margin-top: -70px;
    }
}
#text-track {
    display: flex;
    will-change: transform;
    gap: 60px;
}

@media (max-width: 900px) {
  #track {
    gap: 0;
  }
  
  #text-track {
    gap: 0;
  }

  /* to delete these two? */
  #track .slide {
    flex: 0 0 100% !important;
    width: 100% !important;
  }
  
  .text-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
  }
}

.text-slide {
    width: 800px;
    flex-shrink: 0;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
}

.text-slide > div {
    max-width: 630px;
}

#carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    position: absolute;
    bottom: 100px; /* Adjust this value to position where you want */
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    transition: all 0.6s ease;
}


@media (min-width: 860px) and (max-height: 950px) {
    #carousel-indicators {
        bottom: 80px;
    }
}
@media (min-width: 860px) and (max-height: 900px) {
    #carousel-indicators {
        bottom: 60px;
    }
}
@media (min-width: 860px) and (max-height: 880px) {
    #carousel-indicators {
        bottom: 50px;
    }
}
@media (min-width: 860px) and (max-height: 840px) {
    #carousel-indicators {
        bottom: 40px;
    }
}
@media (min-width: 860px) and (max-height: 810px) {
    #carousel-indicators {
        bottom: 30px;
    }
}

@media (max-width: 750px) and (max-height: 880px) {
    #carousel-indicators {
        bottom: 60px;
    }
}
@media (max-width: 750px) and (max-height: 800px) {
    #carousel-indicators {
        bottom: 40px;
    }
}
@media (max-width: 750px) and (max-height: 750px) {
    #carousel-indicators {
        bottom: 25px;
    }
}
@media (max-width: 750px) and (max-height: 705px) {
    #carousel-indicators {
        bottom: 10px;
    }
}

.indicator {
    height: 3px;
    width: 110px;
    background-color: #ccc;
    transition: width 0.5s ease, background-color 0.5s ease;
    cursor: pointer;
}

.indicator.active {
    width: 420px;
    background-color: #000;
}



/* ABOUT */

.more-about-itw {
  background-color: #f5f5f5;
  padding-top: 150px;
  padding-bottom: 180px;
  margin-top: -100px;
  margin-bottom: -210px;
}
.more-about-itw h2 {
  font-size: 48px;
}
.more-about-itw p {
  font-size: 21px;
}
.more-about-itw a {
  color: #000;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.more-about-itw i {
  font-size: 14px;
  padding-left: 5px;
}

.more-about-itw .container {
  max-width: 650px;
}


/* WORK */


/* To delete after new version */

.clientLogo {
  margin-top: 250px;
  padding-left: 220px;
}
@media screen and (max-width: 1700px) {.clientLogo {padding-left: 200px;} }
@media screen and (max-width: 1650px) {.clientLogo {padding-left: 170px;} }
@media screen and (max-width: 1600px) {.clientLogo {padding-left: 140px;} }
@media screen and (max-width: 1550px) {.clientLogo {padding-left: 120px;} }
@media screen and (max-width: 1480px) {.clientLogo {padding-left: 80px;} }
@media screen and (max-width: 1400px) {.clientLogo {padding-left: 50px;} }
@media screen and (max-width: 575px) {.clientLogo {margin-top: 0px; margin-bottom: 30px;  padding-left: 0px;
}
}



/* TESTIMONIALS */

.testimonials-sections {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-top: 100px;
}

.testimonials-sections div {
    margin-top: 120px;
}
.testimonials-sections p {
    line-height: 42px;
    font-size: 32px;
}
.testimonials-sections small {
    font-size: 16px;
}
/* 

        FOOTER
        
                    */


footer {
    margin-top: 150px;
    padding: 1rem;
    display: flex;
    align-items: center; 
    gap: 12px;
}

footer img {
    height: 25px;
}

footer small {
    font-size: 12px;
    margin-left: auto;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 8px;  
}

footer small a {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    color: #000;
    text-decoration: none !important;
}

footer small svg {
  display: block;
  width: 16px;
  height: 16px;
}



/* 
    ESSENTIALS
                */

::-moz-selection {
    background: #000;
    color: #fff;
    text-shadow: none;
}
::selection {
    background: #000;
    color: #fff;
    text-shadow: none;
}

.highlight {
    position: relative;
    display: inline;
    background-color: #000; 
    color: white;
    padding: 4px 4px; /* increased padding */
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone; /* for Safari */
}


/* Reusable link + arrow */
.with-arrow {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: inherit; /* arrow uses currentColor */
}

.with-arrow:hover {color: #000;}

.icon-arrow {
    --size: 20px;                 /* <-- two normal hyphens */
    display: inline-block;
    width: var(--size);
    height: var(--size);
    vertical-align: middle;
    will-change: transform, opacity;
    background: no-repeat center / contain;

    /* URL-encoded SVG to avoid quoting/dash issues */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.25' stroke-linecap='butt' stroke-linejoin='miter'%3E%3Cpath d='M4 17L17 4M4 4h13v13'/%3E%3C/svg%3E");
}

/* Animate the arrow when hovering the entire link */
.with-arrow:hover .icon-arrow {
    animation: arrow-takeoff 0.35s cubic-bezier(0.55, 0, 0.1, 1) forwards;
}

@keyframes arrow-takeoff {
    0%   { transform: translate(0, 0);     opacity: 1; }
    60%  { transform: translate(12px,-12px); opacity: 0.15; }
    61%  { transform: translate(-6px, 6px);  opacity: 0; }
    100% { transform: translate(0, 0);     opacity: 1; }
}

.icon-arrow-down {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-top: -15px;
    transition: transform 0.3s ease;
}

.with-arrow:hover .icon-arrow-down {
    transform: translateY(3px);
}

/* structure */
.container {
    width: 100%;
    padding-right: var(--bs-gutter-x, 0.75rem);
    padding-left: var(--bs-gutter-x, 0.75rem);
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1460px;
    }
}

.container-fluid {
    width: 100%;
    padding-right: var(--bs-gutter-x, 0.75rem);
    padding-left: var(--bs-gutter-x, 0.75rem);
    margin-right: auto;
    margin-left: auto;
}

.main-section {
    padding-top: 200px;
}
.main-section .title {
    font-size: 88px;
    font-weight: bold;
    letter-spacing: -2.5px;
    line-height: 100%;
    margin-bottom: 0px;
    max-width: 1200px;
    padding-left: 100px;
    transition: all 0.4s ease;

}
@media (max-width: 1200px) {
    .main-section .title {
        font-size: 78px;
        padding-left: 60px;
        max-width: 1000px;
    }
}
@media (max-width: 1050px) {
    .main-section .title {
        font-size: 68px;
        padding-left: 40px;
        max-width: 850px;
    }
}
@media (max-width: 900px) {
    .main-section .title {
        font-size: 62px;
        padding-left: 20px;
        letter-spacing: -2px;
        max-width: 800px;
    }
}
@media (max-width: 800px) {
    .main-section .title {
        font-size: 54px;
        max-width: 730px;
    }
}
@media (max-width: 700px) {
    .main-section .title {
        font-size: 52px;
        letter-spacing: -1.5px;
        max-width: 630px;
    }
}
@media (max-width: 628px) {
    .main-section .title {
        font-size: 42px;
        padding-left: 5px;
        max-width: 530px;
    }
}
/* @media (max-width: 550px) {
    .main-section .title {
        font-size: 36px;
        letter-spacing: -1px;
        max-width: 480px;
    }
}
@media (max-width: 480px) {
    .main-section .title {
        font-size: 32px;
        letter-spacing: -1px;
    }
} */

.main-section .subtitle {
    margin-top: 18px;
    font-size: 34px;
    letter-spacing: -1px;
    padding-left: 100px;
    transition: all 0.4s ease;
    max-width: 1200px;
}

@media (max-width: 1200px) {
    .main-section .subtitle {
        padding-left: 60px;
        font-size: 26px;
        letter-spacing: -.5px;
    }
}
@media (max-width: 1050px) {
    .main-section .subtitle {
        padding-left: 40px;
        font-size: 22px;
    }
}
@media (max-width: 900px) {
    .main-section .subtitle {
        padding-left: 20px;
    }
}
@media (max-width: 628px) {
    .main-section .subtitle {
        padding-left: 5px;
        font-size: 21px;
    }
}