/* ============================================
   شركة ناف القانونية - Custom Styles
   ============================================ */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Use Cairo font */
body {
    font-family: 'Cairo', sans-serif;
    color: #FAFAFA; /* Fallback for text-pearl-white */
}

/* Tailwind Color Fallbacks - Ensure text is visible */
.text-pearl-white {
    color: #FAFAFA !important;
}

.text-silver-mist {
    color: #D4D4D4 !important;
}

.text-deep-charcoal {
    color: #1A1A1A !important;
}

.text-warm-bronze {
    color: #8B7355 !important;
}

.text-burnished-copper {
    color: #B87333 !important;
}

.bg-deep-charcoal {
    background-color: #1A1A1A !important;
}

.bg-soft-cream {
    background-color: #F5F1E8 !important;
}

/* Logo Styles */
img[alt*="ناف القانونية"],
img[alt*="NAF Legal"] {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(139, 115, 85, 0.2));
    transform: scale(0.75);
    transform-origin: center;
}

/* Footer logo specific sizing */
footer img[alt*="ناف القانونية"],
footer img[alt*="NAF Legal"] {
    height: 18px !important;
}

@media (min-width: 768px) {
    footer img[alt*="ناف القانونية"],
    footer img[alt*="NAF Legal"] {
        height: 24px !important;
    }
}

img[alt*="ناف القانونية"]:hover,
img[alt*="NAF Legal"]:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(139, 115, 85, 0.4));
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1A1A1A;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8B7355 0%, #B87333 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #B87333 0%, #8B7355 100%);
}

/* ============================================
   Navigation
   ============================================ */

#navbar {
    background: rgba(26, 26, 26, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 115, 85, 0.1);
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Navbar Layout - Rebuilt from scratch
   ============================================ */

/* Base Grid Layout - 3 equal columns for perfect centering */
#navbar .container > div {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    position: relative;
    gap: 2rem;
    min-height: 50px;
    padding: 0 1.5rem;
    overflow: visible !important;
}

#navbar .container {
    overflow: visible !important;
}

.navbar-grid {
    overflow: visible !important;
}

#navbar .container {
    overflow: visible !important;
}

.navbar-grid {
    overflow: visible !important;
}

/* Ensure equal spacing on both sides */
@media (min-width: 1024px) {
    #navbar .container > div {
        gap: 3rem;
    }
}

/* Logo - Base styles matching services.html */
.navbar-logo {
    grid-column: 1;
    justify-self: start;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    overflow: visible !important;
    flex-shrink: 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: auto !important;
}

.navbar-logo img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    width: auto !important;
    object-fit: contain !important;
    overflow: visible !important;
    clip: unset !important;
    clip-path: none !important;
}

#logo-container {
    overflow: visible !important;
    min-width: 0 !important;
    flex-shrink: 0 !important;
}

#logo-container img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    width: auto !important;
    overflow: visible !important;
    clip: unset !important;
    clip-path: none !important;
}

/* Mobile logo sizing - ensure full visibility - MATCHING services.html */
@media (max-width: 767px) {
    .navbar-logo {
        display: flex !important;
        overflow: visible !important;
        min-width: auto !important;
        max-width: none !important;
        flex-shrink: 0 !important;
        width: auto !important;
    }
    
    .navbar-logo img,
    #logo-container img {
        max-width: 100% !important;
        max-height: none !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        overflow: visible !important;
        clip: unset !important;
        clip-path: none !important;
        flex-shrink: 0 !important;
    }
    
    #logo-container {
        display: flex !important;
        overflow: visible !important;
        min-width: auto !important;
        max-width: none !important;
        flex-shrink: 0 !important;
        width: auto !important;
    }
    
    .navbar-logo a {
        display: flex !important;
        align-items: center !important;
        overflow: visible !important;
        width: auto !important;
        max-width: none !important;
    }
}

