/* --- 1. GLOBAL VARIABLES & RESET --- */
:root {
    /* Brand Colors */
    --primary: #14213d;
    /* Very Deep Navy */
    --primary-dark: #000000;
    /* Black for hover */
    --accent: #d4af37;
    /* Metallic Gold */
    --accent-hover: #b4941f;
    /* Darker Gold */

    /* Neutrals */
    --bg-body: #f8f9fa;
    /* Clean gray-white */
    --white: #ffffff;
    --text-main: #1c1c1c;
    /* Near black */
    --text-light: #636e72;
    /* Slate gray */
    --footer-bg: #0a1122;
    /* Darker Navy */

    /* System UI */
    --radius: 4px;
    /* Sharper corners = more serious */
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.2s ease;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- 2. COMMON COMPONENTS --- */

/* Base Button Style */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

/* Primary Action */
.btn-primary {
    background-color: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* Secondary Action */
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Card Component */
.card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
    transition: var(--transition);
    margin-bottom: 20px;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.card h3 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Section Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 3. NAVBAR --- */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.btn-nav {
    background-color: var(--accent);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 6px;
}

.btn-nav:hover {
    background-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* --- 4. FOOTER --- */
.footer {
    background-color: var(--footer-bg);
    color: #b0b8c1;
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

/* Accent line under headings */
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent);
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b0b8c1;
    text-decoration: none;
    transition: color 0.2s ease;
    /* Only animate color, not position */
}

/* NEW HOVER EFFECT: Simple color change + underline */
.footer-links a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* --- 5. RESPONSIVENESS (UPDATED) --- */
@media (max-width: 768px) {

    /* 1. Navbar Mobile Logic */
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: absolute;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        padding: 20px 0;
        transition: 0.4s;
        box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    /* 2. Professional Mobile Footer Fix */
    .footer {
        text-align: left;
        /* Force Left Alignment */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        /* Stack clearly */
        /* Reduce gap slightly for mobile */
    }

    .footer-col {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        /* Optional: subtle separator */
        padding-bottom: 20px;
    }

    /* Remove border from the last column so it doesn't look weird above copyright */
    .footer-col:last-child {
        border-bottom: none;
    }

    /* Ensure the accent line stays on the LEFT */
    .footer-col h4::after {
        left: 0;
        transform: none;
    }
}

/* --- 6. NEW SECTION UTILITIES --- */
.section-padding {
    padding: 80px 20px;
}

/* Alternate background for visual break */
.bg-light {
    background-color: #eef2f5;
    /* Slightly darker than body bg */
}

/* Dark background for Stats/CTA */
.bg-primary {
    background-color: var(--primary);
    color: var(--white);
}

.text-center {
    text-align: center;
}

/* Grid for "About/Why Us" sections */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Stats Row Styling */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h2 {
    font-size: 2.5rem;
    margin: 0;
    color: var(--accent);
}

.stat-item p {
    margin: 10px 0 0;
    opacity: 0.9;
}

/* Mobile adjustments for the new grids */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        /* Stack vertically on mobile */
        gap: 40px;
    }

    .section-padding {
        padding: 50px 20px;
    }
}

/* --- 7. FORM & CONTACT STYLES (ADDED) --- */

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    box-sizing: border-box;
    /* Crucial for padding */
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Contact Info Box Styling */
.contact-info-box {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: 100%;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 15px;
}

.icon-box {
    background-color: var(--bg-body);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-detail-content h5 {
    margin: 0 0 5px 0;
    color: var(--primary);
}

.contact-detail-content p,
.contact-detail-content a {
    margin: 0;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
}

.contact-detail-content a:hover {
    color: var(--accent);
}

/* Map Frame */
.map-container {
    margin-top: 30px;
    border-radius: var(--radius);
    overflow: hidden;
    height: 250px;
    background-color: #eee;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Alert Messages (For PHP Session Feedback) */
.alert {
    padding: 15px;
    margin-bottom: 30px;
    border-radius: var(--radius);
    border-left: 5px solid;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #dc3545;
}

/* --- 8. HOMEPAGE & UTILITY CLASSES --- */

/* Text Colors */
.text-primary {
    color: var(--primary);
}

.text-white {
    color: var(--white);
}

.text-light-custom {
    color: var(--text-light);
}

.text-white-all h3,
.text-white-all p {
    color: var(--white);
}

/* Margins */
.mt-0 {
    margin-top: 0;
}

.mt-10 {
    margin-top: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-50 {
    margin-bottom: 50px;
}

/* Custom Text Blocks */
.hero-text {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
}

.cta-text {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* Grids & Lists */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
}

.feature-list {
    list-style: none;
    padding: 0;
    color: var(--text-main);
}

.feature-list li {
    margin-bottom: 15px;
}

/* Images & Media */
.image-wrapper {
    background-color: #ddd;
    height: 100%;
    min-height: 300px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
}

/* --- CORE VALUES GRID --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.value-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 25px;
    border-radius: var(--radius);
    border-top: 3px solid var(--accent);
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.value-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.1);
    /* Uses your --accent color */
    border-radius: 50%;
    color: var(--accent);
}

.value-card h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 15px;
    margin-top: 0;
}

.value-card p {
    color: #b0b8c1;
    /* Uses the lighter text color from your footer */
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}