/* Root colour variables */
:root {
    --primary: #101e56;
    --accent: #fa8a03;
    --light: #f8faff;
    --dark-overlay: rgba(16, 30, 86, 0.85);
}

/* Reset basic styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: var(--light);
}

main {
    /* push content below the fixed header */
    margin-top: 80px;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
}

/* Header / Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-overlay);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav-toggle {
    display: none;
    font-size: 1.4rem;
    color: #fff;
    cursor: pointer;
    margin-right: 10px;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 550px;
    background-image: url('hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    color: #fff;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(16, 30, 86, 0.55);
    z-index: 0;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    max-width: 900px;
    z-index: 1;
}

.hero p {
    font-size: 1.15rem;
    max-width: 700px;
    margin-top: 15px;
    z-index: 1;
}

.cta-buttons {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    z-index: 1;
}

.cta-buttons a {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    background-color: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-buttons a.secondary {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--accent);
}

.cta-buttons a:hover {
    background-color: #d57002;
    transform: translateY(-2px);
}

/* Section base styles */
section {
    padding: 80px 20px;
    /* offset top scroll position for fixed header */
    scroll-margin-top: 100px;
}

.section-title {
    text-align: center;
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: #555;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1rem;
}

/* Grid layouts */
.features-grid,
.product-grid,
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card,
.product-card,
.reason-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover,
.product-card:hover,
.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-card i,
.product-card i,
.reason-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.feature-card h3,
.product-card h3,
.reason-card h3 {
    margin-top: 10px;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.feature-card p,
.product-card p,
.reason-card p {
    font-size: 0.9rem;
    color: #555;
}

/* Benefits list */
.benefits {
    list-style: none;
    padding-left: 0;
    max-width: 800px;
    margin: 30px auto 0;
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
}

.benefits li {
    margin-bottom: 10px;
}

.benefits li strong {
    color: var(--primary);
}

/* Stats / Milestones */
.milestones {
    background-color: #fff;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
    font-weight: 700;
}

.stat-card p {
    color: #555;
    font-weight: 500;
    font-size: 1rem;
}

/* App section */
.app-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.app-icons i {
    font-size: 3rem;
    color: var(--accent);
}

/* Contact section */
.contact {
    background-color: var(--light);
    border-top: 1px solid #eee;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.contact input,
.contact textarea {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.contact button {
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    background-color: var(--accent);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact button:hover {
    background-color: #d57002;
}

.contact-info {
    max-width: 600px;
    margin: 30px auto 0;
    text-align: center;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        background-color: var(--dark-overlay);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    .nav-links.open {
        max-height: 300px;
    }
    .nav-toggle {
        display: block;
    }
    .nav-links li {
        margin: 10px 0;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .cta-buttons a {
        padding: 10px 20px;
    }
}
