/* ====== إجبار الفوتر على الالتصاق بالأسفل ومنع أي فراغ أبيض ====== */
html {
    height: 100%;
    background-color: var(--primary-color); /* يمنع ظهور لون أبيض عند السحب الزائد */
}

body {
    min-height: 100%;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #ffffff;
}

/* الـ wrapper الأساسي يتمدد لملء الفراغ ودفع الفوتر إلى القاع */
.main-wrapper {
    flex: 1 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow-x: clip;
    overflow-y: visible;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.content-area {
    flex: 1 0 auto;
    overflow: visible;
    height: auto;
    display: flex;
    flex-direction: column;
}

.content-area > section:last-child,
.content-area > div:last-child {
    margin-bottom: 0 !important;
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

/* إلغاء أي هوامش في الفوتر وإبقاؤه ملاصقاً تماماً */
footer,
.footer,
.site-footer {
    flex-shrink: 0 !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
    position: relative !important;
    z-index: 10;
    overflow: visible !important;
}

/* ====== HERO SECTION ====== */
.pw-hero-container,
.pw-hero,
.hero-section {
    height: 65vh !important;
    min-height: 520px !important;
    max-height: 750px !important;
    width: 100%;
    position: relative;
}

.pw-hero-slide {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}

.pw-hero-content {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

/* ====== رابط المنتج (تحت التقييم) ====== */
.product-link {
    color: var(--primary-color);
    text-decoration: none !important;
    position: relative;
    transition: all 0.3s ease;
    padding: 2px 8px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
}
.product-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    z-index: -1;
}
.product-link:hover {
    color: var(--primary-color) !important;
    letter-spacing: 0.5px;
}
.product-link:hover::before {
    animation: pulse-ring-out 0.8s ease-out forwards;
}
@keyframes pulse-ring-out {
    0%   { transform: translate(-50%, -50%) scale(0);   opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0;   }
}

/* ====== Hero Section Legacy & Standard ====== */
.hero-section {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #000;
    isolation: isolate;
}
.hero-video,
.hero-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: none;
    aspect-ratio: 16 / 9;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(0,0,0,0.18) 100%),
        linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,0.15) 100%);
    z-index: 1;
    pointer-events: none;
}
.hero-content-wrapper {
    position: relative;
    z-index: 2;
    padding-top: clamp(40px, 6vw, 80px);
    padding-bottom: clamp(30px, 4vw, 60px);
    padding-inline: 1rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.8rem, 2vw, 1.5rem);
}

.hero-title {
    font-size: clamp(1.75rem, 1.2rem + 3.5vw, 3.8rem);
    color: #ffffff !important;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.55),
        0 6px 22px rgba(0, 0, 0, 0.55),
        0 1px 2px rgba(0, 0, 0, 0.45);
    letter-spacing: -0.5px;
    line-height: 1.15;
    font-weight: 800;
    margin: 0;
    max-width: 22ch;
    text-wrap: balance;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.2rem);
    max-width: 60ch;
    margin: 0 auto !important;
    color: #ffffff !important;
    opacity: 1;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.6),
        0 4px 16px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
    text-wrap: pretty;
    overflow-wrap: anywhere;
}

.btn-explore {
    background: var(--primary-color);
    color: #ffffff;
    padding: clamp(0.7rem, 0.5rem + 0.5vw, 1rem) clamp(1.4rem, 1rem + 2vw, 2.5rem);
    border-radius: 999px;
    font-weight: 700;
    font-size: clamp(0.9rem, 0.8rem + 0.3vw, 1.05rem);
    line-height: 1.2;
    border: 2px solid var(--primary-color);
    transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                background 0.35s ease,
                color 0.35s ease,
                border-color 0.35s ease,
                box-shadow 0.45s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 100%;
    white-space: nowrap;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), inset 0 0 0 0 rgba(255,255,255,0.15);
    letter-spacing: 0.3px;
}
.btn-explore:hover,
.btn-explore:focus-visible {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
    outline: none;
}
.btn-explore:active {
    transform: translateY(-2px) scale(1.0);
}

