/* ==========================================================================
   Miraana Component Styles - components.css
   ========================================================================== */

/* Navbar & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition-normal);
}

.header.scrolled {
    background: rgba(20, 20, 20, 0.6);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 65px;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    color: #FFFFFF;
}

.logo img {
    height: 52px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
    background: transparent;   /* prevent white letterbox from filter compositing */
    transition: opacity 0.3s ease;
}

.logo-blend-screen {
    mix-blend-mode: screen;
}

.logo-blend-multiply {
    mix-blend-mode: multiply;
}

/* No filter on logo — CSS filters cause Chrome to create a white compositing layer
   behind SVG img elements, creating the 'white box' artifact.
   .light-theme .logo img is intentionally unstyled; transparent background is sufficient. */


.logo span {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;          /* standard property for non-webkit browsers */
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 1.05rem;
    font-weight: 600;
    position: relative;
    padding: 8px 0;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.02em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: #FFFFFF;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary);
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: #FFFFFF;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.lang-btn:hover {
    background: var(--surface-light);
    border-color: var(--primary);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 120px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1010;
}

.lang-dropdown.show {
    display: flex;
}

.lang-option {
    background: none;
    border: none;
    color: var(--accent-dark);
    padding: 10px 15px;
    text-align: left;
    cursor: pointer;
    font-size: 0.85rem;
    width: 100%;
    transition: var(--transition-fast);
}

.lang-option:hover {
    background: rgba(230, 57, 70, 0.1);
    color: var(--primary);
}

/* Mobile Toggle Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #FFFFFF;
    transition: var(--transition-normal);
}

@media (max-width: 991px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-lg);
        z-index: 1005;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #B82530 100%);
    color: #FFFFFF;
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    box-shadow: var(--glow-primary-strong);
    transform: translateY(-2px);
    color: #FFFFFF;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

@media (max-width: 575px) {
    .btn:not(.btn-sm) {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }
}

/* Cards */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(230, 57, 70, 0.3);
    box-shadow: var(--shadow-lg), 0 10px 30px rgba(0,0,0,0.2);
}

.service-icon-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.hero-slider .btn-secondary,
.section-bg-dark .btn-secondary {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
    backdrop-filter: blur(6px);
}

.card-img-wrapper {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 16 / 10;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #FFFFFF;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    width: 100%;
}

.form-control:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.2);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ── Select dropdowns — strip browser chrome, apply brand theme ── */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    /* Filled closed-path chevron — open paths with fill don't render */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23E63946' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-color: var(--surface);
    padding-right: 38px;
    cursor: pointer;
}

select.form-control option {
    background: var(--bg-charcoal);
    color: var(--accent);
}

/* Floating WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    position: relative;
}

.whatsapp-btn svg {
    width: 32px;
    height: 32px;
    fill: #FFFFFF;
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: var(--transition-normal);
    white-space: nowrap;
}

.whatsapp-widget:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    background-color: #25D366;
    opacity: 0.4;
    z-index: -1;
    animation: whatsapp-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes whatsapp-ping {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Footer Section */
.footer {
    background-color: var(--bg-dark);
    padding: 80px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 575px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col h4 {
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--accent-dark);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--accent-dark);
    font-size: 0.9rem;
}

.footer-contact-item svg {
    width: 20px;
    height: 20px;
    fill: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--accent-dark);
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--accent-dark);
}

.social-icon:hover {
    background: var(--primary);
}

.social-icon:hover svg {
    fill: #FFFFFF;
}

/* ==========================================================================
   Light Theme Components Overrides
   ========================================================================== */
.light-theme .form-label {
    color: #111111;
}

.light-theme .form-control {
    color: #111111;
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

.light-theme .form-control:focus {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
    color: #111111;
}

.light-theme select.form-control {
    background-color: #FFFFFF;
    color: #202020;
    border-color: rgba(0, 0, 0, 0.15);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23E63946' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
}

.light-theme select.form-control option {
    background: #FFFFFF;
    color: #202020;
}

/* ==========================================================================
   Google Translate Styling Cleanups
   ========================================================================== */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}
body {
    top: 0px !important;
    position: static !important;
}
.goog-te-gadget-icon,
.goog-te-gadget-simple img,
.goog-te-menu-value span:nth-child(3),
.goog-te-menu-value img {
    display: none !important;
}
.goog-tooltip,
.goog-tooltip:hover,
#goog-gt-tt,
.goog-text-highlight {
    display: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
}
