/* Transparent Header Styles - HVAC247PRO */

/* Transparent Header - positioned over hero */
.rts-header.header-transparent {
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When top bar exists, push header below it + 30px spacing */
.rts-top-bar + .rts-header.header-transparent {
    top: 76px; /* 46px top bar + 30px spacing */
}

/* Without top bar, 30px from top */
.rts-header.header-transparent:not(.sticky) {
    margin-top: 30px;
}

/* Navigation links white on transparent */
.rts-header.header-transparent .menu-list > li > a {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.rts-header.header-transparent .menu-list > li > a:hover {
    color: #4ecdc4 !important;
}

/* CTA Button - glassmorphism on transparent */
.rts-header.header-transparent .rts-btn.btn-primary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.rts-header.header-transparent .rts-btn.btn-primary:hover {
    background: rgba(78, 205, 196, 0.9);
    border-color: #4ecdc4;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

/* Mobile menu toggle - white on transparent */
.rts-header.header-transparent .menu-toggle {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* HIDE hamburger on DESKTOP - only show on mobile */
@media (min-width: 992px) {
    .menu-toggle {
        display: none !important;
    }
}

/* ============================================
   OFF-CANVAS MOBILE MENU STYLES
   ============================================ */
.rts-offcanvas-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, #0a2540 0%, #1a3a5c 100%);
    z-index: 9999;
    padding: 30px 25px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
}

.rts-offcanvas-menu.active {
    right: 0;
}

.offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.offcanvas-overlay.active {
    opacity: 1;
    visibility: visible;
}

.offcanvas-close {
    text-align: right;
    margin-bottom: 20px;
}

.offcanvas-close button {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.offcanvas-close button:hover {
    background: rgba(239, 68, 68, 0.8);
    transform: rotate(90deg);
}

.offcanvas-logo {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-logo img {
    max-width: 100px;
}

.offcanvas-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offcanvas-nav ul li {
    margin-bottom: 5px;
}

.offcanvas-nav ul li a {
    display: block;
    padding: 12px 15px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s;
}

.offcanvas-nav ul li a:hover {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    padding-left: 25px;
}

.offcanvas-contact {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-contact h4 {
    color: #4ecdc4;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.offcanvas-contact p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.offcanvas-contact a {
    color: #4ecdc4;
    text-decoration: none;
}

.offcanvas-contact a:hover {
    text-decoration: underline;
}

/* Sticky header - solid dark with blur */
.rts-header.header-transparent.sticky {
    position: fixed;
    top: 0;
    background: rgba(10, 37, 64, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    padding: 12px 0;
    animation: headerSlide 0.4s ease;
}

@keyframes headerSlide {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Sticky nav links - white on dark */
.rts-header.header-transparent.sticky .menu-list > li > a {
    color: #fff !important;
    text-shadow: none;
}

/* Sticky CTA - accent color */
.rts-header.header-transparent.sticky .rts-btn.btn-primary {
    background: #4ecdc4;
    border-color: #4ecdc4;
    color: #0a2540;
}

.rts-header.header-transparent.sticky .rts-btn.btn-primary:hover {
    background: #3dbdb5;
}

/* Logo size - 50% smaller */
.rts-header .logo img {
    max-width: 100px;
    height: auto;
    transition: all 0.3s ease;
}

.rts-header.sticky .logo img {
    max-width: 80px;
}

/* Adjust banner to account for header overlay */
.header-transparent + .rts-banner-area,
.header-transparent ~ .rts-banner-area,
.rts-top-bar + .header-transparent ~ .rts-banner-area {
    margin-top: 0;
}

/* Hero content padding adjustment - 50px down */
.header-transparent ~ .rts-banner-area .banner-one-inner {
    padding-top: 50px;
}

.header-transparent ~ .rts-banner-area .banner-content {
    padding-top: 160px;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .rts-header.header-transparent {
        padding: 15px 0;
    }

    .rts-header .logo img {
        max-width: 80px;
    }

    .rts-header.sticky .logo img {
        max-width: 70px;
    }

    /* Hamburger Menu Button - MUST BE VISIBLE */
    .menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.15) !important;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 8px;
        color: #fff !important;
        font-size: 20px;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
        z-index: 1001;
    }

    .menu-toggle:hover {
        background: rgba(255, 255, 255, 0.25) !important;
        transform: scale(1.05);
    }

    .menu-toggle i {
        color: #fff !important;
        font-size: 20px;
    }

    /* Sticky header hamburger */
    .rts-header.sticky .menu-toggle {
        background: rgba(59, 130, 246, 0.9) !important;
        border-color: #3b82f6 !important;
    }
}

@media (max-width: 767px) {
    .rts-top-bar + .rts-header.header-transparent {
        top: 40px;
    }

    .rts-header .logo img {
        max-width: 70px;
    }

    /* Hamburger on smaller phones */
    .menu-toggle {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .menu-toggle i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .menu-toggle i {
        font-size: 16px;
    }

    .rts-header .logo img {
        max-width: 60px;
    }
}

/* ============================================
   MOBILE FONT SIZE ADJUSTMENTS
   Make all fonts bigger on mobile for readability
   ============================================ */

@media (max-width: 991px) {
    /* Base body text - bigger on mobile */
    body {
        font-size: 17px !important;
        line-height: 1.7 !important;
    }

    /* Paragraphs */
    p {
        font-size: 17px !important;
        line-height: 1.75 !important;
    }

    /* Headings - scale up for mobile */
    h1 {
        font-size: 32px !important;
        line-height: 1.3 !important;
    }

    h2 {
        font-size: 26px !important;
        line-height: 1.35 !important;
    }

    h3 {
        font-size: 22px !important;
        line-height: 1.4 !important;
    }

    h4 {
        font-size: 20px !important;
        line-height: 1.4 !important;
    }

    h5 {
        font-size: 18px !important;
        line-height: 1.45 !important;
    }

    h6 {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }

    /* Navigation links in offcanvas */
    .offcanvas-nav ul li a {
        font-size: 18px !important;
        padding: 14px 15px !important;
    }

    /* Buttons */
    .rts-btn,
    .btn,
    button {
        font-size: 16px !important;
    }

    /* Lists */
    ul li, ol li {
        font-size: 17px !important;
        line-height: 1.7 !important;
    }

    /* Service cards */
    .service-item h3,
    .service-card h3,
    .rts-service-item h3 {
        font-size: 20px !important;
    }

    .service-item p,
    .service-card p,
    .rts-service-item p {
        font-size: 16px !important;
    }

    /* Blog posts */
    .blog-item h3,
    .blog-card h3 {
        font-size: 20px !important;
    }

    .blog-item p,
    .blog-card p {
        font-size: 16px !important;
    }

    /* Hero/Banner text */
    .banner-content h1,
    .rts-banner-area h1 {
        font-size: 34px !important;
        line-height: 1.25 !important;
    }

    .banner-content p,
    .rts-banner-area p {
        font-size: 18px !important;
    }

    /* Footer text */
    .footer-area p,
    .ultimate-footer p {
        font-size: 15px !important;
    }

    .footer-area h4,
    .ultimate-footer h4 {
        font-size: 18px !important;
    }

    .footer-area li,
    .ultimate-footer li {
        font-size: 15px !important;
    }

    /* Form inputs */
    input, textarea, select {
        font-size: 16px !important; /* Prevents iOS zoom */
    }

    /* Contact info */
    .contact-info p,
    .offcanvas-contact p {
        font-size: 15px !important;
    }

    /* Stats/counters */
    .stat-number,
    .counter-number {
        font-size: 36px !important;
    }

    .stat-label,
    .counter-label {
        font-size: 14px !important;
    }
}

@media (max-width: 767px) {
    /* Even bigger text on smaller phones */
    body {
        font-size: 16px !important;
    }

    p {
        font-size: 16px !important;
    }

    h1 {
        font-size: 28px !important;
    }

    h2 {
        font-size: 24px !important;
    }

    h3 {
        font-size: 20px !important;
    }

    .banner-content h1,
    .rts-banner-area h1 {
        font-size: 28px !important;
    }

    .banner-content p,
    .rts-banner-area p {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    /* Small phones */
    body {
        font-size: 15px !important;
    }

    h1 {
        font-size: 26px !important;
    }

    h2 {
        font-size: 22px !important;
    }

    .banner-content h1,
    .rts-banner-area h1 {
        font-size: 24px !important;
    }
}
