/* =========================================================
   subcategory.css
    SHARED stylesheet for all 12 product subcategory pages
    (steel-bars, columns-beams, wide-flange, sheet-pile,
    shafting, plates-sheets, hardware, construction-materials,
    tubes-pipes, steel-purlins, wiremesh, roofing).

    Previously 12 separate CSS files (nearly identical, ~1700
    lines each) were consolidated here into a single file for
    easy maintenance -- one place to update when changing any
    sitewide style for these category pages.
   ========================================================= */

/* --- 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 */
}

body {
    font-family: var(--font-montserrat);
    color: var(--tdt-gray);
    background-color: #fdfdfd;
    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:not(.nav-container) {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- TOP UTILITY BAR --- */

/* --- 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);
}

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

    .hero-section {
        padding: 100px 0 60px 0;
    }

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

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

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

    .hero-badge {
        font-size: 10px;
    }

    .hero-desc {
        font-size: 14px;
    }

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

/* --- 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);
}

/* --- 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-gray);
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.accent-line {
    width: 60px;
    height: 4px;
    background-color: var(--tdt-orange);
    margin: 15px auto 0 auto;
}

/* --- HERO SECTION --- */
.hero-section {
    padding: 80px 0;
    background: transparent;
}

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

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

.hero-badge {
    background-color: #fff3eb;
    color: var(--tdt-orange);
    border: 1px solid rgba(230, 112, 38, 0.2);
    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: var(--tdt-gray);
}

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

.hero-desc {
    color: var(--tdt-gray);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 550px;
}

.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(113, 112, 116, 0.15);
    padding-top: 30px;
}

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

.stat-item p {
    font-size: 10px;
    font-weight: 800;
    color: var(--tdt-gray);
    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 {
    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 {
    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;
}

/* --- PREMIUM SELECTION DIVIDER --- */
.section-divider-bar {
    background-color: #ffffff;
    text-align: center;
    border-top: 1px solid rgba(113, 112, 116, 0.15);
    border-bottom: 1px solid rgba(113, 112, 116, 0.15);
    padding: 15px 0;
}

.section-divider-bar span {
    font-size: 11px;
    font-weight: 800;
    color: var(--tdt-orange);
    letter-spacing: 0.3em;
}

/* --- PRODUCTS SECTION --- */
.products-section {
    padding: 100px 0;
    background-color: #ffffff;
}

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

@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);
}

.product-img-container {
    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        #ffffff 25%,
        var(--tdt-orange) 25%,
        var(--tdt-orange) 28%,  /* First thin line (pushed up) */
        #ffffff 28%,
        #ffffff 33%,            /* White space */
        var(--tdt-orange) 33%,
        var(--tdt-orange) 53%,  /* Thick line (pushed up) */
        #ffffff 53%,
        #ffffff 58%,            /* White space */
        var(--tdt-orange) 58%,
        var(--tdt-orange) 61%,  /* Second thin line (pushed up) */
        #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: flex;
    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-gray);
    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;
    justify-content: space-between;
    align-items: center;
    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;
}

/* --- ABOUT US SECTION --- */
.about-section {
    padding: 100px 0;
    background-color: var(--tdt-bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
}

@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.left-align {
    margin: 0 0 24px 0 !important;
}

.about-text {
    color: var(--tdt-gray);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.feat-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feat-icon {
    font-size: 24px;
    background: rgba(230, 112, 38, 0.1);
    padding: 10px;
    border-radius: 4px;
}

.feat-item h4 {
    font-family: var(--font-montserrat);
    font-size: 14px;
    font-weight: 700;
    color: var(--tdt-gray);
    margin-bottom: 4px;
}

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

.about-visual-card {
    background: linear-gradient(135deg, #1c1a1a, var(--tdt-dark));
    border: 1px solid var(--tdt-gray-dark);
    border-radius: 4px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    align-items: flex-end;
}

.about-visual-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--tdt-orange);
}

.industrial-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: radial-gradient(var(--tdt-orange) 1px, transparent 0);
    background-size: 16px 16px;
}

