/* NAHIM — built from the Figma frame "Nahim" (1440px desktop) */
:root {
  --navy: #141E31;
  --navy-card: #1C293D;
  --indigo: #1F274A;
  --cyan: #04D3F3;
  --sky: #10A2E9;
  --muted: #91A2BA;
  --slate: #8E9FB7;
  --icon-gray: #898F9F;
  --warm: #D9D0D1;
  --grad: linear-gradient(to top right, #00B2E3 0%, #2A84F9 100%);
  --font: "Cairo", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  background: var(--grad); color: #fff; font-weight: 700;
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16, 162, 233, .35); filter: brightness(1.05); }
.btn-sm { height: 44px; padding: 0 23px; border-radius: 22px; font-size: 15px; font-weight: 500; gap: 4px; box-shadow: 0 4px 12px rgba(16,162,233,.25); }
.btn-lg { width: 193px; height: 60px; border-radius: 12px; font-size: 18px; }
.btn-lg .ic { width: 20px; height: 20px; }

/* Section headings */
.eyebrow { display: block; color: var(--cyan); font-size: 14px; line-height: 20px; font-weight: 400; }
.sec-head h2 { font-size: 48px; line-height: 62px; font-weight: 700; color: var(--navy); }
.sec-head.center { text-align: center; }
.sec-head.side { max-width: 1314px; margin: 0 auto; padding: 0 16px; text-align: right; }
.sec-head.side .eyebrow { font-size: 12px; line-height: 18px; }
.sec-head.side h2 { font-size: 36px; line-height: 52px; }