/* ====== عناوين الأقسام ====== */
.section-title {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.3px;
    max-width: 90vw;
    text-wrap: balance;
    overflow-wrap: anywhere;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 0.8s ease-in-out;
}
.aos-animate .section-title::after,
.section-title.is-visible::after {
    width: 90px;
}
@media (max-width: 768px) {
    .section-title::after { width: 70px; }
}

/* =========================================================
   ✨ CATEGORIES SECTION — Redesigned Modern Circular Icons
   ========================================================= */
.pw-categories-section {
    background: #fdfdfd;
    padding-block: clamp(3.5rem, 7vw, 6rem);
    position: relative;
    direction: var(--page-direction);
}

.pw-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: clamp(1.2rem, 3vw, 2rem);
    margin-top: clamp(2rem, 4vw, 3rem);
}

.pw-category-card {
    background: #ffffff;
    border-radius: 20px;
    padding: clamp(24px, 4vw, 32px) 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04);
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.pw-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pw-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px -8px var(--primary-glow), 0 8px 16px -4px rgba(0, 0, 0, 0.06);
    border-color: color-mix(in srgb, var(--primary-color) 25%, transparent);
}

.pw-category-card:hover::before {
    opacity: 1;
}

.pw-category-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 12%, #ffffff), color-mix(in srgb, var(--primary-color) 4%, #ffffff));
    border: 2px solid color-mix(in srgb, var(--primary-color) 20%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
    position: relative;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--primary-color) 12%, transparent);
    transition: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pw-category-icon::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px dashed color-mix(in srgb, var(--primary-color) 35%, transparent);
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.45s ease;
}

.pw-category-card:hover .pw-category-icon {
    transform: scale(1.1) rotate(4deg);
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 12px 28px var(--primary-glow);
}

.pw-category-card:hover .pw-category-icon::after {
    opacity: 1;
    transform: scale(1.08);
}

.pw-category-icon svg,
.pw-category-icon i {
    width: 38px;
    height: 38px;
    color: var(--primary-color);
    fill: currentColor;
    transition: all 0.35s ease;
}

.pw-category-card:hover .pw-category-icon svg,
.pw-category-card:hover .pw-category-icon i {
    color: #ffffff !important;
    fill: #ffffff !important;
    transform: scale(1.05);
}

.pw-category-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 0.6rem;
    letter-spacing: -0.3px;
    line-height: 1.35;
    transition: color 0.3s ease;
    overflow-wrap: break-word;
    word-break: break-word;
}

.pw-category-card:hover .pw-category-name {
    color: var(--primary-color);
}

.pw-category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #64748b;
    transition: all 0.3s ease;
}

.pw-category-link i {
    font-size: 0.8rem;
    transition: transform 0.35s ease;
}

.pw-category-card:hover .pw-category-link {
    color: var(--primary-color);
}

[dir="ltr"] .pw-category-card:hover .pw-category-link i {
    transform: translateX(4px);
}
[dir="rtl"] .pw-category-card:hover .pw-category-link i {
    transform: translateX(-4px) rotate(180deg);
}

/* ====== About Section ====== */
.about-section {
    overflow: visible;
    padding-block: clamp(3rem, 6vw, 5rem) !important;
}
.about-section p {
    line-height: 1.9;
    font-size: clamp(0.98rem, 0.9rem + 0.25vw, 1.15rem);
    color: #4a4a4a;
    text-wrap: pretty;
    overflow-wrap: anywhere;
}
.about-section h4 {
    margin-top: 2.5rem !important;
    font-size: clamp(1.2rem, 1rem + 0.5vw, 1.6rem);
    color: var(--primary-color);
    font-weight: 700;
}

