/* --- Global Styles & Variables --- */
:root {
    --primary-color: #004a99; /* Deep Blue */
    --secondary-color: #d90429; /* Strong Red */
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --dark-gray: #333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--white);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    margin-bottom: 1.2rem;
    color: var(--primary-color);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-align: center; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

section {
    padding: 4rem 0;
}

/* --- Utility Classes (Buttons) --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}
.btn-primary:hover {
    background: #b00320; /* Darker red */
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
}
.btn-secondary:hover {
    background: var(--light-gray);
}

.text-link {
    color: var(--secondary-color);
    font-weight: bold;
}
.text-link:hover {
    text-decoration: underline;
}


/* --- Header & Navigation --- */
.navbar {
    background: var(--white);
    padding: 1.2rem 0;
    border-bottom: 1px solid #ddd;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
    background: var(--primary-color);
    color: var(--white);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* Offset for fixed navbar */
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* --- Services Section --- */
.services {
    background: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-img-placeholder {
    height: 250px;
    background: var(--light-gray) url('https://via.placeholder.com/600x400.png?text=Product+Image') no-repeat center center/cover;
}

.feature-content {
    padding: 2rem;
}

/* --- CTA Banner --- */
.cta-banner {
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
}

.cta-banner h2 {
    color: var(--white);
    font-size: 2.2rem;
}

.cta-banner p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* --- Footer --- */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-col p, .footer-col a {
    color: var(--light-gray);
    margin-bottom: 0.5rem;
}

.footer-col a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #3d7ab8; /* Lighter blue */
    padding-top: 2rem;
    font-size: 0.9rem;
}


/* --- Responsive (Mobile-First-ish) --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero h1 { font-size: 2.8rem; }

    /* Mobile Navigation */
    .nav-links {
        position: fixed;
        top: 81px; /* Height of navbar */
        right: -100%; /* Start off-screen */
        width: 70%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        transition: right 0.4s ease-in-out;
        border-left: 1px solid #ddd;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.2rem 0;
    }

    .menu-toggle {
        display: block;
    }
    
    /* Hamburger to 'X' animation */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .navbar .btn {
        display: none; /* Hide main CTA on mobile nav */
    }

    /* Stack grid items */
    .services-grid,
    .features-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 50vh;
    }
}