/* file name: header-footer.css */
/* SHEIVF HEADER/FOOTER STYLES - FULLY RESPONSIVE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* ========== HEADER STYLES ========== */
.header {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    height: 80px;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    height: 100%;
}

/* ========== LOGO FIXES ========== */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Logo image - Fixed dimensions */
.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
}

/* Desktop specific logo */
@media (min-width: 769px) {
    .logo {
        min-width: 180px;
    }
    
    .logo-img {
        height: 55px;
        max-height: 60px;
    }
}

/* ========== CONSULTATION BUTTONS ========== */
.mobile-consultation-btn {
    display: none;
}

.consult-btn {
    background-color: #f28f4b;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(242, 143, 75, 0.3);
}

.consult-btn:hover {
    background-color: #e07d38;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 143, 75, 0.4);
}

.desktop-consult-btn {
    display: block;
}

.consult-btn-desktop {
    background-color: #f28f4b;
    color: white !important;
    border-radius: 50px;
    padding: 12px 24px !important;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.consult-btn-desktop:hover {
    background-color: #e07d38 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 143, 75, 0.4);
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 15px 18px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: #f9f9f9;
    color: #f28f4b;
}

.nav-link.menu-heading {
    cursor: pointer;
    padding-right: 18px;
    color: #555;
}

/* ========== DROPDOWNS ========== */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 250px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 100;
    padding: 10px 0;
    border-top: 3px solid #f28f4b;
    display: block !important;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background-color: #f9f9f9;
    color: #f28f4b;
    border-left-color: #f28f4b;
    padding-left: 25px;
}

.dropdown-menu a i {
    margin-right: 10px;
    color: #c0d05b;
    font-size: 12px;
    transition: all 0.2s;
}

.dropdown-menu a:hover i {
    color: #f28f4b;
}

/* Desktop hover behavior */
@media (min-width: 769px) {
    .nav-item:hover .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(5px) !important;
    }
    
    .nav-item:hover > .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(5px) !important;
    }
}

/* ========== MOBILE TOGGLE ========== */
.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #f28f4b;
    background: none;
    border: none;
    margin-left: 15px;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background-color: #f9f9f9;
}

