:root {
  --bg: #f5f0e8;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #fffdf9;
  --text: #1d2a33;
  --muted: #5f6d77;
  --line: rgba(29, 42, 51, 0.12);
  --brand: #0d5a68;
  --brand-strong: #083942;
  --brand-soft: #dff1ec;
  --accent: #c9872f;
  --shadow: 0 20px 60px rgba(12, 24, 34, 0.12);
  --radius: 24px;
  --radius-sm: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Noto Sans Arabic", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(201, 135, 47, 0.2), transparent 32%),
    radial-gradient(circle at right 15%, rgba(13, 90, 104, 0.24), transparent 24%),
    linear-gradient(180deg, #fcfaf5 0%, #efe6d8 100%);
}

body.rtl {
  direction: rtl;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(8, 57, 66, 0.92);
  color: #eff7f5;
}

.topbar-inner,
.navbar-inner,
.contact-strip-grid,
.footer-grid,
.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar-inner {
  padding: 10px 0;
}

.topbar-list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.language-wrap select {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
}

.language-wrap option {
  color: #111;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(253, 251, 247, 0.82);
  border-bottom: 1px solid rgba(29, 42, 51, 0.08);
}

.navbar-inner {
  padding: 18px 0;
  position: relative;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: white;
  box-shadow: var(--shadow);
}

.brand small {
  display: block;
  color: var(--muted);
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-weight: 700;
  color: #314049;
  position: relative;
}

.nav-links a.is-active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--brand);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--brand-strong);
}

.hero,
.page-hero {
  padding: 72px 0 36px;
}

.hero-grid,
.contact-grid,
.split-grid,
.timeline-grid,
.page-hero-inner {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 34px;
  align-items: stretch;
}

.hero-copy,
.contact-copy,
.contact-form,
.spotlight-card,
.value-card,
.product-card,
.video-card,
.contact-strip article,
.faq-list details,
.content-card,
.stats-card,
.category-card,
.image-card,
.page-hero-inner > img,
.cta-panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-copy,
.content-card,
.category-card,
.contact-copy {
  padding: 38px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.hero h1,
.page-hero h1,
.section-heading h2,
.contact-copy h2,
.content-card h2 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.7rem, 4vw, 4.8rem);
}

.page-hero-inner > img,
.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text,
.section-heading p,
.contact-copy p,
.product-body p,
.video-body p,
.value-card p,
.faq-list p,
.footer p,
.content-card p,
.category-card p,
.page-hero p,
.stats-card span {
  color: var(--muted);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: white;
}

.button.ghost {
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
}

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

.hero-points div,
.stats-card div {
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid rgba(13, 90, 104, 0.08);
}

.hero-points strong,
.stats-card strong {
  display: block;
  font-size: 1.7rem;
}

.spotlight-card {
  position: relative;
  overflow: hidden;
  min-height: 620px;
}

.spotlight-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-overlay {
  position: absolute;
  inset: auto 24px 24px;
  padding: 24px;
  color: white;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(6, 24, 31, 0.18), rgba(6, 24, 31, 0.82));
}

.spotlight-overlay h2 {
  margin: 8px 0;
  font-size: 1.5rem;
}

.contact-strip {
  padding: 8px 0 24px;
}

.contact-strip article {
  flex: 1;
  padding: 22px 24px;
}

.contact-strip span,
.contact-cards span {
  color: var(--brand);
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.contact-strip strong,
.contact-cards strong {
  display: block;
  font-size: 1.2rem;
}

.section {
  padding: 68px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(233, 244, 242, 0.68));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading.narrow {
  margin-bottom: 20px;
}

.section-heading h2,
.contact-copy h2,
.content-card h2 {
  font-size: clamp(2rem, 3vw, 3.1rem);
}

.product-grid,
.value-grid,
.video-grid,
.category-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.value-grid,
.case-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card,
.video-card,
.image-card {
  overflow: hidden;
}

.product-card img,
.video-card img,
.image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-body,
.video-body {
  padding: 22px;
}

.product-body h3,
.video-body h3,
.value-card h3,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.product-body a,
.video-body a {
  color: var(--brand);
  font-weight: 800;
}

.value-card {
  padding: 26px;
}

.stats-card {
  padding: 22px;
  display: grid;
  gap: 16px;
}

.contact-cards {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.contact-cards article {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(13, 90, 104, 0.08);
}

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

.field {
  display: grid;
  gap: 8px;
}

.field.full,
.full-width {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(29, 42, 51, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  background: white;
  color: var(--text);
}

.form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
}

.form-status[data-tone="pending"] {
  background: rgba(207, 156, 10, 0.12);
  color: #8a5a00;
}

.form-status[data-tone="success"] {
  background: rgba(24, 116, 76, 0.12);
  color: #17694a;
}

.form-status[data-tone="error"] {
  background: rgba(172, 35, 60, 0.12);
  color: #9f1f38;
}

.clean-list {
  margin: 0;
  padding-inline-start: 20px;
  display: grid;
  gap: 10px;
  line-height: 1.7;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  padding: 22px 24px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.cta-panel {
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(13, 90, 104, 0.12), rgba(201, 135, 47, 0.12));
}

.cta-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 2.5vw, 2.8rem);
}

