/* --- Variables --- */
:root {
    --primary: #0f4c75;        /* Deep "Cascade" Blue */
    --secondary: #1b262c;      /* Dark Data Slate */
    --accent: #00a896;         /* "Ag-Tech" Teal */
    --light-bg: #f0f5f9;       /* Light Atmospheric Grey */
    --text-dark: #333333;
    --text-light: #ffffff;
    --font-main: 'Inter', sans-serif;
}

/* --- Global Reset --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navigation --- */
.navbar {
    background: #fff;
    border-bottom: 1px solid #e1e1e1;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Logo Styling - The "SCADA" play */
.logo {
    font-weight: 300; /* Thinner for the CA */
    font-size: 1.5rem;
    color: var(--secondary);
    letter-spacing: 1px;
}
.logo span {
    font-weight: 800; /* Bold for SCADA */
    color: var(--primary);
}

.nav-links { list-style: none; display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--secondary); font-weight: 500; font-size: 0.95rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent); }

.nav-links .btn-nav {
    background: var(--primary);
    color: #fff;
    padding: 10px 24px;
    border-radius: 4px;
}
.nav-links .btn-nav:hover { background: var(--accent); color: #fff; }

/* --- Hero Section --- */
.hero {
    /* Darker overlay for text readability */
    background: linear-gradient(rgba(15, 76, 117, 0.9), rgba(27, 38, 44, 0.8)), url('https://images.unsplash.com/photo-1625246333195-09d9d48b4b75?auto=format&fit=crop&w=1920&q=80');
    /* TIP: Replace the URL above with a photo of the Methow Valley or an orchard */
    background-size: cover;
    background-position: center;
    height: 85vh;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
}

.hero-content { max-width: 800px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; font-weight: 800; line-height: 1.1; }
.hero p { font-size: 1.25rem; margin-bottom: 30px; opacity: 0.9; font-weight: 300; }

.btn { padding: 14px 32px; border-radius: 4px; text-decoration: none; font-weight: 600; display: inline-block; transition: all 0.3s ease; }
.btn-primary { background: var(--accent); color: #fff; border: 2px solid var(--accent); margin-right: 15px; }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-primary:hover { background: #008f80; border-color: #008f80; }
.btn-outline:hover { background: #fff; color: var(--secondary); }

/* --- Services Section --- */
.section-light { padding: 100px 0; background: var(--light-bg); }
.section-header { text-align: center; margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; color: var(--secondary); }
.section-header p { font-size: 1.1rem; color: #666; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border-bottom: 4px solid var(--accent);
}
.card:hover { transform: translateY(-5px); }
.card h3 { margin-bottom: 15px; color: var(--primary); font-size: 1.4rem; }

/* --- Dark Technical Section --- */
.section-dark { padding: 100px 0; background: var(--secondary); color: #fff; }
.split-layout { display: flex; align-items: center; gap: 60px; flex-wrap: wrap; }
.text-block { flex: 1; min-width: 300px; }
.visual-block { flex: 1; min-width: 300px; }

.section-dark h2 { font-size: 2.5rem; margin-bottom: 20px; }
.feature-list { list-style: none; margin-top: 30px; }
.feature-list li { margin-bottom: 20px; padding-left: 25px; position: relative; font-size: 1.1rem; color: #ccc; }
.feature-list strong { color: #fff; }
.feature-list li::before {
    content: "✓";
    position: absolute; left: 0; color: var(--accent); font-weight: bold;
}

.placeholder-box {
    background: rgba(255,255,255,0.05);
    height: 350px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.4);
    text-align: center;
    padding: 20px;
}

/* --- Contact Section & Form --- */
.section-cta { padding: 80px 0; text-align: center; background: #fff; }
.section-cta h2 { font-size: 2rem; color: var(--secondary); margin-bottom: 10px; }

.form-wrapper {
    max-width: 600px;
    margin: 40px auto 0;
    text-align: left;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.9rem;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border 0.3s;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.1);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    cursor: pointer;
    font-size: 1.1rem;
    border: none;
}

/* --- Footer --- */
footer { background: #111; color: #555; padding: 50px 0; text-align: center; font-size: 0.9rem; letter-spacing: 1px; }

/* --- Mobile Tweaks --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .nav-flex { flex-direction: column; height: auto; padding: 20px 0; }
    .nav-links { flex-direction: column; gap: 15px; margin-top: 20px; }
    .split-layout { flex-direction: column; }
}