@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Stitch Design Tokens - ProPoint Fire Water */
    --primary: #137fec;
    --primary-hover: #0b6ad0;
    --primary-light: #e7f2fd;

    --surface: #ffffff;
    --surface-alt: #f8f9fa;

    --text-main: #1a1b1e;
    --text-muted: #6b7280;
    --text-on-primary: #ffffff;

    --border: #e5e7eb;
    --radius: 8px;
    /* ROUND_EIGHT */

    --font-main: 'Inter', sans-serif;

    --container: 1200px;
    --spacing-section: 80px;
}

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

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

/* Layout Utilities */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--spacing-section) 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

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

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-on-primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(19, 127, 236, 0.25);
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.2s ease;
}

.card:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Header */
header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    font-weight: 500;
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--primary);
}

/* Hero */
.hero {
    background-color: #111827;
    /* Fallback */
    background-size: cover;
    background-position: center;
    color: white;
    padding: 160px 0;
    text-align: center;
    position: relative;
}

/* Specific Hero Images */
.hero-home {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('../images/hero_home.png');
}

.hero-water {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('../images/hero_water.png');
}

.hero-fire {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('../images/hero_fire.png');
}

.hero-mold {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('../images/hero_mold.png');
}

.hero-sacramento {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('../images/hero_sacramento.png');
}

/* Default fallback if image fails or for generic pages */
.hero:not([class*="hero-"]) {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1632759885868-20d04c0dfcd2?q=80&w=2070&auto=format&fit=crop');
}


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

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* Features/Services */
.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

/* Footer */
footer {
    background: #111827;
    /* Dark footer */
    color: white;
    padding: 80px 0 40px;
}

footer p {
    color: #9ca3af;
}

footer h4 {
    margin-bottom: 1.5rem;
    color: white;
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 0.75rem;
}

footer a {
    color: #9ca3af;
}

footer a:hover {
    color: white;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}