/* ===== Header ===== */
.site-header { position: relative; z-index: 50; background: #fff; box-shadow: 0 1px 0 rgba(20,30,49,.04); }
.header-inner { position: relative; max-width: 1440px; height: 79px; margin: 0 auto; }
.logo { position: absolute; right: 9px; top: 7px; }
.logo img { width: 192px; height: 65px; }
.main-nav {
  position: absolute; top: 0; height: 79px; left: 50%; transform: translateX(calc(-50% - 21px));
  display: flex; align-items: center; gap: 36px; white-space: nowrap;
}
.main-nav a { font-size: 16px; line-height: 26px; color: var(--sky); transition: color .2s; }
.main-nav a.active { color: var(--navy); font-size: 20px; }
.main-nav a:hover { color: var(--navy); }
.site-header .btn-sm { position: absolute; left: 12px; top: 17px; }
.menu-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative; height: 650px;
  background:
    linear-gradient(90deg, rgba(10, 22, 42, .93) 0%, rgba(14, 28, 50, .82) 30%, rgba(20, 36, 58, .55) 55%, rgba(20, 36, 58, .18) 80%, rgba(20, 36, 58, .05) 100%),
    url("assets/nahim-hero.webp") center 25% / cover no-repeat;
}
.hero-content { position: absolute; left: max(40px, calc(50% - 680px)); top: 186px; width: 650px; text-align: right; color: #fff; }
.hero h1 { font-size: 40px; line-height: 55px; font-weight: 600; }
.hero p { margin-top: 10px; font-size: 20px; line-height: 36px; font-weight: 400; }
.hero .btn-lg { margin-top: 20px; margin-left: -2px; }

/* ===== Stats ===== */
.stats-wrap { padding: 50px 16px 0; }
.stats {
  max-width: 961px; height: 93px; margin: 0 auto; border-radius: 16px; background: var(--navy);
  display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding-top: 17px;
}
.stat strong { direction: ltr; unicode-bidi: isolate; display: block; color: #fff; font-size: 30px; line-height: 38px; font-weight: 700; }
.stat span { display: block; color: var(--cyan); font-size: 14px; line-height: 22px; }

/* ===== About ===== */
.about { padding: 47px 16px 60px; }
.about .sec-head { padding-right: 50px; }
.about .sec-head h2 { margin-top: 5px; }
.about-lead { max-width: 880px; margin: 15px auto 0; font-size: 20px; line-height: 31px; font-weight: 300; color: var(--navy); }
.about-lead em { font-style: normal; color: var(--cyan); font-weight: 400; }
.about-cards { max-width: 961px; margin: 47px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.about-card {
  height: 266px; padding: 37px 34px 0; border: 1px solid #5B697A; border-radius: 16px; background: #fff; text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .14); transition: transform .25s, box-shadow .25s;
}
.about-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(0,0,0,.16); }
.circle-ic { width: 63px; height: 63px; margin: 0 auto; border-radius: 50%; background: var(--icon-gray); border: 2px solid #0FCDEC; color: #fff; display: grid; place-items: center; }
.circle-ic .ic { width: 28px; height: 28px; stroke-width: 1.8; }
.about-card h3 { margin-top: 13px; font-size: 20px; line-height: 31px; font-weight: 700; color: var(--cyan); }
.about-card p { margin-top: 11px; font-size: 16px; line-height: 25px; color: var(--navy); }

/* ===== Services ===== */
.services { background: var(--navy); padding: 47px 16px 59px; }
.services .sec-head { transform: translateX(7px); }
.services .sec-head h2 { margin-top: 6px; color: var(--warm); }
.services .sec-head p { max-width: 630px; margin: 16px auto 0; font-size: 20px; line-height: 28px; font-weight: 300; color: var(--warm); }
.service-cards { max-width: 1349px; margin: 52px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 35px; }
.service-card {
  height: 230px; padding: 36px 36px 0; border-radius: 16px; background: var(--navy-card); text-align: right; color: #fff;
  transition: transform .25s, background .25s;
}
.service-card:hover { transform: translateY(-4px); background: #22324a; }
.sq-ic { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.sq-ic.grad { background: var(--grad); }
.sq-ic .ic { width: 26px; height: 26px; stroke-width: 1.8; }
.service-card h3 { margin-top: 13px; font-size: 20px; line-height: 31px; font-weight: 700; }
.service-card p { margin-top: 12px; font-size: 14px; line-height: 23px; font-weight: 400; }

/* ===== Projects ===== */
.projects { padding: 44px 16px 111px; }
.projects-head { max-width: 1303px; margin: 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.projects-head .eyebrow { font-size: 12px; line-height: 20px; color: #08D4F3; }
.projects-head h2 { font-size: 36px; line-height: 52px; font-weight: 700; }
.projects-head p { margin-top: 9px; font-size: 16px; line-height: 24px; font-weight: 300; color: var(--muted); }
.btn-outline {
  flex: none; margin-top: 30px; width: 206px; height: 50px; border-radius: 25px; border: 1px solid #10B4EC;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px; font-size: 16px; font-weight: 700; color: var(--navy);
  transition: background .2s, color .2s;
}
.btn-outline .ic { width: 20px; height: 20px; }
.btn-outline:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.pc-slider { position: relative; max-width: 1223px; margin: 83px auto 0; }
.product-cards {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 99px) / 4); gap: 33px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 0 26px; margin: -6px 0 -26px;
}
.product-cards::-webkit-scrollbar { display: none; }
.product-card { scroll-snap-align: start; }
.pc-nav {
  position: absolute; top: 176px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1px solid #6A6A6A; color: var(--indigo); display: grid; place-items: center;
  transition: background .2s, color .2s, opacity .2s;
}
.pc-nav .ic { width: 20px; height: 20px; }
.pc-nav:hover:not(:disabled) { background: var(--indigo); color: #fff; }
.pc-nav:disabled { opacity: .3; cursor: default; }
.pc-prev { right: -66px; }
.pc-prev .ic { transform: scaleX(-1); }
.pc-next { left: -66px; }
.pc-cur { font-size: 13px; color: #636363; }
.product-card { height: 396px; border: 1px solid #6A6A6A; border-radius: 16px; overflow: hidden; background: #fff; transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(31,39,74,.15); }
.pc-img { position: relative; height: 242px; overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.pc-fav { position: absolute; top: 9px; left: 9px; width: 40px; height: 40px; border-radius: 50%; background: var(--indigo); color: #fff; display: grid; place-items: center; }
.pc-fav .ic { width: 22px; height: 22px; stroke-width: 1.8; }
.pc-fav:hover, .pc-fav.on { color: #ff5b7f; }
.pc-fav.on .ic { fill: currentColor; }
.pc-body { padding: 13px 23px 0 22px; font-family: "Noto Sans Arabic", var(--font); }
.pc-row { display: flex; justify-content: space-between; align-items: flex-start; }
.pc-body h3 { font-size: 17px; line-height: 26px; font-weight: 600; color: var(--indigo); unicode-bidi: plaintext; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-meta { align-items: center; margin-top: 2px; }
.pc-sub { display: block; font-size: 14px; line-height: 20px; color: #636363; }
.pc-stars { display: flex; gap: 0; direction: ltr; }
.pc-stars svg { width: 17px; height: 17px; fill: #636363; }
.pc-bottom { align-items: center; margin-top: 23px; }
.pc-price { display: flex; align-items: baseline; gap: 4px; direction: rtl; }
.pc-price strong { font-size: 26px; line-height: 34px; font-weight: 600; color: var(--indigo); }
.pc-price del { font-size: 12px; color: #555; }
.pc-cart { width: 46px; height: 46px; border-radius: 8px; background: var(--indigo); color: #fff; display: grid; place-items: center; transition: background .2s; }
.pc-cart .ic { width: 22px; height: 22px; stroke-width: 1.6; }
.pc-cart:hover { background: var(--sky); }

/* ===== CTA ===== */
.cta { position: relative; height: 650px; overflow: hidden; isolation: isolate; background: #0B192C; }
/* the photo is mirrored in the design */
.cta::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("assets/nahim-cta.webp") center 30% / cover no-repeat; transform: scaleX(-1); }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgba(8, 20, 42, .94) 0%, rgba(10, 24, 46, .82) 30%, rgba(14, 30, 52, .45) 60%, rgba(14, 30, 52, .15) 100%); }
.cta-content { position: absolute; right: max(50px, calc(50% - 670px)); top: 185px; width: 640px; text-align: right; color: #fff; }
.cta h2 { font-size: 40px; line-height: 54px; font-weight: 600; }
.cta p { margin-top: 13px; font-size: 20px; line-height: 35px; }
.cta .btn-lg { margin-top: 20px; }

/* ===== Why ===== */
.why { padding: 65px 16px 0; }
.why .sec-head { transform: translateX(4px); }
.why .sec-head .eyebrow { line-height: 20px; }
.why .sec-head h2 { margin-top: 9px; }
.why-cards { max-width: 1286px; margin: 31px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.why-card {
  height: 215px; padding: 25px 8px 0; border: 1px solid #3E4757; border-radius: 18px; background: #fff; text-align: center;
  box-shadow: 0 10px 18px rgba(0, 0, 0, .14); transition: transform .25s, box-shadow .25s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: 0 16px 28px rgba(0,0,0,.16); }
.sq-ic.gray { width: 63px; height: 63px; margin: 0 auto; background: var(--icon-gray); border: 1.5px solid #3D8BEF; border-radius: 12px; }
.sq-ic.gray .ic { width: 28px; height: 28px; }
.why-card h3 { margin-top: 12px; font-size: 20px; line-height: 31px; font-weight: 700; color: var(--cyan); }
.why-card p { margin-top: 12px; font-size: 14px; line-height: 23px; color: var(--navy); }
.why-card.small { padding-top: 31px; }
.why-card.small .sq-ic { width: 58px; height: 58px; }
.why-card.small h3 { margin-top: 10px; font-size: 19px; }
.why-card.small p { margin-top: 9px; font-size: 13px; line-height: 21px; }

/* ===== FAQ ===== */
.faq { padding: 119px 16px 0; background: linear-gradient(180deg, #fff 0, #F9FAFC 110px, #F9FAFC calc(100% - 210px), #fff calc(100% - 40px)); padding-bottom: 149px; }
.faq .sec-head { max-width: 1314px; }
.faq-cols { max-width: 1274px; margin: 66px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 39px; align-items: start; }
.faq-col { display: flex; flex-direction: column; gap: 12.5px; }
.faq-item { border: 1px solid #C4C9D0; border-radius: 12px; background: #FCFCFE; transition: border-color .2s; }
.faq-item:hover { border-color: #9AA6B6; }
.faq-item summary {
  list-style: none; cursor: pointer; height: 54px; padding: 0 29px 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 14px; font-weight: 600; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic { width: 16px; height: 16px; color: #15D6F3; transition: transform .25s; }
.faq-item[open] summary { height: 61px; border-bottom: 1px solid #A6ADB8; }
.faq-item[open] summary .ic { transform: rotate(180deg); }
.faq-item p { padding: 2px 20px 10px 32px; font-size: 13px; line-height: 22px; font-weight: 300; color: #90A1B9; }

/* ===== Testimonials ===== */
.testimonials { padding: 0 16px 119px; }
.t-cards { max-width: 1059px; margin: 83px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 33px; transform: translateX(21px); }
.t-card { position: relative; height: 274px; padding: 31px 32px 0; border: 1px solid var(--navy); border-radius: 16px; background: #fff; text-align: center; }
.t-quote { position: absolute; top: 2px; left: 0; width: 26px; height: 26px; fill: none; stroke: #DDF0E6; stroke-width: 1.5; transform: scaleX(-1); }
.t-stars { display: flex; gap: 3px; justify-content: flex-start; }
.t-stars svg { width: 16px; height: 16px; fill: var(--cyan); }
.t-card p { margin: 18px -16px 0; min-height: 90px; font-size: 15px; line-height: 30px; font-weight: 400; color: #5A5A5A; }
.t-person { margin-top: 26px; padding-top: 11px; border-top: 1px solid #F3EEE9; display: flex; align-items: center; gap: 6px; text-align: right; }
.t-avatar { width: 40px; height: 40px; border-radius: 50%; background: #F2FAF4; color: var(--cyan); display: grid; place-items: center; font-size: 18px; font-weight: 700; flex: none; }
.t-person strong { display: block; font-size: 15px; line-height: 20px; font-weight: 700; color: var(--navy); }
.t-person small { display: block; font-size: 12px; line-height: 18px; color: #AFAFAF; font-weight: 300; }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #fff; padding: 42px 16px 0; height: 435px; }
.footer-inner { max-width: 1189px; margin: 0 auto; display: grid; grid-template-columns: 311px 305px 320px 1fr; }
.f-col { padding-right: 4px; display: flex; flex-direction: column; align-items: flex-start; }
.f-col h4 { font-size: 20px; line-height: 30px; font-weight: 600; }
.f-brand h4 { font-size: 24px; line-height: 32px; letter-spacing: .5px; }
.f-brand p { margin-top: 6px; font-size: 16px; line-height: 24px; font-weight: 300; color: var(--slate); max-width: 284px; }
.f-col a { margin-top: 12px; font-size: 16px; line-height: 26px; color: #fff; transition: color .2s; }
.f-col h4 + a { margin-top: 23px; }
.f-col a:hover { color: var(--cyan); }
.f-follow h4 { margin-top: 10px; }
.socials { display: flex; gap: 25px; margin-top: 39px; }
.socials a { margin: 0; width: 54px; height: 54px; border-radius: 50%; background: var(--grad); border: 1.5px solid #3C6D9B; display: grid; place-items: center; color: #fff; transition: transform .2s; }
.socials a:hover { transform: translateY(-3px); color: #fff; }
.socials .ic { width: 26px; height: 26px; stroke-width: 1.8; }
.footer-bottom {
  max-width: 1189px; margin: 49px auto 0; border-top: 1px solid #B5B8BE; padding: 26px 57px 0 0;
  display: flex; justify-content: space-between; align-items: center; font-size: 14px;
}
.footer-bottom .copy { color: #63748E; direction: ltr; unicode-bidi: isolate; }
.legal { display: flex; gap: 24px; }
.legal a { color: #fff; font-weight: 300; }
.legal a:hover { color: var(--cyan); }

/* ===== Responsive ===== */
@media (max-width: 1400px) {
  .pc-prev { right: -12px; }
  .pc-next { left: -12px; }
}
@media (max-width: 1380px) {
  .main-nav { gap: 24px; }
  .service-cards { gap: 20px; }
  .service-card { padding: 30px 26px 0; height: auto; min-height: 230px; padding-bottom: 26px; }
  .why-cards { gap: 20px; }
  .why-card, .about-card { height: auto; min-height: 215px; padding-bottom: 26px; }
  .about-card { min-height: 266px; }
  .t-cards { transform: none; }
}
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; position: absolute; left: 160px; top: 20px; width: 40px; height: 40px; }
  .menu-toggle span { display: block; height: 2px; width: 24px; margin: 0 auto; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .site-header.open .main-nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0; transform: none;
    left: 0; right: 0; top: 79px; height: auto; background: #fff; padding: 8px 24px 16px; box-shadow: 0 12px 24px rgba(20,30,49,.12);
  }
  .site-header.open .main-nav a { padding: 12px 0; border-bottom: 1px solid #eef1f5; }
  .site-header.open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.open .menu-toggle span:nth-child(2) { opacity: 0; }
  .site-header.open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .service-cards, .why-cards { grid-template-columns: repeat(2, 1fr); }
  .product-cards { grid-auto-columns: calc((100% - 33px) / 2); }
  .t-cards { grid-template-columns: 1fr 1fr; }
  .hero-content { left: auto; right: 40px; width: min(646px, calc(100% - 80px)); }
  .site-footer { height: auto; padding-bottom: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .about .sec-head, .services .sec-head, .why .sec-head { padding-right: 0; transform: none; }
}
@media (max-width: 760px) {
  .header-inner { height: 68px; }
  .logo { right: 4px; top: 4px; }
  .logo img { width: 175px; height: 59px; }
  .site-header .btn-sm { top: 12px; left: 12px; height: 40px; padding: 0 14px; font-size: 14px; }
  .menu-toggle { left: 128px; top: 14px; }
  .site-header.open .main-nav { top: 68px; }
  .hero { height: auto; min-height: 560px; display: flex; align-items: center; padding: 64px 0;
    background: linear-gradient(180deg, rgba(10,22,42,.55), rgba(10,22,42,.85)), url("assets/nahim-hero.webp") 70% center / cover no-repeat; }
  .hero-content { position: static; width: auto; padding: 0 20px; }
  .hero h1 { font-size: 32px; line-height: 44px; }
  .hero p { font-size: 17px; line-height: 30px; }
  .stats { height: auto; padding: 18px 0; }
  .stat strong { font-size: 26px; line-height: 34px; }
  .sec-head h2 { font-size: 34px; line-height: 46px; }
  .sec-head.side h2, .projects-head h2 { font-size: 32px; line-height: 44px; }
  .about-lead, .services .sec-head p { font-size: 17px; line-height: 29px; }
  .about-cards, .service-cards, .why-cards, .t-cards, .faq-cols { grid-template-columns: 1fr; gap: 20px; }
  .product-cards { grid-auto-columns: 84%; gap: 16px; }
  .pc-nav { top: 150px; width: 38px; height: 38px; }
  .about-card, .why-card, .t-card { height: auto; min-height: 0; padding-bottom: 28px; }
  .product-card { height: auto; padding-bottom: 22px; }
  .projects-head { flex-direction: column; }
  .btn-outline { margin-top: 0; }
  .pc-slider, .t-cards { margin-top: 40px; }
  .cta { height: auto; padding: 80px 20px; }
  .cta::before { background-position: 70% center; }
  .cta::after { background: linear-gradient(180deg, rgba(8,20,42,.6), rgba(8,20,42,.9)); }
  .cta-content { position: static; width: auto; }
  .cta h2 { font-size: 30px; line-height: 42px; }
  .cta h2 br, .hero h1 br, .t-card p br { display: none; }
  .faq { padding-top: 80px; padding-bottom: 80px; }
  .faq-cols { margin-top: 36px; }
  .faq-item summary { height: auto; min-height: 54px; padding: 12px 18px; }
  .faq-item[open] summary { height: auto; }
  .faq-item p { padding: 10px 18px 14px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column-reverse; gap: 12px; padding: 20px 0 0; text-align: center; }
}
