/* Base styles with mobile-first approach */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --text-color: #333;
    --light-color: #f8f9fa;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.65rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #217dbb;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header/Navigation */
header {
    background-color: var(--secondary-color);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
}

.logo {
    margin-bottom: 1rem;
}

.logo a {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    width: 100%;
    text-align: center;
}

nav ul li {
    margin-bottom: 0.5rem;
}

nav ul li a {
    color: #fff;
    padding: 0.5rem;
    display: block;
}

nav ul li a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Main content sections */
main {
    padding: 2rem 1rem;
}

section {
    margin-bottom: 2rem;
}

.hero {
    text-align: center;
    padding: 2rem 1rem;
    background-color: var(--light-color);
    border-radius: 5px;
    margin-bottom: 2rem;
}

.features {
    margin-bottom: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.content {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ddd;
}

.footer-section a:hover {
    color: #fff;
}

.copyright {
    margin-top: 1.5rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Media Queries for Responsive Design */
@media (min-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    nav {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .logo {
        margin-bottom: 0;
    }
    
    nav ul {
        flex-direction: row;
        width: auto;
    }
    
    nav ul li {
        margin-bottom: 0;
        margin-left: 1.5rem;
    }
    
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Accessibility and Additional Optimizations */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .feature:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    header, footer, .hero {
        background-color: white !important;
        color: black !important;
    }
    
    nav, .footer-section ul {
        display: none;
    }
}


ul, ol {
    padding-left: 2em;
}


.service-item { 
    margin-bottom: 2em;
}