/* ====== Testimonials ====== */
.testimonials-section {
    padding-block: clamp(3rem, 6vw, 5rem) !important;
}
.testimonial-home-card {
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-bottom: 4px solid var(--primary-color) !important;
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1.1),
                box-shadow 0.45s ease,
                border-color 0.35s ease;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
    background: #ffffff;
    cursor: pointer;
}
.testimonial-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-indent: -9999px;
    overflow: hidden;
}
.testimonial-home-card:hover {
    text-decoration: none;
}
.testimonial-home-card > *:not(.testimonial-card-link) {
    position: relative;
    z-index: 2;
    overflow: hidden;
}
.testimonial-home-card::before {
    content: "\201C";
    position: absolute;
    top: -10px;
    right: 16px;
    font-family: Georgia, serif;
    font-size: 6rem;
    color: var(--primary-soft);
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}
[dir="rtl"] .testimonial-home-card::before {
    right: auto;
    left: 16px;
}
.testimonial-home-card > * {
    position: relative;
    z-index: 1;
}
.testimonial-home-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.14) !important;
    border-bottom-color: var(--secondary-color) !important;
}
.testimonial-home-card .testimonial-home-body {
    line-height: 1.75;
    text-wrap: pretty;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 0.98rem;
}
.testimonial-home-card .stars {
    letter-spacing: 1px;
}

.avatar-home {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--primary-color), color-mix(in srgb, var(--primary-color) 70%, #000));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 4px 14px var(--primary-glow);
    text-transform: uppercase;
    flex-shrink: 0;
}

.testimonial-home-card .testimonial-home-author {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.3;
}

/* ====== Tablet & Mobile Hero ====== */
@media (max-width: 991px) and (min-width: 769px) {
    .hero-section,
    .pw-hero-container,
    .pw-hero {
        height: 55vh !important;
        max-height: 550px !important;
        min-height: 400px !important;
    }
}

@media (max-width: 768px) {
    .hero-section,
    .pw-hero-container,
    .pw-hero {
        height: 50vh !important;
        min-height: 350px !important;
        max-height: 480px !important;
    }
    .hero-content-wrapper {
        padding-top: clamp(40px, 10vw, 70px);
    }
    .testimonial-home-card::before {
        font-size: 4.5rem;
    }
}
@media (max-width: 480px) {
    .btn-explore {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    .hero-title { letter-spacing: -0.3px; }
    .pw-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .pw-category-icon {
        width: 70px;
        height: 70px;
    }
    .pw-category-icon svg,
    .pw-category-icon i {
        width: 30px;
        height: 30px;
    }
    .pw-category-name {
        font-size: 0.98rem;
    }
}

.visually-hidden-seo {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* =========================================================
   🔥 GALLERY SECTION — Interactive 3-Card Focal Engine
   ========================================================= */
.gv3-section {
    background: radial-gradient(circle at 50% 10%, #ffffff 0%, #fcfbf9 100%);
    padding-block: clamp(4rem, 8vw, 7rem);
    position: relative;
    overflow: hidden;
}

.gv3-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}

.gv3-eyebrow {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--primary-color, #2E4220);
    margin-bottom: 0.85rem;
    position: relative;
}

.gv3-heading {
    font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
}

.gv3-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.gv3-divider-line {
    width: 32px;
    height: 2px;
    background: var(--secondary-color, #A8D5BA);
    border-radius: 2px;
}

.gv3-divider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color, #2E4220);
    flex-shrink: 0;
    box-shadow: 0 0 10px var(--primary-glow);
}

.gv3-desc {
    color: #6b7280;
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 480px;
    margin: 0 auto;
}

.gv3-stage {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.75rem, 2.5vw, 2rem);
    perspective: 1200px;
}

.gv3-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.25rem, 3.5vw, 2.5rem);
    flex: 1 1 auto;
    min-width: 0;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.gv3-track.is-shifting {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
}

.gv3-card-slot {
    flex-shrink: 0;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
}

.gv3-card-slot--left {
    transform: translateY(35px) rotate(-2deg);
}
.gv3-card-slot--right {
    transform: translateY(35px) rotate(2deg);
}
.gv3-card-slot--center {
    transform: translateY(0) scale(1.05);
    z-index: 5;
}

