/* Generated by App\Support\AssetBundle. Edit the source files in public/static. */

/* === base.css === */
/* --- GLOBAL RESET & VARIABLES --- */
:root {
    --tdt-orange: #E67026;
    --tdt-orange-hover: #C55618;
    --tdt-dark: #111010;
    --tdt-gray-dark: #2F2D30;
    --tdt-gray: #717074;
    --tdt-gray-light: #A6A6A8;
    --tdt-bg-light: #F9FAFB;
    
    --font-bebas: 'Bebas Neue', sans-serif;
    --font-montserrat: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto; /* Disabled for manual JS physics control */
    overflow-x: clip;
    max-width: 100%;
}/* --- GLOBAL RESET & VARIABLES --- */
:root {
    --tdt-orange: #E67026;
    --tdt-orange-hover: #C55618;
    --tdt-dark: #111010;
    --tdt-gray-dark: #2F2D30;
    --tdt-gray: #717074;
    --tdt-gray-light: #A6A6A8;
    --tdt-bg-light: #F9FAFB;
    
    --font-bebas: 'Bebas Neue', sans-serif;
    --font-montserrat: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto; /* Disabled for manual JS physics control */
    overflow-x: clip;
    max-width: 100%;
}

body {
    font-family: var(--font-montserrat);
    color: var(--tdt-dark);
    background-color: #fdfdfd;
    overflow-x: clip;
    max-width: 100%;
    background-image: 
        linear-gradient(rgba(113, 112, 116, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(113, 112, 116, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    line-height: 1.6;
}

h1, h2, h3, .section-title {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1.5px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
/* --- SECTION HEADERS --- */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    color: var(--tdt-orange);
    font-family: var(--font-montserrat);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-bebas);
    font-size: 48px;
    color: var(--tdt-dark);
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.accent-line {
    width: 60px;
    height: 4px;
    background-color: var(--tdt-orange);
    margin: 15px auto 0 auto;
}
/* --- EXPLORE PRODUCTS --- */
.btn-dark {
    background: transparent;
    color: var(--tdt-gray);
    border: 2px solid var(--tdt-orange);
    padding: 12px 26px;
    border-radius: 4px;
    font-family: var(--font-montserrat);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.1em;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.btn-dark:hover {
    background-color: var(--tdt-orange);
    color: #ffffff;
    transform: translateY(-2px);
}
/* --- VIEW CATALOGUE --- */
.btn-outline-dark {
    background: transparent;
    color: var(--tdt-gray);
    border: 2px solid var(--tdt-orange);
    padding: 12px 26px;
    border-radius: 4px;
    font-family: var(--font-montserrat);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.1em;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.btn-outline-dark:hover {
    background-color: var(--tdt-orange);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-orange-sm {
    background-color: var(--tdt-orange);
    color: #ffffff;
    padding: 10px 18px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-montserrat);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-orange-sm:hover {
    background-color: var(--tdt-orange-hover);
}

.btn-orange {
    background-color: var(--tdt-orange);
    color: #ffffff;
    padding: 14px 30px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-montserrat);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.08em;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s;
}

.btn-orange:hover {
    background-color: var(--tdt-orange-hover);
}
/* --- FORM ELEMENTS GLOBAL --- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 11px;
    font-weight: 800;
    color: var(--tdt-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 9px 12px;
    border: 1px solid rgba(113, 112, 116, 0.3);
    border-radius: 4px;
    font-family: var(--font-montserrat);
    font-size: 14px;
    background-color: #ffffff;
    color: var(--tdt-dark);
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--tdt-orange);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 576px) {
    .form-row-2 {
        grid-template-columns: 1fr 1fr;
    }
}
/* --- BUTTON LOADING SPINNER --- */
.submit-btn {
    position: relative; /* Required to center the spinner absolute */
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* When loading is active, make the text invisible but keep the button size */
.submit-btn.loading {
    color: transparent !important; 
    pointer-events: none; /* Disable clicking while loading */
    cursor: not-allowed;
}

/* Create the spinning wheel */
.submit-btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px; /* Center perfectly vertically */
    margin-left: -10px; /* Center perfectly horizontally */
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff; /* White spinning indicator */
    
    /* Cross-browser support for animation */
    -webkit-animation: spin 0.8s linear infinite;
    animation: spin 0.8s linear infinite;
}

/* Spinner rotation keyframes (with webkit prefix for full support) */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* =========================================
   SHARED SCROLL-REVEAL (fade + rise into view)
   Toggled by an IntersectionObserver script that
   adds/removes .revealed as elements enter/leave
   the viewport. Site-wide, any page can use it.
========================================= */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

body {
    font-family: var(--font-montserrat);
    color: var(--tdt-dark);
    background-color: #fdfdfd;
    overflow-x: clip;
    max-width: 100%;
    background-image: 
        linear-gradient(rgba(113, 112, 116, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(113, 112, 116, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    line-height: 1.6;
}

h1, h2, h3, .section-title {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1.5px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
/* --- SECTION HEADERS --- */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    color: var(--tdt-orange);
    font-family: var(--font-montserrat);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-bebas);
    font-size: 48px;
    color: var(--tdt-dark);
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.accent-line {
    width: 60px;
    height: 4px;
    background-color: var(--tdt-orange);
    margin: 15px auto 0 auto;
}
/* --- EXPLORE PRODUCTS --- */
.btn-dark {
    background: transparent;
    color: var(--tdt-gray);
    border: 2px solid var(--tdt-orange);
    padding: 12px 26px;
    border-radius: 4px;
    font-family: var(--font-montserrat);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.1em;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.btn-dark:hover {
    background-color: var(--tdt-orange);
    color: #ffffff;
    transform: translateY(-2px);
}
/* --- VIEW CATALOGUE --- */
.btn-outline-dark {
    background: transparent;
    color: var(--tdt-gray);
    border: 2px solid var(--tdt-orange);
    padding: 12px 26px;
    border-radius: 4px;
    font-family: var(--font-montserrat);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.1em;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.btn-outline-dark:hover {
    background-color: var(--tdt-orange);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-orange-sm {
    background-color: var(--tdt-orange);
    color: #ffffff;
    padding: 10px 18px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-montserrat);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-orange-sm:hover {
    background-color: var(--tdt-orange-hover);
}

.btn-orange {
    background-color: var(--tdt-orange);
    color: #ffffff;
    padding: 14px 30px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-montserrat);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.08em;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s;
}

.btn-orange:hover {
    background-color: var(--tdt-orange-hover);
}
/* --- FORM ELEMENTS GLOBAL --- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 11px;
    font-weight: 800;
    color: var(--tdt-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 9px 12px;
    border: 1px solid rgba(113, 112, 116, 0.3);
    border-radius: 4px;
    font-family: var(--font-montserrat);
    font-size: 14px;
    background-color: #ffffff;
    color: var(--tdt-dark);
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--tdt-orange);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 576px) {
    .form-row-2 {
        grid-template-columns: 1fr 1fr;
    }
}
/* --- BUTTON LOADING SPINNER --- */
.submit-btn {
    position: relative; /* Required to center the spinner absolute */
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* When loading is active, make the text invisible but keep the button size */
.submit-btn.loading {
    color: transparent !important; 
    pointer-events: none; /* Disable clicking while loading */
    cursor: not-allowed;
}

/* Create the spinning wheel */
.submit-btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px; /* Center perfectly vertically */
    margin-left: -10px; /* Center perfectly horizontally */
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff; /* White spinning indicator */
    
    /* Cross-browser support for animation */
    -webkit-animation: spin 0.8s linear infinite;
    animation: spin 0.8s linear infinite;
}

/* Spinner rotation keyframes (with webkit prefix for full support) */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* === header.css === */
/* --- TOP UTILITY BAR --- */
.top-bar {
    background-color: #ffffff;
    color: var(--tdt-gray-dark);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 8px 0;
    border-bottom: 3px solid var(--tdt-orange);
}

.top-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-right {
    display: flex;
    gap: 20px;
}

/* --- MAIN HEADER/NAVBAR --- */
.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(113, 112, 116, 0.15);
    padding: 15px 0;
    position: sticky;
    top: 0;
    left: 0; /* Ensures it starts at the very left edge */
    width: 100%; /* Forces it to span the whole screen instantly */
    z-index: 9999; /* BOOSTED Z-INDEX: Prevents it from hiding behind the Home section */
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    transition: padding 0.3s ease, background-color 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hides the header while the "Request a Quote" modal is open, on every
   page site-wide (this file is loaded everywhere, unlike widgets.css /
   subcategory.css which only some pages use). Toggled by script.js. */
body.quote-modal-open #mainHeader {
    visibility: hidden;
}

.logo-group {
    display: flex;
    flex-direction: column;
    flex-shrink: 0; 
    margin-right: 40px; 
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.logo {
    font-family: var(--font-bebas);
    font-size: 30px;
    line-height: 1;
    letter-spacing: 0.02em;
    max-width: 100%;
}

/* Logo image: kept crisp on desktop, capped on mobile so it can never
   grow wider than the header and push the hamburger off-screen */
.site-logo {
    height: 50px;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

.logo-tdt {
    color: var(--tdt-dark);
}

.logo-steel {
    color: var(--tdt-orange);
}

.logo-subtitle {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--tdt-gray);
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-overlay {
    display: none;
}

.nav-links a {
    color: var(--tdt-gray);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
    transition: color 0.3s, border-bottom 0.2s ease-in-out;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--tdt-orange) !important;
    border-bottom: 2px solid var(--tdt-orange);
}

/* --- PRODUCTS DROPDOWN --- */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 2px;
    background: transparent;
    border: 0;
    color: var(--tdt-gray);
    cursor: pointer;
}

.nav-dropdown-toggle i {
    font-size: 10px;
    transition: transform 0.2s ease-in-out;
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown.open .nav-dropdown-toggle {
    color: var(--tdt-orange);
}

.nav-dropdown:hover .nav-dropdown-toggle i,
.nav-dropdown.open .nav-dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: -14px;
    z-index: 130;
    min-width: 230px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #ffffff;
    border: 1px solid rgba(113, 112, 116, 0.15);
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* Invisible bridge so moving the pointer across the 10px gap does not
   close the panel before it can be reached. */
.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links .nav-dropdown-menu a {
    display: block;
    padding: 10px 18px;
    font-size: 12px;
    line-height: 1.35;
    white-space: normal;
    border-bottom: 0;
}

.nav-links .nav-dropdown-menu a:hover,
.nav-links .nav-dropdown-menu a:focus-visible {
    color: var(--tdt-orange) !important;
    background: #fdf1ea;
    border-bottom: 0;
}

.nav-links .nav-dropdown-menu .nav-dropdown-all {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid rgba(113, 112, 116, 0.15);
    font-weight: 800;
}

.btn-quote-header {
    background-color: var(--tdt-orange);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 10px 24px;
    font-family: var(--font-montserrat);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-quote-header:hover {
    background-color: var(--tdt-orange-hover);
}

/* --- MOBILE HAMBURGER STYLING --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 10px 9px;
    background: #ffffff;
    border: 1.5px solid rgba(113, 112, 116, 0.25);
    border-radius: 6px;
    cursor: pointer;
    z-index: 110;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.menu-toggle:hover {
    border-color: var(--tdt-orange);
}

.menu-toggle .bar {
    height: 2px;
    width: 100%;
    background-color: var(--tdt-dark);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

/* Raised from 991px to 1199px: at ~1024px (iPad Pro / Nest Hub width) the
   desktop nav no longer has room for all 6 links + logo, so link labels
   were wrapping onto two lines ("ABOUT US" -> "ABOUT" / "US"). Tablets in
   the 992-1199px range now get the same clean hamburger nav as phones
   instead of a squeezed, wrapping desktop nav. */
@media (max-width: 1199px) {
    /* Address / phone / hours bar takes up prime real estate on a small
       screen for info that's rarely the reason someone's on mobile —
       drop it and let the header start right at the logo. */
    .top-bar {
        display: none;
    }

    .nav-container {
        flex-wrap: nowrap;
        padding: 0 16px;
    }

    .logo-group {
        flex: 1 1 auto;
        min-width: 0;
        margin-right: 15px;
    }

    .site-logo {
        height: auto;
        max-height: 30px;
        width: auto;
        max-width: 100%;
    }

    .menu-toggle {
        display: flex;
        flex-shrink: 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #ffffff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 30px 30px 30px;
        gap: 25px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 105;
    }

    .nav-links.mobile-active {
        right: 0;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.45);
        z-index: 104;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 16px;
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid rgba(113, 112, 116, 0.1);
    }

    .nav-links a:hover,
    .nav-links a.active {
        border-bottom: 2px solid transparent;
    }

    .nav-dropdown {
        width: 100%;
        flex-wrap: wrap;
        gap: 0;
        border-bottom: 1px solid rgba(113, 112, 116, 0.1);
    }

    .nav-links .nav-dropdown-link {
        flex: 1 1 auto;
        width: auto;
        border-bottom: 0;
        padding: 10px 0;
    }

    .nav-dropdown-toggle {
        padding: 10px 12px;
    }

    .nav-dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0 0 8px 14px;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-menu::before {
        display: none;
    }

    .nav-links .nav-dropdown-menu a {
        width: 100%;
        padding: 9px 0;
        font-size: 14px;
        border-bottom: 0;
    }

    .nav-links .nav-dropdown-menu .nav-dropdown-all {
        margin-top: 0;
        padding-top: 9px;
        border-top: 0;
    }

    .btn-quote-header {
        width: 100%;
        margin-top: 15px;
        text-align: center;
    }

    .menu-toggle.open {
        border-color: var(--tdt-orange);
    }

    .menu-toggle.open .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        background-color: var(--tdt-orange);
    }

    .menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
        background-color: var(--tdt-orange);
    }
}

@media (max-width: 480px) {
    .site-logo {
        max-height: 26px;
    }
}

/* --- GRAY TEXT OVERRIDES --- */
.top-bar {
    color: #717074 !important; 
}

.nav-links a {
    color: #717074 !important;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--tdt-orange) !important;
}

/* === hero.css === */
/* --- HERO SECTION --- */
.hero-section {
    min-height: 100vh;
    padding: 140px 0 80px 0;
    background: #e67026;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
}

/* --- GRID LINES OVERLAY --- */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* --- DECORATIVE CIRCLES --- */
.hero-circles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hc {
    position: absolute;
    border-radius: 50%;
}

/* Large white circle - top right */
.hc-1 {
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, 0.1);
    top: -60px;
    right: -80px;
}

/* Medium darker orange circle - bottom left */
.hc-2 {
    width: 200px;
    height: 200px;
    background: rgba(0, 0, 0, 0.08);
    bottom: -40px;
    left: -50px;
}

/* Small white ring - mid left */
.hc-3 {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    top: 40%;
    left: 8%;
}

/* Tiny white dot - top center */
.hc-4 {
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.3);
    top: 20%;
    left: 45%;
}

/* Medium white dot - bottom right */
.hc-5 {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    bottom: 25%;
    right: 12%;
}

/* --- HERO SLIDESHOW --- */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product name label on each slide */
.hero-slide-label {
    position: absolute;
    bottom: 5%;
    right: 3%;
    font-family: var(--font-bebas);
    font-size: 120px;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 4px;
    text-transform: uppercase;
    pointer-events: none;
    white-space: nowrap;
}

/* Dark gradient overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0.15) 100%
    );
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 991px) {
    .hc-1 { width: 200px; height: 200px; top: -40px; right: -60px; }
    .hc-2 { width: 140px; height: 140px; bottom: -30px; left: -40px; }
    .hc-3 { width: 50px; height: 50px; left: 4%; }
    .hc-5 { display: none; }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.hero-badge {
    background-color: rgba(230, 112, 38, 0.9);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-bebas);
    font-size: 76px;
    line-height: 1.05;
    margin-bottom: 20px;
    letter-spacing: 0.01em;
    color: #ffffff;
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 56px;
    }

    /* Pull content up closer to the header instead of leaving a big
       empty gap, and center the badge/title/description/stats. */
    .hero-section {
        padding: 24px 0 60px 0;
    }

    .hero-left {
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 38px;
    }

    .hero-stats {
        flex-wrap: wrap;
        row-gap: 20px;
        /* With centering + wrap, 2 stats land on the first row and the
           3rd centers on its own row below — an "upside-down triangle". */
    }
}

.hero-title .highlight {
    color: #e67026;
}

.hero-desc {
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 550px;
}

/* Hero buttons - white bg + orange text */
.hero-actions .btn-dark,
.hero-actions .btn-outline-dark {
    background-color: #ffffff;
    color: #e67026;
    border-color: #ffffff;
}

.hero-actions .btn-dark:hover,
.hero-actions .btn-outline-dark:hover {
    background-color: #e67026;
    color: #ffffff;
    border-color: #e67026;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 45px;
}

/* Stats Row */
.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(230, 112, 38, 0.4);
    padding-top: 30px;
}

.stat-item h3 {
    font-family: var(--font-bebas);
    font-size: 32px;
    color: #e67026;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 10px;
    font-weight: 800;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.05em;
}
/* --- HERO RIGHT: REQUEST A QUOTE CARD --- */
.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.quote-form-card {
    background-color: #ffffff; /* Dark charcoal card background */
    border-left: 4px solid #e67026; /* Orange accent line on the side like your mockup */
    border-radius: 8px;
    padding: 25px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

/* Card Header */
.card-header-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333333;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.card-header-form h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    letter-spacing: 1.5px;
    color: #717074;
    margin: 0;
}

.card-header-form .cat-year {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 11px;
    color: #e67026;
    letter-spacing: 1px;
}

/* Form Inputs styling */
.hero-quote-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group-hero input,
.form-group-hero textarea,
.form-group-hero select {
    width: 100%;
    padding: 12px 15px;
    background-color: #dcdcdc; /* Light gray input background based on your mockup */
    border: none;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #121010;
    font-weight: 500;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Placeholder color styling */
.form-group-hero input::placeholder,
.form-group-hero textarea::placeholder {
    color: #666666;
}

/* Focus state for inputs */
.form-group-hero input:focus,
.form-group-hero textarea:focus,
.form-group-hero select:focus {
    outline: none;
    background-color: #ffffff; /* Becomes pure white when focused */
    box-shadow: 0 0 0 2px #e67026;
}

/* Resizing for Textarea */
.form-group-hero textarea {
    resize: none;
}

/* Orange Submit Button */
.btn-submit-hero {
    background-color: #e67026; /* Brand orange */
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    text-transform: uppercase;
    width: 100%;
}

.btn-submit-hero:hover {
    background-color: #e15716;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 112, 38, 0.4);
}

.btn-submit-hero:active {
    transform: translateY(0);
}

.preview-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.p-item {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.p-icon {
    font-size: 24px;
}

.p-item h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.p-item p {
    font-size: 12px;
    color: var(--tdt-gray-light);
}

.card-footer-note {
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    padding-top: 20px;
    font-size: 11px;
    color: var(--tdt-gray-light);
    line-height: 1.6;
}

/* =========================================
   HERO ENTRANCE TRANSITIONS
   Toggled by the IntersectionObserver script
   at the bottom of index.html (adds/removes
   .revealed as the hero scrolls in/out of view).
========================================= */

/* LEFT SIDE — "sliding door": panel slides in from the left and settles */
.reveal-slide-door {
    opacity: 0;
    transform: translateX(-90px);
    transition: opacity 0.8s cubic-bezier(0.22, 0.9, 0.3, 1), transform 0.8s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.reveal-slide-door.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* RIGHT SIDE — "dealt like a card": slides in from the side at an angle,
   then rotates flat into place, like a playing card being dealt onto a table */
.reveal-card-deal {
    opacity: 0;
    transform: translateX(120px) translateY(-25px) rotate(10deg);
    transition: opacity 0.8s cubic-bezier(0.34, 1.35, 0.5, 1), transform 0.8s cubic-bezier(0.34, 1.35, 0.5, 1);
}

.reveal-card-deal.revealed {
    opacity: 1;
    transform: translateX(0) translateY(0) rotate(0deg);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-slide-door,
    .reveal-card-deal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --- CLOSING SLIDING DOOR EFFECT --- */

/* Parent Container Fix (so there's no horizontal scrollbar) */
.hero-section {
    overflow: hidden;
}

/* Left door: Hidden outside to the left (-100%) */
.slide-door-left {
    opacity: 0;
    transform: translateX(-100%);
    transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
    will-change: transform, opacity;
}

/* Right door: Hidden outside to the right (+100%) */
.slide-door-right {
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
    will-change: transform, opacity;
}

/* Will close / meet in the center (0) when entering the viewport */
.slide-door-left.revealed,
.slide-door-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================
   MOBILE: "REQUEST A QUOTE" BECOMES A BUTTON
   Desktop (>=992px) is completely untouched —
   the card stays inline exactly as before.
   Below 992px (where the hero grid already
   stacks to one column) the card is hidden
   until the button opens it as a popup.
========================================= */

/* Trigger button: hidden on desktop */
.hero-quote-mobile-btn {
    display: none;
}

/* Close button inside the card: hidden on desktop */
.hero-quote-close {
    display: none;
}

@media (max-width: 991px) {
    /* Center the Refer a Project / View Catalogue / Request a Quote
       buttons as a stack, instead of them sitting left-aligned. */
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions > a,
    .hero-actions > button {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .hero-actions .btn-dark.hero-quote-mobile-btn,
    .hero-actions button.hero-quote-mobile-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        order: -1;
        background-color: #e67026 !important;
        color: #ffffff !important;
        border-color: #e67026 !important;
    }

    .hero-actions .btn-dark.hero-quote-mobile-btn:hover,
    .hero-actions button.hero-quote-mobile-btn:hover {
        background-color: #e15716 !important;
        border-color: #e15716 !important;
        color: #ffffff !important;
    }

    /* On mobile, Refer a Project and View Catalogue get white bg + orange text
       so they contrast with the orange-filled Request a Quote primary button. */
    .hero-actions .btn-dark,
    .hero-actions .btn-outline-dark {
        background-color: #ffffff;
        color: #e67026;
        border-color: #ffffff;
    }

    .hero-actions .btn-dark:hover,
    .hero-actions .btn-outline-dark:hover {
        background-color: #e67026;
        color: #ffffff;
        border-color: #e67026;
    }

    /* The card becomes a centered popup instead of an inline block.
       Specificity matches (and is later in the cascade than) the
       .slide-door-right.revealed rule above, so this wins even
       after the scroll-in animation marks it "revealed". */
    .hero-right.slide-door-right {
        position: fixed;
        inset: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 24px;
        background-color: rgba(17, 16, 16, 0.7);
        backdrop-filter: blur(4px);
        opacity: 0;
        pointer-events: none;
        transform: none;
        transition: opacity 0.3s ease;
        z-index: 10000;
        box-sizing: border-box;
    }

    .hero-right.slide-door-right.mobile-quote-active {
        opacity: 1;
        pointer-events: auto;
    }

    .quote-form-card {
        position: relative;
        max-height: 85vh;
        overflow-y: auto;
        transform: translateY(-20px);
        transition: transform 0.3s ease;
    }

    .hero-right.mobile-quote-active .quote-form-card {
        transform: translateY(0);
    }

    .card-header-form {
        position: relative;
    }

    .hero-quote-close {
        display: block;
        position: absolute;
        top: -6px;
        right: 0;
        background: none;
        border: none;
        font-size: 28px;
        line-height: 1;
        color: #717074;
        cursor: pointer;
        padding: 4px;
    }

    .hero-quote-close:hover {
        color: #e67026;
    }
}

@media (max-width: 991px) {
    .hero-slide-label {
        font-size: 60px;
        bottom: 3%;
        right: 2%;
    }
}

@media (max-width: 576px) {
    .hero-slide-label {
        font-size: 40px;
    }
}

/* === faq.css === */
/* --- FAQ SECTION --- */
.faq-section {
    padding: 100px 0;
    background-color: #ffffff;
    border-top: 1px solid rgba(113, 112, 116, 0.1);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid rgb(232, 232, 232);
    border-radius: 4px;
    background: var(--tdt-bg-light);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px;
    text-align: left;
    font-family: var(--font-montserrat);
    font-weight: 700;
    font-size: 15px;
    /* Cleaned up duplicate color declarations; enforcing gray */
    color: #747170; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    outline: none;
}

.faq-icon {
    transition: transform 0.3s;
    font-size: 20px;
    color: var(--tdt-orange);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #ffffff;
}

.faq-answer p {
    padding: 0 20px 20px 20px;
    font-size: 14px;
    color: var(--tdt-gray);
    margin: 0;
}

.section-title {
    /* Explicitly setting to gray to replace the black heading text */
    color: #747170; 
}

.section-title span {
    color: var(--tdt-orange);
}

/* --- RIDDLER QUESTION MARK PATTERN --- */
.faq-section {
    position: relative;
    overflow: hidden;
}

.faq-section .container {
    position: relative;
    z-index: 1;
}

.faq-accordion {
    position: relative;
}

/* Scattered single "?" marks using pseudo-elements */
.faq-section::before {
    content: "?";
    position: absolute;
    font-family: var(--font-bebas);
    font-size: 140px;
    color: var(--tdt-orange);
    opacity: 0.07;
    pointer-events: none;
    user-select: none;
    top: 30px;
    left: 40px;
    transform: rotate(-18deg);
}

.faq-section::after {
    content: "?";
    position: absolute;
    font-family: var(--font-bebas);
    font-size: 100px;
    color: var(--tdt-orange);
    opacity: 0.06;
    pointer-events: none;
    user-select: none;
    bottom: 50px;
    right: 60px;
    transform: rotate(14deg);
}

.faq-accordion::before {
    content: "?";
    position: absolute;
    font-family: var(--font-bebas);
    font-size: 90px;
    color: var(--tdt-orange);
    opacity: 0.05;
    pointer-events: none;
    user-select: none;
    top: -40px;
    left: -50px;
    transform: rotate(22deg);
}

.faq-accordion::after {
    content: "?";
    position: absolute;
    font-family: var(--font-bebas);
    font-size: 110px;
    color: var(--tdt-orange);
    opacity: 0.06;
    pointer-events: none;
    user-select: none;
    bottom: -30px;
    right: -40px;
    transform: rotate(-12deg);
}

.faq-item:nth-child(1)::before {
    content: "?";
    position: absolute;
    font-family: var(--font-bebas);
    font-size: 60px;
    color: var(--tdt-orange);
    opacity: 0.05;
    pointer-events: none;
    user-select: none;
    top: -10px;
    right: 80px;
    transform: rotate(10deg);
}

.faq-item:nth-child(2)::before {
    content: "?";
    position: absolute;
    font-family: var(--font-bebas);
    font-size: 70px;
    color: var(--tdt-orange);
    opacity: 0.04;
    pointer-events: none;
    user-select: none;
    bottom: 5px;
    left: 100px;
    transform: rotate(-20deg);
}

.faq-item:nth-child(3)::before {
    content: "?";
    position: absolute;
    font-family: var(--font-bebas);
    font-size: 55px;
    color: var(--tdt-orange);
    opacity: 0.05;
    pointer-events: none;
    user-select: none;
    top: 50%;
    right: -20px;
    transform: rotate(25deg);
}

.faq-item:nth-child(4)::before {
    content: "?";
    position: absolute;
    font-family: var(--font-bebas);
    font-size: 80px;
    color: var(--tdt-orange);
    opacity: 0.04;
    pointer-events: none;
    user-select: none;
    top: 20px;
    left: -30px;
    transform: rotate(-8deg);
}

.faq-item:nth-child(5)::before {
    content: "?";
    position: absolute;
    font-family: var(--font-bebas);
    font-size: 65px;
    color: var(--tdt-orange);
    opacity: 0.05;
    pointer-events: none;
    user-select: none;
    bottom: -5px;
    right: 120px;
    transform: rotate(16deg);
}

.faq-item {
    position: relative;
}

/* --- EXTRA SCATTERED QUESTION MARKS --- */
.faq-marks {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.faq-marks span {
    position: absolute;
    font-family: var(--font-bebas);
    color: var(--tdt-orange);
    user-select: none;
}

.faq-marks span:nth-child(1)  { font-size: 50px;  top: 5%;   left: 8%;   opacity: 0.05; transform: rotate(-22deg); }
.faq-marks span:nth-child(2)  { font-size: 90px;  top: 12%;  right: 12%; opacity: 0.06; transform: rotate(17deg); }
.faq-marks span:nth-child(3)  { font-size: 35px;  top: 25%;  left: 3%;   opacity: 0.04; transform: rotate(30deg); }
.faq-marks span:nth-child(4)  { font-size: 70px;  top: 8%;   left: 55%;  opacity: 0.05; transform: rotate(-10deg); }
.faq-marks span:nth-child(5)  { font-size: 45px;  top: 35%;  right: 5%;  opacity: 0.06; transform: rotate(24deg); }
.faq-marks span:nth-child(6)  { font-size: 100px; top: 15%;  left: 25%;  opacity: 0.04; transform: rotate(-5deg); }
.faq-marks span:nth-child(7)  { font-size: 55px;  top: 42%;  left: 10%;  opacity: 0.05; transform: rotate(12deg); }
.faq-marks span:nth-child(8)  { font-size: 80px;  top: 50%;  right: 18%; opacity: 0.05; transform: rotate(-28deg); }
.faq-marks span:nth-child(9)  { font-size: 40px;  top: 55%;  left: 45%;  opacity: 0.04; transform: rotate(8deg); }
.faq-marks span:nth-child(10) { font-size: 65px;  top: 60%;  left: 2%;   opacity: 0.06; transform: rotate(-15deg); }
.faq-marks span:nth-child(11) { font-size: 110px; top: 30%;  left: 60%;  opacity: 0.04; transform: rotate(20deg); }
.faq-marks span:nth-child(12) { font-size: 45px;  top: 68%;  right: 8%;  opacity: 0.05; transform: rotate(-32deg); }
.faq-marks span:nth-child(13) { font-size: 75px;  top: 72%;  left: 15%;  opacity: 0.05; transform: rotate(14deg); }
.faq-marks span:nth-child(14) { font-size: 55px;  top: 45%;  left: 70%;  opacity: 0.04; transform: rotate(-18deg); }
.faq-marks span:nth-child(15) { font-size: 85px;  top: 78%;  right: 25%; opacity: 0.06; transform: rotate(6deg); }
.faq-marks span:nth-child(16) { font-size: 35px;  top: 85%;  left: 5%;   opacity: 0.04; transform: rotate(26deg); }
.faq-marks span:nth-child(17) { font-size: 60px;  top: 88%;  left: 50%;  opacity: 0.05; transform: rotate(-8deg); }
.faq-marks span:nth-child(18) { font-size: 95px;  top: 20%;  left: 80%;  opacity: 0.05; transform: rotate(11deg); }
.faq-marks span:nth-child(19) { font-size: 40px;  top: 92%;  right: 5%;  opacity: 0.04; transform: rotate(-25deg); }
.faq-marks span:nth-child(20) { font-size: 70px;  top: 38%;  left: 35%;  opacity: 0.05; transform: rotate(19deg); }

/* === projects.css === */
/* =========================================
   COMPLETED PROJECTS / CLIENT CASE STUDIES
   (Home page section, shown before FAQ)
========================================= */

.projects-section {
    background-color: var(--tdt-bg-light, #f9fafb);
    padding: 90px 0;
    border-top: 1px solid rgba(113, 112, 116, 0.1);
}

.projects-section .section-title span {
    color: var(--tdt-orange);
}

.projects-intro {
    max-width: 620px;
    margin: 18px auto 0 auto;
    font-family: var(--font-montserrat);
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--tdt-gray);
}

.projects-carousel {
    overflow: hidden;
    width: 100%;
    margin-top: 20px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}

.projects-track {
    display: flex;
    width: max-content;
    animation: projectsScroll 30s linear infinite;
}

@media (hover: hover) and (pointer: fine) {
    .projects-carousel:hover .projects-track {
        animation-play-state: paused;
    }
}

@keyframes projectsScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .projects-track {
        animation: none;
    }
}

.project-card {
    flex: 0 0 auto;
    width: 270px;
    margin-right: 24px;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(17, 16, 16, 0.06);
    border: 1px solid rgba(113, 112, 116, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 480px) {
    .project-card {
        width: 230px;
    }
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(17, 16, 16, 0.12);
}

.project-img-container {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background-color: var(--tdt-orange);
    color: #ffffff;
    font-family: var(--font-montserrat);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 3px;
}

.project-info {
    padding: 22px;
}

.project-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-montserrat);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tdt-gray-light, #a6a6a8);
    margin-bottom: 10px;
}

.project-location i {
    color: var(--tdt-orange);
    font-size: 11px;
}

.project-info h3 {
    font-family: var(--font-bebas);
    font-size: 22px;
    letter-spacing: 0.02em;
    color: var(--tdt-gray);
    line-height: 1.15;
    margin-bottom: 10px;
}

.project-info p {
    font-family: var(--font-montserrat);
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--tdt-gray);
    margin-bottom: 14px;
}



/* === products.css === */
/* =========================================================
   products.css
   Page-specific styles — the reset/variables/header/footer
   come from base.css / header.css / footer.css, but the
   Products page banner (background photo, grid overlay,
   breadcrumb, highlight color) needs its own rules here
   since subpages.css doesn't cover this exact banner look.
   ========================================================= */

/* --- PRODUCTS PAGE: BANNER --- */
.page-banner {
    position: relative;
    background-color: var(--tdt-gray-dark);
    background-image:
        linear-gradient(rgba(17, 16, 16, 0.62), rgba(17, 16, 16, 0.75)),
        var(--banner-img, url('images/TDT\ Power\ Steel\ Products\ v2.jpg'));
    background-size: cover;
    background-position: center;
    padding: 170px 0 90px 0;
    overflow: hidden;
}

/* Category pages (columns-beams, hardware, plates-sheets, steel-bars,
   tubes-pipes, wiremesh) use this on top of .page-banner so their
   overlay opacity can be tuned independently from products.html's. */
.page-banner.subcat-page-banner {
    background-image:
        linear-gradient(rgba(17, 16, 16, 0.55), rgba(17, 16, 16, 0.68)),
        var(--banner-img, url('images/TDT\ Power\ Steel\ Products\ v2.jpg'));
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(230, 112, 38, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(230, 112, 38, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

/* Products' banner is left-aligned, unlike the centered banner style
   shared by other subpages (blog/about/tracking) via subpages.css */
.page-banner .container {
    text-align: left;
}

.breadcrumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 18px 0;
    width: 100%;
}

.breadcrumb a {
    color: var(--tdt-gray-light);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--tdt-orange);
}

.breadcrumb span.sep {
    color: var(--tdt-gray);
}

.breadcrumb span.current {
    color: var(--tdt-orange);
}

.page-banner-title {
    position: relative;
    font-family: var(--font-bebas);
    font-size: 56px;
    line-height: 1.05;
    color: #ffffff;
    letter-spacing: 0.02em;
    max-width: 700px;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.page-banner-title .highlight {
    color: var(--tdt-orange);
}

.page-banner-desc {
    position: relative;
    color: var(--tdt-gray-light);
    font-size: 14px;
    max-width: 600px;
    line-height: 1.7;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* --- PRODUCTS: CATEGORY GRID + NEAT GRADIENT BG --- */
.category-section {
    position: relative;
    padding: 90px 0;
    background: transparent;
    overflow: hidden;
    isolation: isolate;
}

/* NeatGradient canvas sits behind the grid - TDT orange/white/gray */
#gradient {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 1;
    pointer-events: none;
    display: block;
    background: #F9FAFB;
}

.category-section .container {
    position: relative;
    z-index: 1;
}

/* Fallback grid overlay on top of gradient for texture */
.category-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(113, 112, 116, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(113, 112, 116, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 1;
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid rgba(113, 112, 116, 0.15);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 14px rgba(17, 16, 16, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(17, 16, 16, 0.12);
}

.category-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        #ffffff 25%,
        var(--tdt-orange) 25%,
        var(--tdt-orange) 28%,
        #ffffff 28%,
        #ffffff 33%,
        var(--tdt-orange) 33%,
        var(--tdt-orange) 53%,
        #ffffff 53%,
        #ffffff 58%,
        var(--tdt-orange) 58%,
        var(--tdt-orange) 61%,
        #ffffff 61%,
        #ffffff 100%
    );
}

.category-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    display: block;
}

.category-card:hover .category-img-wrap img {
    transform: scale(1.08);
}

.fallback-placeholder {
    position: absolute;
    inset: 0;
    background-color: var(--tdt-gray-dark);
    background-image:
        linear-gradient(rgba(230, 112, 38, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(230, 112, 38, 0.05) 1px, transparent 1px);
    background-size: 15px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-family: var(--font-bebas);
    font-size: 22px;
    letter-spacing: 0.1em;
    border: 2px solid rgba(230, 112, 38, 0.2);
}

.category-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-top: 3px solid var(--tdt-orange);
}

.category-name {
    font-family: var(--font-bebas);
    font-size: 20px;
    letter-spacing: 0.03em;
    color: var(--tdt-gray);
    text-transform: uppercase;
}

.category-arrow {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: rgba(230, 112, 38, 0.08);
    color: var(--tdt-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.category-card:hover .category-arrow {
    background-color: var(--tdt-orange);
    color: #ffffff;
    transform: translateX(4px);
}

/* =========================================
   SCROLL-REVEAL ANIMATION
   Elements start faded/offset, then ease into
   place once they enter the viewport (see the
   IntersectionObserver script at the bottom
   of this page, which adds .revealed).
   Same mechanism as about.css / about.html.
========================================= */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered cascade for the products grid (products.html) */
.category-grid .category-card.reveal:nth-child(1) { transition-delay: 0s; }
.category-grid .category-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.category-grid .category-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.category-grid .category-card.reveal:nth-child(4) { transition-delay: 0.3s; }
.category-grid .category-card.reveal:nth-child(5) { transition-delay: 0.4s; }
.category-grid .category-card.reveal:nth-child(6) { transition-delay: 0.5s; }

/* Respect users who've asked for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --- BACK TO PRODUCTS LINK (subcategory pages) --- */
.back-to-products {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--tdt-gray);
    font-family: var(--font-montserrat);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.03em;
    text-decoration: none;
    margin-bottom: 30px;
    transition: color 0.2s, gap 0.2s;
}

.back-to-products:hover {
    color: var(--tdt-orange);
    gap: 12px;
}

.back-to-products .arrow {
    font-size: 16px;
    line-height: 1;
}

/* === products-carousel.css === */
/* --- PRODUCTS SECTION --- */
.products-section {
    padding: 100px 0;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Halftone dot pattern accent - full section background */
.products-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, #e67026 1.5px, transparent 1.5px);
    background-size: 18px 18px;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    background-color: var(--tdt-bg-light);
    border: 1px solid rgba(113, 112, 116, 0.15);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(17, 16, 16, 0.05);
}

/* --- RESET LINK STYLING NOW THAT .product-card IS AN <a> --- */
a.product-card,
a.product-card:link,
a.product-card:visited,
a.product-card:hover,
a.product-card:active,
a.product-card:focus {
    text-decoration: none;
    color: inherit;
}

a.product-card .product-info h3,
a.product-card .product-info h3 span {
    text-decoration: none;
    color: var(--tdt-orange);
}

a.product-card .product-desc {
    text-decoration: none;
    color: var(--tdt-gray);
}

a.product-card .product-spec {
    text-decoration: none;
    color: var(--tdt-gray);
}

.product-img-container {
    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        #ffffff 25%,
        var(--tdt-orange) 25%,
        var(--tdt-orange) 28%,  /* Unang manipis na guhit (pinaakyat) */
        #ffffff 28%,
        #ffffff 33%,            /* Puting puwang */
        var(--tdt-orange) 33%,
        var(--tdt-orange) 53%,  /* Makapal na guhit (pinaakyat) */
        #ffffff 53%,
        #ffffff 58%,            /* Puting puwang */
        var(--tdt-orange) 58%,
        var(--tdt-orange) 61%,  /* Pangalawang manipis na guhit (pinaakyat) */
        #ffffff 61%,
        #ffffff 100%
    );
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 3px solid var(--tdt-orange);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.product-img-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(17, 16, 16, 0.4));
    pointer-events: none;
}

.product-card:hover .product-img {
    transform: scale(1.08);
}

.fallback-placeholder {
    position: absolute;
    inset: 0;
    background-color: var(--tdt-gray-dark);
    background-image: 
        linear-gradient(rgba(230, 112, 38, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(230, 112, 38, 0.05) 1px, transparent 1px);
    background-size: 15px 15px;
    display: none;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-family: var(--font-bebas);
    font-size: 32px;
    letter-spacing: 0.1em;
    border: 2px solid rgba(230, 112, 38, 0.2);
}

.product-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info h3 {
    font-family: var(--font-bebas);
    font-size: 24px;
    color: var(--tdt-orange);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.product-desc {
    font-size: 13px;
    color: var(--tdt-gray);
    margin-bottom: 20px;
    min-height: 60px;
}

.product-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    border-top: 1px solid rgba(113, 112, 116, 0.1);
    padding-top: 16px;
    margin-top: auto;
}

.product-spec {
    font-size: 11px;
    font-weight: 800;
    color: var(--tdt-gray);
    text-transform: uppercase;
}

.product-footer .btn-quote-trigger {
    width: 100%;
    padding: 14px 18px;
    font-size: 12px;
    text-align: center;
}

/* --- PRODUCTS CAROUSEL (added) --- */
.products-carousel {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.carousel-arrow {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1.5px solid var(--tdt-orange);
    color: var(--tdt-orange);
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.carousel-arrow:hover {
    background-color: var(--tdt-orange);
    color: #ffffff;
    transform: translateY(-2px);
}

.products-carousel-viewport {
    overflow: hidden;
    width: 100%;
    min-width: 0;
}

.products-carousel-viewport .products-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 24px !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    touch-action: pan-x pan-y;
    padding: 4px 4px 18px 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.products-carousel-viewport .products-grid::-webkit-scrollbar {
    display: none;
}

.products-carousel-viewport .products-grid .product-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 82%;
}

@media (min-width: 640px) {
    .products-carousel-viewport .products-grid .product-card {
        width: 46%;
    }
}

@media (min-width: 992px) {
    .products-carousel-viewport .products-grid .product-card {
        width: 31%;
    }
}

/* On phones, the two 44px arrow buttons + gaps were eating ~108px off
   the carousel width, leaving the product card squeezed down to a
   sliver. Touch swipe (scroll-snap is already enabled above) is the
   natural way to browse on mobile, so drop the arrows here and let
   the card use nearly the full width. */
@media (max-width: 639px) {
    .carousel-arrow {
        display: none;
    }

    .products-carousel {
        gap: 0;
    }

    .products-carousel-viewport .products-grid {
        padding-left: 5%;
        padding-right: 5%;
        scroll-padding-left: 5%;
        scroll-snap-type: x proximity;
    }

    .products-carousel-viewport .products-grid .product-card {
        width: 100%;
    }
}

/* --- CAROUSEL DOTS (mobile scroll indicator) ---
   Arrows are hidden below 640px in favor of native swipe, but that left
   no visual cue that the section scrolls sideways. Dots fill that gap:
    hidden by default (desktop/tablet already show the arrows), shown
    only in the same max-width: 639px range the arrows disappear in. */
.carousel-dots {
    display: none;
    position: relative;
    z-index: 1;
}

@media (max-width: 639px) {
    .carousel-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 20px;
    }

    .carousel-dots .dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background-color: rgba(113, 112, 116, 0.25);
        border: none;
        padding: 0;
        cursor: pointer;
        transition: background-color 0.25s ease, transform 0.25s ease, width 0.25s ease;
    }

    .carousel-dots .dot.active {
        background-color: var(--tdt-orange);
        width: 20px;
        border-radius: 4px;
    }
}
/* --- VIEW ALL BUTTON SECTION --- */
.view-all-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.view-all-btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: #ffffff;
    border: 1.5px solid var(--tdt-orange);
    color: var(--tdt-gray); /* Using your gray variable for the text */
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.05em;
    border-radius: 2px; /* Optional: adds a very slight rounding to match standard buttons */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Optional hover state for better user experience */
.view-all-btn:hover {
    background-color: var(--tdt-orange);
    color: #ffffff;
}

/* === why-choose.css === */
/* =========================================
   WHY CHOOSE TDT POWERSTEEL SECTION
========================================= */

.why-choose-section {
    background-color: #fafafa;
    padding: 80px 0;
    width: 100%;
}
/* Style for the first word */
.why-card h3 span {
    color: var(--tdt-orange);
}

/* Style for the rest of the text */
.why-card h3 {
    color: var(--tdt-gray); /* Or your preferred grey */
}
.why-choose-header h2 span {
    color: var(--tdt-orange);
}

.why-choose-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.why-choose-header h2 {
    font-family: var(--font-montserrat);
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0.1em;
    color: #747071;
    text-transform: uppercase;
    font-style: italic;
    margin: 0;
    text-align: center;
}

.why-choose-header .header-line {
    width: 40px;
    height: 2px;
    background-color: var(--tdt-orange);
    display: inline-block;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    align-items: stretch;
}

.why-card {
    background-color: #ffffff;
    border: 1px solid #333333;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.why-icon-box {
    background-color: #eef2f6;
    width: 48px;
    height: 48px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.why-icon-box svg {
    color: var(--tdt-orange);
}

.why-card h3 {
    font-family: var(--font-montserrat);
    font-weight: 800;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0.05em;
    color: #747170;
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

.why-card p {
    font-family: var(--font-montserrat), sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #555555;
    margin: 0;
}

@media (max-width: 1024px) {
    .why-choose-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
    .why-choose-header h2 {
        font-size: 18px;
    }
    .why-choose-header .header-line {
        width: 20px;
    }
}

/* Deal the 5 cards in one after another, like dealing a hand of cards */
.why-choose-grid .why-card.reveal-card-deal:nth-child(1) { transition-delay: 0s; }
.why-choose-grid .why-card.reveal-card-deal:nth-child(2) { transition-delay: 0.12s; }
.why-choose-grid .why-card.reveal-card-deal:nth-child(3) { transition-delay: 0.24s; }
.why-choose-grid .why-card.reveal-card-deal:nth-child(4) { transition-delay: 0.36s; }
.why-choose-grid .why-card.reveal-card-deal:nth-child(5) { transition-delay: 0.48s; }

/* === footer.css === */
/* --- FOOTER (light gray, quick-links style) --- */
.site-footer {
    background-color: #e6e6e6; /* same light gray as the About Us overview section */
    color: var(--tdt-gray-dark);
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.85fr 1.05fr 1.05fr;
    gap: 48px;
    padding: 80px 0 56px 0;
}

.footer-logo {
    display: block;
    height: 28px;
    width: auto;
    margin-bottom: 22px;
}

.footer-tagline {
    line-height: 1.7;
    color: var(--tdt-gray);
    margin-bottom: 26px;
    max-width: 320px;
}

.footer-heading {
    font-family: var(--font-bebas);
    letter-spacing: 0.5px;
    font-size: 18px;
    color: var(--tdt-orange);
    margin-bottom: 26px;
    text-transform: uppercase;
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-list a {
    color: var(--tdt-gray-dark);
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-list a:hover {
    color: var(--tdt-orange);
    padding-left: 4px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.6;
    color: var(--tdt-gray-dark);
}

.footer-contact-list {
    gap: 16px;
}

.footer-contact-list i {
    color: var(--tdt-orange);
    margin-top: 3px;
    flex: 0 0 auto;
    width: 14px;
    text-align: center;
}

.footer-hours-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
}

.footer-hours-list li {
    display: grid;
    grid-template-columns: 66px 1fr;
    gap: 10px;
    color: var(--tdt-gray-dark);
}

.footer-hours-list li span:last-child {
    white-space: nowrap;
}

.footer-hours-list li span:first-child {
    color: var(--tdt-gray);
}

.site-footer .social-icons {
    display: flex;
    gap: 12px;
}

/* Scoped under .site-footer, and !important, so this wins over the
   legacy !important rules in widgets.css (those target the separate
   "Connect With Us" widget on contact.html, which should stay as-is). */
.site-footer .social-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #ffffff !important;
    border: 1px solid #d4d4d4 !important;
    color: var(--tdt-gray-dark) !important;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s, transform 0.2s, border-color 0.3s;
}

.site-footer .social-btn i {
    color: var(--tdt-gray-dark) !important;
}

.site-footer .social-btn:hover {
    background-color: var(--tdt-orange) !important;
    border-color: var(--tdt-orange) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: none !important;
}

.site-footer .social-btn:hover i {
    color: #ffffff !important;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-bottom-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 26px 0;
    font-size: 12px;
    color: var(--tdt-gray);
    text-align: center;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}

.footer-legal-links a {
    color: var(--tdt-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal-links a:hover {
    color: var(--tdt-orange);
}

@media (min-width: 768px) {
    .footer-bottom-flex {
        flex-direction: row;
        text-align: left;
    }
}

/* Raised from 991px to 1199px to match header.css: at ~1024px (iPad Pro /
   Nest Hub width) the 5-column grid was still active, squeezing business
   hours, contact info, and product links until text clipped/wrapped badly.
   Tablets in the 992-1199px range now get the same comfortable 2-column
   layout as phones-up-to-tablet instead of the squeezed 5-column desktop grid. */
@media (max-width: 1199px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-contact-list li {
        justify-content: center;
        text-align: center;
    }

    .footer-contact-list li span {
        max-width: 230px;
    }

    .footer-hours-list li {
        display: flex;
        justify-content: center;
        gap: 24px;
    }

    .footer-hours-list li span:first-child {
        width: 80px;
        text-align: right;
    }

    .footer-hours-list li span:last-child {
        width: 120px;
        text-align: left;
    }

    .site-footer .social-icons {
        justify-content: center;
    }

    /* Supervisor revision: mobile footer shows only the brand block,
       Contact Us, and Business Hours — Quick Links (2nd column) and
       Products (3rd column) are hidden below 576px only. */
    .footer-grid .footer-col:nth-child(2),
    .footer-grid .footer-col:nth-child(3) {
        display: none;
    }
}

/* Give the footer breathing room on mobile so the fixed back-to-top
   and chat buttons (bottom: 16px) never sit on top of the bottom bar
   once the page is scrolled all the way down. */
@media (max-width: 767px) {
    .footer-bottom {
        padding-bottom: 90px;
    }
}

/* === widgets.css === */
/* --- GET A QUOTE MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(17, 16, 16, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 24px;
    box-sizing: border-box;
}

body.quote-modal-open #mainHeader {
    visibility: hidden;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: #ffffff;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px 32px;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-top: 5px solid var(--tdt-orange);
    transform: translateY(-30px);
    transition: transform 0.3s ease;
}

/* Custom scrollbar so it matches the site's orange branding
   instead of the default gray browser scrollbar */
.modal-card::-webkit-scrollbar {
    width: 8px;
}

.modal-card::-webkit-scrollbar-track {
    background: transparent;
}

.modal-card::-webkit-scrollbar-thumb {
    background-color: var(--tdt-orange);
    border-radius: 4px;
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.modal-header h2 {
    font-family: var(--font-bebas);
    font-size: 28px;
    color: var(--tdt-dark);
    letter-spacing: 0.02em;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--tdt-gray);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--tdt-orange);
}

#quoteForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-card .btn-orange {
    padding: 12px 30px;
    margin-top: 4px;
}

#quoteForm input[readonly] {
    background-color: var(--tdt-bg-light);
    color: var(--tdt-gray);
    cursor: not-allowed;
    border-color: rgba(113, 112, 116, 0.15);
}
/* --- TOAST NOTIFICATION SYSTEM --- */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 20000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-toast {
    background-color: #ffffff; /* White background */
    color: #1a1a1a; /* Dark text */
    padding: 20px 24px;
    border-radius: 4px; /* Slightly sharper corners */
    border-left: 5px solid #e67026; /* Thick orange left border */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Soft shadow */
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    width: 100%;
    min-width: 0;
    max-width: 500px;
    display: flex;
    align-items: center;
    gap: 16px; /* Space between icon, text, and close button */
    position: relative;
    
    /* Smooth slide-in animation */
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    opacity: 0;
}

.custom-toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* Red left border + red icon for error messages */
.custom-toast.error {
    border-left-color: #d9362f;
}

.custom-toast.error .toast-icon {
    color: #d9362f;
}

/* Purple checkmark styling */
.toast-icon {
    color: #634fc2; /* Purple color matching the image */
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* Bold message layout */
.toast-message {
    font-weight: 700; /* Bold text matching the design */
    line-height: 1.4;
    flex-grow: 1;
    padding-right: 20px; /* Space before the close button */
}

/* Gray close "x" button styling */
.toast-close-btn {
    background: none;
    border: none;
    color: #b0b0b0; /* Light gray */
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.toast-close-btn:hover {
    color: #666666; /* Darker gray on hover */
}
/* --- TOAST NOTIFICATIONS & LOADER --- */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 20000;
}

.toast {
    background-color: #ffffff;
    color: var(--tdt-dark);
    box-shadow: 0 10px 30px rgba(17, 16, 16, 0.12);
    border-radius: 4px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-width: 0;
    max-width: 450px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid var(--tdt-orange);
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    font-size: 18px;
    color: var(--tdt-orange);
}

.toast-message {
    font-size: 12px;
    font-weight: 700;
    flex-grow: 1;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--tdt-gray-light);
    cursor: pointer;
    line-height: 1;
    padding: 2px;
}

.toast-close:hover {
    color: var(--tdt-dark);
}

/* Loading Spinner on Buttons */
.btn-orange .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
}

.btn-orange.loading .btn-text {
    visibility: hidden;
}

.btn-orange.loading .spinner {
    display: inline-block;
    position: absolute;
    left: calc(50% - 9px);
    top: calc(50% - 9px);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.toast-close:hover {
    color: var(--tdt-orange);
}

        /* --- SCREEN SCREEN LOADER FOR FORMS --- */
        .submit-loader {
            position: absolute;
            inset: 0;
            background-color: rgba(255, 255, 255, 0.9);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 5;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s;
        }

        .submit-loader.active {
            opacity: 1;
            pointer-events: auto;
        }

        .spinner {
            width: 30px;
            height: 30px;
            border: 3px solid rgba(230, 112, 38, 0.2);
            border-top: 3px solid var(--tdt-orange);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
/* --- FLOATING BACK TO TOP BUTTON --- */
#backToTopBtn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--tdt-dark);
    color: #ffffff;
    border: 2px solid var(--tdt-orange);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s, background-color 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Container and border adjustment per brand rules */
.social-links-container {
    margin-top: 30px;
    border-top: 1px solid #7d7d80; /* Sub palette gray */
    padding-top: 20px;
}

.social-links-container h4 {
    font-family: 'Raleway', sans-serif;
    color: #ffffff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

/* Base style for circular icons */
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #242423; /* Dark brand color background */
    border: 1px solid #717074; /* Border using Main Gray */
    color: #fafafa !important; /* Off-white icon color */
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Hover style: Changes to Brand Orange (#e67026) with a nice glow */
.social-btn:hover {
    background-color: #e67026; /* Official Brand Orange */
    border-color: #e67026;
    color: #121010 !important; /* Make the icon dark when hovered for visibility */
    transform: translateY(-4px);
    box-shadow: 0 4px 15px rgba(230, 112, 38, 0.4); /* Brand Orange Glow */
}

/* Custom Social Network Brand Colors on Hover */
.social-btn.facebook:hover {
    background-color: #1877f2; /* Official FB Blue */
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.social-btn.instagram:hover {
    background-color: #e1306c; /* Official IG Pink/Red */
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.4);
}

.social-btn.youtube:hover {
    background-color: #ff0000; /* Official YT Red */
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

/* Container and layout alignment inside the footer */
.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px; /* Space between social links and static text links */
}

/* Social Icons Alignment */
.social-icons {
    display: flex;
    gap: 10px; /* Space between each social icon */
    margin-right: 10px; /* Space before "Privacy Policy" */
}

/* UPDATED: Larger and more visible social buttons */
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;         /* Circle size (Previously: 35px) */
    height: 35px;        /* Circle size (Previously: 35px) */
    border-radius: 50%;
    background-color: #2c2c2c; 
    color: #ffffff !important; 
    font-size: 22px;     /* Inner logo size (Previously: 16px) */
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Hover effects (Same but smoother movement due to larger size) */
.social-btn:hover {
    transform: translateY(-4px); /* Slightly lifts up */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-btn.facebook:hover {
    background-color: #1877f2;
}

.social-btn.instagram:hover {
    background-color: #e1306c;
}

.social-btn.youtube:hover {
    background-color: #ff0000;
}

/* Styling for the new PNG logo image */
.logo-img {
    height: 30px; /* Exact height for desktop navigation header */
    width: auto;  /* Automatically adjusts width so the logo doesn't stretch */
    display: block;
    object-fit: contain;
}

/* Ensure subtitle stays aligned under the logo */
.logo-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.accent-line {
    width: 60px;
    height: 4px;
    background-color: #e67026; /* Official Brand Orange */
    margin: 10px auto 0 auto;
}

.section-subtitle {
    font-family: 'Raleway', sans-serif;
    color: #e67026; /* Make the subtitle Orange */
    font-weight: 700;
    letter-spacing: 2px;
}

/* --- GRAY SOCIAL WIDGETS --- */
.social-btn {
    background-color: #717074 !important;
    border-color: #717074 !important;
}

.social-btn:hover,
.social-btn.facebook:hover,
.social-btn.instagram:hover,
.social-btn.youtube:hover {
    background-color: #5a595d !important; 
    border-color: #5a595d !important;
    box-shadow: 0 4px 12px rgba(113, 112, 116, 0.4) !important;
}

/* --- GRAY BACK-TO-TOP ARROW --- */
#backToTopBtn {
    background-color: #717074 !important;
    border: 2px solid #5a595d !important; 
}

#backToTopBtn:hover {
    background-color: #5a595d !important;
}

/* --- MOBILE-SAFE FLOATING WIDGETS (toasts, modal, back-to-top) --- */
@media (max-width: 480px) {
    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: auto;
    }

    .custom-toast,
    .toast {
        width: 100%;
        max-width: 100%;
    }

    .modal-card {
        width: 100%;
        padding: 24px 20px;
    }

}

/* --- BACK-TO-TOP: keep clear of the chat widget bubble on mobile ---
   The chat launcher bubble lives bottom-right on mobile, so instead of
   stacking the back-to-top button above it (fragile across screen
   sizes), it's moved to the bottom-left corner instead. The footer's
   social icons are centered on mobile (see .footer-flex), so the left
   corner stays clear too. --- */
@media (max-width: 767px) {
    #backToTopBtn {
        left: 16px;
        right: auto;
        bottom: 16px;
    }
}

/* --- ENSURE SOCIAL ICONS ARE VISIBLE --- */
.social-btn {
    color: #ffffff !important;
}

/* Targets the icons specifically if they are using <i> or <svg> tags */
.social-btn i, 
.social-btn svg {
    color: #ffffff !important; 
}

/* === chatwidget.css === */
/* =========================================
   TDT QUICK CHAT WIDGET
   Bubble launcher + hide/show chat panel.
   Bot-first, with handoff to a live human
   agent (messages are sent to the backend
   so a staff member can reply — see the
   TODO notes in chatwidget.js).
========================================= */

.tdt-chat-launcher {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--tdt-orange, #e67026);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    z-index: 9998;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tdt-chat-launcher:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.tdt-chat-launcher .tdt-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #E53935;
    color: #fff;
    font-family: var(--font-montserrat, sans-serif);
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
}

.tdt-chat-launcher .tdt-badge:empty { display: none; }

/* Swap icon when panel is open */
.tdt-chat-launcher .fa-comment-dots { display: inline-block; }
.tdt-chat-launcher .fa-xmark { display: none; }
.tdt-chat-launcher.is-open .fa-comment-dots { display: none; }
.tdt-chat-launcher.is-open .fa-xmark { display: inline-block; }

.tdt-chat-panel {
    position: fixed;
    right: 24px;
    bottom: 96px;
    width: 340px;
    max-width: calc(100vw - 32px);
    height: 460px;
    max-height: calc(100vh - 140px);
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;

    opacity: 0;
    transform: translateY(16px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tdt-chat-panel.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* --- Header --- */
.tdt-chat-header {
    background-color: var(--tdt-orange, #e67026);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.tdt-chat-header .tdt-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.tdt-chat-header .tdt-header-text {
    flex: 1;
    line-height: 1.25;
}

.tdt-chat-header .tdt-header-title {
    font-family: var(--font-bebas, sans-serif);
    font-size: 17px;
    letter-spacing: 0.03em;
    display: block;
}

.tdt-chat-header .tdt-header-status {
    font-family: var(--font-montserrat, sans-serif);
    font-size: 11px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tdt-chat-header .tdt-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #7ee08a;
    display: inline-block;
}

.tdt-chat-header .tdt-status-dot.tdt-status-human {
    background-color: #ffd76a;
}

.tdt-chat-header .tdt-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.85;
    padding: 4px;
    line-height: 1;
}

.tdt-chat-header .tdt-close-btn:hover { opacity: 1; }

/* --- Messages --- */
.tdt-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #fbfbfb;
}

.tdt-msg-row {
    display: flex;
}

.tdt-msg-row.tdt-from-user { justify-content: flex-end; }
.tdt-msg-row.tdt-from-bot,
.tdt-msg-row.tdt-from-agent,
.tdt-msg-row.tdt-from-system { justify-content: flex-start; }

.tdt-bubble {
    max-width: 80%;
    padding: 10px 13px;
    border-radius: 12px;
    font-family: var(--font-montserrat, sans-serif);
    font-size: 13px;
    line-height: 1.5;
}

.tdt-from-bot .tdt-bubble,
.tdt-from-agent .tdt-bubble {
    background-color: #efefef;
    color: #4a4949;
    border-bottom-left-radius: 3px;
}

.tdt-from-agent .tdt-bubble {
    background-color: #fff1e7;
}

.tdt-from-user .tdt-bubble {
    background-color: var(--tdt-orange, #e67026);
    color: #fff;
    border-bottom-right-radius: 3px;
}

.tdt-from-system .tdt-bubble {
    background-color: transparent;
    color: #9a9a9a;
    font-size: 11px;
    font-style: italic;
    padding: 0 6px;
}

.tdt-sender-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tdt-orange, #e67026);
    margin-bottom: 3px;
}

/* --- Quick reply chips --- */
.tdt-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px 12px 16px;
    flex-shrink: 0;
}

.tdt-chip {
    font-family: var(--font-montserrat, sans-serif);
    font-size: 12px;
    font-weight: 700;
    color: var(--tdt-orange, #e67026);
    background-color: #fff;
    border: 1.5px solid var(--tdt-orange, #e67026);
    border-radius: 20px;
    padding: 7px 13px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.tdt-chip:hover {
    background-color: var(--tdt-orange, #e67026);
    color: #fff;
}

.tdt-chip:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Typing indicator --- */
.tdt-typing .tdt-bubble {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 14px;
}

.tdt-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #b7b6b6;
    animation: tdtTypingBounce 1.2s infinite ease-in-out;
}

.tdt-typing span:nth-child(2) { animation-delay: 0.15s; }
.tdt-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes tdtTypingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.6; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* --- Input row --- */
.tdt-chat-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid rgba(113, 112, 116, 0.15);
    flex-shrink: 0;
    background-color: #fff;
}

.tdt-chat-input-row textarea {
    flex: 1;
    resize: none;
    border: 1px solid rgba(113, 112, 116, 0.25);
    border-radius: 20px;
    padding: 9px 14px;
    font-family: var(--font-montserrat, sans-serif);
    font-size: 13px;
    max-height: 70px;
    line-height: 1.4;
}

.tdt-chat-input-row textarea:focus {
    outline: none;
    border-color: var(--tdt-orange, #e67026);
}

.tdt-chat-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--tdt-orange, #e67026);
    color: #fff;
    border: none;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.tdt-chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Mobile: compact so it doesn't cover the whole screen --- */
@media (max-width: 480px) {
    .tdt-chat-panel {
        right: 12px;
        left: auto;
        width: calc(100vw - 24px);
        max-width: 320px;
        bottom: 76px;
        height: 420px;
        max-height: 58vh;
    }

    .tdt-chat-launcher {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
        font-size: 20px;
    }

    .tdt-chat-body {
        padding: 12px;
    }

    .tdt-chat-header {
        padding: 10px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tdt-chat-panel,
    .tdt-chat-launcher {
        transition: none;
    }
}


/* === calculator.css === */
/* --- WEIGHT CALCULATOR MODAL --- */
.calc-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.calc-modal-overlay.active {
    display: flex;
}

.calc-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: calcSlideUp 0.3s ease;
}

@keyframes calcSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.calc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    background: var(--tdt-orange);
}

.calc-header h2 {
    font-family: var(--font-bebas);
    font-size: 22px;
    color: #fff;
    letter-spacing: 0.02em;
}

.calc-close {
    background: none;
    border: none;
    font-size: 22px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.calc-close:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.calc-body {
    padding: 24px;
}

.calc-product-name {
    font-family: var(--font-bebas);
    font-size: 16px;
    color: var(--tdt-orange);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.calc-body .form-group {
    margin-bottom: 14px;
}

.calc-body .form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #555;
    margin-bottom: 5px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.calc-body .form-group input:not(.calc-input-row input),
.calc-body .form-group select:not(.calc-unit-select) {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.calc-body .form-group input:not(.calc-input-row input):focus,
.calc-body .form-group select:not(.calc-unit-select):focus {
    outline: none;
    border-color: var(--tdt-orange);
}

.calc-body .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.calc-body .form-row.three-col {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.calc-body .unit-hint {
    font-size: 11px;
    color: #999;
    margin-top: 3px;
}

.calc-btn-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.calc-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.calc-btn-calc {
    background: var(--tdt-orange);
    color: #fff;
}

.calc-btn-calc:hover {
    background: #d4601e;
    transform: translateY(-1px);
}

.calc-btn-reset {
    background: #f0f0f0;
    color: #555;
}

.calc-btn-reset:hover {
    background: #e0e0e0;
}

.calc-btn-quote {
    background: var(--tdt-orange);
    color: #fff;
    margin-top: 12px;
}

.calc-btn-quote:hover {
    background: #d4601e;
    transform: translateY(-1px);
}

.calc-result {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.calc-result.show {
    display: block;
    animation: calcSlideUp 0.3s ease;
}

.calc-result-label {
    font-size: 12px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.calc-result-weight {
    font-family: var(--font-bebas);
    font-size: 42px;
    color: var(--tdt-orange);
    line-height: 1.1;
}

.calc-result-weight span {
    font-size: 18px;
    color: #999;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

.calc-result-secondary {
    font-size: 14px;
    color: #777;
    margin-top: 4px;
}

.calc-result-breakdown {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    font-size: 12px;
    color: #999;
    line-height: 1.8;
}

.calc-error-msg {
    display: block;
    color: #e74c3c;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    border-top: none;
    padding-top: 0;
}

.calc-btn-row.result-actions {
    margin-top: 16px;
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .calc-modal-overlay {
        padding: 10px;
        align-items: center;
    }

    .calc-modal {
        max-height: 92vh;
        border-radius: 12px;
        margin-top: 0;
        max-width: 100%;
    }

    .calc-header {
        padding: 16px 18px;
    }

    .calc-body {
        padding: 18px;
    }

    .calc-body .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .calc-body .form-row.three-col {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .calc-input-row {
        gap: 8px;
    }

    .calc-input-row input {
        min-width: 0;
        padding: 12px 10px;
        font-size: 16px;
    }

    .calc-input-row .calc-unit-select {
        min-width: 48px;
        padding: 12px 6px;
        font-size: 12px;
    }

    .calc-result-weight {
        font-size: 36px;
    }

    .calc-btn-row {
        flex-direction: column;
        gap: 8px;
    }
}

/* Calc button on product cards */
.btn-calc-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff;
    border: 2px solid var(--tdt-orange);
    color: var(--tdt-orange);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, transform 0.2s;
    font-family: 'Montserrat', sans-serif;
    margin-top: 10px;
    width: 100%;
    text-align: center;
}

.btn-calc-trigger:hover {
    background: var(--tdt-orange);
    border-color: var(--tdt-orange);
    color: #fff;
    transform: translateY(-2px);
}

.btn-calc-trigger i {
    font-size: 13px;
}

/* Homepage "CALCULATE WEIGHT" button next to VIEW ALL PRODUCTS */
.btn-calc-homepage {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 2px solid var(--tdt-orange);
    color: var(--tdt-orange);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, transform 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.btn-calc-homepage:hover {
    background: var(--tdt-orange);
    color: #fff;
    transform: translateY(-2px);
}

.btn-calc-homepage i {
    font-size: 14px;
}

/* --- UNIT SELECT --- */

.calc-unit-select {
    padding: 4px 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 11px;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    background: #fff;
    cursor: pointer;
}

.calc-unit-select:focus {
    outline: none;
    border-color: var(--tdt-orange);
}

/* --- INPUT ROW WITH UNIT SELECT --- */
.calc-input-row {
    display: flex;
    gap: 6px;
    align-items: stretch;
}

.calc-input-row input {
    flex: 1;
    min-width: 70px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.calc-input-row input:focus {
    outline: none;
    border-color: var(--tdt-orange);
}

.calc-input-row .calc-unit-select {
    flex: 0 0 auto;
    width: auto;
    min-width: 44px;
}

/* --- CUSTOM PRODUCT DROPDOWN (homepage weight calculator) --- */
.calc-dropdown {
    position: relative;
}

.calc-dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.calc-dropdown-trigger:hover {
    border-color: var(--tdt-orange);
}

.calc-dropdown.open .calc-dropdown-trigger {
    border-color: var(--tdt-orange);
    outline: none;
}

.calc-dropdown-trigger span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calc-dropdown-arrow {
    font-size: 12px;
    color: #999;
    flex: 0 0 auto;
    transition: transform 0.2s;
}

.calc-dropdown.open .calc-dropdown-arrow {
    transform: rotate(180deg);
    color: var(--tdt-orange);
}

.calc-dropdown-panel {
    display: none;
    position: fixed;
    z-index: 10050;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    overflow-y: auto;
    padding: 6px 0;
}

.calc-dropdown.open .calc-dropdown-panel {
    display: block;
}

/* Fallback for dropdowns that get temporarily moved to <body> while open
   (see script.js) to escape an ancestor with a CSS transform — a transform
   on any ancestor turns position:fixed children into being positioned
   relative to THAT ancestor instead of the real viewport, which is why
   this is needed for dropdowns living inside an animated modal card. */
.calc-dropdown-panel.open {
    display: block;
}

.calc-dropdown-group-label {
    padding: 8px 14px 4px;
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calc-dropdown-option {
    padding: 9px 14px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.calc-dropdown-option:hover,
.calc-dropdown-option.highlighted {
    background: var(--tdt-orange);
    color: #fff;
}

.calc-dropdown-option.selected {
    color: var(--tdt-orange);
    font-weight: 700;
}

.calc-dropdown-option.selected:hover,
.calc-dropdown-option.selected.highlighted {
    color: #fff;
}
