@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap");

:root {
  --blue: #236aa6;
  --blue-dark: #113a5d;
  --blue-soft: #e9f3fb;
  --gray: #6d7076;
  --ink: #132236;
  --muted: #64758a;
  --line: #dbe8f2;
  --bg: #f7fbff;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(19, 34, 54, 0.12);
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Tajawal", Tahoma, Arial, sans-serif;
  font-size: 18px;
  margin: 0;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

html[lang="ar"] .en-text {
  display: none !important;
}

html[lang="en"] .ar-text {
  display: none !important;
}

.page-loader {
  align-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(35, 106, 166, 0.12), transparent 32%),
    #ffffff;
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 1;
  position: fixed;
  transition: opacity 500ms ease, visibility 500ms ease;
  visibility: visible;
  z-index: 999;
}

body.loaded .page-loader {
  opacity: 0;
  visibility: hidden;
}

.loader-card {
  align-items: center;
  animation: loaderPulse 1200ms ease-in-out infinite;
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.loader-card img {
  height: 210px;
  object-fit: contain;
  width: 240px;
}

.loader-card strong {
  color: var(--blue);
  font-size: 1.55rem;
  font-weight: 900;
}

.loader-line {
  background: var(--blue-soft);
  border-radius: 999px;
  height: 5px;
  overflow: hidden;
  width: 230px;
}

.loader-line span {
  animation: loadingLine 1100ms ease-in-out infinite;
  background: var(--blue);
  border-radius: inherit;
  display: block;
  height: 100%;
  width: 42%;
}

@keyframes loaderPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.02);
  }
}

@keyframes loadingLine {
  0% {
    transform: translateX(160%);
  }
  100% {
    transform: translateX(-260%);
  }
}

html[dir="ltr"] .loader-line span {
  animation-name: loadingLineLtr;
}

@keyframes loadingLineLtr {
  0% {
    transform: translateX(-160%);
  }
  100% {
    transform: translateX(260%);
  }
}

.topbar {
  align-items: center;
  background: var(--blue-dark);
  color: #dcecf8;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.9rem;
  gap: 10px 22px;
  justify-content: space-between;
  padding: 9px clamp(18px, 5vw, 72px);
}

.topbar span,
.topbar a {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(219, 232, 242, 0.95);
  box-shadow: 0 10px 40px rgba(19, 34, 54, 0.06);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 112px;
  padding: 12px clamp(18px, 5vw, 72px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  align-items: center;
  display: flex;
  gap: 16px;
}

.brand-logo {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgba(19, 34, 54, 0.08);
  height: 88px;
  object-fit: contain;
  padding: 6px;
  width: 118px;
}

.brand-text {
  display: grid;
  gap: 5px;
}

.brand-text strong {
  color: var(--blue);
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1.15;
}

.brand-text small {
  color: var(--gray);
  font-size: 0.96rem;
  font-weight: 800;
}

.nav {
  align-items: center;
  display: flex;
  gap: clamp(12px, 2vw, 28px);
}

.nav a {
  color: #40566d;
  font-size: 1rem;
  font-weight: 900;
  padding: 14px 0;
  position: relative;
}

.nav a::after {
  background: var(--blue);
  border-radius: 999px;
  bottom: 7px;
  content: "";
  height: 3px;
  inset-inline-start: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
  width: 100%;
}

.nav a:hover,
.nav a.active {
  color: var(--blue);
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.lang-toggle,
.menu-toggle {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--blue);
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
}

.menu-toggle {
  display: none;
  justify-content: center;
  padding: 0;
  width: 48px;
}

.hero {
  align-items: center;
  display: grid;
  min-height: calc(100vh - 154px);
  overflow: hidden;
  padding: clamp(72px, 11vw, 136px) clamp(18px, 5vw, 72px);
  position: relative;
}

.hero > img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  position: absolute;
  transform: scale(1.02);
  width: 100%;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(247, 251, 255, 0.98) 0%, rgba(247, 251, 255, 0.9) 42%, rgba(247, 251, 255, 0.3) 100%),
    linear-gradient(0deg, rgba(17, 58, 93, 0.12), rgba(17, 58, 93, 0.12));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

