/* Shared INKSPIRE enhancements. Loaded after page-specific styles. */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body.site-menu-open {
    overflow: hidden;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1100;
    padding: 10px 14px;
    color: #111;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    transform: translateY(-160%);
    transition: transform .2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

:where(a, button, input, textarea, select, video):focus-visible {
    outline: 3px solid #3f8cff;
    outline-offset: 4px;
}

.site-menu-toggle {
    position: relative;
    z-index: 1002;
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    color: currentColor;
    background: transparent;
    cursor: pointer;
}

.site-menu-toggle::before,
.site-menu-toggle::after,
.site-menu-toggle span {
    position: absolute;
    left: 10px;
    width: 24px;
    height: 2px;
    content: "";
    background: currentColor;
    transition: transform .25s ease, opacity .2s ease, top .25s ease;
}

.site-menu-toggle::before { top: 15px; }
.site-menu-toggle span { top: 21px; }
.site-menu-toggle::after { top: 27px; }

.navbar.light-header:not(.menu-open) .logo img {
    filter: none;
}

.navbar.menu-open {
    background: rgba(8, 8, 8, .98);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .12);
    backdrop-filter: blur(14px);
}

.navbar.menu-open .logo img {
    filter: none;
}

.navbar.menu-open .site-menu-toggle::before {
    top: 21px;
    transform: rotate(45deg);
}

.navbar.menu-open .site-menu-toggle span {
    opacity: 0;
}

.navbar.menu-open .site-menu-toggle::after {
    top: 21px;
    transform: rotate(-45deg);
}

body:not(.site-menu-open) [data-autoplay-video] {
    pointer-events: auto;
}

