﻿/* ===========================================
   HEADER CSS - ULTIMATE READABILITY VERSION
   Focus: Crystal Clear Text & Maximum Contrast
   =========================================== */

/* CSS Reset & Variables - Enhanced Contrast */
:root {
    /* ULTRA HIGH CONTRAST COLORS */
    --primary-dark: #004225; /* Deep Forest Green */
    --primary-color: #006633; /* Strong Green */
    --secondary-color: #cc3300; /* Vibrant Red-Orange */
    --accent-color: #ffcc00; /* Bright Yellow */
    /* TEXT COLORS - MAX CONTRAST */
    --text-black: #000000; /* Pure Black */
    --text-dark: #111111; /* Near Black */
    --text-medium: #222222; /* Dark Gray */
    --text-light: #333333; /* Medium Gray */
    /* BACKGROUNDS - LIGHT FOR DARK TEXT */
    --bg-white: #ffffff;
    --bg-light: #f8f8f8;
    --bg-lighter: #f0f0f0;
    /* HIGHLIGHT COLORS */
    --highlight-bg: #fff5e6; /* Light Orange Background */
    --highlight-border: #ff6600; /* Bright Orange Border */
    --highlight-shadow: 0 0 0 2px #ff9900; /* Glow effect */
    /* BORDERS & SHADOWS */
    --border-color: #cccccc;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
    color: var(--text-black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* CONTAINER */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* SITE HEADER */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-white);
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-spacer {
    height: 140px;
    transition: height 0.3s ease;
}

/* ======================
   HEADER TOP SECTION
   ====================== */
.header-top {
    padding: 15px 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.header-top-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

/* COMPANY INFO - CRYSTAL CLEAR */
.company-info {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 0;
    padding: 10px 15px;
    background: var(--bg-white);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.logo-wrapper {
    flex-shrink: 0;
}

.logo-link {
    display: block;
    text-decoration: none;
}

.company-logo {
    width: 65px;
    height: 65px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
    border: 2px solid var(--primary-color);
    background: white;
    padding: 3px;
}

.company-details {
    flex: 1;
    min-width: 0;
}

.company-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-black);
    margin: 0 0 5px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

    .company-name span {
        color: var(--primary-color);
        font-weight: 900;
    }

.company-tagline {
    font-size: 14px;
    color: var(--text-black);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

    .company-tagline i {
        color: var(--primary-color);
        font-size: 14px;
        flex-shrink: 0;
    }

    .company-tagline span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: var(--text-medium);
    }

/* ======================
   CONTACT INFO - HIGHLIGHTED
   ====================== */
.contact-info {
    flex-shrink: 0;
}

.contact-card {
    background: var(--highlight-bg);
    border-radius: 8px;
    padding: 12px 18px;
    border: 3px solid var(--highlight-border);
    min-width: 260px;
    box-shadow: var(--shadow);
    position: relative;
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--highlight-border);
}

    .contact-header i {
        color: var(--secondary-color);
        font-size: 16px;
        background: white;
        padding: 5px;
        border-radius: 50%;
        border: 1px solid var(--highlight-border);
    }

.support-text {
    font-size: 14px;
    font-weight: 900;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phone-item,
.email-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .phone-item i,
    .email-item i {
        color: var(--text-black);
        font-size: 14px;
        width: 16px;
        text-align: center;
        font-weight: bold;
    }

.phone-link,
.email-link {
    font-size: 15px;
    color: var(--text-black);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
    white-space: nowrap;
}

    .phone-link:hover,
    .email-link:hover {
        color: var(--secondary-color);
        text-decoration: underline;
    }

.phone-link {
    font-size: 18px;
    font-weight: 900;
    color: var(--text-black);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .phone-link::before {
        content: '📞';
        font-size: 16px;
    }

/* ======================
   GET QUOTE BUTTON
   ====================== */
.header-actions {
    flex-shrink: 0;
}

.quote-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 800;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .quote-btn:hover {
        background: #b32900;
        border-color: #b32900;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(204, 51, 0, 0.3);
    }

    .quote-btn i {
        font-size: 16px;
    }

/* ======================
   MAIN NAVIGATION
   ====================== */
.main-nav {
    background: var(--primary-dark);
    height: 50px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

.toggle-bar {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile Logo */
.mobile-logo {
    display: none;
    align-items: center;
    gap: 10px;
}

.mobile-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.mobile-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border: 1px solid white;
    border-radius: 4px;
}

.mobile-company {
    font-size: 18px;
    font-weight: 800;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Navigation Menu */
.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
    gap: 1px;
}

.nav-list-item {
    height: 100%;
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    height: 100%;
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.15);
        color: var(--accent-color);
    }

    .nav-link.active {
        background: rgba(255, 255, 255, 0.2);
        color: var(--accent-color);
        border-bottom: 3px solid var(--accent-color);
    }

    .nav-link i {
        font-size: 14px;
    }

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    min-width: 220px;
    padding: 8px 0;
    border-radius: 6px;
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .dropdown-menu a:hover {
        background: var(--bg-light);
        color: var(--primary-color);
        padding-left: 20px;
    }

.dropdown-menu i {
    color: var(--primary-color);
    font-size: 13px;
    width: 16px;
}

/* ======================
   RESPONSIVE DESIGN
   ====================== */

/* Tablet (992px and below) */
@media (max-width: 992px) {
    .header-top-content {
        flex-wrap: wrap;
        gap: 15px;
    }

    .company-info {
        min-width: 100%;
        order: 1;
        justify-content: center;
        text-align: center;
        padding: 15px;
    }

    .contact-info {
        min-width: calc(50% - 8px);
        order: 2;
    }

    .header-actions {
        min-width: calc(50% - 8px);
        order: 3;
    }

    .contact-card {
        min-width: auto;
        width: 100%;
        padding: 15px;
        text-align: center;
    }

    .phone-item,
    .email-item {
        justify-content: center;
    }

    .quote-btn {
        width: 100%;
        justify-content: center;
    }

    .company-name {
        font-size: 20px;
    }

    .phone-link {
        font-size: 16px;
    }

    .header-spacer {
        height: 180px;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }

    .header-spacer {
        height: 60px;
    }

    /* Hide desktop header top */
    .header-top {
        display: none;
    }

    /* Show mobile navigation */
    .main-nav {
        height: 60px;
        background: var(--primary-dark);
        padding: 0 15px;
    }

    .nav-container {
        padding: 0;
    }

    /* Show mobile elements */
    .mobile-logo {
        display: flex;
        flex: 1;
    }

    .nav-toggle {
        display: flex;
        order: 2;
    }

    /* Mobile navigation menu */
    .nav-list {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        height: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

        .nav-list.active {
            max-height: 500px;
            overflow-y: auto;
        }

    .nav-list-item {
        width: 100%;
        height: auto;
    }

    .nav-link {
        padding: 16px 20px;
        color: var(--text-black);
        border-bottom: 1px solid var(--border-color);
        justify-content: flex-start;
        background: var(--bg-white);
        font-size: 16px;
        font-weight: 700;
        text-shadow: none;
    }

        .nav-link:hover,
        .nav-link.active {
            background: var(--bg-light);
            color: var(--primary-color);
        }

        .nav-link.active {
            border-left: 4px solid var(--primary-color);
            background: linear-gradient(to right, rgba(0, 102, 51, 0.1), transparent);
        }

        .nav-link i {
            color: var(--primary-color);
            width: 20px;
            text-align: center;
        }

    /* Mobile dropdown */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg-light);
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.3s ease;
        border-radius: 0;
        margin-left: 20px;
        border-left: 2px solid var(--border-color);
    }

    .dropdown.active .dropdown-menu {
        max-height: 300px;
    }

    .dropdown-menu a {
        padding: 12px 40px;
        font-size: 14px;
        color: var(--text-medium);
        font-weight: 600;
    }

        .dropdown-menu a:hover {
            color: var(--primary-color);
            background: rgba(0, 102, 51, 0.1);
        }

    .dropdown-menu i {
        color: var(--text-medium);
    }

    /* Toggle animation */
    .nav-toggle.active .toggle-bar:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav-toggle.active .toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .toggle-bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .site-header.shrink .header-spacer {
        height: 60px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .mobile-logo-img {
        width: 28px;
        height: 28px;
    }

    .mobile-company {
        font-size: 16px;
    }

    .nav-toggle {
        width: 26px;
        height: 20px;
    }

    .nav-link {
        padding: 14px 20px;
        font-size: 15px;
    }

    .dropdown-menu a {
        padding: 10px 30px;
    }
}

/* Large Desktop (1400px and above) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .company-name {
        font-size: 24px;
    }

    .contact-card {
        min-width: 280px;
    }

    .phone-link {
        font-size: 20px;
    }
}

/* ======================
   ACCESSIBILITY
   ====================== */

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-dark: #002200;
        --primary-color: #004400;
        --secondary-color: #aa0000;
        --text-black: #000000;
        --text-dark: #000000;
        --text-medium: #111111;
        --highlight-border: #aa0000;
    }

    .company-name {
        text-shadow: 0 1px 0 #000;
        -webkit-text-stroke: 0.3px #000;
    }

    .contact-card {
        border-width: 3px;
        box-shadow: 0 0 0 1px #000;
    }

    .nav-link {
        color: #ffffff;
        text-shadow: 0 2px 0 #000;
        font-weight: 900;
    }

        .nav-link.active {
            background: #ffff00;
            color: #000000;
            border-bottom: 3px solid #000000;
        }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-black: #ffffff;
        --text-dark: #f0f0f0;
        --text-medium: #e0e0e0;
        --bg-white: #1a1a1a;
        --bg-light: #2a2a2a;
        --bg-lighter: #333333;
        --border-color: #444444;
        --highlight-bg: #333300;
        --highlight-border: #ff9900;
    }

    .company-info {
        background: #2a2a2a;
        border-color: #444444;
    }

    .contact-card {
        background: #332200;
        border-color: #ff9900;
    }

    .nav-link {
        color: #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print Styles */
@media print {
    .site-header {
        position: static;
        box-shadow: none;
        border-bottom: 2px solid #000;
    }

    .header-spacer {
        display: none;
    }

    .nav-toggle,
    .quote-btn:hover,
    .nav-link:hover {
        transform: none !important;
    }

    .contact-card {
        border: 2px solid #000;
        box-shadow: none;
        background: none !important;
    }
}

/* Font Loading Optimization */
@supports (font-variation-settings: normal) {
    body {
        font-family: 'Inter var', -apple-system, BlinkMacSystemFont, sans-serif;
    }
}
