:root {
  --color-navy: #18385b;
  --color-navy-dark: #0e2946;
  --color-green: #98c64a;
  --color-green-deep: #5c8d3d;
  --color-cream: #f7f7ef;
  --color-mist: #eef8fb;
  --color-surface: #ffffff;
  --color-text: #1d2d3f;
  --color-muted: #657389;
  --color-border: rgba(24, 56, 91, 0.14);
  --shadow-soft: 0 20px 70px rgba(20, 45, 70, 0.12);
  --shadow-card: 0 16px 42px rgba(18, 48, 82, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1180px;
  --header-height: 86px;
  --font-main: 'Tajawal', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  direction: rtl;
  color: var(--color-text);
  background: #fff;
  font-family: var(--font-main);
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; font-family: inherit; }
*::before, *::after { font-family: inherit; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: 10px;
  z-index: 1000;
  background: var(--color-green);
  color: #0d1b2d;
  padding: 10px 14px;
  border-radius: 999px;
  transform: translateY(-150%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }
.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(24,56,91,.08);
}
.header-inner {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr) minmax(160px, 260px);
  align-items: center;
  gap: 24px;
}
.brand { justify-self: start; }
.brand img { width: 230px; object-fit: contain; }
.primary-nav {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color-navy);
  font-weight: 700;
  text-align: center;
}
.primary-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--color-green-deep);
  background: rgba(152, 198, 74, .12);
  outline: none;
}
.nav-cta,
.btn-primary {
  background: var(--color-navy);
  color: white !important;
  box-shadow: 0 12px 28px rgba(24,56,91,.22);
}
.nav-cta:hover,
.btn-primary:hover { background: var(--color-navy-dark); transform: translateY(-2px); }
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--color-navy);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.section-panel { position: relative; overflow: hidden; }
.hero {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-items: center;
  padding: 96px 0 70px;
  isolation: isolate;
  background: var(--color-navy-dark);
}
.hero-media {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-albayna.webp');
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  z-index: -3;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(152,198,74,.45), transparent 26%),
    linear-gradient(90deg, rgba(9,28,49,.94) 0%, rgba(14,41,70,.78) 54%, rgba(10,35,58,.65) 100%);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset-inline-start: -12vw;
  bottom: -18vw;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  border: 90px solid rgba(152,198,74,.16);
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 54px;
  align-items: end;
}
.section-kicker {
  margin: 0 0 12px;
  color: var(--color-green);
  font-weight: 800;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-kicker::before,
.section-kicker::after {
  content: "";
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}
.hero h1 {
  margin: 0;
  color: #fff;
  max-width: 720px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.section h2 {
  margin: 0;
  color: var(--color-navy);
  font-size: clamp(20px, 2.05vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.hero-description {
  margin: 22px 0 0;
  max-width: 680px;
  color: rgba(255,255,255,.86);
  font-size: clamp(14px, 1.25vw, 16px);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, border .2s ease, color .2s ease;
  cursor: pointer;
}
.btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.08);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(255,255,255,.16);
  transform: translateY(-2px);
  outline: none;
}
.hero-card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 24px 70px rgba(0,0,0,.2);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-xl);
  padding: 22px;
  color: #fff;
}
.hero-card-line {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-green), rgba(255,255,255,.16));
  margin-bottom: 16px;
}
.hero-stats { display: grid; gap: 12px; }
.hero-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.1);
}
.hero-stat strong { font-size: 30px; line-height: 1; color: #fff; }
.hero-stat span { color: rgba(255,255,255,.8); font-weight: 700; }

.section { padding: 94px 0; }
.section-soft {
  background:
    radial-gradient(circle at top right, rgba(152,198,74,.16), transparent 30%),
    linear-gradient(180deg, #f5fbfd 0%, #f9fcfd 100%);
}
.section-head {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}
.section-head p:not(.section-kicker) {
  margin: 16px auto 0;
  color: var(--color-muted);
  font-size: 16px;
}
.split-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 58px;
  align-items: center;
}
.section-copy p:not(.section-kicker) {
  color: var(--color-muted);
  font-size: 16px;
  margin: 18px 0 0;
}
.image-stack { position: relative; }
.image-stack img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/3;
  object-fit: cover;
}
.image-stack::before {
  content: "";
  position: absolute;
  inset: -18px 22px 28px -18px;
  border-radius: var(--radius-xl);
  background: rgba(152,198,74,.18);
  z-index: -1;
}
.floating-note {
  position: absolute;
  inset-inline-start: 24px;
  bottom: 24px;
  background: #fff;
  color: var(--color-navy);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: var(--shadow-card);
}
.check-list {
  margin-top: 26px;
  display: grid;
  gap: 12px;
}
.check-item {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--color-navy);
  font-weight: 800;
}
.check-item::before {
  content: "✓";
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: rgba(152,198,74,.18);
  color: var(--color-green-deep);
  border-radius: 50%;
  flex: 0 0 auto;
}

