/* ==========================================================================
   1. GLOBAL STYLES & RESET
   ========================================================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: "Times New Roman", Times, serif; /* Fixed: Added quotes so browser renders it correctly */
    margin: 0;
    padding: 0;
}

img {
    vertical-align: middle;
}

/* ==========================================================================
   2. HEADER & NAVIGATION STYLES
   ========================================================================== */
header {
    width: 100%;
    box-sizing: border-box;
}

.PhEmHeader {
    background-color: #000435;
    padding: 0.5px;
    width: 100%;
}

.PhEmnav {
    display: flex;
    justify-content: space-between; /* Pushes phone left, email right */
    align-items: center;            /* Centers icons and text vertically */
    flex-wrap: wrap;                /* Responsive safety fallback */
    gap: 15px;                      
    list-style: none;               
    margin: 0;
    padding: 10px 20px;             
}

.PhEmnav li {
    text-decoration: none;
    display: inline-flex;
}

.PhEmnav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    display: flex;
    gap: 3px;
}

.PhEmnav a:hover {
    color: #bf9b30;
}

.menuNav {
    display: flex;
    background: #fff;
    border-radius: 30px;
    padding: 10px 20px;
    margin: 0 auto;
    width: 95%;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    left: 0;
    right: 0;
    z-index: 9999;
}

.compLogo {
    width: 12rem;
}

