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

/* ==========================================================================
   FRONT RANGE DATA ENGINEERING - MAIN STYLESHEET
   ==========================================================================
   Contents:
   1. CSS Variables (Brand Colors)
   2. Globals & Typography
   3. Utilities & Layout Grids
   4. UI Components (Buttons, Cards)
   5. Header & Navigation
   6. Hero Section
   7. Call to Action (CTA) Section
   8. Footer
   9. Responsive Mobile Styles
   ========================================================================== */

/* =========================================
   1. CSS VARIABLES (Brand Colors)
   Colors were pulled directly from the Front Range logo.
   Leans heavily into the dark slate to give an enterprise sorta feel.
   ========================================= */
:root {
    --primary-color: #3C7A70; /* The lighter teal from the mountain peak */
    --primary-hover: #1B3B3A; /* The dark slate from the mountain base */
    --bg-color: #ffffff;      /* Main background */
    --bg-light: #F4F7F6;      /* Subtle grey-green for alternating sections to reduce eye strain */
    --text-main: #1B3B3A;     /* Dark slate for high-contrast, branded text (softer than pure black) */
    --text-muted: #4a5568;    /* Softer gray for secondary text/nav links */
    --border-color: #e2e8f0;  /* Light gray for subtle card borders */
}

/* =========================================
   2. GLOBALS & TYPOGRAPHY
   Font pairing strategy uses Monserrat for heading to match logo, and Hins for body text.
   Aim was to try and get an expensive, unified, SaaSy, custom-brand vibe.
   ========================================= */
/* --- Global Smooth Scrolling & Header Offset --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Hind', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-color);
    margin: 0;
}

section {
    padding: 6rem 0; /* Generous padding gives the layout a premium, uncrowded feel */
}

/* Brand Typography Matching */
h1, h2, h3, h4, .nav-cta, .footer-links a {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================
   3. UTILITIES & LAYOUT GRIDS
   ========================================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }
.mt-2 { margin-top: 2rem; }

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

/* =========================================
   4. UI COMPONENTS (Buttons, Cards)
   Cards use a two-tiered shadow system (diffuse outer,
   tight inner). Aim was to mimic modern SaaS dashboards.
   ========================================= */
/* --- Buttons --- */
.btn {
    display: inline-block;
    text-decoration: none;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
}

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

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

.btn-inverse {
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.btn-inverse:hover {
    background-color: #ffffff;
    color: var(--primary-hover);
}

/* --- Cards --- */
.card {
    background: var(--bg-color);
    padding: 2.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    border-top: 2px solid var(--border-color); /* Thicker accent line */
    box-shadow:
            0 10px 15px -3px rgba(0, 0, 0, 0.1),
            0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px); /* Physical lift effect */
    box-shadow:
            0 20px 25px -5px rgba(0, 0, 0, 0.15),
            0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

/* =========================================
   5. HEADER & NAVIGATION
   ========================================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    background: var(--bg-color);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Logo Setup */
.logo-link {
    display: flex;
    align-items: center;
    margin-top: 18px; /* Pushes the logo down slightly to visually center it with text */
}

.logo-img {
    height: 65px; /* Kept small so the header remains sleek */
    width: auto;
    display: block;
}

/* Desktop Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-muted);
    margin-left: 2.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--text-main);
}

.main-nav a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:not(.nav-cta):hover::after {
    width: 100%;
}

/* CSS Hack Elements for Mobile Menu (Hidden on Desktop) */
.menu-checkbox, .menu-icon {
    display: none;
}

.main-nav a.nav-cta {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
}
.main-nav a.nav-cta:hover { background-color: var(--primary-hover); }

/* =========================================
   6. HERO SECTION
   The ::before pseudo-element applies a Dark Slate tint over
   my uploaded background photo. Stopped it looking like a cheap
   travel blog.
   ========================================= */
#hero {
    position: relative;
    background-image: url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 6rem 0;
}

#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(27, 59, 58, 0.70);
    z-index: 1;
}

#hero .container {
    position: relative;
    z-index: 2;
}

#hero h1,
#hero .subtitle {
    color: #ffffff;
}

/* =========================================
   7. CALL TO ACTION (CTA) SECTION
   This bottom section acts as a high-contrast visual at the end of the page.
   Forces the user's eye directly to the final conversion button.
   ========================================= */
.cta-card {
    background-image: url('cta-bg.jpg');
    background-size: cover;
    background-position: center;

    position: relative;
    padding: 6rem 3rem;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    border-top: 4px solid var(--primary-color);
    overflow: hidden;
}

.cta-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(27, 59, 58, 0.80);
    z-index: 1;
}

.cta-card > * {
    position: relative;
    z-index: 2; /* Sits over the ::before tint */
}

.cta-title {
    color: #ffffff;
    margin-bottom: 1rem;
    margin-top: 0; /* Reset any heading top margin */
}

.cta-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    font-size: 1.15rem;
    max-width: 600px; /* Limits width to keep line lengths comfortable */
    margin-left: auto;
    margin-right: auto;
}

.cta-logo {
    display: block;
    height: 90px;
    width: auto;
    margin: 0 auto 1.5rem;
    border-radius: 8px;
    opacity: 0.85;
}

/* =========================================
   8. FOOTER
   Kept intentionally thin and minimal to not compete
   with the massive CTA card sitting right above it.
   ========================================= */
.site-footer {
    background-color: var(--primary-hover);
    color: rgba(255, 255, 255, 0.7);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
}

.footer-sleek-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer p.copyright {
    margin: 0;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

/* =========================================
   9. RESPONSIVE MOBILE STYLES (Max Width: 768px)
   JS-free toggle hack for the mobile menu. This is good for GitPages hosting.
   When the hidden `.menu-checkbox` is checked via the hamburger label,
   the `.main-nav` element displays as a flex-column.
   ========================================= */
/* =========================================
   9. RESPONSIVE MOBILE STYLES (Max Width: 768px)
   ========================================= */
@media (max-width: 768px) {

    .menu-icon {
        display: block;
        font-size: 2rem;
        cursor: pointer;
        color: var(--text-main);
        line-height: 1;
    }

    .logo-img {
        height: 65px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        border-bottom: 2px solid var(--primary-color);
        padding: 0;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

    .main-nav a:not(.nav-cta) {
        margin: 0;
        padding: 1rem 20px;
        text-align: center;
        width: 100%;
        display: block;
        border-radius: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav a.nav-cta {
        display: block;
        width: calc(100% - 40px);
        margin: 15px auto;
        text-align: center;
        border-radius: 6px;
    }

    /* Toggle visibility on checkbox check */
    .menu-checkbox:checked ~ .main-nav {
        display: flex;
    }

    /* Hero Tweak */
    #hero { padding: 4rem 0; }
    #hero h1 { font-size: 2.2rem; }

    /* Footer Tweaks */
    .footer-sleek-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        justify-content: center;
        width: 100%;
    }
}

/* =========================================
   10. MODAL STYLES
   ========================================= */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(27, 59, 58, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    padding: 3rem 2.5rem;
    animation: modalSlideIn 0.4s ease forwards;
}

@keyframes modalSlideIn {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-modal:hover { color: var(--primary-color); }

/* --- Form Field Styling --- */
.contact-form { text-align: left; }
.form-group { margin-bottom: 1.2rem; }

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Adds a nice glowing Teal ring when the user types */
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(60, 122, 112, 0.15);
}