.visual-content {
    position: relative;
    z-index: 2;
}

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

.visual-content h3 {
    color: #ffffff;
    font-family: var(--font-bebas);
    font-size: 44px;
    line-height: 1.1;
    margin-bottom: 8px;
}

.visual-content p {
    color: var(--tdt-gray-light);
    font-size: 13px;
}

/* --- 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 rgba(113, 112, 116, 0.15);
    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;
    color: var(--tdt-gray);
    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;
}

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

/* Base layout: Single column on mobile first */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

/* On desktop (992px and up), split into two columns (Left and Right) */
@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1.2fr; /* 1fr for Info Card, 1.2fr for Map+Form Column */
        align-items: start;
    }
}

/* NEW WRAPPER: Maps and Message Form are vertically stacked on the right */
.contact-right-column {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Space between Maps and Form */
    width: 100%;
}

/* Unified style for both cards (Left Info and Right Form) */
.contact-info-panel,
.contact-form-panel {
    background-color: var(--tdt-bg-light);
    border: 1px solid rgba(113, 112, 116, 0.15);
    border-radius: 4px;
    padding: 40px;
    box-sizing: border-box;
}

/* Heading styles using your variables */
.contact-info-panel h3,
.contact-form-panel h3 {
    font-family: var(--font-bebas);
    font-size: 32px;
    color: var(--tdt-gray);
    margin-bottom: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Maps container adjustment */
.map-container {
    width: 100%;
}

/* --- CONTACT SECTION LAYOUT & ALIGNMENT FIX --- */

/* 1. Ensure even split (50% - 50%) and same height */
@media (min-width: 992px) {
    .contact-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; /* Equal size for Left and Right */
        gap: 40px !important;
        align-items: stretch !important; /* Pull down to make grid cells even */
    }
}

/* 2. Remove any space at the top of the right column so it rises and aligns */
.contact-right-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: flex-start !important;
}

/* 3. Larger Google Maps to match the info panel size */
.map-container {
    width: 100% !important;
    height: 480px !important; /* Increased further for a more dominant and clear map */
    margin: 0 !important;
}

.map-wrapper {
    width: 100% !important;
    height: 100% !important;
    border-radius: 4px !important; /* Made 4px to match the border-radius of your panels */
    overflow: hidden !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(113, 112, 116, 0.15) !important; /* Match the border of your cards */
}

.map-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

/* 4. Ensure even padding and typography of Direct Message card */
.contact-form-panel {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Ensure form inputs are still responsive inside */
.form-row-2 {
    display: flex;
    gap: 16px;
}

@media (max-width: 576px) {
    .form-row-2 {
        flex-direction: column;
        gap: 0;
    }
}

.panel-desc {
    font-size: 14px;
    color: var(--tdt-gray);
    margin-bottom: 30px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    display: flex;
    gap: 16px;
    align-items: center;
}

.info-icon {
    font-size: 20px;
    background-color: #ffffff;
    border: 1px solid rgba(113, 112, 116, 0.2);
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.info-card h4 {
    font-family: var(--font-montserrat);
    font-size: 12px;
    font-weight: 700;
    color: var(--tdt-gray);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.info-card p {
    font-size: 13px;
    color: var(--tdt-gray);
}

.map-container {
    margin-top: 30px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(113, 112, 116, 0.15);
}

.direct-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

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

@media (min-width: 576px) {
    .form-row-2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- FOOTER --- */
footer {
    background-color: #ffffff;
    color: var(--tdt-gray);
    padding: 30px 0;
    font-size: 12px;
    border-top: 1px solid rgba(166, 166, 168, 0.2);
}

.footer-flex {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

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

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px; 
}

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

.footer-links a:hover {
    color: var(--tdt-gray);
}
/* --- 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);
}

/* --- GET A QUOTE MODAL --- */
/* --- GET A QUOTE MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(17, 16, 16, 0.7);
    -webkit-backdrop-filter: blur(4px); /* Fixes the linting error and adds Safari support */
    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;
}

.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;
}

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

/* 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-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-gray);
    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;
}

#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;
    min-width: 350px;
    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;
}

/* 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-gray);
    box-shadow: 0 10px 30px rgba(17, 16, 16, 0.12);
    border-radius: 4px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 320px;
    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-gray);
}

/* 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); }
}

/* --- 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); }
        }

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

.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;
}

/* Left-align the banner text (overrides any centered default) */
.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;
}

.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;
}

