/**
 * Unified Foundation — Global base styles
 * Shared resets and typography loaded on every page (after variables.css).
 * Page-specific rules live in their own stylesheets.
 */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

body.rtl,
[dir="rtl"] {
    text-align: right;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-color-dark);
    transition: var(--transition);
}

/* Prevent body scroll when the mobile nav drawer is open */
body.menu-open {
    overflow: hidden;
}

/* Honeypot anti-spam field — hidden from humans, visible to bots */
.uf-hp {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    height: 0;
    overflow: hidden;
}

/* ===== Floating action buttons ===== */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    animation: uf-wa-pulse 2s infinite;
    transition: transform 0.3s ease;
    color: #fff;
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: #fff;
}

.floating-whatsapp i {
    font-size: 30px;
    line-height: 1;
}

@keyframes uf-wa-pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.appointment-button-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.appointment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #7251a4, #5a3d87);
    color: #fff !important;
    font-weight: 600;
    font-family: inherit;
    padding: 12px 22px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(114, 81, 164, 0.3);
    text-decoration: none !important;
    transition: all 0.3s ease;
    direction: rtl;
    cursor: pointer;
}

.appointment-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(114, 81, 164, 0.4);
    background: linear-gradient(135deg, #7251a4, #4d3473);
}

.appointment-btn i {
    font-size: 1.2rem;
}

@media (max-width: 767px) {
    .appointment-button-container {
        bottom: 20px;
        right: 20px;
    }

    .appointment-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .floating-whatsapp {
        width: 50px;
        height: 50px;
    }

    .floating-whatsapp i {
        font-size: 26px;
    }
}

/* ===== 404 page ===== */
.error-404-wrapper {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    text-align: center;
}

.error-404-code {
    font-size: clamp(80px, 18vw, 180px);
    font-weight: 800;
    line-height: 1;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-404-title {
    font-size: 1.8rem;
    color: var(--primary-color-dark);
    margin: 10px 0 15px;
}

.error-404-text {
    color: var(--text-color);
    margin-bottom: 30px;
}

.error-404-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--primary-gradient);
    color: var(--white-color);
    border-radius: var(--border-radius-small);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.error-404-btn:hover {
    color: var(--white-color);
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-3px);
}