@media (max-width: 700px) {
    html {
        scroll-padding-top: 75px;
    }

    .navbar {
        height: 75px;
    }

    .site-menu-toggle {
        z-index: 1005;
        display: block;
        flex: 0 0 44px;
        margin-left: auto;
        visibility: visible;
        color: #fff;
        background: rgba(8, 8, 8, .78);
        border: 1px solid rgba(255, 255, 255, .45);
        border-radius: 50%;
        box-shadow: 0 4px 18px rgba(0, 0, 0, .22);
        opacity: 1;
        pointer-events: auto;
    }

    .navbar.light-header:not(.menu-open) .site-menu-toggle {
        color: #fff;
    }

    .navbar .site-navigation,
    .navbar nav {
        position: fixed;
        top: 75px !important;
        right: 0;
        left: 0;
        display: flex !important;
        height: calc(100dvh - 75px) !important;
        padding: 45px 25px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        visibility: hidden !important;
        background: rgba(8, 8, 8, .98);
        opacity: 0 !important;
        transform: translateY(-10px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }

    .navbar.menu-open .site-navigation,
    .navbar.menu-open nav {
        z-index: 1004;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .navbar .site-navigation a,
    .navbar nav a {
        padding: 18px 4px;
        border-bottom: 1px solid rgba(255, 255, 255, .14);
        font-size: 13px;
    }

    .navbar.light-header.menu-open .site-navigation a,
    .navbar.light-header.menu-open nav a,
    .navbar.menu-open .site-navigation a,
    .navbar.menu-open nav a {
        color: #fff;
    }

    .navbar.menu-open .site-navigation a,
    .navbar.menu-open nav a {
        position: relative;
        z-index: 1;
        visibility: visible !important;
        opacity: 1 !important;
        color: #fff;
    }

    .navbar.menu-open .logo,
    .navbar.menu-open .site-menu-toggle {
        color: #fff;
    }
}

@media (max-width: 480px) {
    .slide-one h1,
    .slide-two h2,
    .slide-three h2 {
        font-size: clamp(40px, 11.5vw, 48px);
        letter-spacing: -2px;
    }

    .hero-slide p {
        font-size: 8px;
        letter-spacing: 3px;
    }

    .company-hero-content h1 {
        font-size: clamp(48px, 15vw, 64px);
        letter-spacing: -3px;
    }

    .hero-slide {
        width: 94%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .vlog-track,
    .hero-sticky {
        animation: none !important;
    }
}



/* Submit button and response message */
.contact-page .submit-area-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    flex: 0 1 360px;
    min-width: 0;
}

.contact-page .submit-area-right .submit-button {
    align-self: flex-end;
}

.contact-page .submit-area-right .alert {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 13px 16px;
    font-size: 12px;
    line-height: 1.7;
    text-align: left;
}

@media (max-width: 700px) {
    .contact-page .submit-area-right {
        width: 100%;
        flex: auto;
        align-items: stretch;
    }

    .contact-page .submit-area-right .submit-button {
        width: 100%;
        align-self: stretch;
    }
}
/* ============ INQUIRY SUCCESS MODAL ============ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(17,17,17,.55);
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }

.modal-card {
  background: #fff;
  border-radius: 20px;
  padding: 44px 36px 32px;
  max-width: 440px; width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
  animation: modal-in .25s ease;
}
@keyframes modal-in {
  from { transform: translateY(18px) scale(.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-check {
  width: 62px; height: 62px;
  margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center;
  background: #e8f2e6; color: #2e7d32;
  border-radius: 50%;
  font-size: 26px;
}

.modal-card h3 {
  font-size: 1.5rem; letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.modal-card > p {
  color: var(--muted); font-size: .95rem;
  margin-bottom: 24px;
}

.modal-ref {
  background: var(--soft);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 24px;
}
.modal-ref small {
  display: block;
  font-size: 10.5px; letter-spacing: 2px; font-weight: 600;
  color: var(--muted); text-transform: uppercase;
  margin-bottom: 4px;
}
.modal-ref strong {
  font-size: 1.05rem; letter-spacing: .5px;
  font-family: "Consolas", "Courier New", monospace;
}

#inquiry-modal .modal-card { position: relative; }
#inquiry-modal .modal-ref { margin-bottom: 0; }
#inquiry-modal .modal-close {
  position: absolute; top: 10px; right: 10px;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: 0; padding: 0;
  background: transparent; border: 0; border-radius: 50%;
  color: #70746d; font: inherit; font-size: 28px; line-height: 1;
  text-decoration: none; cursor: pointer;
}
#inquiry-modal .modal-close:hover { color: #171916; background: #f1f3ed; }
#inquiry-modal .modal-close:focus-visible { outline: 2px solid #728765; outline-offset: 2px; }

body.modal-open { overflow: hidden; }

/* Confirmation remains visible until the sender closes it. */
#inquiry-modal[hidden] { display: none; }
#inquiry-modal #modal-message { line-height: 1.6; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
  #inquiry-modal .modal-card { animation: none; }
}

/* Larger, high-contrast confirmation text and a more generous reading area. */
#inquiry-modal { padding: 16px; }
#inquiry-modal .modal-card {
  max-width: 600px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 56px 48px 40px;
  color: #171916;
}
#inquiry-modal .modal-check {
  width: 76px; height: 76px;
  margin-bottom: 24px;
  font-size: 36px;
}
#inquiry-modal #modal-title {
  margin: 0 0 20px;
  font-size: 2rem;
  line-height: 1.25;
}
#inquiry-modal #modal-message {
  margin: 0 0 28px;
  font-size: 1.25rem;
  line-height: 1.65;
  color: #30372e;
}
#inquiry-modal #modal-message strong { color: #171916; }
#inquiry-modal .modal-ref {
  padding: 20px;
  background: #f3f5ef;
}
#inquiry-modal .modal-ref small {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: .06em;
  color: #454e40;
}
#inquiry-modal .modal-ref strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1.5;
  letter-spacing: 0;
  color: #171916;
  overflow-wrap: anywhere;
}
#inquiry-modal .modal-close {
  top: 12px; right: 12px;
  width: 48px; height: 48px;
  font-size: 34px;
  color: #30372e;
}
@media (max-width: 600px) {
  #inquiry-modal .modal-card { padding: 64px 22px 28px; }
  #inquiry-modal #modal-title { font-size: 1.875rem; }
  #inquiry-modal #modal-message { font-size: 1.125rem; }
  #inquiry-modal .modal-ref { padding: 18px 12px; }
  #inquiry-modal .modal-ref strong { font-size: 1.125rem; }
}

/* Show media and hover-brightened text at full color without needing a pointer. */
.company-about-image img,
.company-about-image:hover img,
.client-logo img,
.client-logo:hover img,
.roll-photo img,
.roll-photo:hover img,
.machine-image img,
.machine:hover img,
.contact-map iframe,
.contact-map:hover iframe,
.contact-page .map-wrap iframe {
  filter: none;
}
.client-logo img,
.client-logo:hover img,
.logo img,
.logo:hover img,
.footer-logo img,
.footer-logo:hover img,
.viewer-close,
.viewer-close:hover {
  opacity: 1;
}
.navbar nav a,
.intro-services span,
.footer-contact a,
.footer-facebook,
.footer-meta a {
  color: #fff;
}
.navbar.light-header nav a { color: #111; }
.capability-see-more { color: #000; }
