/* --- Design Tokens & Resets --- */
:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --text-muted: #666666;
    --accent-color: #000000;
    --accent-hover: #333333;
    --border-color: #e5e5e5;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Layout & Typography --- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
    border-bottom: none;
}

h1,
h2,
h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.75rem;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

/* --- Header Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo {
    font-weight: 700;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    margin-left: 1.5rem;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
    color: var(--accent-color);
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 4px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* --- Contact Form --- */
form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 500px;
    margin-top: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 500;
}

input,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    background-color: transparent;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-color);
    border-radius: 4px;
    transition: border-color 0.2s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

button {
    align-self: flex-start;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: var(--accent-hover);
}

#form-status {
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* --- Footer --- */
footer {
    padding: 2rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

/* --- Mobile Responsive Adjustments --- */
@media (max-width: 768px) {
    section {
        padding: 6rem 0;
    }

    h1 {
        font-size: 2rem;
    }

    nav a {
        margin-left: 1rem;
        font-size: 0.9 rem;
    }
}