@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --primary-blue: #003366;
    --primary-blue-hover: #005599;
    --secondary-blue: #e6f7ff;
    --text-dark: #212529;
    --text-light: #6c757d;
    --background-light: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --card-shadow: 0 4px 12px rgba(0,0,0,0.05);
    --border-radius: 8px;
}

/* --- Global Styles --- */
body {
    font-family: var(--font-sans);
    margin: 0;
    background-color: var(--card-bg);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

section {
    padding: 6rem 0;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem 0;
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.5rem 0; font-size: 1.1rem; color: var(--text-light); }

/* --- Header & Footer --- */
.header {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
}

.header nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    margin-left: 2rem;
    transition: color 0.2s ease;
}
.header nav a:hover { color: var(--primary-blue); }

.footer {
    background-color: var(--background-light);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    background-color: var(--primary-blue);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: 2px solid var(--primary-blue);
}
.btn:hover { background-color: var(--primary-blue-hover); border-color: var(--primary-blue-hover); }

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
}
.btn-secondary:hover { background-color: var(--secondary-blue); }

/* --- Hero Section --- */
.hero {
    position: relative; /* This is crucial for the overlay to work */
    text-align: center;
    background-size: cover;
    background-position: center;
    color: #ffffff; /* CHANGE TEXT TO WHITE for high contrast */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh; /* Give the hero section some height */
}

/* This creates the dark, semi-transparent layer */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 33, 66, 0.7); /* Your primary blue, at 70% opacity */
    z-index: 1; /* Place the overlay just above the background image */
}

/* This ensures your text content sits on top of the overlay */
.hero .hero-text-content {
    position: relative;
    z-index: 2;
}

.hero h1 { font-size: 3.5rem; }
.hero p { max-width: 650px; margin-left: auto; margin-right: auto; font-size: 1.2rem; color: rgba(255, 255, 255, 0.9); }


/* --- Grid Layouts --- */
.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}
.grid-3-col h3 { font-size: 1.2rem; }
.grid-3-col p { font-size: 1rem; }
.grid-3-col svg {
    width: 48px;
    height: 48px;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* --- Solution Section --- */
.solution-step {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}
.solution-step .number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-blue);
    background-color: var(--primary-blue);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.solution-step h3 { margin: 0; }

/* --- Product Tour Section --- */
.product-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.product-feature.reverse {
    grid-template-columns: 1fr 1fr; /* Reset for explicit ordering */
}
.product-feature.reverse .text-content {
    order: 2;
}
.product-feature.reverse .image-content {
    order: 1;
}
.product-feature img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- Pricing Page --- */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: flex-start;
}
.pricing-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--card-shadow);
}
.pricing-card.recommended {
    border-color: var(--primary-blue);
    border-width: 2px;
    transform: scale(1.05);
}
.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
}
.pricing-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
}
.pricing-card ul {
    list-style-type: '✓ ';
    padding-left: 1rem;
    text-align: left;
    margin: 2rem 0;
}
.pricing-card ul li {
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

    .mobile-menu-toggle {
        display: none; /* Hidden on desktop */
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
    }


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .grid-3-col, .pricing-table {
        grid-template-columns: 1fr;
    }
    .pricing-card.recommended {
        transform: scale(1);
    }
    .product-feature, .product-feature.reverse {
        grid-template-columns: 1fr;
    }
    .product-feature.reverse .text-content, .product-feature.reverse .image-content {
        order: initial;
    }


}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero h1 { font-size: 2.8rem; }
    section { padding: 4rem 0; }
    .mobile-menu-toggle {
        display: block; /* Show the hamburger on mobile */
        z-index: 1000; /* Keep it on top */
    }

    .header nav {
        display: none; /* Hide the nav by default on mobile */
        position: absolute;
        top: 73px; /* Position it below the header */
        left: 0;
        right: 0;
        background-color: var(--card-bg);
        padding: 1rem 2rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        border-top: 1px solid var(--border-color);
        flex-direction: column; /* Stack the links vertically */
        align-items: flex-start;
        gap: 1rem;
    }

    /* This class will be toggled by JavaScript to show the menu */
    .header nav.nav-open {
        display: flex; 
    }

    .header nav a {
        margin-left: 0; /* Remove the desktop margin */
        width: 100%;
    }

    .header nav .btn-secondary {
        width: auto; /* Allow the login button to be its natural size */
    }
}


/* contact form */

.contact-form form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-form label {
    font-weight: 500;
    margin-bottom: -1rem;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-sans);
    box-sizing: border-box; /* THIS IS THE FIX FOR THE INPUT OVERFLOW */
}
.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}
.contact-form .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    box-sizing: border-box; /* ADDED FOR CONSISTENCY */
}
