

:root {
    /* Typography (Home only) */
    --home-fs-hero: clamp(2.4rem, 5vw, 4.25rem);
    --home-fs-section: clamp(2rem, 3.5vw, 3rem);
    --home-fs-card-title: clamp(1.2rem, 1.6vw, 1.55rem);
    --home-fs-body: clamp(1rem, 1.15vw, 1.1rem);
    --home-fs-small: 0.875rem;
}

/* Container override for home page only */
.home-page .container {
    width: min(1320px, calc(100% - 48px));
}

/* Global section spacing */
.home-page .section {
    padding-block: clamp(72px, 8vw, 112px);
}

.home-overview-section {
    padding-top: clamp(80px, 9vw, 124px);
}


/* ==========================================================================
   2. HERO SLIDER (Improved with spacing fix)
   ========================================================================== */

.home-hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.vitanorHeroSwiper {
    width: 100%;
    height: clamp(600px, calc(100svh - 82px), 900px);
    min-height: 600px;
}

.home-hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Media layer for background image */
.home-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.02);
    transition: transform 8s ease;
}

.swiper-slide-active .home-hero-media {
    transform: scale(1.09);
}

/* Overlay */
.home-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(9, 30, 55, 0.92) 0%,
        rgba(16, 54, 88, 0.78) 38%,
        rgba(22, 73, 89, 0.42) 68%,
        rgba(20, 70, 70, 0.16) 100%
    );
}

/* Hero content - with dynamic top padding to avoid logo overlap */
/* Hero content - with dynamic top padding to avoid logo overlap */
.home-hero-content {
    position: relative;
    z-index: 2;
    width: min(1320px, calc(100% - 48px));
    margin-inline: auto;
    padding-top: clamp(60px, 10vh, 120px); /* تم التعديل هنا */
    color: var(--white);
}

.home-hero-copy {
    width: min(720px, 64%);
    padding-block: clamp(40px, 6vh, 80px);
}

.home-hero-content .hero-label {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.home-hero-content h1 {
    margin: 0 0 24px;
    font-size: var(--home-fs-hero);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.035em;
    word-break: normal;
    overflow-wrap: break-word;
    color: var(--white);
}

.home-hero-content p {
    max-width: 620px;
    margin: 0 0 32px;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.92);
}

/* Hero Animations */
.home-hero-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--hero-delay, 0ms);
}

.swiper-slide-active .home-hero-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Hero pagination (Swiper overrides) */
.vitanorHeroSwiper .swiper-pagination {
    bottom: 34px !important;
    display: flex;
    justify-content: center;
    gap: 9px;
}

.vitanorHeroSwiper .swiper-pagination-bullet {
    width: 34px;
    height: 5px;
    margin: 0 !important;
    border-radius: 999px;
    opacity: 1;
    background: rgba(255, 255, 255, 0.5);
    transition: width 0.3s ease, background-color 0.3s ease;
}

.vitanorHeroSwiper .swiper-pagination-bullet-active {
    width: 58px;
    background: var(--accent);
}


/* ==========================================================================
   3. MARQUEE (if used)
   ========================================================================== */

.home-marquee {
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--primary);
    color: var(--white);
}

.home-marquee-track {
    display: flex;
    width: max-content;
    animation: homeMarquee 30s linear infinite;
}

.home-marquee-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 42px;
    padding: 18px 21px;
}

.home-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.home-marquee-dot {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

@keyframes homeMarquee {
    to {
        transform: translateX(-50%);
    }
}

.home-marquee:hover .home-marquee-track {
    animation-play-state: paused;
}


/* ==========================================================================
   4. CORPORATE OVERVIEW
   ========================================================================== */

.home-overview-section {
    position: relative;
    overflow: hidden;
    background: 
        radial-gradient(circle at 10% 20%, var(--secondary-soft), transparent 32%),
        var(--white);
}

.home-overview-composition {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);
    align-items: center;
    gap: 0;
}

/* Media */
.home-overview-media {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 24px 64px rgba(22, 58, 101, 0.14);
}

