/* =============================================
   ADT EXPORT — COMPONENTS (components.css)
   Navbar, Footer, WhatsApp button, page hero
   ============================================= */

/* ==========================================
   NAVBAR
   ========================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    z-index: var(--z-sticky);
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

#navbar.transparent {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--space-md);
}

/* Logo */
.navbar__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.navbar__logo-img {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.navbar__logo-img img,
.navbar__logo-img svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.navbar__logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.navbar__logo-name {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    transition: color var(--transition-base);
}

.navbar__logo-tagline {
    font-size: 0.68rem;
    font-weight: 400;
    opacity: 0.75;
    letter-spacing: 0.04em;
    transition: color var(--transition-base);
}

#navbar.transparent .navbar__logo-name,
#navbar.transparent .navbar__logo-tagline {
    color: var(--color-white);
}

#navbar.scrolled .navbar__logo-name {
    color: var(--color-primary);
}

#navbar.scrolled .navbar__logo-tagline {
    color: var(--color-muted);
}

/* Nav Links */
.navbar__nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    flex: 1;
    justify-content: center;
}

.navbar__nav>li {
    position: relative;
}

.navbar__nav>li>a,
.navbar__nav>li>.nav-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.93rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    background: none;
    border: none;
    font-family: inherit;
}

#navbar.transparent .navbar__nav>li>a,
#navbar.transparent .navbar__nav>li>.nav-toggle {
    color: rgba(255, 255, 255, 0.9);
}

#navbar.transparent .navbar__nav>li>a:hover,
#navbar.transparent .navbar__nav>li>.nav-toggle:hover,
#navbar.transparent .navbar__nav>li.active>a {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.15);
}

#navbar.scrolled .navbar__nav>li>a,
#navbar.scrolled .navbar__nav>li>.nav-toggle {
    color: var(--color-heading);
}

#navbar.scrolled .navbar__nav>li>a:hover,
#navbar.scrolled .navbar__nav>li>.nav-toggle:hover,
#navbar.scrolled .navbar__nav>li.active>a {
    color: var(--color-primary);
    background: var(--color-bg-alt);
}

.nav-arrow {
    font-size: 0.7rem;
    transition: transform var(--transition-fast);
}

.navbar__nav>li:hover .nav-arrow,
.navbar__nav>li.open .nav-arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 240px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    display: none;
    z-index: var(--z-dropdown);
    border: 1px solid var(--color-bg-alt);
}

body.rtl .nav-dropdown {
    left: auto;
    right: 50%;
    transform: translateX(50%) translateY(-8px);
}

.navbar__nav>li:hover .nav-dropdown,
.navbar__nav>li.open .nav-dropdown {
    display: block;
    animation: fadeInUp 0.2s ease both;
}

.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-heading);
    transition: all var(--transition-fast);
}

.nav-dropdown a:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
    transform: translateX(4px);
}

body.rtl .nav-dropdown a:hover {
    transform: translateX(-4px);
}

.nav-dropdown__icon {
    width: 32px;
    height: 32px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Language Switcher */
.navbar__actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.lang-switcher {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    padding: 4px;
    gap: 2px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
}

#navbar.scrolled .lang-switcher {
    background: var(--color-bg-alt);
    border-color: var(--color-ph-border);
}

.lang-btn {
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all var(--transition-fast);
    letter-spacing: 0.06em;
    font-family: inherit;
}

#navbar.transparent .lang-btn {
    color: rgba(255, 255, 255, 0.8);
}

#navbar.scrolled .lang-btn {
    color: var(--color-body);
}

.lang-btn.active {
    background: var(--color-accent) !important;
    color: var(--color-white) !important;
}

.lang-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

#navbar.scrolled .lang-btn:not(.active):hover {
    background: var(--color-ph-bg);
    color: var(--color-primary);
}

/* Hamburger */
.navbar__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.4rem;
    background: none;
    border: none;
}

.navbar__hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    border-radius: 2px;
    transition: all var(--transition-fast);
}

#navbar.transparent .navbar__hamburger span {
    background: var(--color-white);
}

#navbar.scrolled .navbar__hamburger span {
    background: var(--color-heading);
}

.navbar__hamburger.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.navbar__hamburger.open span:nth-child(2) {
    opacity: 0;
}

.navbar__hamburger.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Nav */
@media (max-width: 1024px) {
    .navbar__hamburger {
        display: flex;
    }

    .navbar__nav {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        background: var(--color-white);
        padding: var(--space-md);
        gap: 0.25rem;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        z-index: var(--z-overlay);
    }

    body.rtl .navbar__nav {
        transform: translateX(100%);
    }

    .navbar__nav.open {
        transform: translateX(0);
    }

    .navbar__nav>li>a,
    .navbar__nav>li>.nav-toggle {
        width: 100%;
        justify-content: space-between;
        color: var(--color-heading) !important;
        padding: 1rem var(--space-sm);
        border-bottom: 1px solid var(--color-bg-alt);
        border-radius: 0;
    }

    .nav-dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--color-bg-alt);
        border-radius: var(--radius-sm);
        margin-top: 0.25rem;
        padding: 0.25rem;
    }

    body.rtl .nav-dropdown {
        right: auto;
        left: 0;
        transform: none;
    }
}

/* ==========================================
   PAGE HERO BANNER (inner pages)
   ========================================== */
.page-hero {
    padding-top: var(--navbar-height);
    min-height: 320px;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(200, 146, 42, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(45, 138, 69, 0.2) 0%, transparent 60%);
}

.page-hero__content {
    position: relative;
    z-index: 1;
    padding: var(--space-xl) var(--space-md);
}

.page-hero__label {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    margin-bottom: var(--space-xs);
    display: block;
}

.page-hero__title {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.page-hero__breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.page-hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--transition-fast);
}

