/* COMPONENT: Header */
/* Pixel-perfect header and navigation styles */

/* ===== FONT IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Bowlby+One&display=swap');

/* ===== HEADER CONTAINER ===== */
.site-header {
    width: 100%;
    height: 110px;
    background-color: #00254D;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-left: 81px;
    padding-right: 120px;
}

/* ===== LOGO SECTION ===== */
.header-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-right: 88.98px;
}

.header-logo a {
    display: block;
}

.header-logo img {
    width: 213px;
    height: 62px;
    object-fit: contain;
}

/* ===== NAVIGATION ===== */
.header-nav {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 21px;
}

.nav-list li {
    display: flex;
    align-items: center;
}

.nav-link {
    font-family: 'Bowlby One', cursive;
    font-size: 13px;
    color: #FFFFFF;
    text-transform: capitalize;
    text-decoration: none;
    white-space: nowrap;
    transition: color 150ms ease;
}

.nav-link:hover,
.nav-link:focus {
    color: #3DBF2B;
}

/* Active/Current page highlighting */
.nav-link[aria-current="page"] {
    color: #3DBF2B;
    font-weight: 700;
}

.nav-link:focus-visible {
    outline: 2px solid #3DBF2B;
    outline-offset: 4px;
}

/* ===== HEADER RIGHT SECTION (Phone + Social) ===== */
.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
    margin-left: 62px;
}

/* ===== CONTACT SECTION ===== */
.header-contact {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.contact-phone {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* ===== DESKTOP SOCIAL ICONS ===== */
.navbar-right-social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar-social-icon i {
    font-size: 28px;
    color: #3DBF2B;
}

.navbar-social-icon:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.navbar-social-icon:focus {
    outline: 2px solid #3DBF2B;
    outline-offset: 4px;
    border-radius: 4px;
}

.phone-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: #3DBF2B;
    border-radius: 50%;
    margin-right: 5px;
    flex-shrink: 0;
}

.phone-icon-wrapper i {
    font-size: 20px;
    color: #FFFFFF;
}

.phone-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.call-label {
    font-family: 'Bowlby One', cursive;
    font-size: 14px;
    color: #3DBF2B;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 2px;
}

.phone-number {
    font-family: 'Bowlby One', cursive;
    font-size: 28px;
    color: #FFFFFF;
    line-height: 1;
    white-space: nowrap;
}

.contact-phone:hover .phone-number,
.contact-phone:focus .phone-number {
    color: #3DBF2B;
}

.contact-phone:focus-visible {
    outline: 2px solid #3DBF2B;
    outline-offset: 4px;
}

/* ===== HAMBURGER MENU BUTTON ===== */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #FFFFFF;
    border-radius: 2px;
    transition: all 250ms ease;
    transform-origin: center;
}

.hamburger-btn.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 110px;
    left: 0;
    width: 100%;
    background-color: #0A2347;
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 350ms ease;
}

.mobile-menu.active {
    max-height: calc(100vh - 110px);
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.mobile-nav-list li {
    width: 100%;
    text-align: center;
}

.mobile-nav-link {
    display: block;
    font-family: 'Bowlby One', cursive;
    font-size: 18px;
    color: #FFFFFF;
    text-transform: uppercase;
    text-decoration: none;
    padding: 20px;
    transition: background-color 150ms ease, color 150ms ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background-color: rgba(61, 191, 43, 0.1);
    color: #3DBF2B;
}

.mobile-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-contact .contact-phone {
    flex-direction: column;
    text-align: center;
}

.mobile-contact .phone-icon-wrapper {
    margin-right: 0;
    margin-bottom: 10px;
}

.mobile-contact .phone-text {
    align-items: center;
}

/* ===== MOBILE TOP HEADER BAR ===== */
.mobile-top-header {
    display: none;
    width: 100%;
    background-color: #082444;
    padding: 12px 20px;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
}

.mobile-top-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-top-phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #3DBF2B;
    border-radius: 50%;
    flex-shrink: 0;
}

.mobile-top-phone-icon i {
    font-size: 14px;
    color: #FFFFFF;
}

