/* =========================================
   PURE PLAST - PROFESSIONAL WEBSITE CSS
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    color: #172033;
    background: #ffffff;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

/* =========================================
   NAVBAR
   ========================================= */

.navbar {
    height: 82px;
    width: 100%;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;

    background: linear-gradient(
        100deg,
        #063b91,
        #0755bd,
        #062b6d
    );

    position: sticky;
    top: 0;
    z-index: 999;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Logo */

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 125px;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Navigation */

.navbar nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar nav ul li a {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.navbar nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.navbar nav ul li a:hover {
    opacity: 0.85;
}

.navbar nav ul li a:hover::after {
    width: 100%;
}

/* =========================================
   HERO
   ========================================= */

.hero {
    min-height: 500px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 90px 20px;

    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            rgba(255, 255, 255, 0.94),
            rgba(248, 250, 253, 0.97)
        ),
        url("images/hero.jpg");

    background-size: cover;
    background-position: center;
}

/* Decorative blue shape */

.hero::before {
    content: "";
    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    background: rgba(7, 84, 184, 0.05);

    top: -250px;
    right: -150px;
}

.hero::after {
    content: "";
    position: absolute;

    width: 350px;
    height: 350px;

    border-radius: 50%;

    background: rgba(7, 84, 184, 0.04);

    bottom: -180px;
    left: -120px;
}

/* Overlay */

.overlay {
    position: absolute;
    inset: 0;
    background: transparent;
}

/* Hero content */

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 950px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.2;

    font-weight: 700;

    color: #111827;

    margin-bottom: 22px;

    letter-spacing: -1px;
}

.hero p {
    max-width: 850px;

    margin: 0 auto 32px;

    font-size: 16px;

    color: #667085;
}

/* =========================================
   BUTTONS
   ========================================= */

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 15px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 155px;

    padding: 13px 25px;

    border-radius: 7px;

    font-size: 14px;
    font-weight: 600;

    transition: all 0.3s ease;
}

.btn-primary {
    background: #0754b8;
    color: #ffffff;

    box-shadow: 0 8px 20px rgba(7, 84, 184, 0.2);
}

.btn-primary:hover {
    background: #043d88;

    transform: translateY(-3px);

    box-shadow: 0 12px 25px rgba(7, 84, 184, 0.28);
}

.btn-secondary {
    color: #0754b8;

    border: 1px solid #0754b8;

    background: transparent;
}

.btn-secondary:hover {
    background: #0754b8;
    color: #ffffff;

    transform: translateY(-3px);
}

/* =========================================
   STATS
   ========================================= */

.stats {
    width: 88%;
    max-width: 1150px;

    margin: -45px auto 80px;

    position: relative;
    z-index: 5;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    background: #ffffff;

    border-radius: 14px;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.09);

    overflow: hidden;
}

.stat-box {
    padding: 30px 20px;

    text-align: center;

    border-right: 1px solid #edf0f5;

    transition: all 0.3s ease;
}

.stat-box:last-child {
    border-right: none;
}

.stat-box:hover {
    background: #f8fbff;
}

.stat-box h2 {
    color: #0754b8;

    font-size: 31px;

    font-weight: 700;

    margin-bottom: 4px;
}

.stat-box span {
    color: #667085;

    font-size: 13px;

    font-weight: 400;
}

/* =========================================
   PRODUCTS
   ========================================= */

.products {
    padding: 20px 7% 90px;

    background: #f7f9fc;
}

.products > h2 {
    text-align: center;

    font-size: 34px;

    color: #111827;

    margin-bottom: 45px;
}

.product-grid {
    max-width: 1200px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 25px;
}

/* Product card */

.card {
    background: #ffffff;

    border-radius: 14px;

    overflow: hidden;

    border: 1px solid #edf0f4;

    box-shadow:
        0 6px 25px rgba(0, 0, 0, 0.06);

    transition: all 0.35s ease;
}

.card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.12);
}

