
/* =========================================================
   ALTIVOO THEME - MAIN STYLESHEET
   ========================================================= */

/* =========================
   ROOT VARIABLES
   ========================= */

:root {
    --alt-green: #134031;
    --alt-gold: #A8844B;
    --alt-light: #fdfbf7;
    --alt-gold-light: #c6a56b;
}

/* =========================
   GLOBAL RESET
   ========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--alt-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* =========================
   RTL FONT
   ========================= */

/*
 * IMPORTANT:
 * Do NOT apply Cairo to every child element.
 * Doing so can override Font Awesome's icon font
 * and cause icons to disappear in Arabic.
 */

html[dir="rtl"] body {
    font-family: 'Cairo', sans-serif;
}

/* Keep Font Awesome icon styling intact */

html[dir="rtl"] .fa,
html[dir="rtl"] .fas,
html[dir="rtl"] .far,
html[dir="rtl"] .fab,
html[dir="rtl"] .fa-solid,
html[dir="rtl"] .fa-regular,
html[dir="rtl"] .fa-brands {
    font-style: normal !important;
}

/* =========================
   RTL / FLEX
   ========================= */

html[dir="rtl"] .flex {
    direction: rtl;
}

/* Social/contact elements remain LTR */

html[dir="rtl"] .social-icons,
html[dir="rtl"] .contact-icons,
html[dir="rtl"] .whatsapp-wrapper {
    direction: ltr;
}

/* SVG icons should never shrink */

html[dir="rtl"] svg {
    flex-shrink: 0;
}

/* =========================
   NAVBAR
   ========================= */

.navbar {
    background-color: var(--alt-green) !important;
    color: var(--alt-light);

    transition:
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}

.navbar-scrolled {
    background: rgba(19, 64, 49, 0.97) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;

    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.15);
}

/* =========================
   DESKTOP MENU
   ========================= */

#header-menu {
    display: flex;
    align-items: center;
    gap: 2rem;

    margin: 0;
    padding: 0;

    list-style: none;
}

#header-menu .menu-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

#header-menu .menu-item > a {
    position: relative;
    display: block;

    color: var(--alt-light) !important;

    font-size: 0.875rem;
    font-weight: 500;

    text-decoration: none;

    transition: color 0.3s ease;
}

#header-menu .menu-item > a::after {
    content: '';

    position: absolute;

    bottom: -4px;
    left: 0;

    width: 0;
    height: 2px;

    background-color: var(--alt-gold);

    transition: width 0.3s ease;
}

#header-menu .menu-item > a:hover::after,
#header-menu .current-menu-item > a::after,
#header-menu .current-menu-ancestor > a::after {
    width: 100%;
}

/* =========================
   RTL MENU UNDERLINE
   ========================= */

html[dir="rtl"] #header-menu .menu-item > a::after {
    left: auto;
    right: 0;
}

/* =========================
   GENERIC NAV LINKS
   ========================= */

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';

    position: absolute;

    bottom: -4px;

    width: 0;
    height: 2px;

    background: var(--alt-gold);

    transition: width 0.3s ease;
}

[dir="ltr"] .nav-link::after {
    left: 0;
    right: auto;
}

[dir="rtl"] .nav-link::after {
    right: 0;
    left: auto;
}

/* =========================================================
   MOBILE MENU
   ========================================================= */

/*
 * IMPORTANT:
 * JavaScript uses the class "active".
 * Therefore the CSS must also use ".active".
 */

.mobile-menu {
    background-color: var(--alt-green) !important;

    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    /* Start outside the screen */
    transform: translateX(100%);

    transition:
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.3s ease,
        visibility 0.3s ease;
}

/* =========================
   MOBILE MENU - OPEN
   ========================= */

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateX(0);
}

/* =========================
   RTL MOBILE MENU
   ========================= */

html[dir="rtl"] .mobile-menu {
    transform: translateX(-100%);
}

html[dir="rtl"] .mobile-menu.active {
    transform: translateX(0);
}

/* =========================
   MOBILE MENU LIST
   ========================= */

#mobile-menu-list {
    width: 100%;
}

