/**
 * Header Styles
 * Modern header with logo, Schedule Demo button, and burger menu
 * 
 * @package rprocess-child
 */

/* ============================================
   HEADER BASE
   ============================================ */
html {margin:0 !important;}
#header,
.navbar {
    background: #fff;
    padding: 7px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1000;
}

@media (max-width: 767px) {
    #header,
    .navbar {
        padding: 8px 0;
    }
}

/* ============================================
   HEADER CONTAINER
   ============================================ */

#header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   LOGO SECTION
   ============================================ */

.navbar-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    padding: 0;
    margin: 0;
}

.navbar-brand:hover {
    text-decoration: none;
}

/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Logo Icon (Y) */
.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

/* Logo Text (Process) */
.logo-text {
    font-family: 'Work Sans', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #2a5298;
    /* Blue color */
    line-height: 1;
    letter-spacing: -0.5px;
}

@media (max-width: 767px) {
    .logo-text {
        font-size: 24px;
    }
}

/* Gradient Line Below Logo */
.logo-gradient-line {
    width: 100%;
    height: 3px;
    margin-top: 8px;
    background: linear-gradient(90deg, #2a5298 0%, #4ecdc4 50%, #7b68ee 100%);
    background: -webkit-linear-gradient(90deg, #2a5298 0%, #4ecdc4 50%, #7b68ee 100%);
    background: -moz-linear-gradient(90deg, #2a5298 0%, #4ecdc4 50%, #7b68ee 100%);
    border-radius: 2px;
}

/* ============================================
   HEADER RIGHT SECTION
   ============================================ */

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

@media (max-width: 767px) {
    .header-right {
        gap: 15px;
    }
}

/* ============================================
   SCHEDULE DEMO BUTTON
   ============================================ */

.btn-schedule-demo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 30px;
    background: #A9534C;
    /* Maroon/reddish-brown */
    color: #fff;
    font-family: 'Quicksand', sans-serif;
    font-size: 18px;
    line-height: 22px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-schedule-demo:hover {
    background: #BE706A;
    /* Darker maroon on hover */
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.btn-schedule-demo:focus {
    outline: 0;
    outline-offset: 2px;
}

.btn-schedule-demo:active {
    transform: translateY(0);
}

/* Arrow Icon */
.btn-schedule-demo .arrow-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.btn-schedule-demo:hover .arrow-icon {
    transform: translateX(3px);
}

.btn-schedule-demo .arrow-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

@media (max-width: 767px) {
    .btn-schedule-demo {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .btn-schedule-demo .arrow-icon {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .btn-schedule-demo {
        padding: 8px 14px;
        font-size: 12px;
        gap: 6px;
    }
}

/* ============================================
   BURGER MENU BUTTON
   ============================================ */

.burger-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent !important;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    transition: all 0.3s ease;
}

.burger-menu-toggle:focus {
    outline: 2px solid #2a5298;
    outline-offset: 2px;
    border-radius: 4px;
}

.burger-menu-toggle span {
    display: block;
    width: 37px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-menu-toggle.light span {
    background: #333;
}

.burger-menu-toggle.dark span {
    background: #fff;
}

/* Active state */
.burger-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.burger-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

@media (max-width: 767px) {
    .burger-menu-toggle {
        width: 28px;
        height: 22px;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 991px) {
    .header-right {
        gap: 15px;
    }
    
    .btn-schedule-demo {
        padding: 10px 20px;
    }
}

@media (max-width: 767px) {
    #header .container {
        padding: 0 15px;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 22px;
    }
    
    .logo-gradient-line {
        height: 2px;
        margin-top: 6px;
    }
}

@media (max-width: 480px) {
    .btn-schedule-demo {
        font-size: 11px;
        padding: 8px 12px;
    }
}

/* ============================================
   CROSS-BROWSER COMPATIBILITY
   ============================================ */

/* Flexbox fallbacks */
#header .container,
.header-right,
.logo-container,
.btn-schedule-demo {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

/* Transform fallbacks */
.btn-schedule-demo:hover {
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
}

.btn-schedule-demo .arrow-icon {
    -webkit-transition: transform 0.3s ease;
    -moz-transition: transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
}

.btn-schedule-demo:hover .arrow-icon {
    -webkit-transform: translateX(3px);
    -moz-transform: translateX(3px);
    -ms-transform: translateX(3px);
    transform: translateX(3px);
}

.burger-menu-toggle.active span:nth-child(1) {
    -webkit-transform: rotate(45deg) translate(8px, 8px);
    -moz-transform: rotate(45deg) translate(8px, 8px);
    -ms-transform: rotate(45deg) translate(8px, 8px);
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu-toggle.active span:nth-child(3) {
    -webkit-transform: rotate(-45deg) translate(8px, -8px);
    -moz-transform: rotate(-45deg) translate(8px, -8px);
    -ms-transform: rotate(-45deg) translate(8px, -8px);
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Transition fallbacks */
.btn-schedule-demo,
.burger-menu-toggle span {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* Box shadow fallbacks */
.btn-schedule-demo:hover {
    -webkit-box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
    -moz-box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.burger-menu-toggle:focus-visible,
.btn-schedule-demo:focus-visible {
    outline: 2px solid #2a5298;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}



