/* ===== Corrib Painters — Header Option 9 Override ===== */

/* Hide the original React header */
body>div#root>nav:first-of-type,
body>div#root>div>nav:first-of-type {
    display: none !important;
}

/* ===== Accent Gradient Line ===== */
.cp-header-accent {
    height: 4px;
    background: linear-gradient(90deg, #2d8659 0%, #1e3a5f 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
}

/* ===== Main Header Bar ===== */
.cp-header {
    position: fixed;
    top: 4px;
    left: 0;
    right: 0;
    z-index: 10000;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 90px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: box-shadow 0.3s ease;
}

.cp-header.scrolled {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Logo Group */
.cp-header .logo-group {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex-shrink: 0;
}

.cp-header .logo-group img {
    height: 75px;
    width: auto;
}

.cp-header .logo-group .tagline {
    font-size: 0.78rem;
    color: #6c757d;
    line-height: 1.3;
    border-left: 2px solid #2d8659;
    padding-left: 12px;
    font-weight: 400;
}

/* Nav Links */
.cp-header .cp-nav {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    margin: 0;
    padding: 0;
}

.cp-header .cp-nav a {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: #343a40;
}

.cp-header .cp-nav a:hover {
    color: #2d8659;
    background: rgba(45, 134, 89, 0.08);
}

/* Right Section */
.cp-header .right-section {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.cp-header .cp-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e3a5f;
    transition: color 0.2s;
}

.cp-header .cp-phone:hover {
    color: #2d8659;
}

.cp-header .cp-phone svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.cp-header .cp-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    background: #2d8659;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cp-header .cp-cta:hover {
    background: #34a065;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 134, 89, 0.3);
}

/* Mobile Menu Button */
.cp-header .cp-mobile-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    color: #1e3a5f;
    transition: background 0.2s;
}

.cp-header .cp-mobile-btn:hover {
    background: rgba(30, 58, 95, 0.08);
}

.cp-header .cp-mobile-btn svg {
    width: 24px;
    height: 24px;
}

/* ===== Mobile Menu Panel ===== */
.cp-mobile-menu {
    display: none;
    position: fixed;
    top: 94px;
    left: 0;
    right: 0;
    background: #ffffff;
    z-index: 9999;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-top: 1px solid #e9ecef;
    padding: 16px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.cp-mobile-menu.open {
    display: block;
}

.cp-mobile-menu a {
    display: block;
    padding: 14px 32px;
    text-decoration: none;
    color: #343a40;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.cp-mobile-menu a:hover {
    background: rgba(45, 134, 89, 0.06);
    color: #2d8659;
}

.cp-mobile-menu .cp-mobile-cta {
    display: block;
    margin: 12px 24px 8px;
    padding: 14px 24px;
    border-radius: 50px;
    background: #2d8659;
    color: white;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s;
}

.cp-mobile-menu .cp-mobile-cta:hover {
    background: #34a065;
}

.cp-mobile-menu .cp-mobile-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    color: #1e3a5f;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}

/* ===== Footer Logo Override ===== */
.cp-footer-logo {
    height: 70px;
    width: auto;
    margin-bottom: 8px;
}

/* ===== Adjust Body Top Padding ===== */
body {
    padding-top: 0 !important;
}

/* Push content below fixed header */
#root {
    padding-top: 94px;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .cp-header .cp-nav a {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 1024px) {
    .cp-header {
        padding: 0 20px;
        height: 80px;
    }

    .cp-header .logo-group img {
        height: 60px;
    }

    .cp-header .logo-group .tagline {
        display: none;
    }

    .cp-header .cp-nav {
        display: none !important;
    }

    .cp-header .right-section .cp-phone {
        display: none;
    }

    .cp-header .right-section .cp-cta {
        display: none;
    }

    .cp-header .cp-mobile-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cp-mobile-menu {
        top: 84px;
    }

    #root {
        padding-top: 84px;
    }
}

@media (max-width: 640px) {
    .cp-header {
        padding: 0 16px;
        height: 72px;
    }

    .cp-header .logo-group img {
        height: 52px;
    }

    .cp-mobile-menu {
        top: 76px;
    }

    #root {
        padding-top: 76px;
    }
}