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

:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --text: #333;
    --bg: #ffffff;
    --light-gray: #f8f9fa;
    --border: #e0e0e0;
    --spacing: 1rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* Header & Navigation */
header {
    background: var(--primary);
    color: white;
    padding: var(--spacing) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--secondary);
    outline: 2px solid var(--secondary);
    outline-offset: 4px;
}

.nav-links a.active {
    border-bottom: 2px solid var(--secondary);
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
}

section {
    padding: 3rem 0;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--primary);
}

p {
    margin-bottom: 1rem;
    max-width: 70ch;
}

/* Hero Section */
.hero {
    position: relative;
    color: white;
    padding: 0;
    overflow: hidden;
}

.hero-image-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-content {
    padding: 3rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
}

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

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: white;
    color: var(--primary);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover,
.btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    outline: 2px solid white;
    outline-offset: 4px;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Form Styles */
form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

input,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

input:focus,
textarea:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
    border-color: var(--secondary);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

button[type="submit"] {
    background: var(--secondary);
    color: white;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

button[type="submit"]:hover,
button[type="submit"]:focus {
    background: var(--primary);
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

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

footer p {
    margin: 0;
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Tablet and Desktop */
@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-image-container {
        height: 500px;
    }

    .hero-content {
        padding: 4rem 1rem;
    }
}

@media (min-width: 1024px) {
    .grid.three-col {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-image-container {
        height: 600px;
    }

    .hero-content {
        padding: 5rem 1rem;
    }
}