#mobile-menu-list ul {
    display: flex;

    flex-direction: column;
    align-items: center;

    gap: 1.25rem;

    width: 100%;

    margin: 0;
    padding: 0;

    list-style: none;
}

#mobile-menu-list li {
    list-style: none;

    margin: 0;
    padding: 0;
}

/* =========================
   MOBILE LINKS
   ========================= */

#mobile-menu-list li > a {
    display: block;

    color: var(--alt-light) !important;

    font-size: 1.25rem;
    font-weight: 600;

    text-decoration: none;

    text-align: center;

    transition:
        color 0.3s ease,
        opacity 0.3s ease;
}

#mobile-menu-list li > a:hover {
    color: var(--alt-gold) !important;
}

#mobile-menu-list .current-menu-item > a,
#mobile-menu-list .current-menu-ancestor > a {
    color: var(--alt-gold) !important;
}

/* =========================
   HIDE MOBILE MENU ON DESKTOP
   ========================= */

@media (min-width: 1024px) {

    .mobile-menu {
        display: none !important;
    }
}

/* =========================
   HERO
   ========================= */

.hero-overlay {
    background:
        linear-gradient(
            135deg,
            rgba(13, 46, 35, 0.92) 0%,
            rgba(19, 64, 49, 0.85) 40%,
            rgba(19, 64, 49, 0.75) 70%,
            rgba(168, 132, 75, 0.3) 100%
        );
}

.hero-floating-stats {
    right: 0.75rem;
    left: auto;
}

@media (min-width: 640px) {

    .hero-floating-stats {
        right: 1.5rem;
    }
}

@media (min-width: 1024px) {

    .hero-floating-stats {
        right: 2rem;
    }
}

@media (min-width: 1280px) {

    .hero-floating-stats {
        right: 3rem;
    }
}

[dir="rtl"] .hero-floating-stats {
    right: auto;
    left: 0.75rem;
}

@media (min-width: 640px) {

    [dir="rtl"] .hero-floating-stats {
        left: 1.5rem;
    }
}

@media (min-width: 1024px) {

    [dir="rtl"] .hero-floating-stats {
        left: 2rem;
    }
}

@media (min-width: 1280px) {

    [dir="rtl"] .hero-floating-stats {
        left: 3rem;
    }
}

/* =========================
   ABOUT
   ========================= */

.about-experience-badge {
    right: -1rem;
    left: auto;
}

[dir="rtl"] .about-experience-badge {
    right: auto;
    left: -1rem;
}

@media (min-width: 640px) {

    .about-experience-badge {
        right: -1.5rem;
    }

    [dir="rtl"] .about-experience-badge {
        left: -1.5rem;
    }
}

.about-frame {
    position: relative;
}

.about-frame::before {
    content: '';

    position: absolute;

    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;

    border: 2px solid #1a4637;

    border-radius: 12px;

    z-index: -1;
}

[dir="rtl"] .about-frame::before {
    left: 10px;
    right: -10px;
}

/* =========================
   GLASS EFFECTS
   ========================= */

.glass {
    background: rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.15);
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* =========================
   ANIMATIONS
   ========================= */

