/* ==========================================================================
   CAMERON MACHINING - REDESIGN (TEXTURE & GLASSMORPHISM)
   ========================================================================== */

:root {
    /* Brand Colors */
    --brand-blue: #0072CE;
    --brand-orange: #F54A06;
    
    /* UI Colors */
    --text-white: #FFFFFF;
    --text-muted: #D1D5DB;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(15, 20, 30, 0.65);         
    --glass-border: rgba(255, 255, 255, 0.12);  
    --glass-highlight: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-white);
    line-height: 1.6;
    background-color: #111;
    background-image: url('../images/background4.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    background-repeat: no-repeat;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, .logo {
    font-family: 'Chakra Petch', sans-serif;
    letter-spacing: 1px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

/* --- WHITE HEADER WITH PHONE NUMBER & FOLDER TABS --- */
.glass-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #FFFFFF;
    border-bottom: 3px solid var(--brand-blue); /* Bottom blue bar */
    padding: 12px 0 0 0; /* Lets tabs rest on the line */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Keeps logo and tab base aligned to bottom */
}

.logo {
    padding-bottom: 8px; /* Centers logo vertically against phone/tabs */
}

/* RIGHT COLUMN WRAPPER */
.header-right-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Right-aligns phone number over tabs */
}

/* TOP RIGHT PHONE NUMBER */
.header-phone {
    margin-bottom: 6px;
}

.header-phone a {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.5rem; /* Prominent size matching your mockup */
    font-weight: 700;
    color: var(--brand-blue);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.header-phone a:hover {
    color: var(--brand-orange);
}

/* TAB MENU CONTAINER */
.nav-tabs {
    list-style: none;
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
}

/* INDIVIDUAL FOLDER TAB */
.tab-item a {
    display: block;
    padding: 10px 18px;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: #1E293B;
    background: #E2E8F0;
    border: 1px solid #CBD5E1;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    position: relative;
    top: 3px;
    transition: all 0.2s ease-in-out;
}

/* TAB HOVER STATE */
.tab-item a:hover {
    background: #FFFFFF;
    color: var(--brand-orange);
    border-color: var(--brand-orange);
    top: 0px;
    box-shadow: 0 -4px 12px rgba(245, 74, 6, 0.2);
}

/* ACTIVE TAB STATE */
.tab-item.active a {
    background: var(--brand-blue);
    color: #FFFFFF !important;
    border-color: var(--brand-blue);
    top: 0px;
    box-shadow: 0 -4px 12px rgba(0, 114, 206, 0.3);
}

/* MOBILE RESPONSIVE STYLING */
@media (max-width: 900px) {
    .nav-flex {
        flex-direction: column;
        align-items: center;
    }
    
    .header-right-group {
        align-items: center;
        width: 100%;
        margin-top: 10px;
    }
    
    .header-phone a {
        font-size: 1.3rem;
    }
    
    .nav-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 3px;
    }
    
    .tab-item a {
        padding: 8px 10px;
        font-size: 0.75rem;
    }
}

/* TAB MENU CONTAINER */
.nav-tabs {
    list-style: none;
    display: flex;
    gap: 5px; /* Gap between individual folder tabs */
    margin: 0;
    padding: 0;
}

/* INDIVIDUAL FOLDER TAB */
.tab-item a {
    display: block;
    padding: 10px 18px;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: #1E293B; /* Crisp dark navy text */
    background: #E2E8F0; /* Machined metallic light-gray tab base */
    border: 1px solid #CBD5E1;
    border-bottom: none; /* Merges tab directly into main header line */
    border-radius: 6px 6px 0 0; /* Classic curved folder tab top */
    position: relative;
    top: 3px; /* Sits tab directly on bottom border line */
    transition: all 0.2s ease-in-out;
}

/* TAB HOVER STATE */
.tab-item a:hover {
    background: #FFFFFF;
    color: var(--brand-orange);
    border-color: var(--brand-orange);
    top: 0px; /* Subtle physical tab lift */
    box-shadow: 0 -4px 12px rgba(245, 74, 6, 0.2);
}

/* ACTIVE TAB STATE (CURRENT PAGE) */
.tab-item.active a {
    background: var(--brand-blue);
    color: #FFFFFF !important; /* Pure white text on active blue tab */
    border-color: var(--brand-blue);
    top: 0px; /* Keeps active tab raised */
    box-shadow: 0 -4px 12px rgba(0, 114, 206, 0.3);
}

