:root {
    /* High-converting clean modern palette - Sage Green & Charcoal */
    --primary: #2d5a27; /* Sage Green - Nature, Wood, Trust */
    --primary-hover: #1e3d1a;
    --secondary: #18181b; /* Rich Charcoal - Structural, Solid */
    --accent: #ffffff; /* Pure White - Clean Action */
    --accent-hover: #fafafa;
    
    --text-main: #18181b;
    --text-muted: #52525b;
    --bg-main: #ffffff;
    --bg-alt: #fafafa;
    --border: #e4e4e7;
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --primary: #4ade80; /* Vibrant Green for contrast on dark */
    --primary-hover: #22c55e;
    --secondary: #27272a;
    --accent: #ffffff; 
    --accent-hover: #f4f4f5;
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --bg-main: #09090b; /* Zinc Dark */
    --bg-alt: #18181b;
    --border: #27272a;
    --card-bg: #18181b;
    --input-bg: #09090b;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-main);
    transition: background-color var(--transition), color var(--transition);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button, .btn {
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
    font-weight: 600;
}

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

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    z-index: 1001;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Focus states */
a:focus-visible, 
button:focus-visible, 
input:focus-visible, 
select:focus-visible, 
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Breadcrumbs */
.breadcrumb {
    padding: 1rem 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: var(--text-muted);
}

.breadcrumb-link {
    color: var(--text-muted);
    font-weight: 500;
}

.breadcrumb-link:hover {
    color: var(--primary);
}

.breadcrumb-separator {
    margin: 0 0.75rem;
    color: var(--border);
    font-size: 0.75rem;
}

.breadcrumb-current {
    color: var(--text-main);
    font-weight: 600;
}

/* Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Layout */
header {
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color var(--transition);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

.theme-toggle {
    background: none;
    color: var(--text-main);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 50%;
}

.theme-toggle:hover {
    background-color: var(--bg-alt);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    min-height: 500px;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(24, 24, 27, 0.85), rgba(24, 24, 27, 0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 900;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
    color: #ffffff;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2.5rem;
    opacity: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    color: #ffffff;
    font-weight: 500;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-box {
    background: var(--card-bg);
    padding: 0.5rem;
    border-radius: 0.75rem;
    display: flex;
    gap: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    background-color: var(--input-bg);
    color: var(--text-main);
    width: 100%;
}

.search-box .btn {
    padding: 0 2rem;
    border-radius: 0.5rem;
    background-color: var(--primary);
    color: white;
}

.search-box .btn:hover {
    background-color: var(--primary-hover);
}

.suggestions-list {
    position: absolute;
    top: 105%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    z-index: 10;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    text-align: left;
    border: 1px solid var(--border);
}

.suggestions-list.active {
    display: block;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
    transition: background 0.2s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: var(--bg-alt);
}

.suggestion-item strong {
    color: var(--primary);
}

.suggestion-item small {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* Grid Components */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--text-main);
    margin-bottom: 1rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

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

@media (max-width: 768px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .search-box { flex-direction: column; }
    .search-box .btn { padding: 1rem; }
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1);
}

.card img {
    width: 100%;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    aspect-ratio: 16/9;
    object-fit: cover;
    height: auto;
}

/* Forms */
.lead-form {
    background: var(--bg-alt);
    padding: 3rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background-color: var(--input-bg);
    color: var(--text-main);
    transition: border-color 0.3s;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary);
    outline: none;
}

/* Weather Widget */
.weather-widget {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.weather-icon {
    font-size: 2rem;
}

.weather-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

/* Related Pages Section */
.related-pages {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.related-link {
    font-weight: 700;
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.related-link:hover {
    color: var(--primary-hover);
}

/* Footer */
.site-footer {
    background: var(--secondary);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
}

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

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
}

.footer-socials a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-badge img {
    height: 16px;
    filter: brightness(0.9);
    width: auto;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        text-align: center;
    }
    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}