/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* CORE BRAND */
    --gold: #b48e4e; 
    --gold-dim: #947238;
    --text-main: #D1D1D1;
    --bg-darkest: #151618;
    --bg-dark: #1A1B1D;
    
    /* CARE PALETTE */
    --care-bg: #2b2d30;
    --sage: #829B89;
    --warm-white: #D1D1D1;
    
    /* FONTS */
    --font-heading: 'Montserrat', sans-serif; 
    --font-body: 'Roboto', sans-serif;       
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    line-height: 1.8;
    color: var(--text-main);
    background-color: var(--bg-darkest);
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased; /* Makes fonts look sharper on Mac/iOS */
}

/* =========================================
   2. TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: #D1D1D1;
    text-transform: uppercase; 
    letter-spacing: 2px;
    font-weight: 700;
}

h2 { font-size: 2.2rem; margin-bottom: 20px; line-height: 1.2; }
h3 { font-size: 1.8rem; color: var(--gold); margin-bottom: 30px; line-height: 1.3; }
h4 { font-size: 1.1rem; letter-spacing: 1px; color: #fff; margin-bottom: 15px;}

p { margin-bottom: 20px; }

.eyebrow {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 4px;
    margin-bottom: 10px;
}

/* =========================================
   3. COMPONENTS
   ========================================= */
.container { width: 90%; max-width: 1400px; margin: 0 auto; }

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid var(--gold);
    cursor: pointer;
    margin-top: 20px;
}

/* Defence Button Style */
.btn-defence {
    background: transparent;
    color: var(--gold);
}
.btn-defence:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 15px rgba(180, 142, 78, 0.4);
}

/* Care Button Style */
.btn-care {
    border-color: var(--sage);
    color: var(--sage);
}
.btn-care:hover {
    background: var(--sage);
    color: #000;
    box-shadow: 0 0 15px rgba(130, 155, 137, 0.4);
}

/* =========================================
   4. HEADER & NAV
   ========================================= */
header {
    background: rgba(21, 22, 24, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo { height: 25px; width: auto; display: block; }

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.main-nav a {
    text-decoration: none;
    font-family: var(--font-heading);
    color: #D1D1D1;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-defence:hover { color: var(--gold); }
.nav-care:hover { color: var(--sage); }

.phone-link {
    color: var(--text-main);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap; /* Prevents phone number breaking */
}

/* =========================================
   5. SPLIT HERO
   ========================================= */
.split-hero {
    display: flex;
    height: 95vh; 
    width: 100%;
    overflow: hidden;
}

.split-side {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: flex 0.5s ease;
    cursor: pointer;
    padding: 20px;
    overflow: hidden; /* Ensures bg image scaling doesn't cause scrollbars */
}

/* Backgrounds */
.side-defence {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('heroid2.png'); 
    background-size: cover;
    background-position: center;
    border-right: 1px solid #333;
}

.side-care {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('care.jpg'); 
    background-size: cover;
    background-position: center;
}

.split-content {
    z-index: 2;
    max-width: 450px;
    width: 100%; /* Ensures text wraps correctly on mobile */
    transition: transform 0.3s ease;
}

.hero-brand-logo {
    height: 60px; 
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Desktop Hover Effect Only */
@media (min-width: 769px) {
    .split-side:hover { flex: 1.3; }
    .split-side:hover .split-content { transform: scale(1.02); }
}

/* =========================================
   6. SECTIONS
   ========================================= */
.section-header { 
    text-align: center; 
    margin-bottom: 60px; 
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto; 
}

/* Defence Section Styling */
.section-defence {
    padding: 100px 0;
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), url('featured.png');
    background-size: cover;
    background-position: center; 
    border-top: 1px solid rgba(180, 142, 78, 0.2);
}

.defence-card {
    border: 1px solid rgba(180, 142, 78, 0.1);
}
.defence-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

/* Care Section Styling */
.section-care {
    padding: 100px 0;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('lady.png'); 
    background-size: cover;
    background-position: center; 
}
.section-care h3 { color: var(--sage); }

.care-card {
    border: 1px solid rgba(130, 155, 137, 0.1);
    background: rgba(255,255,255,0.03);
}
.care-card:hover {
    border-color: var(--sage);
    transform: translateY(-5px);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Increased min-width for readability */
    gap: 30px;
}

.feature-item {
    padding: 40px 30px;
    background: var(--bg-darkest);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%; /* Ensures equal height cards */
}

/* =========================================
   7. PREMIUM FORM & MISSION
   ========================================= */
.lead-form {
    padding: 100px 0;
    background: #0a0a0a;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    background: var(--bg-dark);
    padding: 50px;
    border: 1px solid rgba(180, 142, 78, 0.15); 
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--gold);
}

.contact-form input, 
.contact-form select, 
.contact-form textarea {
    width: 100%;
    padding: 15px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 0;
}

.contact-form select { appearance: none; cursor: pointer; }

.contact-form input:focus, 
.contact-form select:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.07);
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
    letter-spacing: 3px;
    background: var(--gold);
    color: #000 !important;
}

.submit-btn:hover {
    background: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

.mission {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(to right, var(--bg-darkest), var(--bg-dark));
}
.mission-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allows stats to wrap on small screens */
}
.stat strong {
    display: block;
    font-size: 2.5rem;
    color: var(--gold);
}

footer {
    background: #0a0a0a;
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid #222;
}

footer a { color: #888; text-decoration: none; margin: 0 10px; display: inline-block;}
footer a:hover { color: #fff; }

/* =========================================
   8. MOBILE RESPONSIVE (MEDIA QUERIES)
   ========================================= */

/* Tablet & Smaller Desktop (Max Width 1024px) */
@media (max-width: 1024px) {
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    
    .section-defence, .section-care, .lead-form {
        padding: 60px 0; /* Reduced padding */
    }
}

/* Mobile Devices (Max Width 768px) */
@media (max-width: 768px) {
    /* Header Re-layout */
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        gap: 20px;
        font-size: 0.8rem;
    }

    /* Split Hero Stack */
    .split-hero {
        flex-direction: column;
        height: auto; /* Allow height to grow with content */
    }

    .split-side {
        width: 100%;
        /* Minimum height ensures the images are visible even if text is short */
        min-height: 50vh; 
        border-right: none;
        border-bottom: 1px solid #333;
        padding: 40px 20px;
    }

    .split-content {
        max-width: 100%;
    }

    /* Typography Adjustments */
    .section-header { margin-bottom: 40px; }
    h2 { font-size: 1.5rem; }
    .hero-brand-logo { height: 45px; }

    /* Stats */
    .mission-stats {
        gap: 30px;
    }
    .stat {
        flex-basis: 45%; /* 2 stats per row */
    }
    
    /* Feature Grid */
    .feature-grid {
        grid-template-columns: 1fr; /* Stack cards 1 per row */
    }
    
    /* Form */
    .contact-form {
        padding: 30px 20px;
        margin-top: 20px;
    }
}

/* Small Phones (Max Width 480px) */
@media (max-width: 480px) {
    .main-nav ul {
        gap: 15px;
    }
    
    .main-nav a {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
    
    .split-side {
        min-height: 45vh;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.75rem;
    }

    .stat {
        flex-basis: 100%; /* 1 stat per row */
    }
    
    .stat strong {
        font-size: 2rem;
    }
}

/* =========================================
   9. SCROLL ANCHOR FIX
   ========================================= */
/* This targets any Heading that has an ID on it */
h2[id], h3[id] {
    /* 100px accounts for your sticky header height + some breathing room */
    scroll-margin-top: 200px; 
}