/* إعدادات عامة */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #f8fafb;
    color: #222;
    line-height: 1.7;
}

/* ألوان مستوحاة من الشعار */
:root {
    --oslin-green: #8dc63f;
    --oslin-green-deep: #4f7c1f;
    --oslin-pink: #e91e63;
    --oslin-pink-soft: #f7c0d6;
    --oslin-bg-light: #ffffff;
    --oslin-bg-alt: #f3f6fb;
    --shadow-soft: 0 18px 35px rgba(0, 0, 0, 0.07);
    --radius-lg: 22px;
}

.page-wrapper {
    min-height: 100vh;
}

/* الحاوية */
.container {
    width: min(1200px, 100% - 3rem);
    margin-inline: auto;
}

/* الهيدر */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
    background: linear-gradient(to left, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--oslin-green-deep);
}

.logo-subtitle {
    font-size: 0.78rem;
    color: #555;
}

/* القائمة */
.main-nav {
    position: relative;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-list a {
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 0.2rem;
    transition: color 0.2s ease;
}

.nav-list a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--oslin-pink), var(--oslin-green));
    transition: width 0.25s ease;
}

.nav-list a:hover,
.nav-list a:focus {
    color: var(--oslin-pink);
}

.nav-list a:hover::after,
.nav-list a:focus::after {
    width: 100%;
}

/* زر القائمة للموبايل */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: none;
    background: rgba(233, 30, 99, 0.06);
    cursor: pointer;
}

.nav-toggle span {
    height: 2px;
    width: 100%;
    background-color: var(--oslin-green-deep);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* الأقسام */
.section {
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
}

.section-alt {
    background-color: var(--oslin-bg-alt);
}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--oslin-green-deep);
}

.section-layout-split {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.7fr);
    gap: 2.5rem;
    align-items: center;
}

.section-layout-split.reverse {
    grid-template-columns: minmax(0, 2.7fr) minmax(0, 3fr);
}

/* أنيميشن ظهور الأقسام */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* الهيرو */
.hero-section {
    min-height: 88vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 5% 10%, #fff7fb 0, #fdfbff 32%, #f3f9ff 80%);
    position: relative;
}

.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.55;
    z-index: -2;
}

.hero-bg-shape-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, var(--oslin-pink) 0, transparent 65%);
    top: -80px;
    left: -40px;
}

.hero-bg-shape-2 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, var(--oslin-green) 0, transparent 70%);
    bottom: -100px;
    right: 0;
}

/* ظل شعار خفيف في الخلفية (اختياري: ضع صورة نصف شفافة لو أحببت) */
.hero-logo-watermark {
    position: absolute;
    inset: 10% 15%;
    background: radial-gradient(circle at 50% 50%, rgba(141,198,63,0.12) 0, transparent 65%);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.6fr);
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(1.8rem, 2.05rem + 0.5vw, 2.4rem);
    margin-bottom: 1rem;
    color: var(--oslin-green-deep);
}

.hero-text p {
    color: #444;
    font-size: 0.98rem;
}

.hero-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--oslin-pink), var(--oslin-green));
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 45px rgba(233, 30, 99, 0.25);
}

.btn-ghost {
    border-color: rgba(233, 30, 99, 0.3);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--oslin-green-deep);
}

.btn-ghost:hover {
    background-color: #fff;
    border-color: rgba(233, 30, 99, 0.6);
    transform: translateY(-1px);
}

.hero-tags {
    margin-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    background: rgba(141, 198, 63, 0.09);
    color: var(--oslin-green-deep);
    border: 1px solid rgba(141, 198, 63, 0.3);
}

/* صور الهيرو */
.hero-media {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.hero-card-main {
    width: 100%;
    max-width: 360px;
}

.hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card-floating {
    position: absolute;
    bottom: -35px;
    left: 10px;
    width: 180px;
    animation: float 4.5s ease-in-out infinite;
}

.hero-secondary-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* مؤشر التمرير */
.scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #555;
    opacity: 0.8;
}

