﻿/* ===========================================
   HEADER CSS – FINAL SINGLE VERSION
   Focus: Readability • Contrast • No Repetition
=========================================== */

/* ======================
   ROOT VARIABLES
====================== */
:root {
    --primary-dark: #004225;
    --primary-color: #006633;
    --secondary-color: #cc3300;
    --accent-color: #ffcc00;
    --text-black: #000;
    --text-dark: #111;
    --text-medium: #222;
    --text-light: #333;
    --bg-white: #fff;
    --bg-light: #f8f8f8;
    --bg-lighter: #f0f0f0;
    --highlight-bg: #fff5e6;
    --highlight-border: #ff6600;
    --border-color: #ccc;
    --shadow: 0 2px 8px rgba(0,0,0,.1);
    --shadow-hover: 0 4px 12px rgba(0,0,0,.15);
}

/* ======================
   RESET & BASE
====================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-black);
    line-height: 1.5;
}

/* ======================
   LAYOUT
====================== */
.container {
    max-width: 1300px;
    margin: auto;
    padding: 0 20px;
}

.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-white);
    border-bottom: 3px solid var(--primary-color);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.header-spacer {
    height: 140px;
}

/* ======================
   HEADER TOP
====================== */
.header-top {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-top-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* COMPANY INFO */
.company-info {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    flex: 1;
}

.company-logo {
    width: 85px;
    height: 55px;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    background: #fff;
    padding: 3px;
}

.company-name {
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
}

    .company-name span {
        color: var(--primary-color);
    }

.company-tagline {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-medium);
}

/* ======================
   CONTACT INFO
====================== */
.contact-card {
    background: var(--highlight-bg);
    border: 3px solid var(--highlight-border);
    padding: 12px 18px;
    border-radius: 6px;
    min-width: 200px;
    box-shadow: var(--shadow);
}

.contact-info1 {
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
    font-weight: 700;
}

.phone-link {
    font-size: 18px;
    font-weight: 900;
    color: var(--text-black);
    text-decoration: none;
}

/* ======================
   CTA BUTTON
====================== */
.quote-btn {
    padding: 12px 24px;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none;
    border: 2px solid var(--secondary-color);
}

    .quote-btn:hover {
        background: #b32900;
    }

/* ======================
   NAVIGATION
====================== */
.main-nav {
    background: var(--primary-dark);
    height: 50px;
}

.nav-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 18px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

    .nav-link:hover,
    .nav-link.active {
        background: rgba(255,255,255,.15);
        color: var(--accent-color);
    }

/* ======================
   DROPDOWN
====================== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg-white);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .3s;
}

.dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.dropdown-menu a {
    padding: 10px 16px;
    display: flex;
    gap: 10px;
    font-weight: 600;
    color: var(--text-black);
    text-decoration: none;
}

    .dropdown-menu a:hover {
        background: var(--bg-light);
        color: var(--primary-color);
    }

/* ======================
   SUB DROPDOWN (ONCE)
====================== */
.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        display: none;
    }

    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }

.submenu-toggle {
    cursor: pointer;
}

/* ======================
   MOBILE
====================== */
@media (max-width: 768px) {

    .header-top {
        display: none;
    }

    .header-spacer {
        height: 60px;
    }

    .nav-list {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--bg-white);
        max-height: 0;
        overflow: hidden;
        transition: .4s;
    }

        .nav-list.active {
            max-height: 500px;
        }

    .nav-link {
        color: var(--text-black);
        padding: 16px;
        border-bottom: 1px solid var(--border-color);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        border: none;
        background: var(--bg-light);
    }

    .dropdown.active .dropdown-menu {
        max-height: 300px;
    }
}

/* ======================
   DARK MODE
====================== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-white: #1a1a1a;
        --bg-light: #2a2a2a;
        --text-black: #fff;
        --border-color: #444;
    }
}

/* ======================
   ACCESSIBILITY
====================== */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

@media print {
    .site-header {
        position: static;
        box-shadow: none;
    }
}