html[dir="rtl"] .hero::before {
  background:
    linear-gradient(270deg, rgba(247, 251, 255, 0.98) 0%, rgba(247, 251, 255, 0.9) 42%, rgba(247, 251, 255, 0.3) 100%),
    linear-gradient(0deg, rgba(17, 58, 93, 0.12), rgba(17, 58, 93, 0.12));
}

.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  align-items: center;
  color: var(--blue);
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 900;
  gap: 8px;
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--ink);
  font-size: clamp(2.65rem, 6vw, 5.9rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.04;
  margin: 0;
}

.hero p {
  color: #40566d;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  font-weight: 500;
  line-height: 1.9;
  margin: 24px 0 0;
  max-width: 670px;
}

.hero-buttons,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  align-items: center;
  border-radius: var(--radius);
  display: inline-flex;
  font-size: 1rem;
  font-weight: 900;
  gap: 9px;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--blue);
  box-shadow: 0 18px 42px rgba(35, 106, 166, 0.28);
  color: #ffffff;
}

.btn-primary:hover {
  background: #1d5d93;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  color: var(--blue);
}

.hero-logo-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: inline-flex;
  margin-top: 34px;
  padding: 13px;
}

.hero-logo-card img {
  height: 118px;
  object-fit: contain;
  width: 150px;
}

