/* ==========================================================================
   Air Micron Cleantech - Layout Stylesheet (layout.css)
   Structure, Containers, Grid/Flexbox, Tables, Form & Responsive Design
   ========================================================================== */

/* Main Page Container */
.site-wrapper {
    max-width: 1920px;
    margin: 0 auto;
    background-color: #FFFFFF;
    position: relative;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Corner Frames (Classic ImageReady template fidelity) */
.corner-top-row,
.corner-bottom-row {
    display: flex;
    justify-content: space-between;
    height: 9px;
    line-height: 0;
    overflow: hidden;
    background-color: #FFFFFF;
}

.corner-top-row img,
.corner-bottom-row img {
    display: block;
    width: 9px;
    height: 9px;
}

/* Header Section */
.site-header {
    background-color: #FFFFFF;
    width: 100%;
}

.header-top-row {
    padding: 5px 20px 10px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.header-logo {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

.header-logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Hero Banner Area */
.hero-banner-container {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    overflow: hidden;
    background-color: #FFFFFF;
}

.hero-banner-inner {
    max-width: 965px;
    width: 100%;
    height: 249px;
    position: relative;
    overflow: hidden;
}

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

/* HTML5 Banner Slider for Homepage (replaces dead Flash player) */
.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
    visibility: visible;
}

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

/* Sub-header Navigation & Title Strip Row */
.nav-strip-container {
    display: flex;
    width: 100%;
    align-items: flex-start;
}

.nav-sidebar-header {
    width: 259px;
    flex-shrink: 0;
    margin-left: 10px;
    line-height: 0;
}

.nav-sidebar-header img {
    display: block;
    width: 259px;
    height: 46px;
}

.nav-spacer {
    width: 30px;
    flex-shrink: 0;
}

.nav-bar-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.nav-teal-row {
    display: flex;
    align-items: stretch;
    height: 31px;
    background-color: var(--brand-teal);
    position: relative;
}

.nav-cap-img {
    display: block;
    width: 9px;
    height: 31px;
    flex-shrink: 0;
}

.nav-grey-strip {
    height: 10px;
    background-color: var(--border-grey);
    width: 100%;
}

/* Main Content Two-Column Layout */
.site-content-layout {
    display: flex;
    flex-grow: 1;
    width: 100%;
    background-color: #FFFFFF;
}

/* Left Sidebar */
.site-sidebar {
    width: 259px;
    flex-shrink: 0;
    margin-left: 10px;
    background: url('../images/leftbg.jpg') repeat-y left top;
    padding: 10px 0 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-products-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-products-list li {
    display: flex;
    align-items: flex-start;
    padding: 3px 5px;
}

.sidebar-products-list .bullet-arrow {
    width: 9px;
    height: 10px;
    margin: 3px 8px 0 10px;
    flex-shrink: 0;
}

.sidebar-support-box {
    margin-top: 30px;
    text-align: center;
    padding: 10px;
}

.sidebar-support-box img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* Center Spacer between Sidebar & Content */
.content-spacer {
    width: 30px;
    flex-shrink: 0;
}

/* Main Content Area */
.site-main-content {
    flex-grow: 1;
    padding: 20px 30px 40px 0;
    min-width: 0; /* Prevents overflow in flex children */
}

/* Profile Page Specifics */
.profile-cert-container {
    float: right;
    margin: 10px 0 15px 20px;
    text-align: center;
}

.profile-cert-thumb {
    border: 1px solid #DADADA;
    padding: 2px;
    background-color: #FFFFFF;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.15);
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-cert-thumb:hover {
    transform: scale(1.02);
    box-shadow: 3px 3px 8px rgba(0,0,0,0.25);
}

/* Our Clients Tables */
.client-section-heading {
    margin: 20px 0 8px 0;
    font-size: 13px;
    font-weight: bold;
    text-decoration: underline;
    color: #333333;
}

.client-table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 25px;
}

.client-table {
    width: 100%;
    max-width: 700px;
    border-collapse: separate;
    border-spacing: 2px;
}

.client-table th {
    background-color: var(--header-grey);
    color: #FFFFFF;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    text-align: left;
    padding: 6px 10px;
}

.client-table td {
    padding: 4px 8px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    vertical-align: top;
}

.client-table td.client-name {
    width: 48%;
    font-weight: bold;
    color: var(--link-color);
}

.client-table td.client-work {
    width: 52%;
    color: var(--text-color);
}

.client-table tr:hover td {
    background-color: #F8F9FA;
}

/* Contact Us Specifics */
.contact-header-info {
    text-align: center;
    margin-bottom: 20px;
}

.contact-company-title {
    font-weight: bold;
    font-size: 15px;
    color: var(--primary-blue);
    margin-bottom: 4px;
}

.contact-company-tagline {
    font-style: italic;
    font-size: 13px;
    color: var(--text-color);
}

.address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 25px 0;
}

.address-card {
    background-color: #FFFFFF;
    border: 1px solid #EBEBEB;
}

.address-card-header {
    background-color: var(--light-bg);
    padding: 8px 12px;
    font-weight: bold;
    font-size: 13px;
    color: #333333;
    border-bottom: 1px solid #EAEAEA;
}

.address-card-body {
    padding: 12px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-color);
}

.contact-query-bar {
    background-color: var(--header-grey);
    color: #FFFFFF;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    padding: 6px 12px;
    margin: 25px 0 15px 0;
}

.contact-form-container {
    max-width: 520px;
    margin-top: 15px;
}

.form-group-row {
    display: flex;
    margin-bottom: 12px;
    align-items: flex-start;
}

.form-group-row label {
    width: 140px;
    flex-shrink: 0;
    font-family: Geneva, Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: var(--text-color);
    padding-top: 4px;
}

.form-group-row .form-input-wrap {
    flex-grow: 1;
}

.form-group-row input[type="text"],
.form-group-row input[type="email"],
.form-group-row textarea {
    width: 100%;
    max-width: 320px;
    padding: 5px 8px;
    border: 1px solid #B0B0B0;
    font-family: Geneva, Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #333333;
    background-color: #FFFFFF;
    border-radius: 2px;
}

.form-group-row input[type="text"]:focus,
.form-group-row input[type="email"]:focus,
.form-group-row textarea:focus {
    outline: none;
    border-color: var(--brand-teal);
    box-shadow: 0 0 3px rgba(35, 159, 143, 0.5);
}

.form-submit-row {
    text-align: center;
    margin-top: 15px;
    max-width: 460px;
}

.btn-submit {
    background-color: #EEEEEE;
    color: #333333;
    border: 1px solid #999999;
    padding: 5px 20px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.15s ease;
}

.btn-submit:hover {
    background-color: #DDDDDD;
    border-color: #666666;
}

/* Alert Messages */
.form-alert {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 3px;
    font-size: 13px;
    max-width: 520px;
}

.form-alert-success {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.form-alert-error {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

/* Footer Section */
.site-footer {
    width: 100%;
    margin-top: auto;
    background-color: #FFFFFF;
}

.footer-pill-container {
    display: flex;
    width: 100%;
    height: 54px;
    align-items: stretch;
}

.footer-cap-left {
    width: 26px;
    height: 54px;
    flex-shrink: 0;
    display: block;
}

.footer-center-bg {
    flex-grow: 1;
    background: url('../images/airmicron_29.gif') repeat-x left top;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    text-align: center;
}

.footer-cap-right {
    width: 28px;
    height: 54px;
    flex-shrink: 0;
    display: block;
}

/* ==========================================================================
   Product Pages & Technical Specifications Layout
   ========================================================================== */

.head-breadcrumb {
    color: var(--primary-blue);
    font-weight: normal;
}

.head-product-title {
    color: var(--primary-blue);
    font-weight: bold;
}

.product-detail-layout {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.product-text-content {
    flex: 1 1 60%;
    min-width: 0;
}

.product-image-aside {
    flex: 0 0 auto;
    max-width: 380px;
    text-align: center;
}

.product-main-img {
    max-width: 100%;
    height: auto;
    border: 1px solid #D5D5D5;
    padding: 3px;
    background-color: #FFFFFF;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.12);
    display: inline-block;
}

/* Technical Specification & Sizing Tables */
.spec-table-container {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
}

.product-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 15px;
}

.product-spec-table th {
    background-color: var(--header-grey);
    color: #FFFFFF;
    padding: 7px 10px;
    text-align: left;
    font-weight: bold;
    letter-spacing: 1px;
    border: 1px solid #777777;
}

.product-spec-table td {
    padding: 6px 10px;
    border: 1px solid #D0D0D0;
    vertical-align: top;
    color: var(--text-color);
}

.product-spec-table tr.alt-row {
    background-color: #EBF3FB;
}

.product-spec-table tr:hover td {
    background-color: #E2EEFA;
}

.product-subheading {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: bold;
    color: #053C74;
    margin: 20px 0 8px 0;
}

.product-door-gallery {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.product-door-gallery img {
    border: 1px solid #CCCCCC;
    padding: 2px;
    background-color: #FFFFFF;
    max-width: 250px;
    height: auto;
}

.door-gallery-item {
    text-align: center;
}

/* ==========================================================================
   Photo Gallery (site-photos.php)
   ========================================================================== */

.gallery-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 15px 0 25px 0;
}

.gallery-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 3px;
    background-color: #E3F9F9;
    table-layout: fixed;
}

.gallery-table tr {
    background-color: #FFFFFF;
}

.gallery-table td {
    background-color: #FFFFFF;
    text-align: center;
    vertical-align: middle;
    padding: 6px 4px;
    font-family: Geneva, Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #333333;
    letter-spacing: normal;
    text-transform: none;
    line-height: 18px;
    width: 33.333%;
}

.gallery-table td.gallery-client-heading {
    font-family: Geneva, Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: bold;
    color: #002C60;
    line-height: 18px;
    letter-spacing: normal;
    text-transform: none;
    padding: 10px 4px;
    text-align: center;
}

.gallery-table td a {
    display: inline-block;
    line-height: 0;
}

.gallery-table td img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    border: 0;
    vertical-align: middle;
    transition: opacity 0.15s ease;
}

.gallery-table td a:hover img {
    opacity: 0.85;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1100px) {
    .hero-banner-inner {
        max-width: 750px;
        height: 200px;
    }
}

@media (max-width: 900px) {
    .site-content-layout {
        flex-direction: column;
    }
    
    .product-detail-layout {
        flex-direction: column;
    }

    .product-image-aside {
        max-width: 100%;
        margin-top: 15px;
    }
    
    .nav-strip-container {
        flex-direction: column;
    }
    
    .nav-sidebar-header {
        width: 100%;
        margin-left: 0;
        text-align: center;
    }

    .nav-sidebar-header img {
        margin: 0 auto;
    }

    .nav-spacer {
        display: none;
    }

    .content-spacer {
        display: none;
    }

    .site-sidebar {
        width: 100%;
        margin-left: 0;
        background: #F9F9F9;
        order: 2;
        margin-top: 30px;
    }

    .site-main-content {
        padding: 20px 20px 30px 20px;
        order: 1;
    }

    .hero-banner-container {
        justify-content: center;
    }

    .hero-banner-inner {
        max-width: 100%;
        height: auto;
        aspect-ratio: 965 / 249;
    }
}

@media (max-width: 600px) {
    body {
        padding: 0;
    }

    .header-top-row {
        padding: 10px;
        justify-content: center;
    }

    .address-grid {
        grid-template-columns: 1fr;
    }

    .profile-cert-container {
        float: none;
        margin: 15px auto;
        text-align: center;
    }

    .form-group-row {
        flex-direction: column;
    }

    .form-group-row label {
        width: 100%;
        margin-bottom: 4px;
    }

    .form-group-row input[type="text"],
    .form-group-row input[type="email"],
    .form-group-row textarea {
        max-width: 100%;
    }

    .footer-pill-container {
        height: auto;
        min-height: 54px;
    }

    .footer-center-bg {
        padding: 10px;
    }
}

