/* ==========================================================================
   1. CSS Variables (Brand Colors & Typography)
   ========================================================================== */
:root {
    /* Color Palette */
    --primary-navy: #1A365D;      /* Trust, Stability (Header, Footer, Headings) */
    --secondary-orange: #E06C4C;  /* Warm Terracotta (Buttons, Accents) */
    --light-blue: #7CB9E8;        /* Care, Action (From team uniforms) */
    --bg-cream: #FDFDFB;          /* Soft off-white background */
    --text-dark: #333333;         /* Standard body text */
    --text-light: #F4F6F8;        /* Text on dark backgrounds */
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* ==========================================================================
   2. Base Styles & Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-cream);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-navy);
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Soft corners for a human feel */
}

a {
    text-decoration: none;
    color: var(--primary-navy);
    transition: color 0.3s ease;
}

/* ==========================================================================
   3. Layout Utilities
   ========================================================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 0;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.bg-light { background-color: #F4F6F8; }
.max-width-text { max-width: 800px; margin: 0 auto 2rem auto; }

/* ==========================================================================
   4. Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-orange);
    color: #fff;
}

.btn-primary:hover {
    background-color: #C0553A;
    color: #fff;
}

.btn-secondary {
    background-color: var(--primary-navy);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #112440;
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-navy);
    border-color: var(--primary-navy);
}

.btn-outline:hover {
    background-color: var(--primary-navy);
    color: #fff;
}

/* ==========================================================================
   5. Header & Navigation
   ========================================================================== */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0; /* Override default container padding */
}

.logo img {
    max-height: 60px;
    border-radius: 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-weight: 600;
    font-size: 1rem;
}

.main-nav a:hover {
    color: var(--secondary-orange);
}

/* ==========================================================================
   6. Hero Section
   ========================================================================== */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 54, 93, 0.7); /* Navy overlay for text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    color: #fff;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ==========================================================================
   7. Intro Section
   ========================================================================== */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-text h2 {
    font-size: 2.5rem;
}

.intro-image img {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ==========================================================================
   8. Cards Grid (Focus Areas)
   ========================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--light-blue);
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   9. Gallery
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ==========================================================================
   10. CTA Banner
   ========================================================================== */
.cta-banner {
    background-color: var(--primary-navy);
    color: #fff;
    padding: 5rem 0;
}

.cta-banner h2 {
    color: #fff;
    font-size: 2.5rem;
}

.cta-banner p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

/* ==========================================================================
   11. Footer
   ========================================================================== */
.site-footer {
    background-color: #112440;
    color: #a0aec0;
    padding-top: 4rem;
}

.site-footer h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    padding-bottom: 2rem;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    background-color: #0B192C;
    font-size: 0.9rem;
}

/* ==========================================================================
   12. Responsive Design (Mobile & Tablet)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 2.5rem; }
    .intro-grid { grid-template-columns: 1fr; gap: 2rem; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* Mobile Header */
    .nav-container { flex-direction: column; gap: 1rem; }
    .main-nav ul { flex-wrap: wrap; justify-content: center; gap: 1rem; }
    .site-header .btn { display: none; } /* Hide primary button in mobile header to save space */
    
    /* Mobile Layout Fixes */
    .hero-content h1 { font-size: 2rem; }
    .hero-buttons { flex-direction: column; }
    .gallery-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}