/* Tablet logo sizing */
@media (min-width: 768px) and (max-width: 1023px) {
    .navbar-logo {
        overflow: visible !important;
        min-width: 90px !important;
        max-width: 135px !important;
        flex-shrink: 0 !important;
        width: auto !important;
    }
    
    .navbar-logo img,
    #logo-container img {
        max-width: 112.5px !important;
        max-height: 45px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        overflow: visible !important;
        clip: unset !important;
        clip-path: none !important;
        flex-shrink: 0 !important;
    }
    
    #logo-container {
        overflow: visible !important;
        min-width: 90px !important;
        max-width: 135px !important;
        flex-shrink: 0 !important;
        width: auto !important;
    }
    
    .navbar-logo a {
        display: flex !important;
        align-items: center !important;
        overflow: visible !important;
        width: auto !important;
        max-width: none !important;
    }
}

/* Desktop logo sizing - MATCHING services.html */
@media (min-width: 1024px) {
    .navbar-logo {
        display: flex !important;
        overflow: visible !important;
        min-width: auto !important;
        max-width: none !important;
        flex-shrink: 0 !important;
        width: auto !important;
    }
    
    .navbar-logo img,
    #logo-container img {
        max-width: 100% !important;
        max-height: none !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        overflow: visible !important;
        clip: unset !important;
        clip-path: none !important;
        flex-shrink: 0 !important;
    }
    
    #logo-container {
        display: flex !important;
        overflow: visible !important;
        min-width: auto !important;
        max-width: none !important;
        flex-shrink: 0 !important;
        width: auto !important;
    }
    
    .navbar-logo a {
        display: flex !important;
        align-items: center !important;
        overflow: visible !important;
        width: auto !important;
        max-width: none !important;
    }
}

/* Menu - Perfectly centered */
.navbar-menu {
    grid-column: 2;
    position: static;
    transform: none;
    left: auto;
    top: auto;
    justify-self: center;
    white-space: nowrap;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: auto;
    pointer-events: auto;
    margin: 0 auto;
    flex-shrink: 0;
}

/* Actions */
.navbar-actions {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-end;
}

/* ============================================
   RTL Layout:
   - Logo: Right (column 3)
   - Menu: Center (column 2)
   - Actions: Left (column 1)
   ============================================ */

[dir="rtl"] .navbar-logo {
    grid-column: 3;
    justify-self: end;
    justify-content: flex-end;
}

[dir="rtl"] .navbar-menu {
    grid-column: 2;
    justify-self: center;
}

[dir="rtl"] .navbar-actions {
    grid-column: 1;
    justify-self: start;
    justify-content: flex-start;
}

/* Ensure menu items are evenly spaced and visually aligned */
.navbar-menu .nav-link {
    padding: 0.4rem 0.8rem;
    text-align: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}

/* Prevent any duplication - ensure only one menu shows */
.navbar-menu:not(:first-of-type) {
    display: none !important;
}

/* Ensure menu displays correctly */
#navbar .container > div > .navbar-menu {
    display: flex;
}

/* Hide any duplicate menus */
#navbar .container > div > .navbar-menu ~ .navbar-menu {
    display: none !important;
}

/* Logo and Actions - Base styling */
.navbar-logo,
.navbar-actions {
    z-index: 5;
    position: relative;
    min-width: 180px;
    max-width: 280px;
    flex: 1;
    display: flex;
    align-items: center;
}

/* Ensure logo and actions have equal visual weight and spacing */
.navbar-logo {
    justify-content: flex-start;
}

[dir="rtl"] .navbar-logo {
    justify-content: flex-end;
}

.navbar-actions {
    justify-content: flex-end;
    gap: 0.75rem;
}

[dir="rtl"] .navbar-actions {
    justify-content: flex-start;
}

/* Ensure no button next to logo - only logo should be there */
.navbar-logo .btn-primary {
    display: none !important;
}

/* CTA button container */
#actions-container > div.hidden.lg\:flex {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

[dir="rtl"] #actions-container > div.hidden.lg\:flex {
    justify-content: flex-start;
}

/* CTA button styling */
#actions-container .btn-primary {
    flex-shrink: 0;
    margin: 0;
    white-space: nowrap;
}