.gv3-card {
    position: relative;
    display: block;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
    background: #e7e7e2;
    cursor: pointer;
    box-shadow: 0 16px 36px -12px rgba(20, 30, 15, 0.2);
    box-sizing: border-box;
    border: 1px solid color-mix(in srgb, var(--primary-color, #2E4220) 14%, transparent);
    transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.25, 1),
                box-shadow 0.55s cubic-bezier(0.2, 0.8, 0.25, 1),
                border-color 0.35s ease;
    will-change: transform;
}

.gv3-card-slot--left .gv3-card,
.gv3-card-slot--right .gv3-card {
    width: clamp(230px, 23vw, 320px);
    height: clamp(320px, 35vw, 420px);
    opacity: 0.9;
    filter: brightness(0.95);
}

.gv3-card-slot--center .gv3-card {
    width: clamp(260px, 27vw, 370px);
    height: clamp(370px, 42vw, 500px);
    opacity: 1;
    box-shadow: 0 28px 60px -15px rgba(20, 30, 15, 0.35);
    border: 2px solid color-mix(in srgb, var(--primary-color, #2E4220) 30%, transparent);
}

.gv3-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.gv3-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 20, 10, 0.65) 0%, rgba(15, 20, 10, 0.05) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.gv3-card:hover,
.gv3-card:focus-visible {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 32px 64px -16px rgba(20, 30, 15, 0.42);
    outline: none;
    filter: brightness(1);
}

.gv3-card:hover img,
.gv3-card:focus-visible img {
    transform: scale(1.08);
}

.gv3-card:hover::after {
    opacity: 0.85;
}

.gv3-label {
    position: absolute;
    inset-inline: 16px;
    bottom: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.25, 1);
}

.gv3-card:hover .gv3-label,
.gv3-card:focus-visible .gv3-label {
    transform: translateY(-4px);
}

.gv3-label-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--primary-color, #2E4220);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.25, 1), background 0.3s ease, color 0.3s ease;
}