.cards-grid,
.products-grid,
.values-grid,
.why-grid {
  display: grid;
  gap: 22px;
}
.cards-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-card,
.value-card,
.why-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 12px 36px rgba(24, 56, 91, 0.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover,
.value-card:hover,
.why-card:hover,
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: rgba(152,198,74,.38); }
.icon-badge {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(152,198,74,.14);
  color: var(--color-green-deep);
  margin-bottom: 20px;
}
.icon-badge svg { width: 28px; height: 28px; }
.service-card h3,
.value-card h3,
.why-card h3,
.product-card h3 {
  margin: 0 0 10px;
  color: var(--color-navy);
  font-size: 16px;
  line-height: 1.35;
}
.service-card p,
.value-card p,
.why-card p {
  margin: 0;
  color: var(--color-muted);
}

.products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 36px rgba(24,56,91,.07);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card img {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  object-fit: cover;
}
.product-body { padding: 22px; }
.product-body p { margin: 0 0 16px; color: var(--color-muted); }
.product-link {
  display: inline-flex;
  color: var(--color-navy);
  font-weight: 900;
  border-bottom: 2px solid var(--color-green);
}

.values-section {
  background:
    radial-gradient(circle at 12% 14%, rgba(152,198,74,.18), transparent 22%),
    radial-gradient(circle at 85% 80%, rgba(24,56,91,.08), transparent 24%),
    #fff;
}
.values-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.value-card { text-align: center; }
.value-card .icon-badge { margin-inline: auto; }

.mission-grid {
  display: grid;
  gap: 26px;
}
.mv-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--color-navy);
  box-shadow: var(--shadow-soft);
}
.mv-card:nth-child(even) .mv-image { order: 2; }
.mv-content {
  padding: clamp(34px, 5vw, 62px);
  color: #fff;
}
.mv-content .section-kicker { color: var(--color-green); }
.mv-content h3 {
  margin: 0;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.25;
}
.mv-content p { color: rgba(255,255,255,.78); font-size: 16px; margin: 18px 0 0; }
.mv-image img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }

.why-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: why; }
.why-card { position: relative; padding-top: 48px; }
.why-card::before {
  counter-increment: why;
  content: counter(why, decimal-leading-zero);
  position: absolute;
  top: 20px;
  inset-inline-end: 24px;
  color: rgba(24,56,91,.12);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.contact-section { background: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.contact-copy h2 { margin: 0; color: var(--color-navy); font-size: clamp(20px, 2.05vw, 28px); line-height: 1.2; }
.contact-copy > p { color: var(--color-muted); font-size: 16px; }
.contact-info {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}
.contact-info-card {
  border: 1px solid var(--color-border);
  border-radius: 22px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(152,198,74,.1), rgba(24,56,91,.03));
}
.contact-info-card h3 { margin: 0 0 8px; color: var(--color-navy); }
.contact-info-card p { margin: 0; color: var(--color-muted); font-weight: 700; }
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 26px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 36px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}
.field { display: grid; gap: 10px; }
.field-full { grid-column: 1 / -1; }
.field label {
  color: #111;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}
.required-tag {
  color: var(--color-green-deep);
  font-weight: 900;
  font-size: 14px;
}
.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(10, 20, 30, .18);
  border-radius: 26px;
  padding: 16px 22px;
  color: var(--color-text);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input { min-height: 72px; }
.field textarea { resize: vertical; min-height: 230px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-green-deep);
  box-shadow: 0 0 0 4px rgba(152,198,74,.18);
}
.contact-form .btn-primary { background: #07110d; min-width: 210px; justify-self: start; }
.contact-form .btn-primary:hover { background: #000; }
.form-message { margin: 0; color: var(--color-navy); font-weight: 800; }
.form-message.is-error { color: #b3261e; }
.form-message.is-success { color: var(--color-green-deep); }
.honeypot { position: absolute; opacity: 0; pointer-events: none; }

.site-footer {
  background: var(--color-navy-dark);
  color: #fff;
  padding: 54px 0 22px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
  border-bottom: 1px solid rgba(255,255,255,.14);
  padding-bottom: 30px;
}
.footer-logo { width: 250px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.site-footer p { max-width: 520px; margin: 0; color: rgba(255,255,255,.7); }
.footer-links {
  display: grid;
  gap: 10px;
  min-width: 180px;
}
.footer-links a { color: rgba(255,255,255,.78); font-weight: 700; }
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--color-green); outline: none; }
.footer-bottom { padding-top: 22px; color: rgba(255,255,255,.62); }
.back-to-top {
  position: fixed;
  inset-inline-end: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 16px;
  background: var(--color-green);
  color: var(--color-navy-dark);
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transform: translateY(90px);
  transition: transform .2s ease;
}
.back-to-top.is-visible { transform: translateY(0); }

.reveal-up { opacity: 0; transform: translateY(28px); transition: opacity .5s ease, transform .5s ease; }
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .cards-grid-4,
  .products-grid,
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 600px; }
}
@media (max-width: 900px) {
  :root { --header-height: 76px; }
  .container { width: min(100% - 28px, var(--container)); }
  .header-inner { display: flex; justify-content: space-between; }
  .brand img { width: 190px; }
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    display: grid;
    gap: 8px;
    padding: 18px 20px 24px;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid rgba(24,56,91,.08);
    box-shadow: var(--shadow-card);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .menu-open .primary-nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav a { width: 100%; }
  .hero { min-height: auto; padding: 78px 0 54px; }
  .split-grid,
  .contact-grid,
  .mv-card { grid-template-columns: 1fr; }
  .mv-card:nth-child(even) .mv-image { order: initial; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .section { padding: 66px 0; }
  .cards-grid-4,
  .products-grid,
  .why-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; padding: 22px; border-radius: 28px; }
  .contact-form .btn-primary { justify-self: stretch; min-width: 0; }
  .hero-actions { align-items: stretch; }
  .btn { width: 100%; }
  .hero-stat { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal-up { opacity: 1; transform: none; }
}


/* Phase 4 typography + alignment refinements */
body, button, input, textarea, select { font-family: var(--font-main) !important; }
.header-inner { grid-template-columns: minmax(190px, 260px) 1fr minmax(190px, 260px); }
.primary-nav { width: 100%; justify-content: center; }
.primary-nav a { font-size: 15px; }
.section-kicker { font-size: 13px; }
.section h2, .contact-copy h2 { font-weight: 800; }
.section-head { margin-bottom: 38px; }
.service-card h3, .value-card h3, .why-card h3, .product-card h3 { font-size: 15px; }
.mv-content h3 { font-size: clamp(20px, 2vw, 26px); }
.hero-stat strong { font-size: 24px; }
.product-body { padding: 18px; }
.contact-form { align-items: start; }
.contact-form .btn-primary { border-radius: 999px; min-height: 58px; font-weight: 900; }
@media (max-width: 900px) {
  .header-inner { display:flex; }
  .primary-nav a { font-size: 15px; }
}

/* Phase 6 CMS-controlled frontend additions */
.about-extra-paragraphs{margin-top:12px}.about-extra-paragraphs p{margin:10px 0 0;color:var(--color-muted);font-size:15px;line-height:1.9}.hero-slider-dots{display:flex;gap:8px;margin-top:22px;align-items:center}.hero-slider-dots button{width:10px;height:10px;border-radius:999px;border:1px solid rgba(255,255,255,.78);background:transparent;cursor:pointer;padding:0;transition:width .2s ease,background .2s ease}.hero-slider-dots button.is-active{width:28px;background:var(--color-green);border-color:var(--color-green)}