.home-overview-media img {
    width: 100%;
    height: 100%;
    min-height: 560px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.home-overview-media:hover img {
    transform: scale(1.035);
}

.home-overview-badge {
    position: absolute;
    bottom: 28px;
    left: 28px;
    display: grid;
    gap: 5px;
    max-width: calc(100% - 56px);
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background: rgba(13, 38, 69, 0.82);
    backdrop-filter: blur(12px);
    color: var(--white);
}

.home-overview-badge span {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
}

.home-overview-badge strong {
    font-size: 16px;
}

/* Content */
.home-overview-content {
    position: relative;
    z-index: 2;
    margin-left: -70px;
    padding: clamp(42px, 5vw, 68px);
    border: 1px solid rgba(22, 58, 101, 0.1);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 64px rgba(22, 58, 101, 0.12);
    backdrop-filter: blur(14px);
}

.home-overview-content .section-kicker {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--secondary);
}

.home-overview-content h2 {
    margin: 0 0 24px;
    font-size: var(--home-fs-section);
    word-break: normal;
    overflow-wrap: break-word;
}

.home-overview-content p {
    margin: 0 0 16px;
    font-size: var(--home-fs-body);
    line-height: 1.9;
}

.home-overview-content p:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   5. COMPANY HIGHLIGHTS (New)
   ========================================================================== */

.home-highlights {
    background: var(--white);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 10px;
}

.highlight-item {
    padding: 28px 24px;
    border-radius: 18px;
    background: var(--primary-soft);
    border: 1px solid rgba(36, 59, 89, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.highlight-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--box-shadow-hover);
}

.highlight-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
}

.highlight-icon svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
}

.highlight-item span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 8px;
}

.highlight-item strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.4;
}

@media (max-width: 991px) {
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 500px) {
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .highlight-item {
        padding: 22px 18px;
    }
}


/* ==========================================================================
   6. BUSINESS SCOPE (Strategic Horizons) - IMPROVED
   ========================================================================== */

.home-strategy-section {
    background: 
        linear-gradient(rgba(22, 58, 101, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 58, 101, 0.025) 1px, transparent 1px),
        var(--white);
    background-size: 38px 38px;
}

.home-strategy-section .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.home-strategy-card {
    position: relative;
    overflow: hidden;
    padding: 28px 24px; /* تم تقليل padding */
    border: 1px solid rgba(22, 58, 101, 0.09);
    border-left: 0;
    border-radius: 18px;
    background: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* تم إزالة min-height الثابت */
    min-height: 0; /* أو يمكن حذف الخاصية */
    height: auto;
}

.home-strategy-card:hover {
    transform: translateY(-6px); /* تقليل الحركة قليلاً */
    box-shadow: 0 12px 30px rgba(13, 38, 69, 0.08);
}

.home-strategy-card::before {
    content: '';
    position: absolute;
    top: -70px;
    right: -70px;
    z-index: 0;
    width: 140px; /* تصغير حجم الدائرة */
    height: 140px;
    border-radius: 50%;
    background: var(--secondary-soft);
    transition: transform 0.5s ease;
}

.home-strategy-card:hover::before {
    transform: scale(1.3);
}

.home-strategy-card > * {
    position: relative;
    z-index: 1;
}

.home-strategy-number {
    display: inline-block;
    margin-bottom: 16px; /* تقليل المسافة السفلية */
    font-size: 12px; /* تصغير الرقم */
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--secondary);
}

.home-strategy-card h3 {
    margin: 0;
    font-size: clamp(1rem, 1.2vw, 1.2rem); /* تصغير حجم الخط */
    line-height: 1.4;
    word-break: normal;
    overflow-wrap: break-word;
    color: var(--primary);
    font-weight: 700;
}

/* لم نعد نستخدم <p> داخل هذه الكروت، لكن في حال وجوده */
.home-strategy-card p {
    margin: 8px 0 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text);
}

@media (max-width: 991px) {
    .home-strategy-section .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .home-strategy-section .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .home-strategy-card {
        padding: 22px 20px;
    }
}


/* ==========================================================================
   MARKET PRESENCE (New)
   ========================================================================== */

.home-market-section {
    background: var(--white);
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 10px;
}

.market-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 14px;
    background: var(--primary-soft);
    border: 1px solid rgba(36, 59, 89, 0.06);
    transition: background 0.3s ease, transform 0.3s ease;
}

.market-item:hover {
    background: var(--secondary-soft);
    transform: translateX(4px);
}

.market-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--white);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.market-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.market-item span {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
}

@media (max-width: 767px) {
    .market-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .market-item {
        padding: 14px 18px;
    }
    .market-item span {
        font-size: 14px;
    }
}


/* ==========================================================================
   WHY CHOOSE VITANOR MEDICAL (New)
   ========================================================================== */

.home-why-section {
    background: linear-gradient(135deg, var(--primary-soft), var(--secondary-soft));
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 10px;
}