.gv3-card:hover .gv3-label-icon,
.gv3-card:focus-visible .gv3-label-icon {
    transform: scale(1.12) rotate(-8deg);
    background: var(--primary-color, #2E4220);
    color: #ffffff;
}

.gv3-label-text {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
    letter-spacing: -0.2px;
    overflow-wrap: break-word;
    min-width: 0;
}

.gv3-nav {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid var(--secondary-color, #A8D5BA);
    color: var(--primary-color, #2E4220);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px -4px rgba(0,0,0,0.1);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 10;
}

.gv3-nav:hover,
.gv3-nav:focus-visible {
    transform: scale(1.12);
    background: var(--primary-color, #2E4220);
    color: #ffffff;
    border-color: var(--primary-color, #2E4220);
    box-shadow: 0 12px 28px -6px var(--primary-glow);
    outline: none;
}

.gv3-nav.prev:hover i { transform: translateX(-3px); }
.gv3-nav.next:hover i { transform: translateX(3px); }
[dir="rtl"] .gv3-nav.prev:hover i { transform: translateX(3px); }
[dir="rtl"] .gv3-nav.next:hover i { transform: translateX(-3px); }

.gv3-nav.is-hidden {
    display: none !important;
}

.gv3-cta-wrap {
    text-align: center;
    margin-top: clamp(2.8rem, 5.5vw, 4rem);
}

.gv3-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary-color, #2E4220);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.98rem;
    padding: 0.9rem 2.2rem;
    border-radius: 999px;
    border: none;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 12px 28px var(--primary-glow, rgba(46, 66, 32, 0.25));
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    letter-spacing: 0.3px;
}

.gv3-cta:hover,
.gv3-cta:focus-visible {
    transform: translateY(-4px) scale(1.02);
    background: color-mix(in srgb, var(--primary-color, #2E4220) 86%, #000);
    box-shadow: 0 18px 36px var(--primary-glow, rgba(46, 66, 32, 0.4));
    outline: none;
}

.gv3-cta i {
    transition: transform 0.35s ease;
}
[dir="ltr"] .gv3-cta:hover i { transform: translateX(5px); }
[dir="rtl"] .gv3-cta:hover i { transform: translateX(-5px); }

/* Gallery Indicators / Dots */
.gv3-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.8rem;
}
.gv3-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary-color) 20%, transparent);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.gv3-dot.is-active {
    width: 28px;
    background: var(--primary-color);
    box-shadow: 0 2px 8px var(--primary-glow);
}

@media (max-width: 991px) {
    .gv3-card-slot--left .gv3-card,
    .gv3-card-slot--right .gv3-card {
        width: clamp(200px, 26vw, 260px);
        height: clamp(280px, 38vw, 360px);
    }
    .gv3-card-slot--center .gv3-card {
        width: clamp(220px, 30vw, 300px);
        height: clamp(320px, 42vw, 410px);
    }
    .gv3-nav {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 768px) {
    .gv3-stage {
        gap: 0.5rem;
        perspective: none;
    }
    .gv3-track {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 0.75rem 0.5rem 1.5rem;
        -webkit-overflow-scrolling: touch;
    }
    .gv3-card-slot {
        scroll-snap-align: center;
        transform: none !important;
    }
    .gv3-card-slot .gv3-card,
    .gv3-card-slot--left .gv3-card,
    .gv3-card-slot--right .gv3-card,
    .gv3-card-slot--center .gv3-card {
        width: 76vw;
        max-width: 320px;
        height: clamp(330px, 92vw, 420px);
        opacity: 1 !important;
        filter: none !important;
        box-shadow: 0 12px 28px -10px rgba(0,0,0,0.18);
    }
    .gv3-nav {
        display: none !important;
    }
}

/* =========================================================
   🔥 SERVICES SECTION — Vertical Timeline Flow
   ========================================================= */
.svc-timeline-section {
    background: #fbfbf9;
    padding-block: clamp(4.5rem, 8vw, 7.5rem);
    position: relative;
    overflow: hidden;
    direction: var(--page-direction);
    isolation: isolate;
}

.svc-ambient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
}
.svc-blob-1 {
    top: 10%;
    inset-inline-start: -8%;
    width: 480px;
    height: 480px;
    background: var(--primary-color, #2E4220);
}
.svc-blob-2 {
    bottom: 5%;
    inset-inline-end: -6%;
    width: 440px;
    height: 440px;
    background: var(--secondary-color, #A8D5BA);
}

.svc-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto clamp(3rem, 6vw, 4.5rem);
    position: relative;
    z-index: 2;
}

.svc-eyebrow {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--primary-color, #2E4220);
    margin-bottom: 0.85rem;
}

.svc-heading {
    font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.svc-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.svc-divider-line {
    width: 32px;
    height: 2px;
    background: var(--secondary-color, #A8D5BA);
    border-radius: 2px;
}

.svc-divider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color, #2E4220);
    flex-shrink: 0;
    box-shadow: 0 0 10px var(--primary-glow);
}

.svc-desc {
    color: #6b7280;
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 480px;
    margin: 0 auto;
}

.svc-timeline-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    z-index: 2;
    padding-inline: 1rem;
}

.svc-timeline-spine {
    position: absolute;
    top: 40px;
    bottom: 40px;
    left: 50%;
    width: 3px;
    transform: translateX(-50%);
    background: linear-gradient(
        to bottom,
        transparent 0%,
        color-mix(in srgb, var(--primary-color, #2E4220) 25%, transparent) 10%,
        var(--primary-color, #2E4220) 50%,
        color-mix(in srgb, var(--primary-color, #2E4220) 25%, transparent) 90%,
        transparent 100%
    );
    z-index: 1;
}

.svc-timeline-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: clamp(3rem, 6vw, 5rem);
    width: 100%;
}
.svc-timeline-item:last-child {
    margin-bottom: 0;
}

.svc-timeline-node {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--primary-color, #2E4220);
    color: var(--primary-color, #2E4220);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    z-index: 4;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.9), 0 10px 24px var(--primary-glow);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.25, 1), background 0.3s ease, color 0.3s ease;
}
.svc-timeline-item:hover .svc-timeline-node {
    transform: translate(-50%, -50%) scale(1.18);
    background: var(--primary-color, #2E4220);
    color: #ffffff;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.9), 0 14px 30px var(--primary-glow);
}

.svc-timeline-media,
.svc-timeline-content {
    width: 44%;
    position: relative;
    box-sizing: border-box;
}

.svc-timeline-media {
    border-radius: 22px;
    overflow: hidden;
    background: #eee;
    aspect-ratio: 16 / 10;
    box-shadow: 0 16px 36px -12px rgba(20, 30, 15, 0.16);
    border: 1px solid color-mix(in srgb, var(--primary-color, #2E4220) 15%, transparent);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}
.svc-timeline-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-timeline-item:hover .svc-timeline-media {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -14px rgba(20, 30, 15, 0.26);
}
.svc-timeline-item:hover .svc-timeline-media img {
    transform: scale(1.07);
}

.svc-timeline-content {
    background: #ffffff;
    padding: clamp(1.6rem, 3vw, 2.4rem);
    border-radius: 22px;
    border: 1px solid color-mix(in srgb, var(--primary-color, #2E4220) 12%, transparent);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.06);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease, border-color 0.4s ease;
    position: relative;
}
.svc-timeline-item:hover .svc-timeline-content {
    transform: translateY(-6px);
    box-shadow: 0 22px 46px -14px rgba(20, 30, 15, 0.18);
    border-color: color-mix(in srgb, var(--primary-color, #2E4220) 35%, transparent);
}

.svc-timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 22px;
    height: 2px;
    background: color-mix(in srgb, var(--primary-color, #2E4220) 35%, transparent);
    transform: translateY(-50%);
}

.svc-timeline-item:nth-child(odd) {
    flex-direction: row;
}
.svc-timeline-item:nth-child(odd) .svc-timeline-content::before {
    inset-inline-start: -22px;
}

.svc-timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}
.svc-timeline-item:nth-child(even) .svc-timeline-content::before {
    inset-inline-end: -22px;
}

.svc-timeline-title {
    font-size: clamp(1.22rem, 1.1rem + 0.5vw, 1.45rem);
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    letter-spacing: -0.3px;
    line-height: 1.35;
    transition: color 0.3s ease;
    overflow-wrap: break-word;
    word-break: break-word;
}
.svc-timeline-item:hover .svc-timeline-title {
    color: var(--primary-color, #2E4220);
}

.svc-timeline-desc {
    font-size: 0.98rem;
    color: #4a4a4a;
    line-height: 1.75;
    margin-bottom: 0.6rem;
    overflow-wrap: break-word;
}

.svc-timeline-desc-long {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    overflow-wrap: break-word;
}

.svc-timeline-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--primary-color, #2E4220);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: gap 0.3s ease;
}
.svc-timeline-link i {
    width: 17px;
    height: 17px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
[dir="ltr"] .svc-timeline-item:hover .svc-timeline-link i { transform: translateX(5px); }
[dir="rtl"] .svc-timeline-item:hover .svc-timeline-link i { transform: translateX(-5px); }

@media (max-width: 991px) {
    .svc-timeline-spine {
        left: auto;
        inset-inline-start: 24px;
        transform: none;
    }
    .svc-timeline-item,
    .svc-timeline-item:nth-child(odd),
    .svc-timeline-item:nth-child(even) {
        flex-direction: column !important;
        align-items: stretch;
        padding-inline-start: 65px;
        margin-bottom: 3.5rem;
    }
    .svc-timeline-node {
        left: auto;
        inset-inline-start: 0;
        top: 25px;
        transform: none !important;
        width: 50px;
        height: 50px;
        font-size: 0.95rem;
    }
    .svc-timeline-media,
    .svc-timeline-content {
        width: 100%;
    }
    .svc-timeline-media {
        margin-bottom: 1.25rem;
        max-height: 280px;
    }
    .svc-timeline-content::before {
        display: none;
    }
}

/* =========================================================
   🔥 SERVICES SECTION — Vertical Timeline Flow
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    .btn-explore,
    .testimonial-home-card,
    .product-link,
    .section-title::after,
    .gv3-card,
    .gv3-card img,
    .gv3-card-slot,
    .gv3-label,
    .gv3-label-icon,
    .gv3-nav,
    .gv3-cta,
    .gv3-track,
    .svc-timeline-media,
    .svc-timeline-media img,
    .svc-timeline-content,
    .svc-timeline-node,
    .svc-timeline-link i,
    .pw-category-card,
    .pw-category-icon {
        transition: none !important;
        animation: none !important;
    }
}