/* MOBILE RESPONSIVE TABS */
@media (max-width: 900px) {
    .nav-flex {
        flex-direction: column;
        align-items: center;
    }
    
    .logo {
        padding-bottom: 15px;
    }
    
    .nav-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 3px;
    }
    
    .tab-item a {
        padding: 8px 12px;
        font-size: 0.78rem;
    }
}

/* --- GRAPHIC LOGO STYLING --- */
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 75px !important; /* Increase or decrease this pixel number to resize */
    width: auto !important;
    max-width: 350px !important;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.02);
}

/* Mobile responsive scaling */
@media (max-width: 768px) {
    .logo-img {
        height: 48px !important;
    }
}
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--text-blue);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--brand-orange);
}

/* --- BUTTONS --- */
.btn-blue {
    background-color: var(--brand-blue);
    color: var(--text-white) !important;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 114, 206, 0.4);
}

.btn-blue:hover {
    background-color: var(--brand-orange);
    box-shadow: 0 4px 15px rgba(245, 74, 6, 0.5);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* --- CONTAINED HERO SLIDER --- */
.hero-section {
    padding: 40px 0 60px 0;
}

.hero-swiper {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    background-color: #FFFFFF;
    position: relative;
}

.hero-swiper .swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #FFFFFF;
    min-height: 460px; /* Establishes hero height */
    padding: 70px 40px 95px 40px; /* Extra bottom padding prevents dot overlap */
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.hero-slide-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.hero-slide-content .hero-tag {
    color: var(--brand-blue) !important;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 12px;
    text-shadow: none !important;
}

.hero-slide-content h2 {
    font-size: 2.8rem !important;
    line-height: 1.15;
    color: #0F172A !important; /* Deep navy black text */
    margin-bottom: 16px;
    font-family: 'Chakra Petch', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: none !important;
}

.hero-slide-content p {
    font-size: 1.1rem !important;
    color: #334155 !important; /* Slate dark gray text */
    margin-bottom: 28px;
    font-weight: 600;
    line-height: 1.5;
    text-shadow: none !important;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.btn-blue-outline {
    border: 2px solid var(--brand-blue);
    color: var(--brand-blue) !important;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.btn-blue-outline:hover {
    background-color: var(--brand-blue);
    color: #FFFFFF !important;
}

/* Swiper Controls & Pagination Dots */
.hero-swiper .swiper-pagination {
    bottom: 22px !important;
}

.hero-swiper .swiper-pagination-bullet {
    background: #64748B;
    opacity: 0.5;
    width: 10px;
    height: 10px;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: var(--brand-blue) !important;
    opacity: 1;
    width: 26px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: var(--brand-blue);
    background: rgba(255, 255, 255, 0.9);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-swiper .swiper-button-next:after,
.hero-swiper .swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: bold;
}

/* --- GRID LAYOUTS --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* --- GLASSMORPHISM CARDS --- */
.glass-card, .glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 40px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: var(--glass-shadow);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-highlight);
    background: rgba(25, 30, 45, 0.75); 
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.glass-card h3, .glass-panel h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--text-white);
}

.glass-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- CONTACT PANEL --- */
.glass-divider {
    border: 0;
    height: 1px;
    background: var(--glass-border);
    margin: 25px 0;
}

.contact-row {
    margin-bottom: 12px;
    color: var(--text-muted);
}

.contact-row a {
    color: var(--brand-blue);
    font-weight: 700;
    text-decoration: none;
}

/* --- MAP --- */
.map-container {
    padding: 10px;
}

.map-container iframe {
    display: block;
    border-radius: 4px;
    filter: grayscale(80%) invert(95%) opacity(0.8);
    transition: all 0.4s ease;
}

.map-container:hover iframe {
    filter: grayscale(0%) invert(0%) opacity(1);
}

/* --- FOOTER --- */
.glass-footer {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}
/* --- MOBILE RESPONSIVE FIX FOR GRID STACKING & MAP --- */
@media (max-width: 768px) {
    /* Forces 2-column and 3-column layouts into a single full-width vertical stack */
    .grid-2, .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    /* Adjusts panel padding for phone screens */
    .glass-panel {
        padding: 25px 20px !important;
    }

    /* Ensures the map takes 100% width and proper height when stacked underneath */
    .map-container {
        width: 100% !important;
    }

    .map-container iframe {
        width: 100% !important;
        height: 280px !important;
    }
}