/* --- CATEGORY DETAIL PAGES (e.g. Steel Bars, Columns & Beams) --- */
.text-orange {
    color: var(--tdt-orange);
}

.category-intro {
    padding: 70px 0 20px 0;
    background-color: #ffffff;
}

.section-desc {
    font-size: 13px;
    color: var(--tdt-gray);
    max-width: 520px;
    margin: 15px auto 0 auto;
    line-height: 1.7;
}

.subcat-section {
    padding: 50px 0 100px 0;
    background-color: #ffffff;
}

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

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

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

.subcat-card {
    background-color: #ffffff;
    border: 1px solid rgba(113, 112, 116, 0.15);
    border-top: 3px solid var(--tdt-orange);
    border-radius: 4px;
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(17, 16, 16, 0.03);
}

.subcat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 22px rgba(17, 16, 16, 0.08);
}

.subcat-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--tdt-gray-dark);
}

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

.subcat-card:hover .subcat-img-wrap img {
    transform: scale(1.06);
}

.subcat-img-wrap .fallback-placeholder {
    font-size: 18px;
}

.subcat-body {
    padding: 24px 22px 26px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.subcat-title {
    font-family: var(--font-bebas);
    font-size: 26px;
    letter-spacing: 0.03em;
    color: var(--tdt-gray);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.subcat-desc {
    color: var(--tdt-gray);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.subcat-specs {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 0 0 22px 0;
    padding: 0;
}

.subcat-specs li {
    font-size: 12px;
    color: var(--tdt-gray);
    font-weight: 600;
    padding-left: 22px;
    position: relative;
}

.subcat-specs li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--tdt-orange);
    font-weight: 800;
}

.subcat-body .btn-orange {
    margin-top: auto;
}

/* --- FLOATING BACK TO TOP BUTTON --- */
#backToTopBtn {
    position: fixed;

    bottom: 30px;
    left: 30px;
    background-color: var(--tdt-gray);
    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: stays grey, no color change */
.social-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

/* Container and layout alignment inside the footer */
.footer-links {
    display: flex;
    align-items: center;
    gap: 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: #717074; 
    color: #ffffff !important; 
    font-size: 22px;     /* Inner logo size (Previously: 16px) */
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Hover effects: stays grey, no color change */
.social-btn:hover {
    transform: translateY(-4px); /* Slightly lifts up */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 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;
}

.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;
}

/* --- 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);
    }
}

/* --- NEW ROW-BASED CONTACT LAYOUT --- */

/* First row: grid with two columns on desktop */
.contact-top-row {
    display: grid !important;
    grid-template-columns: 1fr !important; /* Single column on mobile */
    gap: 30px !important;
}

@media (min-width: 992px) {
    .contact-top-row {
        grid-template-columns: 1fr 1fr !important; /* Side-by-side on desktop */
        align-items: stretch !important; /* Aligning the height of Office Box and Google Map */
    }
}

/* Second row: direct message form settings */
.contact-bottom-row .form-row-2 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
}

@media (min-width: 768px) {
    .contact-bottom-row .form-row-2 {
        grid-template-columns: 1fr 1fr !important; /* Side-by-side Name and Email on desktop */
    }
}

.contact-flex-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 30px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
}

.contact-col-left {
    flex: 1 !important;
    min-width: 0 !important;
}

.contact-col-right {
    flex: 1 !important;
    min-width: 0 !important;
}

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

/* Responsive Mobile Breakpoint */
@media (max-width: 768px) {
    .contact-flex-container {
        flex-direction: column !important;
    }
    .form-row-2 {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}

/* --- 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);
}