/* ===================================
   MGA Engineering - Custom Styles
   Built on Skeleton CSS Framework
   =================================== */

/* Color Palette */
:root {
    --primary-color: #003366;
    --secondary-color: #0066cc;
    --accent-color: #ff6600;
    --text-color: #333;
    --light-gray: #f4f4f4;
    --border-color: #ddd;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Base Overrides */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.7rem;
}

/* Container Override - Centered with max-width 1200px */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

.logo h1 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    color: var(--white);
}

/* Navigation Styles */
nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    display: block;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-weight: 500;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--white);
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Main Content */
main {
    min-height: calc(100vh - 250px);
    padding: 3rem 0;
}

/* Section Styles */
.section {
    margin-bottom: 3rem;
}

.section-title {
    color: var(--primary-color);
    font-size: 3.6rem;
    margin-bottom: 2rem;
    border-bottom: 4px solid var(--accent-color);
    padding-bottom: 1rem;
    font-weight: 700;
}

.section-content {
    font-size: 1.8rem;
    line-height: 1.9;
}

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

/* Header Image */
.header-image {
    width: 100%;
    max-width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow);
}

/* Vision Box */
.vision-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    margin: 2.5rem 0;
    box-shadow: var(--shadow);
    font-style: italic;
    font-size: 1.9rem;
    line-height: 1.8;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.vision-box-image {
    flex-shrink: 0;
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.vision-box-text {
    flex: 1;
}

/* Services Preview Grid */
.services-preview {
    margin-top: 2.5rem;
}

.services-preview .row {
    margin-bottom: 1rem;
}

.service-card {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid var(--accent-color);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 2rem;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-left-color: var(--secondary-color);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2.4rem;
    font-weight: 600;
}

.service-card p {
    margin-bottom: 0;
    line-height: 1.7;
}

/* Subsections */
.subsection {
    margin: 2.5rem 0;
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: 8px;
    border-top: 4px solid var(--secondary-color);
}

.subsection h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 2.6rem;
    font-weight: 600;
}

.subsection p {
    margin-bottom: 1.2rem;
}

.subsection ul {
    margin-left: 2rem;
    margin-top: 1.2rem;
}

.subsection li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* Contact Information */
.contact-info {
    margin-top: 2.5rem;
}

.contact-card {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    border-top: 5px solid var(--primary-color);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.contact-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 2.4rem;
    font-weight: 600;
}

.contact-card p {
    margin-bottom: 0.7rem;
    line-height: 1.6;
}

.contact-card a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 4rem;
}

footer p {
    margin: 0;
    font-size: 1rem;
}

/* Buttons (Skeleton Override) */
.button,
button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transition: all 0.3s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.button.button-primary,
button.button-primary,
input[type="submit"].button-primary,
input[type="reset"].button-primary,
input[type="button"].button-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.button.button-primary:hover,
button.button-primary:hover {
    background-color: #e65a00;
    border-color: #e65a00;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 4rem;
    font-size: 1.3rem;
    color: var(--secondary-color);
}

/* Error State */
.error {
    background-color: #ffebee;
    color: #c62828;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 5px solid #c62828;
    margin: 1.5rem 0;
    font-weight: 500;
}

/* Highlighted Keywords */
.highlight-keyword {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Utility Classes */
.hidden {
    display: none;
}

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 1.5rem;
    }

    header .container {
        flex-wrap: wrap;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    nav.active {
        max-height: 600px;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        margin-top: 1.5rem;
    }

    nav ul li a {
        padding: 1.2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .section-title {
        font-size: 2.8rem;
    }

    .section-content {
        font-size: 1.6rem;
    }

    .header-image {
        height: 220px;
    }

    .vision-box {
        padding: 1.8rem;
        font-size: 1.7rem;
        flex-direction: column;
        text-align: center;
    }

    .vision-box-image {
        width: 200px;
        height: 200px;
    }

    .service-card h3,
    .contact-card h3 {
        font-size: 2rem;
    }

    .subsection h3 {
        font-size: 2.2rem;
    }

    .service-card,
    .contact-card,
    .subsection {
        padding: 1.5rem;
    }

    main {
        padding: 2rem 0;
    }
}

@media (max-width: 550px) {
    body {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 2.4rem;
    }

    .section-content {
        font-size: 1.5rem;
    }

    .header-image {
        height: 180px;
    }

    .vision-box {
        font-size: 1.5rem;
    }

    .vision-box-image {
        width: 150px;
        height: 150px;
    }

    .service-card h3,
    .contact-card h3 {
        font-size: 1.8rem;
    }

    .subsection h3 {
        font-size: 2rem;
    }
}