/* Ensure only one CTA button in actions container */
#actions-container {
    position: relative;
}

/* Prevent duplicate CTA buttons */
#actions-container .btn-primary:not(:first-of-type) {
    display: none !important;
}

/* Ensure CTA button is only in actions-container, not next to logo or in menu */
.navbar-logo .btn-primary,
.navbar-menu .btn-primary {
    display: none !important;
}

/* Ensure hidden lg:block works correctly for Tailwind */
/* Tailwind uses space-separated classes, so we need to target them properly */
#actions-container a.btn-primary.hidden {
    display: none !important;
}

@media (min-width: 1024px) {
    /* Show desktop CTA button on large screens */
    #actions-container a.btn-primary.hidden {
        display: block !important;
    }
    
    /* Hide mobile menu button on desktop */
    #actions-container button.lg\:hidden {
        display: none !important;
    }
}

/* Additional safety: hide any duplicate buttons */
#actions-container .btn-primary + .btn-primary {
    display: none !important;
}

/* Menu items spacing */
.navbar-menu .nav-link {
    margin: 0;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
    display: inline-block;
    position: relative;
}

/* Ensure no duplicate menu items */
.navbar-menu .nav-link + .nav-link {
    margin-right: 0;
    margin-left: 0;
}

/* Responsive adjustments - Mobile and Tablet */
@media (max-width: 1024px) {
    #navbar .container > div {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 1rem;
    }
    
    /* Reset grid columns for mobile */
    .navbar-logo {
        grid-column: auto !important;
        order: 1;
        min-width: auto;
        max-width: none;
        flex: 0 0 auto;
    }
    
    .navbar-menu {
        grid-column: auto !important;
        position: static !important;
        transform: none !important;
        order: 2;
        width: 100%;
        justify-content: center;
        justify-self: center !important;
        margin-top: 1rem;
        left: auto !important;
        top: auto !important;
        gap: 1rem;
    }
    
    .navbar-actions {
        grid-column: auto !important;
        order: 3;
        min-width: auto;
        max-width: none;
        flex: 0 0 auto;
    }
    
    /* Why Us Section - Responsive */
    #why-us .grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

/* Ensure menu items spacing is consistent */
@media (min-width: 1024px) {
    .navbar-menu .nav-link {
        padding: 0.5rem 1.25rem;
    }
}

/* Small screens - adjust menu spacing */
@media (max-width: 768px) {
    .navbar-menu {
        gap: 0.75rem;
    }
    
    .navbar-menu .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        color: #FAFAFA !important;
        visibility: visible !important;
    }
    
    /* Mobile text visibility */
    body {
        font-size: 15px;
    }
    
    /* Ensure all sections are visible */
    section {
        padding: 2rem 1rem;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Mobile grid adjustments */
    .grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Mobile card adjustments */
    .card, .feature-card, .service-card, .testimonial-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Mobile button adjustments */
    .btn-primary, .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: auto;
        display: inline-block;
    }
}

.nav-link {
    color: #FAFAFA;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8B7355, #B87333);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #8B7355;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #8B7355;
}

.nav-link.active::after {
    width: 100%;
}

/* ============================================
   Buttons
   ============================================ */

