/* --- Design System & Custom Properties --- */
:root {
    /* Colors */
    --primary: #9e1b1b; /* Refined, accessible Crimson */
    --primary-hover: #b82525;
    --text-main: #1f2937; /* Soft dark gray instead of harsh black */
    --text-muted: #4b5563; /* Secondary text */
    --bg-main: #f9fafb; /* Very light cool gray */
    --bg-surface: #ffffff; /* Surface containers */
    --bg-card: #f3f4f6; /* Card backgrounds */

    /* Typography & Spacing */
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --transition: all 0.2s ease-in-out;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- Typography --- */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

/* --- Header / Navigation --- */
header {
    background-color: var(--bg-surface);
    border-bottom: 1px solid #e5e7eb;
    padding: 24px 0;
}

header .container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

header h1 {
    font-size: 1.75rem;
    color: var(--primary);
}

.tagline {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* --- Hero Section --- */
.hero {
    padding: 100px 0 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 40px auto;
}

/* --- Components: Buttons --- */
.button {
    display: inline-block;
    background-color: var(--primary);
    color: #ffffff;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(158, 27, 27, 0.2);
}

/* --- Section Global Layout --- */
section {
    padding: 90px 0;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
}

/* Subtle accent line for section headers */
section h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background-color: var(--primary);
    margin-top: 12px;
    border-radius: 2px;
}

/* --- Services (Cards Grid) --- */
.services {
    background-color: var(--bg-surface);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.card {
    background-color: var(--bg-main);
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid #f1f5f9;
    transition: var(--transition);
}

.card:hover {
    background-color: var(--bg-surface);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
    border-color: #e2e8f0;
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- About & Contact --- */
.about {
    background-color: var(--bg-main);
}

.about p {
    font-size: 1.15rem;
    max-width: 800px;
    color: var(--text-muted);
}

.contact {
    background-color: var(--bg-surface);
}

.contact a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact a:hover {
    text-decoration: underline;
}

/* --- Footer --- */
footer {
    background-color: #111827; /* Deep charcoal */
    color: #9ca3af;
    text-align: center;
    padding: 40px 0;
    font-size: 0.9rem;
    border-top: 1px solid #1f2937;
}

/* --- Responsive Adjustments --- */
@media (min-width: 768px) {
    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .hero h2 {
        font-size: 3rem;
    }
}