.card img {
    width: 100%;
    height: 210px;

    object-fit: contain;

    display: block;

    padding: 20px;

    background: #ffffff;

    transition: transform 0.35s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card h3 {
    font-size: 18px;

    color: #111827;

    padding: 0 22px;

    margin-top: 5px;

    margin-bottom: 8px;
}

.card p {
    font-size: 13px;

    color: #667085;

    padding: 0 22px 25px;

    line-height: 1.7;
}

/* =========================================
   ABOUT
   ========================================= */

.about {
    padding: 100px 7%;

    background: #ffffff;

    position: relative;
}

.about-content {
    max-width: 900px;

    margin: auto;

    text-align: center;
}

.about-content h2 {
    font-size: 35px;

    color: #111827;

    margin-bottom: 20px;
}

.about-content p {
    max-width: 750px;

    margin: 0 auto 30px;

    color: #667085;

    font-size: 15px;

    line-height: 1.9;
}

/* =========================================
   CONTACT
   ========================================= */

.contact {
    padding: 90px 20px;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            #f3f7fc,
            #ffffff
        );
}

.contact h2 {
    font-size: 34px;

    color: #111827;

    margin-bottom: 12px;
}

.contact p {
    color: #667085;

    font-size: 15px;

    margin-bottom: 30px;
}

/* =========================================
   FOOTER
   ========================================= */

footer {
    background: #062e76;

    color: #ffffff;

    text-align: center;

    padding: 25px 20px;
}

footer p {
    font-size: 13px;

    opacity: 0.85;
}

/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1050px) {

    .navbar {
        padding: 0 4%;
    }

    .navbar nav ul {
        gap: 20px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-box:nth-child(2) {
        border-right: none;
    }

    .stat-box:nth-child(1),
    .stat-box:nth-child(2) {
        border-bottom: 1px solid #edf0f5;
    }
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {

    .navbar {
        height: 70px;

        padding: 0 20px;
    }

    .logo img {
        width: 100px;
    }

    .navbar nav ul {
        gap: 12px;
    }

    .navbar nav ul li a {
        font-size: 11px;
    }

    .hero {
        min-height: 450px;

        padding: 70px 20px;
    }

    .hero h1 {
        font-size: 31px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 210px;
    }

    .stats {
        width: 92%;

        margin-top: -30px;

        grid-template-columns: repeat(2, 1fr);
    }

    .stat-box {
        padding: 23px 10px;
    }

    .stat-box h2 {
        font-size: 25px;
    }

    .stat-box span {
        font-size: 11px;
    }

    .products {
        padding: 60px 20px;
    }

    .products > h2 {
        font-size: 28px;

        margin-bottom: 30px;
    }

    .product-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .product-image,
     .product-card img {
      width: 100%;
      height: 220px;      /* عدّل الارتفاع حسب حجم الـframe */
      object-fit: cover;  /* الصورة تملأ الـframe */
      object-position: center;
      display: block;
    }

    .card img {
        height: 230px;
    }

    .about {
        padding: 70px 20px;
    }

    .about-content h2 {
        font-size: 29px;
    }

    .contact {
        padding: 70px 20px;
    }

    .contact h2 {
        font-size: 28px;
    }
}

/* =========================================
   SMALL MOBILE
   ========================================= */

@media (max-width: 450px) {

    .navbar nav ul {
        gap: 8px;
    }

    .navbar nav ul li a {
        font-size: 9px;
    }

    .logo img {
        width: 85px;
    }

    .hero h1 {
        font-size: 27px;
    }

    .hero p {
        font-size: 13px;
    }
}
/* CUSTOMER ASSISTANT */
.pp-chat-button {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 10px;
  background: #0057a8;
  color: #fff;
  font: 600 14px Poppins, Arial, sans-serif;
  box-shadow: 0 8px 24px rgba(0, 75, 151, .28);
  cursor: pointer;
}

.pp-chat {
  position: fixed;
  right: 28px;
  bottom: 92px;
  z-index: 9999;
  display: block !important;
  width: min(370px, calc(100vw - 32px));
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #d5e2ed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(17, 54, 82, .2);
}

.pp-chat[hidden] {
  display: none !important;
}

.pp-chat-head {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 17px 18px;
  background: linear-gradient(135deg, #004b97, #00386f);
  color: #fff;
}

.pp-chat-body {
  width: 100%;
  max-height: 65vh;
  padding: 20px;
  overflow: auto;
  background: #fff;
}

.pp-chat-actions,
.pp-chat-form {
  display: grid;
  gap: 10px;
}

.pp-chat-actions button,
.pp-chat-form button {
  padding: 12px 13px;
  border: 1px solid #c8d9e8;
  border-radius: 6px;
  background: #fff;
  color: #004b97;
  font: 600 13px Poppins, Arial, sans-serif;
  cursor: pointer;
}

.pp-chat-form button {
  background: #004b97;
  color: #fff;
}