/* ==========================================================================
   1. GLOBAL RESET & BASE SITE STYLES
   ========================================================================== */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html { 
    scroll-behavior: smooth; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
}

body { 
    background-color: #f1f5f9; 
    color: #334155; 
    line-height: 1.5; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
}

.container { 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 1.5rem; 
    box-sizing: border-box; 
}

.section { 
    padding: 5rem 0; 
    flex-grow: 1; 
}

.text-center { 
    text-align: center; 
}

.section-title { 
    font-size: 1.75rem; 
    font-weight: 800; 
    color: #0f172a; 
    margin-bottom: 1rem; 
    tracking-tight: -0.025em; 
}

.section-desc { 
    color: #64748b; 
    max-width: 38rem; 
    margin: 0 auto 3.5rem auto; /* Clean spacious layout buffer pushing down cards */
    font-size: 0.938rem; 
    padding: 0 1rem; 
}

/* ==========================================================================
   2. UNIFIED RESPONSIVE HEADER NAVIGATION
   ========================================================================== */
header { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    background-color: #0f172a; 
    color: #ffffff; 
    z-index: 9999; 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); 
    border-bottom: 1px solid #1e293b; 
}

.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0.75rem 1.5rem; 
    flex-wrap: wrap; 
    gap: 1rem; 
}

.logo { 
    color: #f59e0b; 
    font-size: 1.25rem; 
    font-weight: 800; 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
    letter-spacing: -0.025em; 
    text-transform: uppercase; 
}

.logo img { 
    width: 42px; 
    height: 42px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 2px solid #f59e0b; 
}

nav { 
    display: flex; 
    gap: 1.5rem; 
    align-items: center; 
    flex-wrap: wrap; 
}

nav a { 
    color: #cbd5e1; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 0.875rem; 
    transition: all 0.2s; 
    letter-spacing: 0.05em; 
    padding-bottom: 4px; 
    border-bottom: 2px solid transparent; 
    white-space: nowrap; 
}

@media (max-width: 480px) {
    .nav-container { justify-content: center; text-align: center; padding: 0.75rem 1rem; }
    nav { justify-content: center; gap: 1rem; width: 100%; }
    nav a { font-size: 0.813rem; }
}

/* ==========================================================================
   3. INNER SUBPAGE BANNER COMPONENT
   ========================================================================== */
.page-banner { 
    padding-top: 10rem; 
    padding-bottom: 5rem; 
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.85)), 
                url('about-banner.jpg'); /* Shared subpage overlay theme */
    background-size: cover; 
    background-position: center center;
    color: #ffffff; 
    text-align: center; 
}

.page-banner span { 
    color: #f59e0b; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.12em; 
    font-size: 0.75rem; 
    display: block; 
    margin-bottom: 0.5rem; 
}

.page-banner h1 { 
    color: #ffffff;
    font-size: 2.25rem; 
    font-weight: 800; 
    tracking-tight: -0.025em; 
    text-shadow: 0 2px 8px rgba(2, 6, 23, 0.4);
}

.page-banner p { 
    color: #cbd5e1; 
    font-size: 1rem; 
    max-width: 35rem; 
    margin: 0.75rem auto 0 auto; 
    padding: 0 1rem; 
    text-shadow: 0 1px 4px rgba(2, 6, 23, 0.3);
}

@media (max-width: 768px) {
    .page-banner { padding-top: 12rem; padding-bottom: 4rem; }
    .page-banner h1 { font-size: 1.75rem; }
}

/* ==========================================================================
   4. HOME PAGE HERO SEGMENT
   ========================================================================== */
.hero { 
    flex-grow: 1; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding-top: 12rem; 
    padding-bottom: 8rem; 
    text-align: center;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.85)), 
                url('hero-bg.png'); /* Secure PNG file definition */
    background-size: cover; 
    background-position: center center;
    background-attachment: scroll;
    min-height: 85vh; 
}

