:root {
  --color-navy: #123d78;
  --color-navy-dark: #0a2954;
  --color-red: #d62828;
  --color-red-dark: #b11f1f;
  --color-ice: #dbe9f5;
  --color-ice-strong: #c7dced;
  --color-cream: #f6f2ea;
  --color-white: #ffffff;
  --color-text: #1b2d45;
  --color-text-soft: #5f6f82;
  --color-border: #d9e2ea;
  --color-success: #1ea952;
  --shadow-soft: 0 26px 60px rgba(18, 61, 120, 0.14);
  --shadow-card: 0 14px 32px rgba(18, 61, 120, 0.08);
  --radius-xl: 38px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --container-width: min(1200px, calc(100% - 32px));
  --header-height: 96px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Tajawal", sans-serif;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(214, 40, 40, 0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(18, 61, 120, 0.09), transparent 22%),
    linear-gradient(180deg, #fbfcfd 0%, #f4f7fa 46%, #ffffff 100%);
}

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

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

svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: var(--container-width);
  margin-inline: auto;
}

.topbar {
  background: linear-gradient(90deg, var(--color-navy-dark), var(--color-navy));
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.topbar__inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

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

.topbar__icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  transition: transform 0.2s ease, background 0.2s ease;
}

.topbar__icon:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.22);
}

.topbar__icon svg {
  stroke-width: 1.9;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 28px rgba(18, 61, 120, 0.08);
  border-color: rgba(18, 61, 120, 0.08);
}

.header__inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand__text strong {
  font-size: 1.2rem;
  color: var(--color-navy);
}

.brand__text span {
  font-size: 0.92rem;
  color: var(--color-text-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 800;
}

.site-nav a {
  position: relative;
  padding-block: 8px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-red), var(--color-navy));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

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

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  width: 48px;
  height: 48px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 6px auto;
  border-radius: 999px;
  background: var(--color-navy);
}

section {
  padding: 84px 0;
}

.hero {
  padding: 46px 0 72px;
}

.hero__grid,
.why-nesma__grid,
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.9rem);
  line-height: 1.03;
  color: var(--color-navy);
}

.hero h2 {
  margin: 14px 0 18px;
  font-size: clamp(1.35rem, 2.6vw, 2.25rem);
  color: var(--color-text);
}

.hero p,
.section-heading p,
.catalog-group__head p,
.reason-item p,
.trust-panel p,
.warranty__box p,
.contact-list {
  color: var(--color-text-soft);
  line-height: 1.9;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn--primary {
  background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
  color: var(--color-white);
  box-shadow: 0 14px 28px rgba(214, 40, 40, 0.2);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-navy);
  border: 1px solid rgba(18, 61, 120, 0.12);
  box-shadow: var(--shadow-card);
}

.btn--product,
.btn--whatsapp {
  width: 100%;
  background: var(--color-navy);
  color: var(--color-white);
}

.hero__visual {
  position: relative;
}

.hero-frame {
  position: relative;
  min-height: 560px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 30% 20%, rgba(214, 40, 40, 0.08), transparent 22%),
    radial-gradient(circle at 80% 20%, rgba(18, 61, 120, 0.1), transparent 26%),
    linear-gradient(180deg, #f7f8f8, #eef3f7);
  border: 1px solid rgba(18, 61, 120, 0.08);
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
  padding: 36px;
  overflow: hidden;
}

.hero-badge {
  position: absolute;
  top: 22px;
  left: 22px;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  z-index: 1;
}

.product-shot {
  width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 22px 22px rgba(18, 36, 61, 0.12));
}

.product-shot--hero {
  max-width: 560px;
  max-height: 500px;
}

.section-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3vw, 3rem);
  color: var(--color-navy);
}

.products {
  background:
    linear-gradient(180deg, rgba(219, 233, 245, 0.58), rgba(255, 255, 255, 0)),
    transparent;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading strong {
  color: var(--color-red);
}

.catalog-group + .catalog-group {
  margin-top: 54px;
}

.catalog-group__head {
  margin-bottom: 20px;
}

.catalog-group__head h3 {
  margin: 0 0 8px;
  color: var(--color-navy);
  font-size: 1.7rem;
}

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

.product-card,
.reason-item,
.trust-panel,
.contact-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.product-card--wide {
  display: grid;
  grid-template-columns: 240px 1fr;
  overflow: hidden;
  min-height: 250px;
}

.product-card--featured {
  grid-column: span 2;
  grid-template-columns: 320px 1fr;
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.9), rgba(244, 247, 250, 0.98)),
    linear-gradient(180deg, #f6f8fa, #eef2f6);
}

.product-media::before {
  content: none;
}

