/* ===================================
   LOGO SIZE UPDATES - 2025
   =================================== */

/* Desktop logo - visually scaled without affecting header height */
.logo {
    /* Prevent logo container from expanding header */
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

.logo-img {
    /* Base size constrained to fit header without expanding it */
    height: 140px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain !important;
    /* Scale visually larger without affecting layout/header height */
    transform: scale(1.6) !important;
    /* Center logo vertically within header using flex */
    margin: 0 !important;
    padding: 0 !important;
    /* Allow scaled logo to overflow container without breaking layout */
    transform-origin: center !important;
}

/* Footer logo - exact same size as header logo */
.footer-logo {
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
}

.footer-logo-img {
    /* Match header logo exactly */
    height: 140px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain !important;
    /* Same scale as header logo */
    transform: scale(1.6) !important;
    margin: 0 !important;
    padding: 0 !important;
    transform-origin: center !important;
    background: transparent !important;
}

/* ===================================
   COUNTRY CODE SELECTOR STYLES
   =================================== */

.phone-input-wrapper {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.country-code-selector {
    position: relative;
    flex-shrink: 0;
    width: 120px;
}

.country-code-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid #F8F9FA;
    border-radius: 8px;
    background: #FFFFFF;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.country-code-button:hover,
.country-code-button:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.country-flag {
    font-size: 1.25rem;
    line-height: 1;
}

.country-code-text {
    font-size: 0.9rem;
    color: #343A40;
    flex: 1;
    text-align: left;
}

.dropdown-arrow {
    font-size: 0.75rem;
    color: #6C757D;
    transition: transform 0.3s ease;
}

.country-code-selector.active .dropdown-arrow {
    transform: rotate(180deg);
}

.country-code-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 280px;
    max-height: 300px;
    overflow-y: auto;
    background: #FFFFFF;
    border: 2px solid #F8F9FA;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
    z-index: 1000;
    display: none;
}

.country-code-selector.active .country-code-dropdown {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.country-search {
    position: sticky;
    top: 0;
    background: #FFFFFF;
    padding: 0.75rem;
    border-bottom: 1px solid #F8F9FA;
}

.country-search input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #F8F9FA;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.country-search input:focus {
    outline: none;
    border-color: #007BFF;
}

.country-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

.country-option:hover {
    background: #F8F9FA;
}

.country-option-flag {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.country-option-details {
    flex: 1;
    min-width: 0;
}

.country-option-name {
    font-size: 0.9rem;
    color: #000000;
    font-weight: 500;
}

.country-option-code {
    font-size: 0.85rem;
    color: #6C757D;
}

.phone-input-field {
    flex: 1;
    min-width: 0;
}

.phone-input-field input {
    width: 100%;
}

/* ===================================
   RESPONSIVE UPDATES
   =================================== */

@media (max-width: 968px) {

    /* Tablet logo size - visually scaled without affecting header */
    .logo-img,
    .footer-logo-img {
        height: 140px !important;
        transform: scale(1.5) !important;
    }
}

@media (max-width: 640px) {

    /* Mobile logo size - visually scaled without affecting header */
    .logo-img,
    .footer-logo-img {
        height: 140px !important;
        transform: scale(1.35) !important;
    }

    /* Hero image on mobile - content first, image below */
    .hero-grid {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Contact grid responsive */
    .contact-grid {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Country code selector responsive */
    .country-code-dropdown {
        width: 100vw;
        max-width: calc(100vw - 2rem);
        left: 50%;
        transform: translateX(-50%);
    }

    .phone-input-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .country-code-selector.active .country-code-dropdown {
        animation: fadeInDownMobile 0.3s ease;
    }

    @keyframes fadeInDownMobile {
        from {
            opacity: 0;
            transform: translate(-50%, -10px);
        }

        to {
            opacity: 1;
            transform: translate(-50%, 0);
        }
    }

    .country-code-selector {
        width: 100%;
    }
}