.scroll-indicator i {
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* نصوص الأقسام */
.section-text p + p {
    margin-top: 0.75rem;
}

/* بطاقات */
.section-media-cards {
    display: grid;
    gap: 1.5rem;
}

.info-card {
    background-color: #fff;
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.5rem;
    box-shadow: var(--shadow-soft);
    border-inline-start: 4px solid var(--oslin-green);
    position: relative;
    overflow: hidden;
}

.info-card::after {
    content: "";
    position: absolute;
    inset-inline-end: -40px;
    bottom: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233,30,99,0.16) 0, transparent 65%);
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    color: var(--oslin-green-deep);
}

.info-card.compact {
    border-inline-start-color: var(--oslin-pink);
}

/* القيم */
.section-pattern {
    background-image:
        radial-gradient(circle at 10% 0, rgba(233,30,99,0.08) 0, transparent 55%),
        radial-gradient(circle at 90% 100%, rgba(141,198,63,0.08) 0, transparent 55%);
}

.values-grid {
    display: grid;
    gap: 1.3rem;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin-top: 1.2rem;
}

.value-item {
    background-color: #fff;
    border-radius: 18px;
    padding: 1.2rem 1.2rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.value-item::before {
    content: "";
    position: absolute;
    inset-inline-start: -20px;
    top: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--oslin-pink), var(--oslin-green));
    opacity: 0.95;
}

.value-item h3 {
    margin-bottom: 0.4rem;
    color: var(--oslin-green-deep);
    font-size: 1rem;
}

/* مجالات العمل */
.section-fields {
    background: linear-gradient(135deg, #ffffff 0, #f6f9ff 55%, #fff7fb 100%);
}

.section-fields .section-text p {
    max-width: 630px;
}

.styled-list {
    list-style: none;
    margin-top: 0.75rem;
}

.styled-list li {
    position: relative;
    padding-inline-start: 1.1rem;
    margin-bottom: 0.4rem;
    font-size: 0.94rem;
}

.styled-list li::before {
    content: "•";
    position: absolute;
    inset-inline-start: 0;
    color: var(--oslin-pink);
    font-size: 1.2rem;
    line-height: 1;
}

.styled-list.small li {
    font-size: 0.9rem;
}

.note {
    margin-top: 0.9rem;
    font-size: 0.9rem;
    color: #555;
}

.section-media {
    display: grid;
    gap: 1rem;
}

.pill-card {
    background-color: rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    padding: 0.7rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(233, 30, 99, 0.12);
}

.pill-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--oslin-pink), var(--oslin-green));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* الجودة */
.section-quality .info-card + .info-card {
    margin-top: 1.2rem;
}

/* معرض المنتجات */
.section-products {
    background-color: #ffffff;
}

