/* ========================================
   MOONGATE TECHNOLOGIES - MASTER STYLES
   Professional Aviation/Engineering Grade
   ======================================== */

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background-color: #ffffff;
    font-size: 16px;
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header,
header {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e8e8e8;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    gap: 2rem;
}

.logo {
    height: 55px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container .logo {
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
}

/* Navigation Links */
nav ul,
.nav-links,
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav a,
.nav-links a,
.nav-menu a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

nav a:hover,
.nav-links a:hover,
.nav-menu a:hover {
    color: #667eea;
}

nav a.active,
.nav-links a.active,
.nav-menu a.active {
    color: #667eea;
    font-weight: 600;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #667eea;
}

/* ========================================
   HERO SECTIONS
   ======================================== */
.hero,
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container,
.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero h1,
.hero-section h1,
.hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero p,
.hero-section p,
.hero-subtitle {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    opacity: 0.95;
}

/* ========================================
   BUTTONS & CALLS TO ACTION
   ======================================== */
.cta,
.cta-button,
.submit-button {
    display: inline-block;
    background-color: #667eea;
    color: #ffffff;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    text-align: center;
}

.cta:hover,
.cta-button:hover,
.submit-button:hover {
    background-color: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.cta:active,
.cta-button:active,
.submit-button:active {
    transform: translateY(0);
}

/* White button variant (for dark backgrounds) */
.hero .cta,
.cta-section .cta-button,
section.cta .cta-button {
    background-color: #ffffff;
    color: #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero .cta:hover,
.cta-section .cta-button:hover,
section.cta .cta-button:hover {
    background-color: #f8f9fa;
    color: #5568d3;
}

/* ========================================
   MAIN CONTENT SECTIONS
   ======================================== */
main {
    padding: 4rem 0;
}

section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.content-section {
    margin-bottom: 3.5rem;
}

.content-section h2 {
    font-size: 1.875rem;
    color: #2c3e50;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #667eea;
    font-weight: 600;
}

.content-section p {
    font-size: 1.125rem;
    color: #555555;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

/* ========================================
   SERVICE CARDS
   ======================================== */
.services {
    background-color: #f8f9fa;
    padding: 5rem 0;
}

.services h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 3rem;
    text-align: center;
}

.services .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
}

.service-card,
.service-item {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
    text-align: center;
}

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

.service-card h3,
.service-item h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p,
.service-item p {
    font-size: 1.0625rem;
    color: #666666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-card .cta {
    margin-top: 1rem;
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
}

/* Services List Grid */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

/* ========================================
   PROBLEM/SOLUTION SECTIONS
   ======================================== */
.problem,
.problem-solution {
    background-color: #f8f9fa;
    padding: 5rem 0;
}

.section-content {
    max-width: 900px;
    margin: 0 auto;
}

.problem-section,
.solution-section {
    margin-bottom: 3rem;
}

.problem-section h2,
.solution-section h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.problem-section p,
.solution-section p {
    font-size: 1.125rem;
    color: #666666;
    line-height: 1.8;
}

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */
.how-it-works {
    background-color: #f8f9fa;
    padding: 5rem 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.step {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    border-radius: 50%;
    line-height: 60px;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.step h3 {
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ========================================
   BENEFITS SECTION
   ======================================== */
.benefits {
    background-color: #ffffff;
    padding: 5rem 0;
}

.benefits-list {
    list-style: none;
    max-width: 800px;
    margin: 2.5rem auto 0;
    padding: 0;
}

.benefits-list li {
    padding: 1.25rem 0 1.25rem 3rem;
    position: relative;
    font-size: 1.125rem;
    color: #555555;
    border-bottom: 1px solid #e8e8e8;
    line-height: 1.6;
}

.benefits-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1.25rem;
    color: #667eea;
    font-weight: 700;
    font-size: 1.5rem;
}

.benefits-list li:last-child {
    border-bottom: none;
}

/* ========================================
   COMPLIANCE SECTION
   ======================================== */
.compliance {
    background-color: #f8f9fa;
    padding: 4rem 0;
    text-align: center;
}

.compliance h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.compliance p {
    font-size: 1.125rem;
    color: #666666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ========================================
   CALL TO ACTION SECTIONS
   ======================================== */
.cta-section,
section.cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2,
section.cta h2 {
    font-size: 2.25rem;
    color: #ffffff;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.cta-section p,
section.cta p {
    font-size: 1.125rem;
    color: #ffffff;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    opacity: 0.95;
}

/* About Preview Section */
.about-preview {
    background-color: #f8f9fa;
    padding: 5rem 0;
    text-align: center;
}

.about-preview h2 {
    font-size: 2.25rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-preview p {
    font-size: 1.125rem;
    color: #666666;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

/* ========================================
   CONTACT FORM
   ======================================== */
.info-section {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 2.5rem;
}

.info-section p {
    font-size: 1.125rem;
    color: #555555;
    margin: 0;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.625rem;
    font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
}

.submit-button {
    width: 100%;
    margin-top: 1rem;
    padding: 1.125rem 2.5rem;
    font-size: 1.0625rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer,
footer {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 2.5rem 0;
    text-align: center;
}

.footer p,
footer p {
    margin-bottom: 0.625rem;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer p:last-child,
footer p:last-child {
    margin-bottom: 0;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets and smaller laptops */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero h1,
    .hero-section h1,
    .hero-title {
        font-size: 2.25rem;
    }

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

    .services .container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .container {
        padding: 0 1.25rem;
    }

    /* Header mobile adjustments */
    .header-content {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1rem 0;
    }

    .logo {
        height: 50px;
    }

    nav ul,
    .nav-links,
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        width: 100%;
    }

    /* Hero mobile adjustments */
    .hero,
    .hero-section {
        padding: 3.5rem 0;
    }

    .hero h1,
    .hero-section h1,
    .hero-title {
        font-size: 1.875rem;
    }

    .hero p,
    .hero-section p,
    .hero-subtitle {
        font-size: 1.0625rem;
    }

    /* Sections mobile adjustments */
    section,
    main {
        padding: 3rem 0;
    }

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

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

    /* Cards mobile layout */
    .services .container,
    .services-list,
    .steps-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card,
    .service-item,
    .step {
        padding: 2rem;
    }

    /* Form mobile adjustments */
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-container {
        padding: 2rem 1.5rem;
    }

    /* CTA buttons mobile */
    .cta,
    .cta-button,
    .submit-button {
        padding: 0.875rem 2rem;
        font-size: 0.9375rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1,
    .hero-section h1,
    .hero-title {
        font-size: 1.625rem;
    }

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

    .service-card,
    .service-item,
    .step {
        padding: 1.75rem;
    }

    .contact-container {
        padding: 1.75rem 1.25rem;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ========================================
   ACCESSIBILITY
   ======================================== */
:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
a, button, input, select, textarea {
    transition: all 0.3s ease;
}

/* Print styles */
@media print {
    .header, .footer, .cta, .cta-button, nav {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
}