.why-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--secondary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-hover);
}

.why-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--white);
    font-weight: 800;
    font-size: 12px;
    flex-shrink: 0;
}

.why-item span {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
}

@media (max-width: 991px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 600px) {
    .why-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .why-item {
        padding: 14px 18px;
    }
    .why-item span {
        font-size: 14px;
    }
}


/* ==========================================================================
   VISION & MISSION - تحسين التنسيق
   ========================================================================== */

.home-vision-section .layout {
    align-items: stretch;
}

.home-feature-card {

    padding: clamp(24px, 3vw, 36px);
    border: 1px solid rgba(22, 58, 101, 0.09);
    border-left: 5px solid var(--secondary);
    border-radius: 18px;
    box-shadow: 0 14px 38px rgba(22, 58, 101, 0.08);
}

.home-feature-card .home-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

.home-feature-card h3 {
    margin: 0 0 12px;
    font-size: clamp(1.1rem, 1.3vw, 1.3rem);
    word-break: normal;
    overflow-wrap: break-word;
    color: var(--primary);
}

.home-feature-card p {
    margin: 0;
    font-size: var(--home-fs-body);
    line-height: 1.8;
    color: var(--text);
}

/* ==========================================================================
   7. CORE BUSINESS PORTFOLIOS (Preview)
   ========================================================================== */

.home-products-section {
    background: var(--light);
}

.home-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 28px);
}

.home-portfolio-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 420px;
    border-radius: 20px;
    background: var(--primary);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.home-portfolio-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 26px 60px rgba(13, 38, 69, 0.22);
}

.home-portfolio-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.82;
    transition: transform 0.7s ease, opacity 0.4s ease;
}

.home-portfolio-card:hover img {
    transform: scale(1.08);
    opacity: 0.58;
}

.home-portfolio-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(13, 38, 69, 0.05) 5%,
        rgba(13, 38, 69, 0.25) 42%,
        rgba(13, 38, 69, 0.96) 100%
    );
}

.home-portfolio-card > div {
    position: absolute;
    bottom: 28px;
    left: 26px;
    right: 26px;
    z-index: 2;
    transform: translateY(22px);
    transition: transform 0.4s ease;
}

.home-portfolio-card:hover > div {
    transform: translateY(0);
}

.home-portfolio-card h3 {
    margin: 0 0 10px;
    font-size: clamp(1.1rem, 1.3vw, 1.35rem);
    word-break: normal;
    overflow-wrap: break-word;
    color: var(--white);
}

.home-portfolio-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 991px) {
    .home-portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .home-portfolio-grid {
        grid-template-columns: 1fr;
    }
    .home-portfolio-card {
        min-height: 320px;
    }
}


/* ==========================================================================
   8. REGULATORY & QUALITY COMMITMENT (New)
   ========================================================================== */

.home-quality-section {
    background: linear-gradient(135deg, var(--primary-soft), var(--secondary-soft));
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.quality-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--secondary);
}

.quality-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-hover);
}

.quality-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--secondary-soft);
    color: var(--secondary);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.quality-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.quality-item span {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
}

@media (max-width: 991px) {
    .quality-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .quality-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .quality-item {
        padding: 14px 18px;
    }
}


/* ==========================================================================
   9. PARTNER SECTION
   ========================================================================== */

.home-partner-section {
    background: linear-gradient(135deg, var(--primary-soft), var(--secondary-soft));
}

.home-partner-showcase {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    border-radius: 24px;
    box-shadow: 0 28px 72px rgba(13, 38, 69, 0.18);
}

.home-partner-media {
    position: absolute;
    inset: 0;
}

.home-partner-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(8, 29, 52, 0.85) 0%,
        rgba(12, 48, 73, 0.62) 42%,
        rgba(15, 60, 74, 0.2) 100%
    );
}

.home-partner-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Panel */
.home-partner-panel {
    position: relative;
    z-index: 2;
    width: min(610px, calc(100% - 72px));
    margin: 48px;
    padding: clamp(34px, 4.5vw, 58px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    background: rgba(8, 31, 55, 0.76);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(18px);
    color: var(--white);
}

.home-partner-panel .section-kicker {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--accent);
}

.home-partner-panel h2 {
    margin: 0 0 16px;
    font-size: var(--home-fs-section);
    word-break: normal;
    overflow-wrap: break-word;
    color: var(--white);
}

.home-partner-panel h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    margin-top: 14px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
}