.btn-primary {
    background: linear-gradient(135deg, #B87333 0%, #8B7355 100%);
    color: #FAFAFA;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: right 0.5s ease;
}

.btn-primary:hover::before {
    right: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(184, 115, 51, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: #FAFAFA;
    font-weight: 600;
    border: 2px solid #8B7355;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: #8B7355;
    border-color: #8B7355;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 115, 85, 0.3);
}

/* ============================================
   Gold Gradient Text
   ============================================ */

.gold-gradient {
    color: #B87333; /* Fallback color in case gradient doesn't work */
    background: linear-gradient(135deg, #8B7355 0%, #A0826D 50%, #B87333 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (background-clip: text) {
    .gold-gradient {
        color: #B87333;
        background: none;
        -webkit-text-fill-color: #B87333;
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Hero Title - Fix Arabic characters clipping */
.hero-title {
    line-height: 1.4;
    padding-bottom: 0.75rem;
    padding-top: 0.5rem;
    overflow: visible;
    display: block;
    width: 100%;
    text-align: center;
}

@media (min-width: 768px) {
    .hero-title {
        line-height: 1.35;
        padding-bottom: 1rem;
        padding-top: 0.75rem;
    }
}

.hero-subtitle {
    line-height: 1.7;
    padding-bottom: 0.5rem;
    padding-top: 0.3rem;
    overflow: visible;
    display: block;
}

/* ============================================
   Glass Morphism
   ============================================ */

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(139, 115, 85, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(139, 115, 85, 0.2);
}

/* ============================================
   Statistics Cards
   ============================================ */

.stats-card {
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-10px) scale(1.05);
}

/* ============================================
   Gradient Background Animation
   ============================================ */

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientBackground 15s ease infinite;
}

@keyframes gradientBackground {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ============================================
   Gradient Orbs
   ============================================ */

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #8B7355, transparent);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #B87333, transparent);
    bottom: 20%;
    left: 15%;
    animation-delay: 5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #A0826D, transparent);
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* ============================================
   Value Cards
   ============================================ */

.value-card {
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(139, 115, 85, 0.2);
}

.icon-wrapper {
    display: inline-block;
    transition: all 0.3s ease;
}

.value-card:hover .icon-wrapper {
    transform: scale(1.2) rotate(5deg);
}

/* ============================================
   Service Cards
   ============================================ */

.service-card {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.1), rgba(184, 115, 51, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 115, 85, 0.6);
    box-shadow: 0 20px 40px rgba(139, 115, 85, 0.3);
}

.service-icon {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
}

.service-card:hover .service-icon i {
    color: #B87333;
}

/* 3D Card Tilt Effect */
.service-card {
    perspective: 1000px;
}

/* ============================================
   Feature Cards
   ============================================ */

.feature-card {
    background: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 115, 85, 0.6);
    box-shadow: 0 15px 35px rgba(139, 115, 85, 0.2);
    background: rgba(26, 26, 26, 0.6);
}

.feature-card h3 {
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-card p {
    flex: 1;
    line-height: 1.7;
    margin: 0;
}

/* Ensure all feature cards have equal height */
#why-us .grid {
    align-items: stretch;
}

.feature-card .feature-icon {
    margin-bottom: 1.5rem;
}

.feature-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2);
}

.feature-card:hover .feature-icon i {
    color: #B87333;
}

/* ============================================
   Contact Form
   ============================================ */

#contact-form input,
#contact-form textarea {
    color: #FAFAFA;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: rgba(250, 250, 250, 0.5);
}

#contact-form input:focus,
#contact-form textarea:focus {
    background: rgba(255, 255, 255, 0.15);
}

