/*
Theme Name: Sprinkler Authority
Theme URI: https://sprinklerrepair.com
Author: Antigravity
Description: A definitive authority resource theme for sprinkler repair and irrigation troubleshooting. Minimal, fast, and content-focused.
Version: 1.0.0
Text Domain: sprinkler-authority
Tags: one-column, accessibility-ready, custom-colors, custom-menu, editor-style, featured-images, full-width-template
*/

/* Variables */
:root {
    --primary-color: #0369a1;
    /* Sky 700 - Deep Water Blue */
    --secondary-color: #334155;
    /* Slate 700 */
    --accent-color: #0ea5e9;
    /* Sky 500 - Bright Water Blue */
    --accent-hover: #0284c7;
    /* Sky 600 */
    --text-color: #0f172a;
    /* Slate 900 - High Contrast Text */
    --light-text: #64748b;
    /* Slate 500 */
    --bg-color: #f8fafc;
    /* Slate 50 - Clean Light Background */
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --container-width: 1100px;
    /* Slightly narrower for reading focus */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --radius: 0.375rem;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding-bottom: 2rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-color);
    line-height: 1.25;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.025em;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.025em;
}

h3 {
    font-size: 1.75rem;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
}

.site-title a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 800;
}

.site-description {
    font-size: 0.875rem;
    color: var(--light-text);
    margin: 0;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
}

.main-navigation a {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

.main-navigation a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* Main Content */
.site-main {
    min-height: 60vh;
}

/* Post Cards */
.post {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.entry-header {
    margin-bottom: 1rem;
}

.entry-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.entry-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.entry-title a:hover {
    color: var(--accent-color);
}

.entry-meta {
    font-size: 0.875rem;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.entry-content {
    color: var(--secondary-color);
}

.page-links {
    margin-top: 1rem;
    font-weight: 600;
}

/* Footer */
.site-footer {
    background: var(--primary-color);
    color: #cbd5e1;
    padding: 3rem 0;
    margin-top: 4rem;
    font-size: 0.9rem;
}

.site-footer a {
    color: #fff;
    font-weight: 500;
}

.site-footer .site-info {
    text-align: center;
    opacity: 0.8;
}

/* Elementor Compatibility & Utilities */
.elementor-page .site-header,
.elementor-page .site-footer {
    display: block;
}

/* Helpers */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.alignwide {
    margin-left: -5vw;
    margin-right: -5vw;
    width: auto;
    max-width: 100vw;
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}