.home-partner-panel > p {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--home-fs-body);
    line-height: 1.85;
    margin: 0 0 20px;
}

@media (max-width: 767px) {
    .home-partner-showcase {
        min-height: auto;
        padding-top: 250px;
        border-radius: 18px;
    }
    .home-partner-media {
        height: 300px;
    }
    .home-partner-media::after {
        background: linear-gradient(
            180deg,
            rgba(8, 29, 52, 0.08),
            rgba(8, 29, 52, 0.75)
        );
    }
    .home-partner-panel {
        width: calc(100% - 24px);
        margin: 0 auto 12px;
        padding: 28px 22px;
    }
}



/* ==========================================================================
   11. RESPONSIVE DESIGN (5 Breakpoints - Optimized)
   ========================================================================== */

/* 1. شاشات كبيرة جداً (> 1400px) */
@media (min-width: 1400px) {
    .home-hero-content h1 {
        font-size: clamp(3.2rem, 4.2vw, 4.6rem);
        max-width: 13ch;
    }
    .home-hero-content p {
        font-size: clamp(1.2rem, 1.3vw, 1.4rem);
        max-width: 600px;
    }
    .home-hero-copy {
        padding-block: 70px 50px;
    }
}

/* 2. لابتوب وشاشات متوسطة (≤ 1399px) - الحل لمشكلة الشعار */
@media (max-width: 1399px) {
    .home-hero-content h1 {
        font-size: clamp(2.6rem, 3.8vw, 3.6rem);
        max-width: 12ch;
        margin-bottom: 20px;
    }
    .home-hero-content p {
        font-size: clamp(1rem, 1.1vw, 1.15rem);
        max-width: 520px;
        margin-bottom: 28px;
    }
    .home-hero-copy {
        width: min(600px, 56%);
        padding-block: 50px 40px;
    }
    .home-hero-content {
        padding-top: 40px;
    }

    .home-strategy-section .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .home-portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 3. تابلت ومتوسط (≤ 1199px) */
@media (max-width: 1199px) {
    .home-overview-composition {
        grid-template-columns: 1fr 0.92fr;
    }
    .home-overview-content {
        margin-left: -36px;
    }
}

/* 4. تابلت صغير وجوال كبير (≤ 991px) - تحويل جميع الشبكات إلى عمود واحد */
@media (max-width: 991px) {
    .vitanorHeroSwiper {
        height: min(760px, calc(100svh - 72px));
        min-height: 620px;
    }
    .home-hero-content {
        padding-top: 20px;
    }
    .home-hero-copy {
        width: 75%;
        padding-block: 40px 30px;
    }
    .home-hero-content h1 {
        font-size: clamp(2.2rem, 5vw, 3.2rem);
        max-width: 14ch;
    }
    .home-hero-content p {
        font-size: clamp(1rem, 1.6vw, 1.15rem);
        max-width: 100%;
    }

    /* تجميع الأقسام */
    .home-overview-composition {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .home-overview-media,
    .home-overview-media img {
        min-height: 420px;
    }
    .home-overview-content {
        width: calc(100% - 48px);
        margin: -56px auto 0;
    }
    .home-strategy-section .services-grid {
        grid-template-columns: 1fr;
    }
    .home-portfolio-grid {
        grid-template-columns: 1fr;
    }
    .home-portfolio-card {
        min-height: 360px;
    }
    .quality-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 5. جوال (≤ 767px) - شامل جميع أحجام الجوالات حتى 320px */
@media (max-width: 767px) {
    .home-page .container {
        width: min(100% - 32px, 1320px);
    }

    /* Hero */
    .vitanorHeroSwiper {
        height: min(680px, calc(100svh - 64px));
        min-height: 560px;
    }
    .home-hero-content {
        padding-top: 10px;
    }
    .home-hero-copy {
        width: 100%;
        padding-block: 30px 20px;
    }
    .home-hero-content h1 {
        font-size: clamp(1.8rem, 7vw, 2.6rem);
        max-width: 16ch;
        letter-spacing: -0.02em;
        margin-bottom: 16px;
    }
    .home-hero-content p {
        font-size: clamp(0.95rem, 4vw, 1.1rem);
        line-height: 1.7;
        margin-bottom: 24px;
    }
    .home-hero-content .hero-label {
        font-size: 0.75rem;
        margin-bottom: 12px;
        letter-spacing: 0.06em;
    }
    .home-hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(9, 30, 55, 0.94) 0%,
            rgba(16, 54, 88, 0.82) 65%,
            rgba(16, 54, 88, 0.52) 100%
        );
    }
    .vitanorHeroSwiper .swiper-pagination {
        bottom: 22px !important;
    }
    .vitanorHeroSwiper .swiper-pagination-bullet {
        width: 24px;
        height: 4px;
    }
    .vitanorHeroSwiper .swiper-pagination-bullet-active {
        width: 42px;
    }
    .btn {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }

    /* باقي الأقسام */
    .home-overview-media,
    .home-overview-media img {
        min-height: 320px;
    }
    .home-overview-content {
        width: calc(100% - 24px);
        margin-top: -34px;
        padding: 28px 24px;
    }
    .home-overview-badge {
        right: 16px;
        bottom: 30px;
        left: 16px;
        max-width: none;
    }
    .home-partner-showcase {
        min-height: auto;
        padding-top: 250px;
        border-radius: 18px;
    }
    .home-partner-media {
        height: 300px;
    }
    .home-partner-media::after {
        background: linear-gradient(
            180deg,
            rgba(8, 29, 52, 0.08),
            rgba(8, 29, 52, 0.75)
        );
    }
    .home-partner-panel {
        width: calc(100% - 24px);
        margin: 0 auto 12px;
        padding: 28px 22px;
    }
    .home-contact-section .cta-section p {
        font-size: 1rem;
    }
    .quality-grid {
        grid-template-columns: 1fr;
    }
    .home-portfolio-card {
        min-height: 300px;
    }

    /* جوال صغير جداً (أقل من 480px) - مدمج ضمن نفس النقطة */
    .home-hero-content h1 {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
        max-width: 18ch;
    }
    .home-hero-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    .home-hero-copy {
        padding-block: 24px 16px;
    }
    .home-hero-content .hero-label {
        font-size: 0.7rem;
        letter-spacing: 0.04em;
    }
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    .home-page .container {
        width: min(100% - 24px, 1320px);
    }
    .vitanorHeroSwiper {
        height: min(480px, calc(100svh - 48px));
        min-height: 420px;
    }
}


/* ==========================================================================
   12. ACCESSIBILITY (Hover & Reduced Motion)
   ========================================================================== */

/* Hover fallback for touch devices */
@media (hover: none) {
    .home-portfolio-card > div {
        transform: none;
    }
    .home-portfolio-link {
        opacity: 1;
        transform: none;
    }
    .home-overview-media img {
        transform: none !important;
    }
    .home-strategy-card::before {
        display: none;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .home-hero-media,
    .home-hero-animate,
    .home-portfolio-card,
    .home-portfolio-card img,
    .home-overview-media img,
    .home-marquee-track,
    .home-strategy-card,
    .highlight-item,
    .quality-item {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }

    .home-hero-animate {
        opacity: 1 !important;
    }

    .wow {
        visibility: visible !important;
    }

    .animate__animated {
        animation: none !important;
    }

    .home-marquee-track {
        width: auto;
        flex-wrap: wrap;
        justify-content: center;
    }

    .home-marquee-group[aria-hidden="true"] {
        display: none;
    }
}


/* ==========================================================================
   13. LEGACY & GLOBAL PAGE OVERRIDES
   ========================================================================== */

.about-section {
    background: var(--light);
}

.vision-section .card {
    border-left: 5px solid var(--secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.services-grid .card {
    border-left: 5px solid var(--secondary);
}

.services-grid .card h3 {
    color: var(--primary);
}

.contact-section .contact-box {
    border-left: 5px solid var(--secondary);
}


/* ==========================================================================
   14. UTILITY STATES (Error & Empty)
   ========================================================================== */

.error-section {
    padding: 100px 0;
    text-align: center;
}

.error-code {
    display: block;
    font-size: 140px;
    font-weight: 900;
    line-height: 1;
    color: var(--gray-200);
}

.error-box h1 {
    font-size: 40px;
    color: var(--primary);
}

.error-box p {
    margin-bottom: 35px;
    font-size: 18px;
    color: var(--gray-600);
}

.empty-state {
    padding: 100px 20px;
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius-lg);
    background: var(--gray-100);
    text-align: center;
}

.empty-state h3 {
    margin-bottom: 12px;
    font-size: 24px;
    color: var(--primary);
}

.empty-state p {
    margin-bottom: 25px;
    color: var(--gray-600);
}

/* Utility */
.text-center {
    text-align: center;
}