.reveal {
    opacity: 0;

    transform: translateY(40px);

    transition:
        all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;

    transform: translateX(-60px);

    transition:
        all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;

    transform: translateX(60px);

    transition:
        all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;

    transform: scale(0.9);

    transition:
        all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

.stagger-children > * {
    opacity: 0;

    transform: translateY(30px);

    transition:
        all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.active > *:nth-child(1) {
    transition-delay: 0.05s;

    opacity: 1;
    transform: translateY(0);
}

.stagger-children.active > *:nth-child(2) {
    transition-delay: 0.1s;

    opacity: 1;
    transform: translateY(0);
}

.stagger-children.active > *:nth-child(3) {
    transition-delay: 0.15s;

    opacity: 1;
    transform: translateY(0);
}

.stagger-children.active > *:nth-child(4) {
    transition-delay: 0.2s;

    opacity: 1;
    transform: translateY(0);
}

.stagger-children.active > *:nth-child(5) {
    transition-delay: 0.25s;

    opacity: 1;
    transform: translateY(0);
}

.stagger-children.active > *:nth-child(6) {
    transition-delay: 0.3s;

    opacity: 1;
    transform: translateY(0);
}

/* =========================
   KEYFRAMES
   ========================= */

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes fadeInUp {

    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse-gold {

    0%,
    100% {
        box-shadow:
            0 0 0 0 rgba(168, 132, 75, 0.5);
    }

    50% {
        box-shadow:
            0 0 0 12px rgba(168, 132, 75, 0);
    }
}

@keyframes float-slow {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-8px) rotate(1deg);
    }

    66% {
        transform: translateY(4px) rotate(-1deg);
    }
}

/* =========================
   ANIMATION UTILITY CLASSES
   ========================= */

.animate-float {
    animation:
        heroFloat 6s ease-in-out infinite;
}

.animate-float-delay {
    animation:
        heroFloat 6s ease-in-out 2s infinite;
}

.animate-float-delay-2 {
    animation:
        heroFloat 6s ease-in-out 4s infinite;
}

.animate-float-delay-3 {
    animation:
        heroFloat 6s ease-in-out 1s infinite;
}

.animate-pulse-gold {
    animation:
        pulse-gold 2s ease-in-out infinite;
}

.animate-float-slow {
    animation:
        float-slow 8s ease-in-out infinite;
}

.hero-title-animate {
    animation:
        fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-subtitle-animate {
    animation:
        fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.hero-cta-animate {
    animation:
        fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}

.hero-badge-animate {
    animation:
        fadeIn 1s ease 0.1s both;
}

/* =========================
   CARDS
   ========================= */

.service-card,
.why-card,
.value-card {
    transition:
        all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 20px 60px rgba(19, 64, 49, 0.12);
}

.service-icon {
    transition:
        all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-icon {
    background-color: var(--alt-gold);
    color: #ffffff;

    transform: scale(1.1);
}

.why-card:hover {
    transform: translateY(-6px) scale(1.02);
}

.why-icon {
    transition:
        all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-card:hover .why-icon {
    transform:
        scale(1.15) rotate(5deg);
}

.value-card:hover {
    transform: translateY(-6px);
}

.value-icon {
    transition:
        all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.value-card:hover .value-icon {
    transform: scale(1.15);
}

/* =========================
   TEAM
   ========================= */

.team-card:hover .team-img {
    transform: scale(1.05);
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.team-img {
    transition:
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-overlay {
    opacity: 0;

    transition:
        opacity 0.4s ease;
}

/* =========================
   CLIENT LOGOS
   ========================= */

.client-logo {
    filter: grayscale(100%);

    opacity: 0.5;

    transition:
        all 0.4s ease;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* =========================
   SWIPER
   ========================= */

.swiper-pagination-bullet {
    background-color: var(--alt-green) !important;
    opacity: 0.3 !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;

    background-color: var(--alt-gold) !important;
}

/* =========================
   BUTTONS
   ========================= */

.btn-gold {
    position: relative;
    overflow: hidden;
}

.btn-gold::after {
    content: '';

    position: absolute;

    top: -50%;
    left: -50%;

    width: 200%;
    height: 200%;

    background:
        linear-gradient(
            to right,
            transparent 0%,
            rgba(255, 255, 255, 0.15) 50%,
            transparent 100%
        );

    transform:
        rotate(30deg) translateX(-100%);

    transition:
        transform 0.6s ease;
}

.btn-gold:hover::after {
    transform:
        rotate(30deg) translateX(100%);
}

.section-divider {
    width: 60px;
    height: 3px;

    background:
        linear-gradient(
            to right,
            var(--alt-gold),
            var(--alt-gold-light)
        );

    border-radius: 2px;
}

/* =========================
   FORMS
   ========================= */

.form-input:focus {
    border-color: var(--alt-gold);

    box-shadow:
        0 0 0 3px rgba(168, 132, 75, 0.15);
}

/* =========================
   WHATSAPP
   ========================= */

.whatsapp-wrapper {
    right: 1rem;
    left: auto;
}

[dir="rtl"] .whatsapp-wrapper {
    right: auto;
    left: 1rem;
}

@media (min-width: 640px) {

    .whatsapp-wrapper {
        right: 1.5rem;
    }

    [dir="rtl"] .whatsapp-wrapper {
        left: 1.5rem;
    }
}

.whatsapp-tooltip {
    right: 0;
    left: auto;

    opacity: 0;

    transform: translateY(8px);

    transition:
        all 0.3s ease;

    pointer-events: none;
}

[dir="rtl"] .whatsapp-tooltip {
    right: auto;
    left: 0;
}

.whatsapp-wrapper:hover .whatsapp-tooltip {
    opacity: 1;

    transform: translateY(0);
}

/* =========================
   COUNTERS
   ========================= */

.counter-number {
    direction: ltr;

    unicode-bidi: isolate;

    font-variant-numeric: tabular-nums;
}

/* =========================
   BLOG
   ========================= */

.line-clamp-2 {
    display: -webkit-box;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;

    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.posts-container img {
    max-width: 100%;
    height: auto;
}

/* =========================
   BLOG PAGINATION
   ========================= */

.blog-pagination {
    width: 100%;

    display: flex;

    justify-content: center;
}

.blog-pagination .nav-links,
.blog-pagination ul.page-numbers {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    flex-wrap: wrap;

    list-style: none !important;

    margin: 0 !important;
    padding: 0 !important;
}

.blog-pagination ul.page-numbers li {
    list-style: none !important;

    margin: 0 !important;
    padding: 0 !important;
}

.blog-pagination .page-numbers {
    min-width: 42px;
    height: 42px;

    padding: 0 14px;

    display: inline-flex !important;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #ffffff;

    color: var(--alt-green);

    border: 1px solid #e5e7eb;

    font-family: inherit;

    font-size: 14px;
    font-weight: 600;

    line-height: 1;

    text-decoration: none !important;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.blog-pagination a.page-numbers:hover {
    background: var(--alt-green);

    color: #ffffff;

    border-color: var(--alt-green);

    transform: translateY(-2px);
}

.blog-pagination .page-numbers.current {
    background: var(--alt-gold);

    color: #ffffff;

    border-color: var(--alt-gold);
}

.blog-pagination a.prev,
.blog-pagination a.next {
    padding-left: 18px;
    padding-right: 18px;

    gap: 8px;
}

.blog-pagination a.prev i,
.blog-pagination a.next i {
    font-size: 12px;
}

.blog-pagination .page-numbers.dots {
    border-color: transparent;

    background: transparent;

    color: var(--alt-green);

    cursor: default;
}

/* =========================
   RESPONSIVE FIXES
   ========================= */

@media (max-width: 639px) {

    .hero-floating-stats {
        position: relative !important;

        bottom: auto !important;
        right: auto !important;
        left: auto !important;

        margin-top: 2.5rem;
    }

    .about-experience-badge {
        position: relative !important;

        right: auto !important;
        left: auto !important;
        bottom: auto !important;

        margin-top: 1.5rem;
    }
}

@media (max-width: 640px) {

    .blog-pagination .nav-links,
    .blog-pagination ul.page-numbers {
        gap: 5px;
    }

    .blog-pagination .page-numbers {
        min-width: 38px;
        height: 38px;

        padding: 0 10px;

        font-size: 13px;
    }

    .blog-pagination a.prev,
    .blog-pagination a.next {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* =========================
   REDUCED MOTION
   ========================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;

        transform: none;
    }

    .stagger-children > * {
        opacity: 1;

        transform: none;
    }
}

/* =========================
   MOBILE BLOG / NEWSLETTER
   ========================= */

@media (max-width: 640px) {

    .blog-pagination .page-numbers.prev,
    .blog-pagination .page-numbers.next {
        max-width: 100%;
    }
}

/* =========================================================
   FOOTER QUICK LINKS
========================================================= */
/* =========================================================
   FOOTER QUICK LINKS
========================================================= */

#footer-quick-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

#footer-quick-links li {
    margin: 0;
    padding: 0;
}

#footer-quick-links a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.5;
    transition: color 0.3s ease;
}

#footer-quick-links a:hover {
    color: #A8844B;
}


/* Footer Services */

.footer-service-link {
    color: rgba(255, 255, 255, 0.7);
}

.footer-service-link:hover {
    color: #A8844B;
}


@media (max-width: 640px) {

    #footer-quick-links a,
    .footer-service-link {
        font-size: 0.75rem;
    }

}