/* 
   Vanilla CSS for Upstate Field Services
   Premium, Modern, High-Converting Aesthetic
*/

:root {
    /* Color Palette - Friendly & Eco-Focused with High-Vis Accents */
    --color-primary: #1e3a8a;
    /* Blue 900 - Friendly, trustworthy blue */
    --color-secondary: #059669;
    /* Emerald Green 600 - Eco-friendly */
    --color-accent: #f97316;
    /* Orange 500 - High visibility/Action */
    --color-accent-hover: #ea580c;
    --color-secondary-hover: #047857;
    --color-bg-light: #f0fdf4;
    /* Green 50 - Very soft green tint */
    --color-bg-dark: #1e40af;
    /* Blue 800 */
    --color-text-main: #334155;
    /* Slate 700 */
    --color-text-muted: #475569;
    /* Slate 600 */
    --color-white: #ffffff;
    --color-alert-bg: #fffbeb;
    /* Amber 50 */
    --color-alert-border: #fcd34d;
    /* Amber 300 */
    --color-alert-text: #92400e;
    /* Amber 900 */

    /* Typography */
    --font-main: 'Inter', sans-serif;

    /* Variables */
    --transition-speed: 0.3s;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --box-shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(249 115 22 / 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-speed) ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--box-shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--color-primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

.logo-sub {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--color-secondary);
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed) ease;
}

.nav-links a:not(.btn):hover {
    color: var(--color-accent);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    /* Above mobile menu */
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-white);
    padding: 6rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease;
    z-index: 999;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 600;
}

/* Sections */
.section {
    padding: 5rem 0;
    scroll-margin-top: 80px;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 10rem 0 6rem;
    background-color: var(--color-primary);
    background-image: linear-gradient(to right, rgba(30, 58, 138, 0.90), rgba(30, 58, 138, 0.6)), url('hero-bg.png');
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(249, 115, 22, 0.2);
    color: var(--color-secondary);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(249, 115, 22, 0.4);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title .highlight {
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.trust-indicators {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #e2e8f0;
}

.trust-item svg {
    color: var(--color-accent);
}

/* Alert Section */
.alert-section {
    padding: 0;
    margin-top: -3rem;
    /* Pull up over hero */
    position: relative;
    z-index: 20;
}

.alert-box {
    background-color: var(--color-alert-bg);
    border: 1px solid var(--color-alert-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    box-shadow: var(--box-shadow);
}

.alert-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.alert-content h2 {
    color: var(--color-alert-text);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.alert-content p {
    color: #78350f;
    margin-bottom: 1rem;
}

.alert-emphasis {
    font-weight: 600;
    border-left: 3px solid var(--color-accent);
    padding-left: 1rem;
    margin-bottom: 0 !important;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed) ease;
    border: 1px solid #f1f5f9;
}

.service-card:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-5px);
}

.service-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(249, 115, 22, 0.1);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
}

.service-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-main);
    font-weight: 500;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
}

/* Split Section (About) */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: var(--color-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* Optional abstract gradient */
    background: linear-gradient(135deg, var(--color-primary), #1e293b);
}

.abstract-badge {
    text-align: center;
    color: var(--color-white);
}

.abstract-badge span {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.abstract-badge strong {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

/* CTA Section */
.cta-section {
    background-color: var(--color-bg-light);
}

.cta-card {
    background-color: var(--color-white);
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-hover);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-card p {
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

.contact-form {
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-primary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-status {
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

.form-status.success {
    color: #16a34a;
}

.form-status.error {
    color: #dc2626;
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-brand p,
.footer-contact p {
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.footer-legal {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #64748b;
    font-size: 0.875rem;
}

/* Animations (Reveal on scroll implementation via JS) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 900px) {
    .split-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .alert-box {
        flex-direction: column;
        text-align: center;
    }

    .alert-emphasis {
        border-left: none;
        border-top: 3px solid var(--color-accent);
        padding-left: 0;
        padding-top: 1rem;
    }
}