.section {
  padding: clamp(62px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.section.white {
  background: #ffffff;
}

.section.soft {
  background: linear-gradient(180deg, #f7fbff, #ffffff);
}

.container {
  margin: 0 auto;
  max-width: 1200px;
}

.section-head {
  align-items: flex-start;
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 820px);
  margin-bottom: 34px;
}

.mark {
  color: var(--blue);
  font-size: 1rem;
  font-weight: 900;
  padding-top: 12px;
}

.section-head h2,
.page-hero h1 {
  color: var(--ink);
  font-size: clamp(2.15rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
}

.section-head p,
.page-hero p {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.9;
  margin: 12px 0 0;
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(247, 251, 255, 0.98), rgba(247, 251, 255, 0.82)),
    url("../products/hero-siray-neo.jpg") center/cover no-repeat;
  padding: clamp(70px, 9vw, 118px) clamp(18px, 5vw, 72px);
}

.page-hero .container {
  max-width: 1000px;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.pill,
.filter-btn {
  background: #f3f8fd;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #496278;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 900;
  min-height: 44px;
  padding: 10px 16px;
}

.filter-btn {
  cursor: pointer;
}

.filter-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

.products-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(19, 34, 54, 0.07);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  box-shadow: 0 26px 70px rgba(19, 34, 54, 0.14);
  transform: translateY(-6px);
}

.product-image {
  align-items: center;
  aspect-ratio: 1 / 0.84;
  background: linear-gradient(135deg, #f7fbff, #eaf3fb);
  display: flex;
  justify-content: center;
  padding: 16px;
}

.product-image img {
  height: 100%;
  object-fit: contain;
  transition: transform 240ms ease;
  width: 100%;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-info {
  padding: 18px;
}

.product-info span {
  color: #7a8794;
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.product-info h3 {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 900;
  margin: 0;
}

.split {
  align-items: center;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  width: 100%;
}

.check-list {
  display: grid;
  gap: 12px;
}

.check {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #40566d;
  display: flex;
  font-size: 1.04rem;
  font-weight: 700;
  gap: 12px;
  line-height: 1.75;
  padding: 16px;
}

.check i {
  background: var(--blue);
  border-radius: 50%;
  color: #ffffff;
  display: inline-grid;
  flex: 0 0 auto;
  font-style: normal;
  height: 26px;
  margin-top: 3px;
  place-items: center;
  width: 26px;
}

.services-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  background: #f7fbff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 230px;
  padding: 28px;
  transition: transform 180ms ease, background 180ms ease;
}

.service-card:hover {
  background: #ffffff;
  transform: translateY(-5px);
}

.service-icon {
  align-items: center;
  background: var(--blue);
  border-radius: var(--radius);
  color: #ffffff;
  display: inline-flex;
  font-size: 1.45rem;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.service-card h3 {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 900;
  margin: 20px 0 10px;
}

.service-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
  margin: 0;
}

.contact-band {
  background: var(--blue-dark);
  color: #ffffff;
  padding: clamp(62px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.contact-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
}

.contact-band h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 900;
  margin: 0;
}

.contact-band p {
  color: #d7e7f5;
  font-size: 1.08rem;
  line-height: 1.9;
  max-width: 760px;
}

.contact-tags,
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.contact-tags span,
.contact-info a,
.contact-info span {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: #ffffff;
  display: inline-flex;
  font-size: 0.98rem;
  font-weight: 800;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
}

.contact-form {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  color: var(--ink);
  display: grid;
  gap: 14px;
  padding: 24px;
}

.contact-form label {
  color: #52687d;
  display: grid;
  font-size: 0.98rem;
  font-weight: 900;
  gap: 8px;
}

.contact-form input,
.contact-form textarea {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 48px;
  outline: none;
  padding: 11px 13px;
}

.contact-form textarea {
  min-height: 124px;
  resize: vertical;
}

.contact-form button {
  background: var(--blue);
  border: 0;
  border-radius: var(--radius);
  color: #ffffff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
  min-height: 52px;
}

.site-footer {
  background: #0d253c;
  color: #d7e7f5;
}

.footer-main {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 auto;
  max-width: 1200px;
  padding: 30px clamp(18px, 5vw, 72px);
}

.footer-brand {
  align-items: center;
  display: flex;
  gap: 14px;
}

.footer-brand img {
  background: #ffffff;
  border-radius: var(--radius);
  height: 74px;
  object-fit: contain;
  padding: 6px;
  width: 94px;
}

.footer-brand strong {
  color: #ffffff;
  display: block;
  font-size: 1.16rem;
  font-weight: 900;
}

.footer-brand span {
  color: #b7c9d8;
  display: block;
  font-size: 0.95rem;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.footer-links a {
  color: #d7e7f5;
  font-size: 0.96rem;
  font-weight: 800;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding: 14px clamp(18px, 5vw, 72px) 18px;
}

.footer-bottom p {
  color: #b7c9d8;
  font-size: 0.86rem;
  margin: 0;
}

.footer-bottom a {
  color: #ffffff;
  font-weight: 900;
}

.whatsapp-float {
  align-items: center;
  background: #25d366;
  border-radius: 999px;
  bottom: 22px;
  box-shadow: 0 18px 44px rgba(37, 211, 102, 0.35);
  color: #ffffff;
  display: inline-flex;
  height: 62px;
  justify-content: center;
  position: fixed;
  right: 22px;
  transition: transform 180ms ease, background 180ms ease;
  width: 62px;
  z-index: 70;
}

.whatsapp-float:hover {
  background: #20bd5a;
  transform: translateY(-4px);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    gap: 0;
    inset: 128px 18px auto;
    overflow: hidden;
    padding: 8px;
    position: fixed;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 15px 16px;
    width: 100%;
  }

  .nav a::after {
    display: none;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .contact-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

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

@media (max-width: 650px) {
  body {
    font-size: 17px;
  }

  .topbar {
    display: none;
  }

  .site-header {
    min-height: 102px;
    padding-inline: 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo {
    height: 78px;
    width: 100px;
  }

  .brand-text {
    max-width: 142px;
  }

  .brand-text strong {
    font-size: 1.03rem;
  }

  .brand-text small {
    font-size: 0.86rem;
  }

  .lang-toggle {
    min-height: 42px;
    padding: 0 10px;
  }

  .menu-toggle {
    min-height: 42px;
    width: 44px;
  }

  .nav {
    inset: 112px 14px auto;
  }

  .hero {
    min-height: 720px;
    padding-top: 68px;
  }

  .hero::before,
  html[dir="rtl"] .hero::before {
    background:
      linear-gradient(180deg, rgba(247, 251, 255, 0.98) 0%, rgba(247, 251, 255, 0.92) 58%, rgba(247, 251, 255, 0.3) 100%),
      linear-gradient(0deg, rgba(17, 58, 93, 0.12), rgba(17, 58, 93, 0.12));
  }

  .hero > img {
    object-position: 62% center;
  }

  .hero h1 {
    font-size: 2.85rem;
  }

  .hero-buttons,
  .page-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-logo-card img {
    height: 102px;
    width: 130px;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .mark {
    padding-top: 0;
  }

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

  .loader-card img {
    height: 180px;
    width: 210px;
  }

  .footer-bottom {
    padding-bottom: 88px;
  }

  .whatsapp-float {
    bottom: 16px;
    height: 56px;
    right: 16px;
    width: 56px;
  }
}