.error-message {
    display: block;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

.loading-spinner {
    display: inline-block;
}

/* ============================================
   Icon Circle
   ============================================ */

.icon-circle {
    width: 50px;
    height: 50px;
    background: rgba(139, 115, 85, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ============================================
   WhatsApp Button
   ============================================ */

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: #1A1A1A;
    color: #FAFAFA;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1A1A1A;
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   Scroll to Top Button
   ============================================ */

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8B7355, #B87333);
    border: none;
    border-radius: 50%;
    color: #FAFAFA;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.4);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.6);
}

/* ============================================
   Footer
   ============================================ */

.footer-link {
    color: #D4D4D4;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 1px;
    background: #8B7355;
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: #8B7355;
    padding-right: 5px;
}

.footer-link:hover::after {
    width: 100%;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(139, 115, 85, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8B7355;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #8B7355;
    color: #FAFAFA;
    transform: translateY(-3px) scale(1.1);
}

/* ============================================
   Notifications
   ============================================ */

.notification {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 115, 85, 0.3);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.notification.success {
    border-color: rgba(34, 197, 94, 0.5);
}

.notification.error {
    border-color: rgba(239, 68, 68, 0.5);
}

.notification.info {
    border-color: rgba(59, 130, 246, 0.5);
}

.notification-icon {
    font-size: 20px;
}

.notification.success .notification-icon {
    color: #22C55E;
}

.notification.error .notification-icon {
    color: #EF4444;
}

.notification.info .notification-icon {
    color: #3B82F6;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .gold-gradient {
        font-size: 2.5rem;
    }
    
    .stats-card {
        padding: 1.5rem 1rem;
    }
    
    .service-card,
    .feature-card {
        padding: 1.5rem;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        left: 20px;
    }
    
    .scroll-top-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 20px;
        right: 20px;
    }
    
    .gradient-orb {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #navbar .container {
        padding: 1rem;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
}

/* ============================================
   Accessibility
   ============================================ */

*:focus {
    outline: 2px solid #8B7355;
    outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid #8B7355;
    outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    right: 0;
    background: #8B7355;
    color: #FAFAFA;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   Loading States
   ============================================ */

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(139, 115, 85, 0.3);
    border-top-color: #8B7355;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Ripple Effect
   ============================================ */

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* ============================================
   Text Animation Styles
   ============================================ */

.fade-in-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-text p {
    line-height: 2;
}

/* Ensure navbar container is properly styled */
#navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Ensure menu items are properly spaced */
#navbar .hidden.lg\:flex {
    gap: 1.5rem;
}



/* ============================================
   Navbar Grid Container - Enhanced Fixes
   Applied: 2025-11-26 19:20:58
   ============================================ */

/* Target the navbar grid container explicitly */
.navbar-grid {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    width: 100% !important;
    position: relative !important;
    gap: 2rem !important;
    min-height: 50px !important;
}

/* Ensure navbar-menu is always displayed as flex on desktop */
@media (min-width: 1024px) {
    .navbar-menu {
        display: flex !important;
        grid-column: 2 !important;
        justify-self: center !important;
    }

    /* Ensure logo and actions stay in their grid positions */
    .navbar-logo {
        display: flex !important;
    }

    .navbar-actions {
        display: flex !important;
    }
}

/* Mobile: hide desktop menu and switch to flexbox */
@media (max-width: 1023px) {
    .navbar-menu {
        display: none !important;
    }

    .navbar-grid {
        display: flex !important;
        justify-content: space-between !important;
        grid-template-columns: none !important;
        overflow: visible !important;
        align-items: center !important;
    }

    .navbar-logo,
    .navbar-actions {
        grid-column: auto !important;
        overflow: visible !important;
        flex-shrink: 0 !important;
    }
    
    .navbar-logo {
        min-width: 100px !important;
        max-width: 150px !important;
        width: auto !important;
        overflow: visible !important;
    }
    
    #logo-container {
        overflow: visible !important;
        min-width: 100px !important;
        max-width: 150px !important;
        flex-shrink: 0 !important;
        width: auto !important;
    }
}

/* RTL Layout - Reinforce positioning */
[dir="rtl"] .navbar-grid .navbar-logo {
    grid-column: 3 !important;
    justify-self: end !important;
    justify-content: flex-end !important;
}

[dir="rtl"] .navbar-grid .navbar-menu {
    grid-column: 2 !important;
    justify-self: center !important;
}

[dir="rtl"] .navbar-grid .navbar-actions {
    grid-column: 1 !important;
    justify-self: start !important;
    justify-content: flex-start !important;
}

/* Override any conflicting Tailwind utilities */
#navbar .navbar-grid > * {
    flex: 0 0 auto !important;
}

/* ============================================
   CRITICAL: Force Override Tailwind CDN
   ============================================ */

/* Force navbar-grid to be grid layout */
nav#navbar .container > div.navbar-grid,
#navbar .container > div.navbar-grid,
.navbar-grid {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
}

/* Force menu visibility on desktop - Override Tailwind's hidden class */
@media (min-width: 1024px) {
    nav#navbar div.navbar-menu,
    #navbar div.navbar-menu,
    div.navbar-menu {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
    }
}

