/* ===========================
   ROOT VARIABLES
=========================== */
:root {
    --primary-color: #132a18;
    --primary-hover: #1a3b22;
    --secondary-color: #c5a059;
    --secondary-hover: #d8b266;
    --text-dark: #202020;
    --text-muted: #5a5a5a;
    --bg-light: #f8f9fa;
    --bg-card: #ffffff;
    --border-color: #eaeaea;
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ===========================
  GLOBAL
=========================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    font-weight: 500;
    margin: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

section {
    width: 100%;
    padding: 80px 20px;
    margin: 0;
    background: #ffffff;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0;
}

/* Typography Line */
.heading-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* ===========================
  BUTTONS
=========================== */

/* Global Premium Button */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 36px;
    background-color: var(--secondary-color);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    z-index: 1;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0; height: 100%;
    background-color: var(--primary-color);
    transition: var(--transition);
    z-index: -1;
}

.btn-premium:hover::before {
    width: 100%;
}

.btn-premium:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
}

/* Secondary / Dark Button */
.btn-dark {
    background: var(--primary-color);
    color: #fff;
    border: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-dark:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* ===========================
  SEC1 — HERO
=========================== */

.sec1 {
    min-height: clamp(420px, 85vh, 780px);
    background: linear-gradient(135deg, #0a1e10 0%, #16351f 35%, #1f4a2a 65%, #16351f 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 40px 20px;
    overflow: hidden;
}

.sec1::after {
    content: "";
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: radial-gradient(circle, rgba(184, 147, 95, 0.18) 0%, rgba(184, 147, 95, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

.sec1::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5, 19, 10, 0.35), rgba(5, 19, 10, 0.65));
    z-index: 1;
}

.sec1 > * {
    position: relative;
    z-index: 2;
}

.sec1 h1 {
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    letter-spacing: 1px;
    font-size: clamp(28px, 5vw, 64px);
}

.sec1 h3 {
    color: #f1f1f1;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    font-size: clamp(16px, 2vw, 24px);
    margin-top: 10px;
}

/* لوقو الشركة كـ watermark خلف النص - يعطي هوية بدون ما ينافس النص أو يكرر بشكل مزعج */
.sec1-logo-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28%;
    max-width: 280px;
    opacity: 0.12;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 768px) {
    .sec1-logo-watermark {
        width: 65%;
        opacity: 0.10;
    }
}

/* ===========================
  SEC2 - ABOUT
=========================== */

/* الصورة الأصلية كاملة زي ما كانت (تبين وطرفها ظاهر بوضوح)، وفوقها طبقة تلاشي خفيفة بس عند أقصى الطرف اليسار */
.sec2 {
    background-image: url('logoBackground.png');
    background-size: cover;
    background-position: right top;
    background-repeat: no-repeat;
    position: relative;
    padding: 90px 20px;
    display: flex;
    color: var(--text-dark);
    overflow: hidden;
}

/* تلاشي خفيف جدًا عند الطرف اليسار بس، ما يأثر على باقي الصورة */
.sec2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(248,249,250,0) 70%, rgba(248,249,250,0.95) 100%);
    z-index: 0;
    pointer-events: none;
}

.sec2 .container {
    position: relative;
    z-index: 1;
}

.sec2 .row {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 50px;
}

.sec2 .row > div {
    flex: 1;
}

.box {
    display: flex;
    flex-direction: column;
    gap: 25px;
    justify-content: center;
}

.box-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* تعديل: display: inline-block يخلي عرض h1 يلتف حول النص فعليًا،
   عشان الخط اللي بعده (::after) يلزق بنهاية النص دايمًا (عربي أو إنجليزي) */
.box-info h1 {
    display: inline-block;
    font-size: clamp(24px, 3.2vw, 38px);
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
}

.box-info h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.box-info p {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.9;
    color: var(--text-muted);
    text-align: right;
}

.box-info .btns {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* Inner box */
.inner-box {
    background: var(--bg-card);
    padding: 24px 25px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    border-right: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.inner-box:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
}

.inner-box-eye {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(197, 160, 89, 0.1);
    flex-shrink: 0;
}

.inner-box-eye .material-symbols-outlined {
    font-size: 28px;
    color: var(--secondary-color);
}

.inner-box-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inner-box-text h3 {
    margin: 0;
    font-size: 22px;
}

.inner-box-text p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ===========================
  SEC3 STRIP
=========================== */

.sec3-strip {
    background: var(--primary-color);
    padding: 40px 0;
    position: relative;
    box-shadow: inset 0 5px 15px rgba(0,0,0,0.2);
}

.sec3-strip::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('logoBackground.png') center/cover;
    opacity: 0.05;
    pointer-events: none;
}