.footer {
  padding: 36px 0 52px;
  background: #0b3138;
  color: rgba(255, 255, 255, 0.88);
}

.footer-grid {
  align-items: flex-start;
}

.footer-grid > div {
  flex: 1;
  display: grid;
  gap: 10px;
}

.footer h3,
.footer h4 {
  margin: 0;
  color: white;
}

.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: grid;
  justify-items: end;
  gap: 14px;
}

body.rtl .chat-widget {
  left: 24px;
  right: auto;
  justify-items: start;
}

.chat-launcher {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: white;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.chat-launcher-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #98ffe2;
  box-shadow: 0 0 0 6px rgba(152, 255, 226, 0.18);
}

.chat-panel {
  width: min(460px, calc(100vw - 24px));
  max-height: min(760px, calc(100vh - 72px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 253, 249, 0.98);
  box-shadow: var(--shadow);
}

.chat-panel[hidden] {
  display: none !important;
}

.chat-panel-header {
  padding: 16px 18px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: white;
}

.chat-panel-title {
  display: block;
  font-size: 1rem;
}

.chat-panel-subtitle {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
  font-size: 0.88rem;
}

.chat-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-size: 1.25rem;
  line-height: 1;
}

.chat-messages {
  padding: 16px 16px 12px;
  display: grid;
  gap: 10px;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(223, 241, 236, 0.48));
}

.chat-message {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-message.assistant {
  justify-self: start;
  background: white;
  border: 1px solid rgba(13, 90, 104, 0.12);
  border-bottom-left-radius: 8px;
}

.chat-message.user {
  justify-self: end;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  border-bottom-right-radius: 8px;
}

body.rtl .chat-message.assistant {
  justify-self: end;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 8px;
}

body.rtl .chat-message.user {
  justify-self: start;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 18px;
}

.chat-message.is-status {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
  font-style: italic;
}

.chat-form-widget {
  padding: 12px 14px 14px;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: white;
}

.chat-input {
  width: 100%;
  min-height: 46px;
  max-height: 46px;
  resize: none;
  border: 1px solid rgba(29, 42, 51, 0.12);
  border-radius: 16px;
  padding: 11px 14px;
  background: #fffdf9;
  color: var(--text);
}

.chat-actions {
  display: flex;
  gap: 10px;
}

.chat-actions .button {
  flex: 1;
  border: 0;
  cursor: pointer;
  min-height: 48px;
  padding: 0 18px;
}

.chat-actions .button.ghost {
  border: 1px solid var(--line);
}

.chat-close:disabled,
.chat-actions .button:disabled,
.chat-input:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  .value-grid,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .contact-grid,
  .split-grid,
  .timeline-grid,
  .page-hero-inner,
  .product-grid,
  .video-grid,
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid,
  .contact-grid,
  .split-grid,
  .timeline-grid,
  .page-hero-inner {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 253, 249, 0.98);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  body.rtl .nav-links {
    align-items: flex-end;
  }
}

@media (max-width: 720px) {
  .topbar-inner,
  .contact-strip-grid,
  .footer-grid,
  .cta-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .hero,
  .page-hero,
  .section {
    padding: 52px 0;
  }

  .hero-copy,
  .contact-copy,
  .contact-form,
  .content-card,
  .category-card {
    padding: 24px;
  }

  .hero-points,
  .product-grid,
  .video-grid,
  .category-grid,
  .value-grid,
  .case-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .spotlight-card {
    min-height: 420px;
  }

  .chat-widget {
    right: 12px;
    bottom: 12px;
  }

  body.rtl .chat-widget {
    left: 12px;
  }

  .chat-panel {
    width: min(100vw - 16px, 460px);
    max-height: min(82vh, 720px);
  }

  .chat-launcher {
    min-height: 54px;
    padding: 0 18px;
  }
}