.section-products h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.products-group-title {
    margin-top: 1.8rem;
    margin-bottom: 0.9rem;
    font-size: 1.1rem;
    color: var(--oslin-green-deep);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.3rem;
}
.product-card {
    background-color: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transform: translateY(0) scale(1);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border 0.22s ease;
    border: 1px solid rgba(233, 30, 99, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-card img {
    width: 100%;
    height: auto;              /* المحافظة على النسبة الأصلية */
    max-height: 280px;         /* يمكنك زيادة/تقليل الرقم حسب ما يعجبك */
    object-fit: contain;       /* بدون قص للصورة */
    padding: 0.75rem 0.75rem 0;
    background-color: #ffffff;
    display: block;
}


.product-card figcaption {
    padding: 0.8rem 0.95rem 1rem;
    font-size: 0.9rem;
    color: #333;
}

.product-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.16);
    border-color: rgba(233, 30, 99, 0.3);
}
/* زر تصفح المنتجات تحت قسم المنتجات */
.products-cta {
  margin-top: 2.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-browse-products {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: 0.2px;

  /* ألوان قريبة من الشعار */
  background: linear-gradient(135deg,
    var(--brand-green, #7bc043),
    var(--brand-pink, #e91e63)
  );
  color: #fff;

  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.btn-browse-products:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.16);
  filter: saturate(1.05);
}

.btn-browse-products:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.btn-browse-products .btn-arrow {
  font-size: 1.2rem;
  transition: transform .2s ease;
}

.btn-browse-products:hover .btn-arrow {
  transform: translateX(4px);
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 576px) {
  .btn-browse-products {
    width: 90%;
    justify-content: center;
    font-size: 1rem;
    padding: 0.85rem 1.2rem;
  }
}

/* تواصل معنا */
.section-contact {
    background: linear-gradient(135deg, #f7f9ff 0, #ffffff 40%, #fff5fa 100%);
}

.contact-list {
    list-style: none;
    margin-top: 1.1rem;
    display: grid;
    gap: 0.6rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.95rem;
}

.contact-list .icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(233, 30, 99, 0.07);
    color: var(--oslin-green-deep);
}

.contact-media {
    display: grid;
    gap: 1rem;
}

.contact-card {
    background-color: #fff;
    border-radius: var(--radius-lg);
    padding: 1.3rem 1.4rem;
    box-shadow: var(--shadow-soft);
    border-inline-start: 4px solid var(--oslin-pink);
    font-size: 0.92rem;
}

.contact-card h3 {
    margin-bottom: 0.5rem;
}

.contact-highlight {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.3rem;
    background: linear-gradient(135deg, var(--oslin-green-deep), var(--oslin-pink));
    color: #fff;
    overflow: hidden;
    font-size: 0.95rem;
    box-shadow: var(--shadow-soft);
}

.contact-highlight .bubble {
    position: absolute;
    inset-inline-end: -40px;
    top: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0, transparent 70%);
}

/* الفوتر */
.main-footer {
    background-color: #1b1d23;
    color: #f3f4f6;
    padding: 1rem 0;
    font-size: 0.85rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    text-align: center;
}

.footer-sep {
    width: 1px;
    height: 18px;
    background-color: rgba(243, 244, 246, 0.7);
}

/* زر الرجوع لأعلى */
.back-to-top {
    position: fixed;
    inset-inline-start: 1.1rem;
    bottom: 1.2rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--oslin-pink), var(--oslin-green));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 120;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
/* منع اللون الأزرق الافتراضي للروابط */
a, a:visited, a:active {
  color: var(--primary, #6aa84f); /* أخضر قريب للشعار */
  text-decoration: none;
}

/* تأثير بسيط عند المرور */
a:hover {
  color: var(--accent, #e61e8c); /* وردي قريب للشعار */
  text-decoration: underline;
}
/* استجابة الشاشات الصغيرة */
@media (max-width: 960px) {
    .hero-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-media {
        order: -1;
        margin-bottom: 1.5rem;
    }

    .section-layout-split,
    .section-layout-split.reverse {
        grid-template-columns: minmax(0, 1fr);
    }

    .header-inner {
        padding-inline: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-list {
        position: absolute;
        inset-inline-start: 0;
        top: 120%;
        padding: 0.8rem 1rem;
        background-color: #ffffff;
        border-radius: 18px;
        box-shadow: var(--shadow-soft);
        flex-direction: column;
        gap: 0.75rem;
        min-width: 210px;
        transform-origin: top;
        transform: scaleY(0.8);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease, transform 0.18s ease;
    }

    .nav-list.open {
        opacity: 1;
        pointer-events: auto;
        transform: scaleY(1);
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 3.2rem 0;
    }

    .hero-section {
        min-height: 100vh;
    }

    .logo-subtitle {
        display: none;
    }

    .products-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .back-to-top {
        inset-inline-start: 0.8rem;
        bottom: 0.9rem;
        width: 38px;
        height: 38px;
    }
}