.mobile-phone-cta {
    font-family: 'Bowlby One', cursive;
    color: #3DBF2B;
    font-size: clamp(18px, 3.5vw, 22px);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.mobile-phone-cta:hover,
.mobile-phone-cta:focus {
    opacity: 0.85;
}

.mobile-phone-cta:focus {
    outline: 2px solid #3DBF2B;
    outline-offset: 4px;
    border-radius: 4px;
}

.mobile-top-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mobile-social {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-social i {
    font-size: clamp(22px, 5vw, 26px);
    color: #3DBF2B;
}

.mobile-social:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.mobile-social:focus {
    outline: 2px solid #3DBF2B;
    outline-offset: 4px;
    border-radius: 4px;
}

/* ===== DESKTOP: Hide Mobile Top Header (≥1025px) ===== */
@media screen and (min-width: 1025px) {
    .mobile-top-header {
        display: none !important;
    }
}

/* ===== RESPONSIVE: 4K SCREENS (≥2560px) ===== */
@media screen and (min-width: 2560px) {
    .header-container {
        max-width: 85%;
        margin: 0 auto;
        padding-left: 81px;
        padding-right: 120px;
    }
}

/* ===== RESPONSIVE: LARGE DESKTOPS (1920-2559px) ===== */
@media screen and (min-width: 1920px) and (max-width: 2559px) {
    .header-container {
        max-width: 1600px;
        margin: 0 auto;
    }
}

/* ===== RESPONSIVE: STANDARD DESKTOPS (1440-1919px) ===== */
@media screen and (min-width: 1440px) and (max-width: 1919px) {
    .header-container {
        padding-right: 80px;
    }
}

/* ===== RESPONSIVE: LARGE TABLETS (1024-1439px) ===== */
@media screen and (min-width: 1024px) and (max-width: 1439px) {
    .header-container {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .header-logo {
        margin-right: 40px;
    }
    
    .nav-list {
        gap: 14px;
    }
    
    .header-right {
        margin-left: 30px;
        gap: 20px;
    }
    
    .navbar-social-icon i {
        font-size: 24px;
    }
}

/* ===== RESPONSIVE: Nest Hub Max (1280px) ===== */
@media screen and (min-width: 1280px) and (max-width: 1439px) {
    .header-container {
        padding-left: 30px;
        padding-right: 30px;
        max-width: 1280px;
    }
    
    .header-logo {
        margin-right: 30px;
    }
    
    .nav-list {
        gap: 12px;
    }
    
    .nav-link {
        font-size: 13px;
    }
    
    .header-right {
        margin-left: 25px;
        gap: 18px;
    }
    
    .phone-number {
        font-size: 24px;
    }
    
    .call-label {
        font-size: 13px;
    }
}

/* ===== RESPONSIVE: SMALL TABLETS (768-1023px) ===== */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .header-container {
        padding-left: 30px;
        padding-right: 30px;
    }
    
    .header-logo {
        margin-right: 30px;
    }
    
    .header-logo img {
        width: 180px;
        height: auto;
    }
    
    .nav-list {
        gap: 10px;
    }
    
    .nav-link {
        font-size: 11px;
    }
    
    .header-contact {
        margin-left: 20px;
    }
    
    .phone-number {
        font-size: 22px;
    }
    
    .call-label {
        font-size: 12px;
    }
    
    .phone-icon-wrapper {
        width: 38px;
        height: 38px;
    }
    
    .phone-icon-wrapper i {
        font-size: 16px;
    }
}

/* ===== RESPONSIVE: MOBILE BREAKPOINT (≤1024px) ===== */
@media screen and (max-width: 1024px) {
    /* Show mobile top header */
    .mobile-top-header {
        display: flex;
    }
    
    /* Adjust header position to account for top bar */
    .site-header {
        top: 52px;
    }
    
    .header-nav {
        display: none;
    }
    
    .header-right {
        display: none;
    }
    
    .header-contact {
        display: none;
    }
    
    /* Hide desktop social icons */
    .navbar-right-social {
        display: none !important;
    }
    
    .hamburger-btn {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
        top: 162px; /* 52px top bar + 110px header */
    }
    
    .header-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .header-logo {
        margin-right: 0;
    }
}

/* ===== RESPONSIVE: TABLET LANDSCAPE (768-1024px) ===== */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .site-header {
        top: 52px;
    }
    
    .header-logo img {
        width: 200px;
        height: auto;
    }
    
    .mobile-nav-link {
        font-size: 20px;
        padding: 22px;
    }
    
    .mobile-phone-cta {
        font-size: 22px;
    }
    
    .mobile-social i {
        font-size: 26px;
    }
}

/* ===== RESPONSIVE: MOBILE PORTRAIT (320-480px) ===== */
@media screen and (max-width: 480px) {
    .site-header {
        height: 90px;
        top: 52px;
    }
    
    .mobile-menu {
        top: 142px; /* 52px top bar + 90px header */
    }
    
    .mobile-menu.active {
        max-height: calc(100vh - 142px);
    }
    
    .mobile-top-header {
        padding: 10px 15px;
    }
    
    .mobile-phone-cta {
        font-size: clamp(16px, 3.5vw, 20px);
    }
    
    .mobile-social i {
        font-size: 22px;
    }
    
    .header-container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .header-logo img {
        max-width: 150px;
        height: auto;
    }
    
    .mobile-nav-link {
        font-size: 16px;
        padding: 18px;
    }
    
    .mobile-contact .phone-number {
        font-size: 24px;
    }
}

/* ===== RESPONSIVE: ULTRA-SMALL MOBILE (≤280px) ===== */
@media screen and (max-width: 280px) {
    .site-header {
        height: 80px;
        top: 52px;
    }
    
    .mobile-menu {
        top: 132px; /* 52px top bar + 80px header */
    }
    
    .mobile-menu.active {
        max-height: calc(100vh - 132px);
    }
    
    .mobile-top-header {
        padding: 8px 12px;
    }
    
    .mobile-phone-cta {
        font-size: 14px;
    }
    
    .mobile-top-phone-icon {
        width: 24px;
        height: 24px;
    }
    
    .mobile-top-phone-icon i {
        font-size: 12px;
    }
    
    .mobile-social i {
        font-size: 18px;
    }
    
    .mobile-top-left {
        gap: 8px;
    }
    
    .mobile-top-right {
        gap: 10px;
    }
    
    .header-logo img {
        max-width: 110px;
        height: auto;
    }
    
    .hamburger-btn {
        width: 24px;
        height: 18px;
    }
    
    .hamburger-btn span {
        height: 2px;
    }
    
    .mobile-nav-link {
        font-size: 14px;
        padding: 15px;
    }
    
    .mobile-contact .call-label {
        display: none;
    }
    
    .mobile-contact .phone-number {
        font-size: 18px;
    }
    
    .mobile-contact .phone-icon-wrapper {
        width: 36px;
        height: 36px;
    }
    
    .mobile-contact .phone-icon-wrapper i {
        font-size: 14px;
    }
}

/* ===== ACCESSIBILITY: SKIP LINK ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #3DBF2B;
    color: #FFFFFF;
    padding: 10px 20px;
    font-family: 'Bowlby One', cursive;
    font-size: 14px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 4px;
    transition: top 150ms ease;
}

.skip-link:focus {
    top: 0;
}

/* ===== BODY OFFSET FOR FIXED HEADER ===== */
body {
    padding-top: 110px;
}

@media screen and (max-width: 1024px) {
    body {
        padding-top: 162px; /* 52px top bar + 110px header */
    }
}

@media screen and (max-width: 480px) {
    body {
        padding-top: 142px; /* 52px top bar + 90px header */
    }
}

@media screen and (max-width: 280px) {
    body {
        padding-top: 132px; /* 52px top bar + 80px header */
    }
}

/* ===== OVERLAY FOR MOBILE MENU ===== */
.menu-overlay {
    display: none;
    position: fixed;
    top: 110px;
    left: 0;
    width: 100%;
    height: calc(100vh - 110px);
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 250ms ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

@media screen and (max-width: 1024px) {
    .menu-overlay {
        top: 162px; /* 52px top bar + 110px header */
        height: calc(100vh - 162px);
    }
}

@media screen and (max-width: 480px) {
    .menu-overlay {
        top: 142px; /* 52px top bar + 90px header */
        height: calc(100vh - 142px);
    }
}

@media screen and (max-width: 280px) {
    .menu-overlay {
        top: 132px; /* 52px top bar + 80px header */
        height: calc(100vh - 132px);
    }
}

/* ===== FIX: MOBILE HEADER GAP ===== */
/* Ensures no visible gap between mobile-top-header and site-header on mobile devices */
@media screen and (max-width: 1024px) {
    /* Force exact height for mobile-top-header to eliminate gap */
    .mobile-top-header {
        position: fixed;
        top: 0 !important;
        left: 0;
        right: 0;
        height: 52px;
        min-height: 52px;
        max-height: 52px;
        padding: 12px 20px;
        margin: 0 !important;
        border: none !important;
        box-sizing: border-box;
        display: flex;
        align-items: center;
    }
    
    /* Force site-header to be exactly 52px from top with no gap */
    .site-header {
        position: fixed;
        top: 52px !important;
        left: 0;
        right: 0;
        margin: 0 !important;
        border: none !important;
        border-top: none !important;
        box-sizing: border-box;
    }
    
    /* Remove any potential borders on header-container */
    .header-container {
        border-top: none !important;
        border-bottom: none !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 767px) {
    .mobile-top-header {
        height: 52px;
        min-height: 52px;
        max-height: 52px;
        padding: 12px 20px;
    }
    
    .site-header {
        top: 52px !important;
    }
}

@media screen and (max-width: 480px) {
    .mobile-top-header {
        height: 52px;
        min-height: 52px;
        max-height: 52px;
        padding: 10px 15px;
    }
    
    .site-header {
        top: 52px !important;
        height: 90px;
    }
}

@media screen and (max-width: 280px) {
    .mobile-top-header {
        height: 52px;
        min-height: 52px;
        max-height: 52px;
        padding: 8px 12px;
    }
    
    .site-header {
        top: 52px !important;
        height: 80px;
    }
}