/* Absolute positioning for RTL grid items (SWAPPED for correct RTL) */
[dir="rtl"] nav#navbar .navbar-grid .navbar-logo,
[dir="rtl"] #navbar .navbar-grid .navbar-logo {
    grid-column: 1 !important;
    justify-self: start !important;
    -ms-grid-column: 1 !important;
}

[dir="rtl"] nav#navbar .navbar-grid .navbar-menu,
[dir="rtl"] #navbar .navbar-grid .navbar-menu {
    grid-column: 2 !important;
    justify-self: center !important;
    -ms-grid-column: 2 !important;
}

[dir="rtl"] nav#navbar .navbar-grid .navbar-actions,
[dir="rtl"] #navbar .navbar-grid .navbar-actions {
    grid-column: 3 !important;
    justify-self: end !important;
    -ms-grid-column: 3 !important;
}

/* Force hide mobile elements on desktop */
@media (min-width: 1024px) {
    #mobile-menu-btn {
        display: none !important;
    }
}

/* Force show mobile button on mobile */
@media (max-width: 1023px) {
    #mobile-menu-btn {
        display: block !important;
    }

    div.navbar-menu {
        display: none !important;
    }
}

/* Force hide mobile menu on desktop */
@media (min-width: 1024px) {
    #mobile-menu {
        display: none !important;
    }
}

/* Only show mobile menu when opened on mobile */
@media (max-width: 1023px) {
    #mobile-menu.hidden {
        display: none !important;
    }
}

/* ============================================
   Tailwind Color Fallbacks - Ensure text is visible
   ============================================ */

/* Text Colors */
.text-pearl-white {
    color: #FAFAFA !important;
}

.text-silver-mist {
    color: #D4D4D4 !important;
}

.text-deep-charcoal {
    color: #1A1A1A !important;
}

.text-warm-bronze {
    color: #8B7355 !important;
}

.text-burnished-copper {
    color: #B87333 !important;
}

/* Background Colors */
.bg-deep-charcoal {
    background-color: #1A1A1A !important;
}

.bg-soft-cream {
    background-color: #F5F1E8 !important;
}

.bg-rich-espresso {
    background-color: #2C2424 !important;
}

/* Ensure body has default text color */
body {
    color: #FAFAFA !important;
}

/* ============================================
   Mobile Responsive Fixes - Critical
   ============================================ */