.menuHeader {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.menuItem {
    margin: 0 15px;
}

.menuItem a {
    text-decoration: none;
    color: #04094d;
    font-weight: bold;
}

.menuItem a:hover {
    color: #bf9b30;
}

/* ==========================================================================
   3. SLIDESHOW CAROUSEL STYLES
   ========================================================================== */
.mySlides {
    display: none;
}

.slideshow-container {
    width: 100%;
    position: relative;
    top: 80px;
    margin: auto;
}

.slideshow-container img {
    width: 100%;
    height: 400px;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}

.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #717171;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

@media only screen and (max-width: 300px) {
    .prev, .next, .text { font-size: 11px; }
}

/* ==========================================================================
   4. DETAILED SIDE-BY-SIDE LAYOUT (BALANCED 50-50 SPLIT GRID STRUCTURE)
   ========================================================================== */

/* Main outer container supporting both Page Variations (.abtDet and .aboutDet) */
.abtDet, .aboutDet {
    display: flex !important;
    flex-direction: row !important;      /* Aligns text container and products side-by-side */
    align-items: flex-start !important;  /* Aligns elements flush to the top boundary */
    gap: 35px !important;                /* Clean horizontal gutter gap between sections */
    width: 100% !important;
    max-width: 1200px !important;        /* Keeps layout bounded beautifully on desktop resolutions */
    margin: 40px auto !important;        /* Standard centering profile layout alignment */
    box-sizing: border-box !important;
    padding: 0 20px !important;
}

/* Main Left Text Panel Column (.introDet / .usDet) */
.introDet, .usDet {
    flex: 0 0 48% !important;            /* Scaled to 48% for clean 50-50 splitting framework */
    max-width: 48% !important;
    box-sizing: border-box !important;
}

/* Heading styles updated to strip browser margin variances and enforce uniform baseline alignment */
.introDet h3, .usDet h3, .prodAbt h3, .prodDet h3 {
    font-size: 24px !important;          
    color: #04094d;
    margin-top: 0 !important;            /* Strips top padding so headers line up perfectly */
    margin-bottom: 12px !important;
}

.introDet p, .usDet p {
    color: #04094d;
    font-size: 18px !important;          
    margin: 0 0 15px 0;
    line-height: 1.6;                    
    text-align: justify !important;      /* Fixed: Aligns the word boxes squarely down both edge column walls */
}

/* Right Products Column Sidebar (.prodAbt / .prodDet) */
.prodAbt, .prodDet {
    flex: 0 0 48% !important;            /* Scaled to 48% to balance the left column exactly */
    max-width: 48% !important;
    box-sizing: border-box !important;
}

/* Sidebar Product Container: Aligns elements horizontally and wraps them into 2x2 rows */
ul.abtImage, ul.productImage {
    display: flex !important;
    flex-direction: row !important;     /* Changes vertical list strip to row distribution flow */
    flex-wrap: wrap !important;         /* Enables container tracking to break cleanly into row 2 */
    gap: 16px !important;               /* Uniform spatial gap gutter margins for row/col matrix tracking */
    padding: 0 !important;              
    margin: 0 !important;
    list-style: none !important;        
    width: 100% !important;
}

/* Forces each list item block to occupy exactly half the parent width container minus the gap allocations */
ul.abtImage li, ul.productImage li {
    flex: 0 0 calc(50% - 8px) !important; 
    list-style: none !important;
    box-sizing: border-box !important;
}

/* Structured container blocks for image + caption layout tracking (.prodSec) */
.prodSec {
    margin: 0 !important;               
    padding: 0 !important;
    width: 100% !important;
}

/* Media element graphic styling profiles (.abtImage / .prodImage) */
img.abtImage, img.prodImage {
    width: 100% !important;             
    height: 190px !important;           /* Increased height to match the larger 50-50 width containers */
    object-fit: cover !important;       
    display: block !important;
    border-radius: 6px;                 
}

/* Text Captions formatting parameters beneath product displays (.prodCaption) */
.prodCaption {
    text-align: center !important;      
    font-size: 13px !important;         
    font-weight: bold !important;
    color: #04094d !important;
    margin-top: 6px !important;
    width: 100% !important;
}

/* Read More anchoring links logic overrides */
a.readMore {
    color: #04094d !important;          
    text-decoration: none !important;
    font-weight: bold;
}

a.readMore:hover {
    color: #bf9b30 !important;          
    text-decoration: underline !important;
}

/* ==========================================================================
   5. WELCOME & OTHER CONTROLS
   ========================================================================== */
.welDet h2 {
    font-size: 2.25rem;
    color: #04094d;
    letter-spacing: 0.04em;
    margin-left: 10px;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
}

.welDet img {
    width: 360px;
    margin-left: 20px;
}

/* ==========================================================================
   6. FOOTER STYLING
   ========================================================================== */
/* ==========================================================================
   6. FOOTER STYLING & ACCENT LINES (Stretches Full Width)
   ========================================================================== */
footer {
    background-color: #000435;      
    color: #ffffff;                 
    padding: 40px 20px 20px 20px;
    margin-top: 60px;
    width: 100%;
}

.footerContainer {
    width: 100%;
}

.footerCol h3 {
    color: #bf9b30;
    font-size: 18px;
    margin-bottom: 15px;
}

.addressDetails p {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* Single 3px gold line directly above the copyright box matching "Get in Touch" */
.footerBottom {
    width: 100%;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 3px solid #bf9b30; 
    text-align: center;
}

.footerBottom p {
    color: #94a3b8;
    font-size: 13px;
}


/* ==========================================================================
   7. RESPONSIVE Breakpoints (Mobile Layout Transformation Profile)
   ========================================================================== */
   
@media screen and (max-width: 768px) {
    
    /* Forces the very top contact info strip to stay visible on mobile layout stacks */
    .PhEmHeader {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 99998 !important; /* Layers directly beneath floating menu bar */
        height: auto !important;
    }

    .PhEmnav {
        padding: 8px 15px !important;
        gap: 10px !important;
        justify-content: center !important; /* Centers small top text labels on tiny viewports */
    }

    .PhEmnav a {
        font-size: 13px !important; /* Slightly sizes down email/phone items for mobile screens */
    }
    
    /* 9.1 HORIZONTAL FLOATING PILL NAVIGATION (Shifted Down for Clearances) */
    .menuNav {
        position: fixed !important; 
        top: 55px !important;              /* Pushed down so topmost .PhEmHeader links are completely clear */
        left: 4% !important;               
        right: 4% !important;
        width: 92% !important;
        display: flex !important;
        flex-direction: row !important;    
        justify-content: space-between !important;
        align-items: center !important;
        border-radius: 50px !important;    
        padding: 10px 18px !important;      
        z-index: 99999 !important;         
        background: #ffffff !important;    
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18) !important; 
    }

    /* Scales logo down safely so it leaves maximum room for links */
    .compLogo {
        width: 6.5rem !important;
        height: auto !important;
        flex-shrink: 0 !important;         
    }
    
    /* 9.2 HORIZONTAL TOUCH-SWIPE LINK ROW */
    .menuHeader {
        display: flex !important;
        flex-direction: row !important; 
        align-items: center !important;
        gap: 16px !important;              
        list-style-type: none !important;
        margin: 0 0 0 15px !important;
        padding: 5px 0 !important;
        overflow-x: auto !important;       
        white-space: nowrap !important;    
        max-width: 70% !important;         
        scrollbar-width: none !important;  
    }

    .menuHeader::-webkit-scrollbar {
        display: none !important;
    }

    .menuItem {
        margin: 0 !important;
        flex-shrink: 0 !important;         
    }

    .menuItem a {
        font-size: 14px !important;        
        font-weight: 700 !important;
        color: #04094d !important;         
        text-transform: uppercase;         
        letter-spacing: 0.5px;
        white-space: nowrap !important;     
    }

    /* 9.3 NEW GAP COLLAPSE FIX FOR WELCOME & SLIDESHOW BLOCKS */
    .slideshow-container {
        top: 55px !important; /* Prevents container from pushing content down too aggressively */
        margin-bottom: 0px !important;
    }

    .welDet {
        margin-top: 0px !important;
        margin-bottom: 0px !important;
        padding-top: 0px !important;
        padding-bottom: 0px !important;
    }

    .welDet h2 {
        font-size: 1.5rem !important; /* Downscales large text so it doesn't wrap and stretch vertically */
        margin: 15px 0 0 0 !important;
    }

    .welDet img {
        width: 100% !important; /* Ensures the graphic scales responsively to container edges */
        max-width: 280px !important;
        margin: 10px auto !important;
        display: block !important;
    }

    /* 9.4 YOUR CONTENT & ABOUT SECTION RESPONSIVE UPDATES */
    .abtDet, .aboutDet {
        flex-direction: column !important; 
        gap: 20px !important;
        
        /* Adjusted height accommodates stacked welcome elements perfectly */
        padding-top: 20px !important;     
        margin-top: 0px !important; 
        margin-bottom: 20px !important;
    }

    .introDet, .usDet, .prodAbt, .prodDet {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .introDet p, .usDet p {
        text-align: left !important;       
    }

    /* 9.5 CONTACT & GRID EXTRAS */
    .prodimage {
        flex: 0 1 100% !important;         
    }

    ul.abtImage li, ul.productImage li {
        flex: 0 0 100% !important;         
    }

    .contact-section-wrapper {
        padding-top: 155px !important;     
    }

    .contact-section-wrapper,
    .contact-container {
        flex-direction: column !important;
    }

    .contact-info-block, 
    .contact-form-block {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 20px !important;
    }

    .prev, .next, .text { 
        font-size: 11px; 
    }
}