.strip-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.strip-box {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

.strip-box img {
    width: 65px;
    height: 65px;
    filter: brightness(0) saturate(100%) invert(85%) sepia(21%) saturate(983%) hue-rotate(345deg) brightness(88%) contrast(89%); /* Approx secondary color */
}

.strip-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.strip-num {
    margin: 0;
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.strip-num span {
    color: var(--secondary-color);
    font-size: 36px;
}

.strip-title {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
}

/* ===========================
  PREMIUM SERVICES GRID
=========================== */

.services-sec {
    padding: 90px 0;
    background-color: var(--bg-light);
}

.services-sec h2 {
    font-size: clamp(26px, 3.2vw, 38px);
    color: var(--primary-color);
}

.services-sec .desc-text {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card-premium {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    top: 0;
}

.service-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.service-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card-premium:hover .service-img-wrap img {
    transform: scale(1.08);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(19, 42, 24, 0.9) 0%, rgba(19, 42, 24, 0.2) 50%, transparent 100%);
    opacity: 0.8;
    transition: var(--transition);
}

.service-card-premium:hover .service-overlay {
    opacity: 0.95;
}

.service-content {
    padding: 30px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    margin-top: -50px; /* Pull content up into the image area */
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 3px solid #fff;
    transition: var(--transition);
}

.service-card-premium:hover .service-icon {
    background: var(--secondary-color);
    transform: rotateY(360deg);
}

.service-icon .material-symbols-outlined {
    color: #fff;
    font-size: 28px;
}

.top-content {
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    transition: var(--transition);
}

.service-card-premium:hover .service-title {
    color: var(--secondary-color);
}

.service-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 25px;
}

.service-link-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    margin-top: auto; /* Push to bottom */
}

.arrow-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.service-link-premium:hover {
    color: var(--secondary-color);
}

.service-link-premium:hover .arrow-icon {
    transform: translateX(-5px); /* Arabic RTL pushes left */
}

/* ===========================
  CTA SECTION
=========================== */

.cta-mini {
    background: url('logoBackground.png') center/cover;
    position: relative;
    padding: 60px 0;
    margin: 0 !important;
    border-top: 1px solid var(--border-color);
}

.cta-mini::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(248, 249, 250, 0.95); /* Light overlay */
}

.cta-mini-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border-right: 5px solid var(--primary-color);
}

.cta-text h3 {
    color: var(--primary-color);
    font-size: clamp(20px, 2.5vw, 28px);
    margin-bottom: 10px;
}

.cta-text p {
    color: var(--text-muted);
    margin: 0;
    font-size: 16px;
}

.cta-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.cta-links .cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
}

.cta-btn.whatsapp {
    background-color: #25D366;
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.cta-btn.whatsapp:hover {
    background-color: #1ebd5a;
    transform: translateY(-3px);
}

.cta-btn.call {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(19, 42, 24, 0.3);
}

.cta-btn.call:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.cta-btn.email {
    background-color: transparent;
    color: var(--text-dark);
    border-color: var(--border-color);
}

.cta-btn.email:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ===========================
  FOOTER
=========================== */

.footer-mini {
    background: var(--primary-color);
    padding: 25px 0;
    text-align: center;
    border-top: 3px solid var(--secondary-color);
}

.footer-mini p {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    margin: 0;
    letter-spacing: 0.5px;
}

/* ===========================
  ANIMATIONS
=========================== */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up-sec2 {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-up-sec2.show {
    opacity: 1;
    transform: translateY(0);
}

.mt-auto {
    margin-top: auto;
}

.mt-5 { margin-top: 3rem !important; }

/* ===========================
  RESPONSIVE
=========================== */

@media (max-width: 991px) {
    .sec2 .row {
        flex-direction: column;
    }
    
    .sec2 .row > div {
        width: 100%;
    }
    
    .cta-mini-wrap {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .cta-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 15px;
    }

    .container {
        width: 90%;
    }

    .strip-row {
        flex-direction: column;
        gap: 30px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .cta-links .cta-btn {
        width: 100%;
    }
}

/* تابلت: مرحلة وسط بين الديسكتوب والموبايل عشان ما تصير قفزة مفاجئة */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.services-sec .btn-more {
    color: #283e22;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    white-space: nowrap;
}
.services-sec .btn-more::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: #283e22;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.services-sec .btn-more:hover::after {
    transform: scaleX(1);
}

.serv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.serv-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
    transition: transform .35s ease, box-shadow .35s ease;
}
.serv-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 28px rgba(0,0,0,.12);
}

.serv-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.serv-thumb {
    overflow: hidden;
    aspect-ratio: 365 / 243;
}
.serv-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.serv-card:hover .serv-thumb img {
    transform: scale(1.08);
}

.serv-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
}
.serv-body h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: #222;
}
.serv-arrow {
    font-size: 20px;
    color: #283e22;
    transition: transform .3s ease;
}
.serv-card:hover .serv-arrow {
    transform: translateX(-6px);
}
/* إخفاء الإنجليزي في الوضع العربي */
body.ar-mode .en { display: none; }
body.ar-mode .ar { display: inline-block; }

/* إخفاء العربي وتعديل المحاذاة في الوضع الإنجليزي */
body.en-mode .ar { display: none; }
body.en-mode .en { display: inline-block; }

body.en-mode, 
body.en-mode .card {
    direction: ltr !important;
    text-align: left !important;
}
/* عند إظهار اللغة الإنجليزية، يتغير اتجاه المحتوى والمحاذاة لليسار تلقائيًا */
.en {
    direction: ltr;
    text-align: left;
}

/* تعديل محاذاة الكروت والبطاقات للغة الإنجليزية */
.en-mode .card, 
.en-mode .service-box,
body:has(.en:not([style*="display: none"])) .card {
    text-align: left !important;
    direction: ltr !important;
    align-items: flex-start !important;
}