/* --- Base Reset & Core Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
html {
    scroll-behavior: smooth;
}

body { 
    font-family: 'Inter', sans-serif; 
    color: #1e293b;
    margin: 0;
}

.container-max {
    max-width: 100% !important;
    width: 100%;
    padding-left: 30px;
    padding-right: 30px;
}

/* Offset for the sticky header when clicking anchor links */
.scroll-mt-header {
    scroll-margin-top: 8rem;
}

/* --- Navigation --- */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    height: 6rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-logo img {
    height: 4rem;
    width: auto;
    margin-right: 1rem;
    object-fit: contain;
}

.logo-text {
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    font-size: 1.125rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: #475569;
}

.nav-links a:hover {
    color: #0f172a;
    transition: color 0.2s;
}

@media (max-width: 768px) {
    .main-nav {
        height: auto;
        padding: 0.75rem 1rem;
    }
    .nav-content {
        flex-direction: column;
        gap: 0.75rem;
    }
    .logo-text {
        font-size: 0.9rem;
    }
    .nav-logo img {
        height: 2.5rem;
    }
    .nav-links {
        gap: 1rem;
        font-size: 0.7rem;
    }
	
	    .contact-grid {
        flex-direction: column;
        gap: 3rem;
    }
    .contact-image-wrapper img {
        /* On mobile, we go back to a fixed height so it doesn't look like a tiny strip */
       width: auto;
		height: auto;
    min-height: 150px; 
    }
}

/* --- Hero Section --- */
.hero-banner {
    background-color: #f1f5f9;
    padding: 5rem 1.5rem 3rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    line-height: 1.1;
    color: #1e293b;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #475569;
    font-weight: 300;
    letter-spacing: 0.025em;
    font-style: italic;
    border-left: 4px solid #cbd5e1;
    padding-left: 1.5rem;
}

/* --- Division Cards --- */
.divisions-grid-container {
    background-color: #f1f5f9;
    padding-bottom: 3rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.divisions-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: stretch;
    width: 100%;
}

.hero-box {
    flex: 1;
    min-width: 0;
    transition: all 0.3s ease-out;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 280px;
    padding: 2rem;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

@media (max-width: 1024px) {
    .divisions-row {
        flex-wrap: wrap; 
    }
    .hero-box {
        flex: 1 1 100%; 
    }
}

.hero-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.08);
}

.box-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.logo-wrapper {
    height: 5.5rem; 
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.logo-wrapper img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.logo-img {
    width: 280px; 
    height: auto;
}

.box-text h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: #0f172a;
}

.box-text p {
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.625;
}

.hover-red:hover { border-color: #ef4444; }
.hover-red:hover h3 { color: #ef4444; }
.hover-blue:hover { border-color: #3b82f6; }
.hover-blue:hover h3 { color: #3b82f6; }
.hover-green:hover { border-color: #22c55e; }
.hover-green:hover h3 { color: #22c55e; }

/* --- About Section --- */
.about-section {
    padding: 6rem 1.5rem;
    background-color: white;
}

.section-label {
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    color: #1e293b;
    line-height: 1.2;
}

.title-accent {
    width: 5rem;
    height: 0.25rem;
    background-color: #1e293b;
    margin: 1.5rem 0 2rem;
}

.about-content {
    font-size: 15px;
    line-height: 1.75;
    color: #334155;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.mission-quote {
    border-left: 4px solid #334155; 
    padding: 0.75rem 1.5rem;
    font-style: italic;
    font-weight: 600;
    color: #334155; 
    background-color: #f8fafc;
    border-radius: 0 0.5rem 0.5rem 0;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* --- Awards --- */
.awards-section {
    padding: 4rem 1.5rem;
    background-color: #f8fafc;
}

.award-badge {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.award-title {
    font-weight: 900;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.award-sub {
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #64748b;
    text-transform: uppercase;
}

/* --- Contact Section (Side-by-Side Image) --- */
.contact-section {
    padding: 6rem 1.5rem;
    background-color: white;
}

.contact-grid {
    display: flex;
    /* Changed to stretch so the image matches the text height exactly */
    align-items: stretch; 
    gap: 4rem;
}

.contact-image-wrapper {
    flex: 1;
    display: flex;
}

/* Matches About Us style but adds grayscale and dynamic height */
.contact-image-wrapper img {
    width: 100%;
    /* height: auto + stretch ensures it ends exactly at the phone number */
    height: 100%; 
    min-height: 75px; /* Prevents it from getting too small */
    
    /* Focuses on people's faces/upper bodies when cropping occurs */
    object-fit:fill;
    object-position: center; 
    
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Grayscale Logic */
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

/* Color on Hover */
.contact-image-wrapper img:hover {
    filter: grayscale(0%);
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Keeps text at the top */
    text-align: left;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Removes margin from the last item (phone) to help alignment */
.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    width: 6rem;
    min-width: 6rem;
    font-size: 0.625rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.info-value {
    font-size: 15px;
    font-weight: 500;
    color: #0f172a;
}

/* Contact stacking for iPad/Phone */
@media (max-width: 1024px) {
    .contact-grid {
        flex-direction: column;
        gap: 3rem;
    }
    .contact-image-wrapper img {
        /* On mobile, we go back to a fixed height so it doesn't look like a tiny strip */
       width: auto;
		height: auto;
    min-height: 150px; 
    }
}

/* --- Footer (Restored to your original behavior) --- */
/* Your HTML Tailwind classes will handle the layout now */
footer {
    /* Base color provided by your HTML bg-[#0f172a] */
}

.h-12 {
    height: 3rem;
}