:root {
    --primary: #111;
    --accent: #2563eb;
    --light: #f8f9fa;
}

/* Base */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: white;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: auto;
}

/* Header */
header {
    background: var(--primary);
    padding: 20px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-weight: bold;
    font-size: 22px;
}

.logo span {
    color: var(--accent);
}

/* Nav */
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px; /* improved tap targets */
}

.cta-btn {
    background: var(--accent);
    border-radius: 6px;
}

/* Hide toggle on desktop */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

/* Hero */
.hero {
    background: linear-gradient(to right, #111, #333);
    color: white;
    padding: 72px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: auto;
}

.primary-btn {
    background: var(--accent);
    color: white;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 32px;
    display: inline-block;
    margin-top: 20px;
}

/* Grid */
.pricing-grid, .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.package, .project-card {
    background: var(--light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.package.featured {
    border: 2px solid var(--accent);
}

.cta-section {
    background: var(--primary);
    color: white;
    padding: 14px 0;
    text-align: center;
}

/* Forms */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

input, textarea, select {
    padding: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

button {
    border: none;
    cursor: pointer;
    padding: 14px;
}

.radio-group {
    display: flex;
    gap: 30px;
    margin-bottom: 10px;
}

.radio-group input {
    margin-right: 6px;
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 11px 0;
    margin-top: 5px;
    text-align: center;
}

/* ========================= */
/* RESPONSIVE REFINEMENTS */
/* Desktop-first approach */
/* ========================= */

/* Tablet */
@media (max-width: 992px) {

    .pricing-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding: 100px 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {

    /* Navigation */
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 80px;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        width: 100%;
        text-align: center;
        display: none;
        padding: 20px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }

    /* Grid */
    .pricing-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Hero */
    .hero {
        padding: 80px 20px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Improve tap spacing */
    .primary-btn {
        width: 100%;
        max-width: 300px;
    }
}
