/* styles.css */
:root {
    --primary-amber: #e67e22;
    --primary-yellow: #f39c12;
    --primary-hover: #d35400;
    --dark-asphalt: #1c222a;
    --dark-charcoal: #14171c;
    --steel-gray: #2c3e50;
    --bg-sand: #f5f3ef;
    --bg-card: #ffffff;
    --text-dark: #222222;
    --text-muted: #555555;
    --border-color: #e0ddd5;
    
    /* Motif Safety Specific Colors */
    --safety-navy: #0b2046;
    --safety-green: #39ff14;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-sand);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Nav */
header {
    background-color: var(--dark-asphalt);
    border-bottom: 4px solid var(--primary-yellow);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* LOGO INCREASED AS REQUESTED */
.logo img {
    height: 85px; /* Increased from 50px */
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.2rem;
    align-items: center;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: var(--primary-yellow);
    color: var(--dark-charcoal);
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--dark-asphalt);
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1001;
    border-top: 3px solid var(--primary-yellow);
    border-radius: 0 0 4px 4px;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: #ffffff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover,
.dropdown-content a.active {
    background-color: var(--primary-yellow);
    color: var(--dark-charcoal);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
}

/* Mobile Navigation Drawer */
@media (max-width: 768px) {
    .logo img {
        height: 65px; /* Slightly smaller on mobile but still larger than before */
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--dark-asphalt);
        padding: 1rem 1.5rem;
        box-shadow: 0 8px 20px rgba(0,0,0,0.4);
        border-bottom: 4px solid var(--primary-yellow);
        gap: 0;
        align-items: flex-start;
    }

    .nav-links.nav-active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .dropdown-content {
        position: static;
        display: none;
        background-color: rgba(0,0,0,0.2);
        box-shadow: none;
        border-top: none;
        padding-left: 1rem;
    }
    
    .dropdown:hover .dropdown-content,
    .dropdown.active .dropdown-content {
        display: block;
    }
}

/* Hero Sections */
.hero {
    background: linear-gradient(rgba(28, 34, 42, 0.85), rgba(28, 34, 42, 0.85)), url('hero-bg.jpg') center/cover no-repeat;
    color: #ffffff;
    padding: 4.5rem 1.5rem;
    text-align: center;
    border-bottom: 5px solid var(--primary-amber);
}

.home-hero {
    background: linear-gradient(rgba(20, 23, 28, 0.65), rgba(20, 23, 28, 0.65)), url('homepage.jpg') center/cover no-repeat;
    padding: 5.5rem 1.5rem;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.hero p {
    font-size: 1.15rem;
    color: #f0f0f0;
    max-width: 900px;
    margin: 0 auto;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .hero {
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-yellow);
    color: var(--dark-charcoal);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #fff;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--dark-charcoal);
}

/* Layout Containers & Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 3.5rem 1.5rem;
}

@media (max-width: 600px) {
    .section-padding {
        padding: 2rem 1rem;
    }
}

.info-block {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border-left: 6px solid var(--primary-yellow);
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    margin-bottom: 2rem;
}

@media (max-width: 600px) {
    .info-block {
        padding: 1.25rem;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    padding: 1.8rem;
    border-radius: 6px;
    border-top: 4px solid var(--primary-amber);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.service-card h3 {
    color: var(--dark-asphalt);
    margin-bottom: 0.8rem;
}

/* Responsive Flex Layouts */
.responsive-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.responsive-flex > div {
    flex: 1;
    min-width: 280px;
}

@media (max-width: 600px) {
    .responsive-flex > div {
        min-width: 100%;
    }
}

/* Badges Grid */
.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.badge-item {
    background: #f3f4f6;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.88rem;
    text-align: center;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    background: var(--bg-card);
    padding: 1.8rem;
    border-radius: 8px;
    border-top: 5px solid var(--primary-yellow);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.team-img {
    width: 200px;
    height: 200px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-amber);
    margin-bottom: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s;
}

.team-img:hover {
    transform: scale(1.05);
    border-color: var(--primary-yellow);
}

.team-card h3 {
    font-size: 1.4rem;
    color: var(--dark-asphalt);
}

.team-card .role {
    color: var(--primary-amber);
    font-weight: 700;
    margin-bottom: 1rem;
}

.strengths-list {
    margin-top: 1rem;
    padding-left: 1.2rem;
    color: var(--text-muted);
}

/* Gallery Grid & Lightbox Modals */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    background: #1a1a1a;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.lightbox, .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 20000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    padding: 1rem;
}

.lightbox-content, .modal-content {
    max-width: 95%;
    max-height: 85vh;
    border: 3px solid var(--primary-yellow);
    border-radius: 6px;
    box-shadow: 0 0 25px rgba(243, 156, 18, 0.4);
    object-fit: contain;
}

.close-lightbox, .modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #ffffff;
    font-size: 38px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    z-index: 20001;
}

/* Contact Grid */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fafafa;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-amber);
    box-shadow: 0 0 5px rgba(230, 126, 34, 0.3);
}

/* Map iFrame Container */
.map-container {
    margin-bottom: 3rem;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}

@media (max-width: 600px) {
    .map-container iframe {
        height: 300px;
    }
}

/* Footer Global Update */
footer {
    background-color: var(--dark-charcoal);
    color: #d1d5db;
    padding-top: 3rem;
    border-top: 4px solid var(--primary-yellow);
    text-align: center;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.footer-logo {
    max-height: 85px; /* Increased */
    margin-bottom: 1.5rem;
    background-color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
}

.footer-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.footer-subtitle {
    color: var(--primary-yellow);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: #a0aab5;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    background-color: #0b0d0f;
    padding: 1.2rem 1rem;
    border-top: 1px solid #282c34;
    font-size: 0.9rem;
}

.developer-link {
    color: var(--primary-yellow);
    text-decoration: none;
}

.center { text-align: center; }