.hero-content { 
    max-width: 850px; 
    margin: 0 auto; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

.hero-tag { 
    color: #f59e0b; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.12em; 
    font-size: 0.875rem; 
    margin-bottom: 1.25rem; 
    display: block; 
}

.hero h1 { 
    color: #ffffff;
    font-size: 2.75rem; 
    font-weight: 800; 
    line-height: 1.2; 
    margin-bottom: 1.5rem; 
    letter-spacing: -0.025em; 
    text-shadow: 0 4px 12px rgba(2, 6, 23, 0.5); 
}

@media (min-width: 768px) { 
    .hero h1 { font-size: 4rem; } 
}

.hero p { 
    color: #f1f5f9; 
    font-size: 1.125rem; 
    line-height: 1.75; 
    margin-bottom: 2.5rem; 
    max-width: 38rem; 
    text-align: center; 
    padding: 0 1rem;
    text-shadow: 0 2px 8px rgba(2, 6, 23, 0.4);
}

.btn-group { 
    display: flex; 
    flex-direction: column; 
    gap: 1rem; 
    width: 100%; 
    justify-content: center; 
}

@media (min-width: 480px) { 
    .btn-group { flex-direction: row; width: auto; } 
}

.btn { 
    display: inline-block; 
    padding: 0.875rem 2rem; 
    font-weight: 700; 
    border-radius: 0.375rem; 
    text-decoration: none; 
    text-align: center; 
    transition: all 0.2s; 
    font-size: 1rem; 
    cursor: pointer; 
}

.btn-primary { 
    background-color: #b91c1c; 
    color: #ffffff; 
    border: 2px solid #b91c1c; 
}

.btn-primary:hover { 
    background-color: #991b1b; 
    border-color: #991b1b; 
}

.btn-outline { 
    border: 2px solid #ffffff; 
    color: #ffffff; 
    background: transparent; 
}

.btn-outline:hover { 
    background-color: #ffffff; 
    color: #0f172a; 
}

/* ==========================================================================
   5. ABOUT US PAGE COMPONENTS
   ========================================================================== */
.overview-box { 
    background-color: #ffffff; 
    padding: 3rem; 
    border-radius: 1.25rem; 
    border: 1px solid #e2e8f0; 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03); 
    max-width: 900px; 
    margin: 0 auto 5rem auto; 
    box-sizing: border-box; 
}

@media (max-width: 768px) { 
    .overview-box { padding: 1.75rem; margin-bottom: 3.5rem; } 
}

.strength-grid { 
    display: grid; 
    gap: 2rem; 
    grid-template-columns: repeat(4, 1fr); /* Locks 4 items on desktop row */
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
}

.strength-card { 
    background-color: #ffffff; 
    border-radius: 1rem; 
    padding: 2rem; 
    border: 1px solid #e2e8f0; 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); 
    display: flex; 
    flex-direction: column; 
    gap: 0.75rem; 
    box-sizing: border-box; 
}

.icon-box { 
    width: 3rem; height: 3rem; 
    background-color: #fee2e2; 
    color: #b91c1c; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    margin-bottom: 0.5rem; 
    flex-shrink: 0; 
}

.icon-box svg { 
    width: 1.5rem; 
    height: 1.5rem; 
    fill: currentColor; 
}

@media (max-width: 1024px) {
    .strength-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 640px) {
    .strength-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ==========================================================================
   6. SERVICES PAGE COMPONENTS (TEXT TOP, 3 PICTURES BOTTOM)
   ========================================================================== */
.services-stack { 
    display: flex; 
    flex-direction: column; 
    gap: 4rem; 
}

.service-panel { 
    background-color: #ffffff; 
    padding: 2.5rem; 
    border-radius: 1.25rem; 
    border: 1px solid #e2e8f0; 
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); 
    display: flex; 
    flex-direction: column; 
    gap: 2rem; 
    width: 100%;
}

.content-col { 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    gap: 0.75rem; 
    align-items: flex-start; 
}

.badge { 
    background-color: #fee2e2; 
    color: #b91c1c; 
    font-size: 0.75rem; 
    font-weight: 700; 
    padding: 0.35rem 0.875rem; 
    border-radius: 9999px; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    display: inline-block; 
}

.gallery-col { 
    width: 100%;
    display: grid; 
    grid-template-columns: repeat(3, 1fr); /* 3 column photo grid array */
    gap: 1.25rem; 
}

.gallery-col img { 
    width: 100%; 
    height: 300px; 
    object-fit: cover; 
    object-position: center center; 
    border-radius: 0.75rem; 
    border: 1px solid #cbd5e1; 
    background-color: #e2e8f0; 
}

@media (max-width: 1024px) {
    .gallery-col img { height: 220px; }
}

@media (max-width: 768px) {
    .service-panel { padding: 1.5rem; gap: 1.5rem; }
    .gallery-col { grid-template-columns: 1fr !important; gap: 1rem; }
    .gallery-col img { height: 180px !important; } /* Mobile image un-cropping logic */
}

/* ==========================================================================
   7. CONTACT DETAILS COMPONENT (FLUID 2-2-1 ARRAY MATRIX)
   ========================================================================== */
.main-card { 
    background-color: #ffffff; 
    border-radius: 1.25rem; 
    padding: 3rem; 
    border: 1px solid #e2e8f0; 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03); 
    max-width: 900px; 
    margin: 0 auto; 
    box-sizing: border-box;
}

.info-panel { 
    display: flex; 
    flex-direction: column; 
    gap: 2rem; 
}

.info-grid { 
    display: grid; 
    gap: 1.5rem; 
    grid-template-columns: repeat(2, 1fr); /* Standard twin rows */
    margin-bottom: 1.5rem;
    width: 100%;
}

.info-group { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    background-color: #f8fafc; 
    padding: 1.5rem; 
    border-radius: 0.75rem; 
    border: 1px solid #e2e8f0; 
    box-sizing: border-box;
    width: 100%;
}

.icon-wrap { 
    width: 2.5rem; height: 2.5rem; 
    background-color: #fee2e2; 
    color: #b91c1c; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    flex-shrink: 0; 
}

.icon-wrap svg { 
    width: 1.25rem; 
    height: 1.25rem; 
    fill: currentColor; 
}

.info-text h4 { 
    color: #0f172a; 
    font-size: 1rem; 
    font-weight: 700; 
    margin-bottom: 0.25rem; 
}

.info-text a { 
    color: #475569; 
    font-size: 0.938rem; 
    text-decoration: none; 
    display: block; 
    line-height: 1.5; 
}

.info-text a:hover { 
    color: #b91c1c; 
}

/* Forces the 5th item (Headquarters Location card) to span full width layout row */
.info-grid > div:last-child {
    grid-column: span 2;
    width: 100%;
    margin-top: 0.5rem;
}

@media (max-width: 640px) {
    .main-card { padding: 1.5rem 1rem !important; width: 100% !important; }
    .info-grid { grid-template-columns: 1fr !important; } /* Fluid stack overrides */
    .info-grid > div:last-child { grid-column: span 1 !important; }
    .info-group { padding: 1rem !important; }
    .info-text a { font-size: 0.813rem !important; word-break: break-all !important; } /* Stops long yahoo links breaking container */
}

/* ==========================================================================
   8. GLOBAL MULTI-COLUMN INFORMATION FOOTERS
   ========================================================================== */
footer { 
    background-color: #020617; 
    color: #94a3b8; 
    padding: 4rem 0 2rem 0; 
    border-top: 1px solid #0f172a; 
    margin-top: auto; 
}

.footer-grid { 
    display: flex; 
    flex-direction: row; 
    flex-wrap: wrap; 
    gap: 3rem; 
    justify-content: space-between; 
    box-sizing: border-box; 
}

.footer-col-1 { flex: 1.2 1 300px; display: flex; flex-direction: column; gap: 1rem; }
.footer-col-2 { flex: 1 1 250px; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col-3 { flex: 1.2 1 300px; display: flex; flex-direction: column; gap: 0.75rem; }

.footer-title { 
    color: #ffffff; 
    font-size: 0.875rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    border-bottom: 2px solid #1e293b; 
    padding-bottom: 0.5rem; 
    margin-bottom: 0.25rem; 
}

.footer-links a { 
    color: #cbd5e1; 
    text-decoration: none; 
    font-weight: 600; 
    transition: color 0.2s; 
}

.footer-links a:hover { 
    color: #f59e0b; 
}