.page-hero__breadcrumb a:hover {
    color: var(--color-white);
}

/* ==========================================
   FOOTER
   ========================================== */
#footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: var(--space-2xl) 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__brand-logo {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.footer__brand-logo img,
.footer__brand-logo svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer__brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 0.25rem;
}

.footer__brand-tagline {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    margin-bottom: var(--space-md);
}

.footer__social {
    display: flex;
    gap: var(--space-xs);
}

.footer__social-link {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--color-white);
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer__social-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.footer__col-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    padding-bottom: var(--space-xs);
}

.footer__col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 3px;
    background: var(--color-accent);
    border-radius: var(--radius-pill);
}

body.rtl .footer__col-title::after {
    left: auto;
    right: 0;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer__links a::before {
    content: '›';
    color: var(--color-accent);
    font-size: 1.1rem;
    font-weight: 700;
}

.footer__links a:hover {
    color: var(--color-white);
    gap: 0.75rem;
}

.footer__info-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
}

.footer__info-icon {
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
    color: var(--color-accent-light);
}

.footer__hours-row {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer__hours-row .badge {
    font-size: 0.68rem;
    padding: 0.15rem 0.6rem;
}

/* Footer Bottom */
.footer__bottom {
    padding: var(--space-md) 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer__bottom strong {
    color: var(--color-accent-light);
    font-weight: 600;
}

.footer__bottom-row {
    margin-bottom: 0.5rem;
}

.footer__developer {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer__developer a {
    color: rgba(255, 255, 255, 0.65);
    transition: color var(--transition-fast);
}

.footer__developer a:hover {
    color: var(--color-accent-light);
}

.footer__dev-wa {
    display: inline-flex;
    align-items: center;
}

@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 600px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

/* ==========================================
   WHATSAPP FLOATING BUTTON
   ========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: var(--z-floating);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all var(--transition-base);
    z-index: var(--z-floating);
}

.facebook-float {
    position: fixed;
    bottom: 8.5rem;
    right: 2rem;
    z-index: var(--z-floating);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-base);
}

body.rtl .facebook-float {
    right: auto;
    left: 2rem;
}

.facebook-float__btn {
    width: 58px;
    height: 58px;
    background: #1877F2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(24, 119, 242, 0.4);
    transition: all var(--transition-base);
    animation: float 3.5s ease-in-out infinite;
}

.facebook-float__btn svg {
    width: 28px;
    height: 28px;
    fill: var(--color-white);
}

.facebook-float:hover .facebook-float__btn {
    transform: scale(1.12);
    box-shadow: 0 8px 32px rgba(24, 119, 242, 0.6);
}

.facebook-float__tooltip {
    background: var(--color-heading);
    color: var(--color-white);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    transition: all var(--transition-base);
    pointer-events: none;
}

body.rtl .facebook-float__tooltip {
    transform: translateX(-8px);
}

.facebook-float:hover .facebook-float__tooltip {
    opacity: 1;
    transform: translateX(0);
}

body.rtl .whatsapp-float {
    right: auto;
    left: 2rem;
}

.whatsapp-float__btn {
    width: 58px;
    height: 58px;
    background: var(--color-whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    transition: all var(--transition-base);
    animation: float 3s ease-in-out infinite;
    position: relative;
}

.whatsapp-float__btn::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.4);
    animation: float 3s ease-in-out infinite reverse;
}

.whatsapp-float__btn svg {
    width: 28px;
    height: 28px;
    fill: var(--color-white);
}

.whatsapp-float:hover .whatsapp-float__btn {
    transform: scale(1.12);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
}

.whatsapp-float__tooltip {
    background: var(--color-heading);
    color: var(--color-white);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    transition: all var(--transition-base);
    pointer-events: none;
}

body.rtl .whatsapp-float__tooltip {
    transform: translateX(-8px);
}

.whatsapp-float:hover .whatsapp-float__tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Pulse ring */
@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.whatsapp-float__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--color-whatsapp);
    animation: pulse-ring 2.5s ease-out infinite;
    z-index: -1;
}

/* ==========================================
   LIGHTBOX / IMAGE PREVIEW
   ========================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox__content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox__img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
    transform: scale(0.92);
    transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.lightbox.active .lightbox__img {
    transform: scale(1);
}

.lightbox__close {
    position: absolute;
    top: -50px;
    right: 0;
    background: white;
    color: #1a5c2a;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
}

.lightbox__close:hover {
    transform: rotate(90deg) scale(1.1);
    background: #c8922a;
    color: white;
}

.lightbox__caption {
    margin-top: 1.5rem;
    color: white;
    font-weight: 500;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 0.02em;
}

.product-card-full__img,
.product-card__img {
    cursor: zoom-in;
}

@media (max-width: 768px) {
    .lightbox {
        padding: 1rem;
    }

    .lightbox__close {
        top: 20px;
        right: 20px;
        width: 38px;
        height: 38px;
        font-size: 1.4rem;
    }

    .facebook-float {
        bottom: 7.5rem;
        right: 1.5rem;
    }

    body.rtl .facebook-float {
        right: auto;
        left: 1.5rem;
    }

    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    body.rtl .whatsapp-float {
        right: auto;
        left: 1.5rem;
    }
}

/* ==========================================
   PAGE LOADER
   ========================================== */
#pageLoader {
    position: fixed;
    inset: 0;
    background: var(--color-primary);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.6s;
}

#pageLoader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.page-loader__shimmer {
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    position: relative;
    overflow: hidden;
}

.page-loader__shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--color-white), transparent);
    animation: page-shimmer 1.5s infinite;
}

@keyframes page-shimmer {
    100% {
        left: 100%;
    }
}

/* More Reveal Variations */
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}