/* ===========================================================================
 * Jazeel — styles for b2b.php
 * نُقلت من كتلة <style> المضمّنة داخل b2b.php إلى ملف خارجي ليستفيد من كاش
 * المتصفح (.htaccess يمنح CSS شهرًا). الرابط يحمل ?v=filemtime فيتغيّر تلقائيًا
 * مع أي تعديل هنا، فلا تُعرض نسخة قديمة أبدًا.
 * المسارات داخل url() جذرية (/...) لأن الملف الخارجي يحلّها من مجلده لا من الصفحة.
 * =========================================================================== */

:root {
        --primary-dark: #3e2b26;
        --accent-gold: #c5a059;

        --bg-body: #fdfcfb;
        --bg-surface: #ffffff;
        --bg-section: #f4f2f0;

        --text-heading: #1a1a1a;
        --text-body: #555555;

        --container-width: 1200px;
        --section-padding: 96px;
        --border-radius: 18px;

        --shadow-sm: 0 6px 14px rgba(0, 0, 0, 0.04);
        --shadow-md: 0 12px 34px rgba(0, 0, 0, 0.06);
        --shadow-hover: 0 22px 50px rgba(62, 43, 38, 0.1);

        --transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
        --header-h: 0px;

        --media-h: clamp(260px, 30vw, 380px);
        --partner-card-h: 110px;

        --safe-bottom: env(safe-area-inset-bottom, 0px);

        --gray: var(--bg-section);
        --light: var(--bg-surface);
      }

      html,
      body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
      }

      * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
      }

      html {
        scroll-behavior: smooth;
        font-size: 16px;
        scroll-padding-top: calc(var(--header-h) + 16px);
      }

      body.b2b-page {
        font-family: "Tajawal", sans-serif;
        background: var(--bg-body);
        color: var(--text-body);
        line-height: 1.85;
      }

      img {
        max-width: 100%;
        display: block;
      }

      a {
        color: inherit;
        text-decoration: none;
      }

      #header-placeholder {
        margin: 0;
        padding: 0;
      }

      main {
        padding-top: var(--header-h);
      }

      h1,
      h2,
      h3,
      h4 {
        color: var(--text-heading);
        font-weight: 800;
        line-height: 1.25;
      }

      .container {
        width: min(92%, var(--container-width));
        margin-inline: auto;
        padding-inline: 16px;
      }

      .section {
        padding: var(--section-padding) 0;
        position: relative;
        max-width: 100%;
        overflow-x: hidden;
      }

      .bg-light {
        background: var(--bg-section);
      }

      .section-header {
        text-align: center;
        margin-bottom: 56px;
      }

      .section-subtitle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: var(--accent-gold);
        font-weight: 800;
        font-size: 0.92rem;
        letter-spacing: 0.6px;
        margin-bottom: 14px;
        background: rgba(197, 160, 89, 0.12);
        padding: 7px 16px;
        border-radius: 999px;
      }

      .section-title {
        font-size: clamp(1.65rem, 2.6vw, 2.55rem);
        color: var(--primary-dark);
        margin-bottom: 14px;
      }

      .section-desc {
        max-width: 800px;
        margin: 0 auto;
        font-size: 1.06rem;
        opacity: 0.9;
      }

      .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px 36px;
        font-size: 1rem;
        font-weight: 800;
        border-radius: 999px;
        transition: var(--transition);
        cursor: pointer;
        border: 1px solid transparent;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
      }

      .btn-primary {
        background: var(--primary-dark);
        color: #fff;
        box-shadow: 0 12px 26px rgba(62, 43, 38, 0.18);
      }

      .btn-primary:hover {
        background: var(--accent-gold);
        transform: translateY(-2px);
        box-shadow: 0 16px 34px rgba(197, 160, 89, 0.24);
      }

      .btn-outline {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.7);
        color: #fff;
        backdrop-filter: blur(6px);
      }

      .btn-outline:hover {
        background: #fff;
        color: var(--primary-dark);
      }

      body.b2b-page .hero {
        min-height: 82vh;
        display: grid;
        place-items: center;
        position: relative;
        color: #fff;
        padding: 40px 0;
        background: linear-gradient(
            135deg,
            rgba(62, 43, 38, 0.92),
            rgba(62, 43, 38, 0.7)
          ),
          url("/assets/img/panner/Artboard 1.png");
        background-size: cover;
        background-position: center;
        background-attachment: scroll !important;
        overflow: hidden;
      }

      body.b2b-page .hero-content {
        max-width: 980px;
        text-align: center;
        width: 100%;
        margin-inline: auto;
        padding-inline: clamp(12px, 4vw, 24px);
      }

      body.b2b-page .hero h1 {
        color: #fff;
        font-size: clamp(2.2rem, 5vw, 4.2rem);
        margin-bottom: 16px;
        max-width: 100%;
        overflow-wrap: anywhere;
      }

      body.b2b-page .hero p {
        font-size: clamp(1.05rem, 1.4vw, 1.25rem);
        opacity: 0.95;
        margin-bottom: 34px;
        font-weight: 400;
        max-width: 100%;
        overflow-wrap: anywhere;
      }

      body.b2b-page .hero-btns {
        display: flex;
        gap: 14px;
        justify-content: center;
        flex-wrap: wrap;
      }

      body.b2b-page .hero .container {
        display: block !important;
        width: min(92%, var(--container-width));
        margin-inline: auto;
        padding-inline: 16px;
        max-width: var(--container-width);
      }

      @media (max-width: 480px) {
        body.b2b-page .hero h1 br {
          display: none;
        }

        body.b2b-page .hero h1 {
          font-size: clamp(1.75rem, 7vw, 2.25rem);
          line-height: 1.25;
        }

        body.b2b-page .hero p {
          font-size: 1rem;
          line-height: 1.8;
        }
      }

      body.b2b-page .site-header {
        overflow-x: clip;
      }

      body.b2b-page .site-header .header-container {
        width: min(1200px, 100% - 2rem);
        margin-inline: auto;
        padding-inline: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-width: 0;
      }

      body.b2b-page .site-header .header-brand {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 10px;
      }

      body.b2b-page .site-header .brand-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 42vw;
      }

      @media (max-width: 992px) {
        body.b2b-page .site-header .header-nav {
          display: none !important;
        }
      }

      .features-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 22px;
      }

      .feature-card {
        background: var(--bg-surface);
        padding: 38px 26px;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-md);
        transition: var(--transition);
        text-align: center;
        border-top: 4px solid transparent;
      }

      .feature-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-hover);
        border-top-color: var(--accent-gold);
      }

      .feature-icon {
        font-size: 2.55rem;
        color: var(--accent-gold);
        margin-bottom: 16px;
        display: inline-block;
      }

      .feature-card h3 {
        margin-bottom: 10px;
        font-size: 1.18rem;
        color: var(--primary-dark);
      }

      .gateway-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 22px;
        margin-bottom: clamp(48px, 6vw, 84px);
      }

      .gateway-card {
        background: var(--bg-surface);
        padding: 34px 28px;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-md);
        transition: var(--transition);
        border-top: 4px solid var(--accent-gold);
        display: flex;
        flex-direction: column;
        gap: 10px;
      }

      .gateway-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-hover);
      }

      .gateway-card h3 {
        font-size: 1.2rem;
        color: var(--primary-dark);
      }

      .gateway-card p {
        flex-grow: 1;
      }

      .gateway-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: var(--accent-gold);
        font-weight: 800;
        margin-top: 6px;
      }

      html[dir="ltr"] .gateway-link i {
        transform: scaleX(-1);
      }

      .product-item {
        display: grid;
        grid-template-columns: 1.05fr 1fr;
        gap: clamp(22px, 4vw, 64px);
        align-items: center;
        margin-bottom: clamp(52px, 7vw, 110px);
      }

      .product-item:last-child {
        margin-bottom: 0;
      }

      .product-item.reverse {
        grid-template-columns: 1fr 1.05fr;
      }

      .product-item.reverse .product-media {
        order: -1;
      }

      html[dir="ltr"] .product-item.reverse .product-media {
        order: -1;
      }

      .product-content h3 {
        font-size: clamp(1.55rem, 2.1vw, 2.05rem);
        margin-bottom: 10px;
        color: var(--primary-dark);
      }

      .product-tag {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: rgba(197, 160, 89, 0.12);
        color: var(--accent-gold);
        padding: 6px 14px;
        border-radius: 999px;
        font-size: 0.86rem;
        font-weight: 800;
        margin-bottom: 12px;
      }

      .product-content p + p {
        margin-top: 12px;
      }

      .product-media {
        overflow: hidden;
        max-width: 100%;
        border-radius: var(--border-radius);
        background: #fff;
        box-shadow: var(--shadow-md);
        border: 1px solid rgba(0, 0, 0, 0.06);
        position: relative;
      }

      .product-media .swiper {
        width: 100%;
        height: var(--media-h);
        overflow: hidden;
      }

      .product-media .swiper-wrapper,
      .product-media .swiper-slide {
        height: 100%;
      }

      .product-media .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1.01);
        transition: transform 0.7s ease;
        will-change: transform;
      }

      .product-item:hover .product-media .swiper-slide-active img {
        transform: scale(1.05);
      }

      .swiper-button-next,
      .swiper-button-prev {
        width: 44px;
        height: 44px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.08);
        transform: none !important;
      }

      .swiper-button-next:after,
      .swiper-button-prev:after {
        font-size: 16px;
        font-weight: 900;
        color: var(--primary-dark);
      }

      html[dir="rtl"] .swiper-button-prev {
        right: 12px !important;
        left: auto !important;
      }

      html[dir="rtl"] .swiper-button-next {
        left: 12px !important;
        right: auto !important;
      }

      html[dir="ltr"] .swiper-button-prev {
        left: 12px !important;
        right: auto !important;
      }

      html[dir="ltr"] .swiper-button-next {
        right: 12px !important;
        left: auto !important;
      }

      .swiper-pagination-bullet {
        opacity: 0.35;
      }

      .swiper-pagination-bullet-active {
        opacity: 1;
      }

      .partners-section {
        background: var(--gray);
        padding: 6rem 2rem;
      }

      .partners-container {
        width: min(92%, var(--container-width));
        margin: 0 auto;
        padding-inline: 16px;
      }

      .section-heading {
        text-align: center;
        margin-bottom: 56px;
      }

      .section-heading > span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: var(--accent-gold);
        font-weight: 800;
        font-size: 0.92rem;
        letter-spacing: 0.6px;
        margin-bottom: 14px;
        background: rgba(197, 160, 89, 0.12);
        padding: 7px 16px;
        border-radius: 999px;
      }

      .section-heading > h2 {
        font-size: clamp(1.65rem, 2.6vw, 2.55rem);
        color: var(--primary-dark);
        margin-bottom: 14px;
      }

      .section-heading > p {
        max-width: 800px;
        margin: 0 auto;
        font-size: 1.06rem;
        opacity: 0.9;
      }

      .partners-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 2rem;
      }

      .partner-item {
        background: var(--light);
        padding: 2rem;
        border-radius: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 120px;
        transition: all 0.3s;
      }

      .partner-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
      }

      .partner-item img {
        max-width: 140px;
        max-height: 80px;
        object-fit: contain;
        filter: grayscale(100%);
        opacity: 0.6;
        transition: all 0.3s;
      }

      .partner-item:hover img {
        filter: grayscale(0%);
        opacity: 1;
      }

      @media (max-width: 1024px) {
        .partners-grid {
          grid-template-columns: repeat(3, 1fr);
        }
      }

      @media (max-width: 768px) {
        .partners-grid {
          grid-template-columns: repeat(2, 1fr);
          gap: 1.5rem;
        }

        .partner-item {
          padding: 1.5rem;
          min-height: 100px;
        }

        .partner-item img {
          max-width: 120px;
          max-height: 70px;
        }
      }

      @media (max-width: 480px) {
        .partners-section {
          padding: 3rem 1rem;
        }

        .partners-grid {
          grid-template-columns: 1fr;
          gap: 1rem;
        }

        .partner-item {
          padding: 1.25rem;
          min-height: 90px;
        }

        .partner-item img {
          max-width: 100px;
          max-height: 60px;
        }
      }

      .contact-container {
        display: grid;
        grid-template-columns: 1fr 1.6fr;
        background: var(--bg-surface);
        border-radius: 22px;
        overflow: hidden;
        box-shadow: var(--shadow-md);
        border: 1px solid rgba(0, 0, 0, 0.06);
      }

      .contact-info-side {
        background: var(--primary-dark);
        color: #fff;
        padding: 52px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 18px;
      }

      .contact-info-item h4 {
        color: var(--accent-gold);
        font-size: 1.12rem;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 10px;
      }

      .contact-info-item a {
        color: #fff;
        transition: 0.25s;
      }

      .contact-info-item a:hover {
        color: var(--accent-gold);
      }

      .contact-form-side {
        padding: 52px;
      }

      .form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
      }

      .form-group.full {
        grid-column: 1 / -1;
      }

      label {
        display: block;
        margin-bottom: 8px;
        font-weight: 800;
        font-size: 0.95rem;
        color: var(--text-heading);
      }

      .form-control {
        width: 100%;
        padding: 14px 14px;
        border: 1px solid #e6e6e6;
        border-radius: 12px;
        background: #fdfdfd;
        font-family: inherit;
        font-size: 16px;
        transition: var(--transition);
      }

      .form-control:focus {
        outline: none;
        border-color: var(--accent-gold);
        background: #fff;
        box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.14);
      }

      .form-status {
        margin-top: 14px;
        padding: 12px 14px;
        border-radius: 12px;
        display: none;
        text-align: center;
        font-weight: 800;
      }

      .form-status[data-status="success"] {
        background: #d4edda;
        color: #155724;
      }

      .form-status[data-status="error"] {
        background: #f8d7da;
        color: #721c24;
      }

      .form-status[data-status="loading"] {
        background: #e2e3e5;
        color: #383d41;
      }

      .whatsapp-float {
        position: fixed;
        bottom: calc(22px + var(--safe-bottom));
        left: 22px;
        z-index: 99999;
        width: 58px;
        height: 58px;
        background: #25d366;
        color: #fff;
        border-radius: 50%;
        display: grid;
        place-items: center;
        font-size: 30px;
        box-shadow: 0 12px 24px rgba(37, 211, 102, 0.35);
        transition: transform 0.2s ease;
      }

      html[dir="ltr"] .whatsapp-float {
        right: 22px;
        left: auto;
      }

      .whatsapp-float:hover {
        transform: scale(1.06);
      }

      .scroll-top-btn {
        position: fixed;
        bottom: calc(22px + var(--safe-bottom));
        left: 92px;
        width: 52px;
        height: 52px;
        background: #fff;
        color: var(--primary-dark);
        border: 1px solid rgba(197, 160, 89, 0.85);
        border-radius: 999px;
        display: grid;
        place-items: center;
        cursor: pointer;
        opacity: 0;
        pointer-events: none;
        transform: translateY(10px);
        transition: 0.22s ease;
        z-index: 99999;
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
      }

      html[dir="ltr"] .scroll-top-btn {
        right: 92px;
        left: auto;
      }

      .scroll-top-btn.is-visible {
        opacity: 1;
        pointer-events: auto;
        transform: none;
      }

      .fade-up {
        opacity: 0;
        transform: translateY(36px);
        transition: opacity 0.75s ease-out, transform 0.75s ease-out;
      }

      .fade-up.visible {
        opacity: 1;
        transform: translateY(0);
      }

      @media (prefers-reduced-motion: reduce) {
        .fade-up {
          opacity: 1;
          transform: none;
          transition: none;
        }
      }

      @media (max-width: 992px) {
        :root {
          --section-padding: 72px;
          --media-h: clamp(240px, 55vw, 340px);
          --partner-card-h: 105px;
        }

        .product-item,
        .product-item.reverse {
          grid-template-columns: 1fr;
          text-align: center;
        }

        .product-item.reverse .product-media {
          order: 0;
        }

        .contact-container {
          grid-template-columns: 1fr;
        }

        .contact-info-side,
        .contact-form-side {
          padding: 30px;
        }
      }

      @media (max-width: 768px) {
        :root {
          --section-padding: 60px;
          --partner-card-h: 95px;
        }

        .hero {
          min-height: 78vh;
        }

        .btn {
          width: 100%;
        }

        .form-grid {
          grid-template-columns: 1fr;
        }

        .scroll-top-btn {
          left: 90px;
        }

        html[dir="ltr"] .scroll-top-btn {
          right: 90px;
          left: auto;
        }
      }

      @media (prefers-reduced-motion: reduce) {
        * {
          animation: none !important;
          transition: none !important;
        }

        .fade-up {
          opacity: 1;
          transform: none;
        }

        html {
          scroll-behavior: auto;
        }
      }