.product-media--illustration .product-shot {
  mix-blend-mode: normal;
  max-width: 92%;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.product-card__body h3 {
  margin: 0 0 10px;
  color: var(--color-navy);
  font-size: 1.32rem;
}

.product-card__body p {
  margin: 0;
  color: var(--color-text-soft);
  line-height: 1.85;
}

.product-meta {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.product-meta strong {
  color: var(--color-red);
  font-size: 1.15rem;
}

.why-nesma__content .section-heading {
  margin-bottom: 18px;
}

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

.reason-item {
  padding: 20px;
}

.reason-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--color-navy);
  font-size: 1.05rem;
}

.trust-panel {
  padding: 30px;
  background:
    radial-gradient(circle at top left, rgba(214, 40, 40, 0.18), transparent 28%),
    linear-gradient(180deg, var(--color-navy), var(--color-navy-dark));
  color: var(--color-white);
}

.trust-panel h3 {
  margin: 0 0 12px;
  font-size: 1.55rem;
}

.trust-panel p {
  color: rgba(255, 255, 255, 0.84);
  margin: 0 0 22px;
}

.warranty {
  padding-top: 18px;
}

.warranty__box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff, var(--color-cream));
  border: 1px solid rgba(18, 61, 120, 0.08);
  box-shadow: var(--shadow-card);
}

.warranty__icon {
  width: 72px;
  height: 72px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(18, 61, 120, 0.08);
  color: var(--color-red);
}

.warranty__box h2 {
  margin: 0 0 10px;
  color: var(--color-navy);
}

.contact-card {
  padding: 28px;
}

.contact-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.contact-list strong {
  color: var(--color-navy);
}

.site-footer {
  margin-top: 42px;
  background:
    radial-gradient(circle at top right, rgba(214, 40, 40, 0.18), transparent 22%),
    linear-gradient(180deg, var(--color-navy-dark), #061d3a);
  color: rgba(255, 255, 255, 0.86);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.9fr;
  gap: 28px;
  padding: 54px 0 28px;
}

.footer-brand img {
  width: 92px;
  margin-bottom: 16px;
}

.footer-brand p,
.site-footer li,
.footer__bottom p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.85;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--color-white);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer__bottom {
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom p {
  margin: 0;
  text-align: center;
}

.floating-whatsapp {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 22;
  width: 62px;
  height: 62px;
  padding: 16px;
  border-radius: 50%;
  background: var(--color-success);
  color: var(--color-white);
  box-shadow: 0 18px 26px rgba(30, 169, 82, 0.28);
}

@media (max-width: 1100px) {
  .products__grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .product-card--featured {
    grid-column: span 1;
  }

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

@media (max-width: 860px) {
  :root {
    --header-height: 82px;
  }

  .reveal-up {
    opacity: 0;
    transform: translateY(68px) scale(0.97);
    filter: blur(8px);
    transition:
      opacity 0.65s ease,
      transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
      filter 0.65s ease;
    will-change: transform, opacity, filter;
  }

  .reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }

  .reveal-panel {
    padding: 22px 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(18, 61, 120, 0.08);
    box-shadow: 0 18px 42px rgba(18, 61, 120, 0.1);
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 16px;
    left: 16px;
    display: grid;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(18, 61, 120, 0.08);
    border-radius: 22px;
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .hero__grid,
  .why-nesma__grid,
  .contact__grid,
  .warranty__box {
    grid-template-columns: 1fr;
  }

  .product-card--wide,
  .product-card--featured {
    grid-template-columns: 1fr;
  }

  .hero-frame {
    min-height: 420px;
  }

  .product-card__body {
    padding: 18px;
  }

  .product-card__body h3 {
    display: none;
  }

  .product-meta {
    gap: 12px;
  }

  .product-media::before {
    content: attr(data-product-title);
    position: absolute;
    top: 12px;
    right: 12px;
    left: 12px;
    z-index: 1;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-navy);
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.5;
    text-align: right;
    box-shadow: 0 10px 24px rgba(18, 61, 120, 0.08);
  }
}

@media (max-width: 560px) {
  .topbar__inner {
    justify-content: center;
    padding: 8px 0;
  }

  .topbar__links {
    gap: 8px;
  }

  .topbar__icon {
    width: 30px;
    height: 30px;
    padding: 7px;
  }

  .brand img {
    width: 62px;
    height: 62px;
  }

  .brand__text span {
    display: none;
  }

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

  .hero h2 {
    font-size: 1.3rem;
  }

  .hero-frame,
  .product-card__body,
  .trust-panel,
  .contact-card,
  .warranty__box {
    padding: 20px;
  }

  section {
    padding: 60px 0;
  }

  .products__grid {
    gap: 14px;
  }

  .product-media {
    padding: 10px;
  }

  .product-media::before {
    top: 10px;
    right: 10px;
    left: 10px;
    padding: 9px 12px;
    font-size: 0.9rem;
  }

  .reveal-panel {
    padding: 18px 14px;
    border-radius: 22px;
  }

  .product-shot {
    max-height: 210px;
  }

  .btn--product {
    min-height: 48px;
  }
}