/* ========== FLOATING BUTTONS (EXACTLY LIKE INDEX FILE) ========== */
/* Floating Contact Buttons */
.contact-float {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.whatsapp-float {
    position: fixed;
    bottom: 90px;
    left: 20px;
    z-index: 1050;
}

.whatsapp-float a {
    color: white;
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 1.5rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background-color: #25d366;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.contact-float a {
    color: white;
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 1.5rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-float a:hover {
    transform: scale(1.1);
}

.whatsapp-btn { 
    background-color: #25d366; 
}

.phone-btn { 
    background-color: #28a745 !important;
}

/* Enhanced Floating Callback Form */
.callback-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1060;
    transition: all 0.3s ease;
}

.callback-button {
    background-color: #f28f4b;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 14px 24px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.callback-button:hover {
    background-color: #cc7a00;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.callback-button i {
    margin-right: 8px;
}

.callback-form-container {
    position: absolute;
    bottom: 65px;
    right: 0;
    width: 350px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    padding: 25px;
    display: none;
    z-index: 1061;
    border: 1px solid #e0e0e0;
}

.callback-form-container.show {
    display: block;
    animation: slideInUp 0.4s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Elements */
.callback-form-container .form-control,
.contact-form-wrapper .form-control {
    height: 48px;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.callback-form-container .form-control:focus,
.contact-form-wrapper .form-control:focus {
    border-color: #f28f4b;
    box-shadow: 0 0 0 3px rgba(242, 143, 75, 0.1);
}

/* Country Code Styling */
.country-code-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    width: 100%;
    align-items: stretch;
}

.country-code-selector .country-code-dropdown {
    flex-shrink: 0;
    width: 100px;
}

.country-code-selector .country-code-dropdown .dropdown-toggle {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.country-code-selector .phone-input-container {
    flex: 1;
    min-width: 0;
}

/* Loading and Error States */
.callback-loading,
.form-loading {
    display: none;
    text-align: center;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.callback-loading.show,
.form-loading.show {
    display: block;
}

.callback-error,
.alert {
    display: none;
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: center;
    padding: 10px;
    background-color: #f8d7da;
    border-radius: 5px;
    margin-bottom: 15px;
}

.callback-error.show,
.alert.show {
    display: block;
}

.thank-you-message {
    text-align: center;
    padding: 30px 20px;
    display: none;
}

.thank-you-message.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.thank-you-message i {
    font-size: 3.5rem;
    color: #f28f4b;
    margin-bottom: 20px;
}

.close-form {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-form:hover {
    color: #333;
    background-color: #f8f9fa;
}

/* ========== CONTACT FORM SECTION ========== */
.contact-form-section {
    background-color: #f9f9f9;
    padding: 60px 0;
    margin-top: 60px;
}

.section-heading h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    font-weight: 700;
}

.section-heading h2 span {
    color: #f28f4b;
}

.section-heading h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #c0d05b;
    margin: 10px auto 0;
    border-radius: 5px;
}

.section-heading.text-left h2::after {
    margin: 10px 0 0 0;
}

.contact-form-wrapper {
    border-left: 5px solid #f28f4b;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-info-wrapper {
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-info-wrapper ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-info-wrapper ul li:last-child {
    border-bottom: none;
}

.contact-details p {
    margin-bottom: 10px;
    font-size: 16px;
}

/* ========== GOOGLE MAP STYLES ========== */
.google-map-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.google-map-section h5 {
    font-size: 1.2rem;
    font-weight: 600;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.google-map {
    width: 100%;
    height: 250px;
    border: none;
}

/* ========== FOOTER STYLES ========== */
.footer {
    background-color: #f5f5f5;
    padding: 60px 5% 30px;
    margin-top: 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: #f28f4b;
    bottom: 0;
    left: 0;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
}

.footer-about {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

.contact-info {
    margin-bottom: 25px;
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    color: #555;
    font-size: 14px;
    line-height: 1.4;
}

.contact-info i {
    color: #f28f4b;
    margin-right: 10px;
    margin-top: 2px;
    min-width: 16px;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: #ddd;
    border-radius: 50%;
    color: #555;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: #f28f4b;
    color: white;
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #555;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 1.4;
}

.footer-links a:hover {
    color: #f28f4b;
    padding-left: 5px;
}

.footer-links a i {
    margin-right: 8px;
    color: #c0d05b;
    font-size: 10px;
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #ddd;
    color: #777;
    font-size: 13px;
    line-height: 1.5;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 1024px) {
    .nav-link {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    /* ========== MOBILE HEADER ========== */
    .header {
        height: 70px;
    }
    
    .header-container {
        padding: 10px 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    
    /* Logo - Mobile fixes */
    .logo {
        flex: 0 0 auto;
        margin-right: auto;
        min-width: 140px;
        height: 50px;
        display: flex;
        align-items: center;
    }
    
    .logo-img {
        height: 45px !important;
        width: auto !important;
        max-width: 180px;
        min-width: 140px;
        object-fit: contain;
    }
    
    /* Mobile consultation button */
    .mobile-consultation-btn {
        display: flex !important;
        flex-shrink: 0;
        margin: 0 8px;
    }
    
    .consult-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .desktop-consult-btn {
        display: none;
    }
    
    /* Mobile menu toggle */
    .nav-main {
        flex-shrink: 0;
        margin-left: 0;
    }
    
    .mobile-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px;
        height: 36px;
        margin-left: 0;
        font-size: 20px;
    }
    
    /* Mobile menu */
    .nav-menu {
        display: none !important;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        padding: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        gap: 0;
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex !important;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-link {
        padding: 16px 20px;
        border-bottom: none;
        font-size: 15px;
        white-space: normal;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Mobile arrows */
    .nav-link.menu-heading {
        cursor: pointer;
        padding-right: 20px;
    }
    
    .nav-link.menu-heading:after {
        content: '\f078';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%) rotate(0deg);
        font-size: 11px;
        color: #888;
        display: block;
        transition: all 0.3s ease;
    }
    
    .nav-link.menu-heading.active:after {
        transform: translateY(-50%) rotate(180deg);
        color: #f28f4b;
    }
    
    /* Mobile dropdowns */
    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        width: 100% !important;
        display: none !important;
        background-color: #f9f9f9 !important;
        border-top: none !important;
        border-radius: 0 !important;
        border-left: 3px solid #f28f4b !important;
        min-width: auto !important;
    }
    
    .dropdown-menu.active {
        display: block !important;
    }
    
    .dropdown-menu a {
        padding: 14px 20px 14px 30px !important;
        font-size: 14px !important;
    }
    
    /* Contact form section */
    .contact-form-section {
        padding: 40px 15px;
        margin-top: 40px;
    }
    
    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 20px;
    }
    
    /* Footer mobile */
    .footer {
        padding: 40px 15px 25px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Floating buttons for mobile */
    .contact-float {
        bottom: 50%;
        right: 10px;
        transform: translateY(50%);
        gap: 8px;
    }
    
    .contact-float a {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        left: 10px;
        transform: none;
    }
    
    .whatsapp-float a {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    
    .callback-form-container {
        width: 280px;
        right: -10px;
    }
    
    .callback-button {
        padding: 12px 18px;
        font-size: 0.9rem;
    }
    
    /* Ensure body padding for mobile */
    body {
        padding-top: 70px !important;
    }
}

@media (min-width: 769px) {
    /* Ensure mobile toggle is hidden on desktop */
    .mobile-toggle {
        display: none !important;
    }
    
    .mobile-consultation-btn {
        display: none !important;
    }
    
    /* Ensure desktop menu is visible */
    .nav-menu {
        display: flex !important;
    }
    
    /* Ensure body padding for desktop */
    body {
        padding-top: 80px !important;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .logo-img {
        height: 40px !important;
        min-width: 130px;
        max-width: 160px;
    }
    
    .consult-btn {
        font-size: 11px;
        padding: 7px 12px;
    }
    
    .callback-form-container {
        width: 280px;
        right: -20px;
    }
    
    .mobile-toggle {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
}

/* ========== UPDATE NOTIFICATION ========== */
.update-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border: 2px solid #4CAF50;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    animation: slideIn 0.3s ease-out;
    max-width: 350px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.update-content h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
}

.update-content ul {
    margin: 10px 0;
    padding-left: 20px;
    font-size: 14px;
}

.update-content li {
    margin: 5px 0;
    color: #34495e;
}

.update-content button {
    margin: 5px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.update-content button:first-of-type {
    background: #4CAF50;
    color: white;
}

.update-content button:last-of-type {
    background: #e0e0e0;
    color: #333;
}

/* Footer Color Fix */
footer.footer {
    background-color: #f5f5f5 !important;
    background: #f5f5f5 !important;
}