/* Force text visibility on mobile */
@media (max-width: 1023px) {
    /* Ensure all text is visible */
    body,
    body * {
        color: inherit !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Headings */
    h1, h2, h3, h4, h5, h6 {
        color: #FAFAFA !important;
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    /* Paragraphs and text elements */
    p, span, div, a, li, td, th {
        color: inherit !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Sections with light background */
    .bg-soft-cream,
    .bg-soft-cream * {
        color: #1A1A1A !important;
    }
    
    .bg-soft-cream h1,
    .bg-soft-cream h2,
    .bg-soft-cream h3,
    .bg-soft-cream h4,
    .bg-soft-cream h5,
    .bg-soft-cream h6 {
        color: #1A1A1A !important;
    }
    
    /* Text color classes */
    .text-pearl-white {
        color: #FAFAFA !important;
    }
    
    .text-silver-mist {
        color: #D4D4D4 !important;
    }
    
    .text-deep-charcoal {
        color: #1A1A1A !important;
    }
    
    .text-warm-bronze {
        color: #8B7355 !important;
    }
    
    .text-burnished-copper {
        color: #B87333 !important;
    }
    
    /* Ensure containers are visible */
    section, article, main, header, footer {
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    /* Cards and containers */
    .card, .feature-card, .service-card, .testimonial-card {
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    /* Buttons */
    .btn-primary, .btn-secondary, button, a.btn {
        visibility: visible !important;
        opacity: 1 !important;
        display: inline-block !important;
    }
    
    /* Images */
    img {
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    /* Lists */
    ul, ol {
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    /* Forms */
    form, input, textarea, select, label {
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    /* Grid and flex containers */
    .grid, .flex {
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    /* Ensure text is readable on small screens */
    body {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
    
    h1 {
        font-size: 1.75rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    /* Padding adjustments */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    section {
        padding: 2rem 1rem !important;
    }
}

/* Fix text visibility on light backgrounds */
.bg-soft-cream .text-slate-gray,
.bg-soft-cream p.text-slate-gray,
.bg-soft-cream .text-slate-gray p {
    color: #1A1A1A !important;
}

/* Ensure text-deep-charcoal is visible on light backgrounds */
.bg-soft-cream .text-deep-charcoal {
    color: #1A1A1A !important;
}

/* CRITICAL: Force text visibility for all elements */
* {
    color: inherit !important;
}

/* Force visibility for headings */
h1, h2, h3, h4, h5, h6 {
    color: #FAFAFA !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

/* Force visibility for paragraphs and text */
p, span, div, a, li {
    color: inherit !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fix gold-gradient - ensure text is visible */
.gold-gradient {
    color: #B87333 !important;
    -webkit-text-fill-color: #B87333 !important;
    background: linear-gradient(135deg, #8B7355 0%, #A0826D 50%, #B87333 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
}

/* Fallback for browsers that don't support background-clip */
@supports not (background-clip: text) {
    .gold-gradient {
        color: #B87333 !important;
        -webkit-text-fill-color: #B87333 !important;
        background: none !important;
    }
}

/* Hero section text */
.hero-title {
    color: #B87333 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hero-subtitle {
    color: #D4D4D4 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force all text in sections to be visible */
section * {
    color: inherit !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Navigation links */
.nav-link {
    color: #FAFAFA !important;
    visibility: visible !important;
}

/* Footer text */
footer, footer * {
    color: #D4D4D4 !important;
    visibility: visible !important;
}

/* ============================================
   Mobile Responsive Fixes - Critical
   ============================================ */

/* Force text visibility on mobile */
@media (max-width: 1023px) {
    /* Ensure all text is visible */
    body,
    body * {
        color: inherit !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Headings */
    h1, h2, h3, h4, h5, h6 {
        color: #FAFAFA !important;
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    /* Paragraphs and text elements */
    p, span, div, a, li, td, th {
        color: inherit !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Sections with light background */
    .bg-soft-cream,
    .bg-soft-cream * {
        color: #1A1A1A !important;
    }
    
    .bg-soft-cream h1,
    .bg-soft-cream h2,
    .bg-soft-cream h3,
    .bg-soft-cream h4,
    .bg-soft-cream h5,
    .bg-soft-cream h6 {
        color: #1A1A1A !important;
    }
    
    /* Text color classes */
    .text-pearl-white {
        color: #FAFAFA !important;
    }
    
    .text-silver-mist {
        color: #D4D4D4 !important;
    }
    
    .text-deep-charcoal {
        color: #1A1A1A !important;
    }
    
    .text-warm-bronze {
        color: #8B7355 !important;
    }
    
    .text-burnished-copper {
        color: #B87333 !important;
    }
    
    /* Ensure containers are visible */
    section, article, main, header, footer {
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    /* Cards and containers */
    .card, .feature-card, .service-card, .testimonial-card {
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    /* Buttons */
    .btn-primary, .btn-secondary, button, a.btn {
        visibility: visible !important;
        opacity: 1 !important;
        display: inline-block !important;
    }
    
    /* Images */
    img {
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    /* Lists */
    ul, ol {
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    /* Forms */
    form, input, textarea, select, label {
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    /* Grid and flex containers */
    .grid, .flex {
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Hero section mobile */
    .hero-title {
        font-size: 2.5rem !important;
        color: #B87333 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .hero-subtitle {
        font-size: 1.25rem !important;
        color: #D4D4D4 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Mobile menu visibility */
    #mobile-menu {
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    #mobile-menu.hidden {
        display: none !important;
    }
    
    #mobile-menu:not(.hidden) {
        display: block !important;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    /* Ensure text is readable on small screens */
    body {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
    
    h1 {
        font-size: 1.75rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    /* Padding adjustments */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    section {
        padding: 2rem 1rem !important;
    }
    
    /* Hero section small mobile */
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
}
