:root {
  --ink: #102949;
  --ink-soft: #1a3a60;
  --gold: #bf9d4b;
  --bg-light: #f4f6f8;
  --bg-mid: #ebeff3;
  --card: #ffffff;
  --text: #1b2735;
  --muted: #56657a;
  --line: #d7dfe7;
  --shadow: 0 16px 34px rgba(16, 41, 73, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg-light);
}

body[data-lang="ar"] {
  direction: rtl;
  font-family: "Cairo", sans-serif;
}

body[data-lang="en"] {
  direction: ltr;
  font-family: "Manrope", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(16, 41, 73, 0.08);
  backdrop-filter: blur(12px);
  transition: background-color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.nav-shell {
  min-height: 86px;
  align-items: center;
  transition: min-height 0.35s ease;
}

.brand-center {
  display: grid;
  justify-items: center;
  line-height: 1.1;
  color: var(--ink);
  transform-origin: top center;
  transition: transform 0.35s ease;
}

.brand-center img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  transition: width 0.35s ease, height 0.35s ease, opacity 0.3s ease;
}

.brand-center span {
  font-weight: 800;
  letter-spacing: 0.8px;
  font-size: 1.3rem;
}

.brand-center small {
  font-size: 0.68rem;
  letter-spacing: 0.8px;
  transition: opacity 0.25s ease, max-height 0.25s ease;
  max-height: 24px;
  overflow: hidden;
}

.nav-links-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  row-gap: 10px;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.lang-switch {
  border: 1px solid rgba(16, 41, 73, 0.2);
  background: #f6f8fc;
  border-radius: 999px;
  min-width: 84px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
  margin-inline-start: 10px;
}

.lang-switch i {
  font-size: 1.04rem;
}

.main-header.scrolled {
  background: rgba(11, 33, 60, 0.92);
  border-bottom-color: rgba(191, 157, 75, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.main-header.scrolled .nav-shell {
  min-height: 62px;
}

.main-header.scrolled .brand-center {
  transform: translateY(-8px) scale(0.94);
}

.main-header.scrolled .brand-center img {
  width: 0;
  height: 0;
  opacity: 0;
}

.main-header.scrolled .brand-center span {
  color: #ffffff;
  font-size: 1.05rem;
}

.main-header.scrolled .brand-center small {
  opacity: 0;
  max-height: 0;
}

.main-header.scrolled .nav-links a {
  color: #e8eef6;
}

.main-header.scrolled .lang-switch {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #f3f7fd;
}

.hero-section {
  position: relative;
  min-height: 76vh;
  overflow: hidden;
  display: grid;
  align-items: center;
}

.hero-slider,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.9s ease, transform 4.6s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.58) 35%, rgba(255, 255, 255, 0.58) 65%, rgba(255, 255, 255, 0.94) 100%),
    linear-gradient(180deg, rgba(16, 41, 73, 0.12), rgba(16, 41, 73, 0.1));
}

.hero-grid {
  position: relative;
  z-index: 2;
  min-height: 76vh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
}

.hero-copy {
  max-width: 760px;
  text-align: center;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #38587d;
  font-weight: 700;
  font-size: 0.84rem;
  margin-bottom: 10px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
}

.hero-copy h2 {
  margin: 8px 0 14px;
  color: var(--gold);
  letter-spacing: 0.5px;
  font-size: clamp(1.2rem, 2.3vw, 2.2rem);
  font-weight: 800;
}

.hero-copy p {
  margin-bottom: 24px;
  color: #223247;
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-hero {
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  padding: 10px 18px;
  border: 0;
  box-shadow: 0 10px 24px rgba(16, 41, 73, 0.24);
}

.btn-hero:hover,
.btn-hero:focus {
  color: #fff;
  background: #0b213c;
}

.btn-hero-outline {
  border: 1px solid rgba(16, 41, 73, 0.45);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  border-radius: 10px;
  font-weight: 700;
  padding: 10px 18px;
}

.btn-hero-outline:hover,
.btn-hero-outline:focus {
  color: var(--ink);
  background: #ffffff;
}

.section-block {
  padding: 68px 0;
}

.section-header {
  text-align: center;
}

.section-header h3 {
  color: var(--ink);
  font-size: clamp(1.5rem, 2.2vw, 2.3rem);
  font-weight: 800;
  margin: 0;
}

.section-header span {
  display: inline-block;
  margin-top: 6px;
  width: 56px;
  height: 3px;
  background: var(--gold);
}

.services-section {
  background: var(--bg-mid);
}

.service-card,
.metric-card,
.process-card,
.form-card {
  height: 100%;
  background: var(--card);
  border-radius: 14px;
  border: 1px solid #dde6f0;
  box-shadow: 0 8px 18px rgba(16, 41, 73, 0.08);
}

.service-card {
  padding: 18px 14px;
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.service-card i {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.52rem;
  color: var(--ink);
  background: linear-gradient(135deg, #eef3f9, #dce7f5);
  margin-bottom: 12px;
}

.service-card h4,
.process-card h4 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
}

.service-card p,
.process-card p,
.metric-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.goals-section {
  background:
    linear-gradient(180deg, rgba(16, 41, 73, 0.92), rgba(12, 30, 53, 0.95)),
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.08), transparent 38%);
  color: #f5f7fa;
}

.goals-section .section-header h3 {
  color: #fff;
}

.goal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.goal-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.65;
  font-size: 1.04rem;
}

.goal-list i {
  color: var(--gold);
  font-size: 1.3rem;
  margin-top: 2px;
}

body[data-lang="ar"] .goal-list li {
  flex-direction: row-reverse;
  text-align: right;
}

body[data-lang="en"] .goal-list li {
  flex-direction: row;
  text-align: left;
}

.metrics-section {
  background: #ffffff;
  border-top: 1px solid #e0e8f1;
  border-bottom: 1px solid #e0e8f1;
}

.metric-card {
  padding: 18px;
  text-align: center;
  background: linear-gradient(150deg, #fdfefe, #edf3fa);
}

.metric-card i {
  color: var(--ink);
  font-size: 1.3rem;
}

.metric-card h4 {
  margin: 8px 0 4px;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--ink);
}

.process-section {
  background: #f2f5f9;
}

.process-card {
  padding: 18px;
}

.process-card span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #0d2a4b;
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
}

.gallery-section {
  background: #fff;
}

.gallery-img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.industries-section {
  background: #f9fbfd;
}

.industry-pill {
  background: #fff;
  border: 1px solid #d9e3ee;
  border-radius: 999px;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-weight: 700;
  color: var(--ink);
}

.industry-pill i {
  color: var(--gold);
}

.contact-bar {
  background: #f8fbff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-grid {
  min-height: 112px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.contact-grid > div {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #26374c;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.55;
}

.contact-grid > div:last-child {
  border-right: 0;
}

.contact-grid i {
  font-size: 1.5rem;
  color: var(--ink);
}

.contact-grid > div span {
  display: block;
}

.contact-form-section {
  background: #eef2f7;
}

.form-card {
  padding: 28px;
}

.single-form-card {
  background: linear-gradient(165deg, #ffffff 20%, #f3f7fc 100%);
}

.form-card h3 {
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-card p {
  color: var(--muted);
  margin-bottom: 18px;
}

.field-label {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.93rem;
  margin-top: 4px;
}

.quote-form {
  display: grid;
  gap: 10px;
}

.quote-form .form-control {
  border-radius: 10px;
  border: 1px solid #cdd7e2;
  min-height: 46px;
}

.quote-form .form-control:focus {
  border-color: #8aa3bf;
  box-shadow: 0 0 0 0.25rem rgba(16, 41, 73, 0.15);
}

body[data-lang="ar"] .field-label,
body[data-lang="ar"] .quote-form .form-control,
body[data-lang="ar"] .quote-form textarea,
body[data-lang="ar"] .service-card,
body[data-lang="ar"] .process-card {
  text-align: right;
}

body[data-lang="en"] .field-label,
body[data-lang="en"] .quote-form .form-control,
body[data-lang="en"] .quote-form textarea,
body[data-lang="en"] .service-card,
body[data-lang="en"] .process-card {
  text-align: left;
}

.site-footer {
  background: var(--ink);
  color: #d9e4f1;
  padding: 20px 0;
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.footer-brand strong {
  display: block;
  color: #fff;
  line-height: 1;
}

.footer-brand small {
  display: block;
  font-size: 0.63rem;
  letter-spacing: 0.9px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  display: grid;
  place-items: center;
}

.whatsapp-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.24);
  z-index: 55;
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(16, 41, 73, 0.1);
    padding: 14px 0 18px;
    margin-top: 8px;
  }

  .nav-links {
    flex-direction: column;
  }

  .lang-switch {
    margin: 12px auto 0;
    display: flex;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid > div:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 767px) {
  .section-block {
    padding: 56px 0;
  }

  .gallery-img {
    height: 240px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .contact-grid > div:last-child {
    border-bottom: 0;
  }
}

/* Design Refresh v2 */
:root {
  --ink: #1a2f4d;
  --ink-soft: #2c4f73;
  --gold: #c79a3b;
  --bg-light: #f2f6fb;
  --bg-mid: #e7eef6;
  --card: #ffffff;
  --text: #1a2636;
  --muted: #5d6f84;
  --line: #d2deea;
  --shadow: 0 16px 36px rgba(22, 47, 79, 0.12);
}

body {
  background:
    radial-gradient(circle at 8% 14%, rgba(199, 154, 59, 0.09), transparent 26%),
    radial-gradient(circle at 92% 30%, rgba(44, 79, 115, 0.09), transparent 30%),
    var(--bg-light);
}

.main-header {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(250, 252, 255, 0.96));
}

.hero-overlay {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 253, 0.66)),
    linear-gradient(0deg, rgba(25, 47, 76, 0.2), rgba(25, 47, 76, 0.08));
}

.hero-copy {
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: clamp(18px, 3vw, 34px);
  box-shadow: var(--shadow);
}

.hero-kicker {
  color: var(--ink-soft);
}

.section-header h3 {
  letter-spacing: 0.2px;
}

.services-section,
.metrics-section,
.process-section,
.industries-section,
.testimonials-section,
.location-section,
.contact-form-section {
  position: relative;
}

.services-section::before,
.process-section::before,
.testimonials-section::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26, 47, 77, 0.2), transparent);
}

.service-card,
.metric-card,
.process-card,
.industry-pill,
.testimonial-card,
.location-info-card,
.map-shell,
.form-card {
  border-radius: 16px;
  border: 1px solid rgba(32, 62, 97, 0.12);
  box-shadow: var(--shadow);
}

.service-card,
.metric-card,
.process-card {
  background: linear-gradient(145deg, #ffffff, #f5f9ff);
}

.service-card i {
  background: linear-gradient(135deg, #e4eefb, #d5e4f9);
}

.goals-section {
  background:
    linear-gradient(130deg, #162c49, #203f63 65%, #1a344f),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1), transparent 30%);
}

.goal-list {
  gap: 12px;
}

.goal-list li {
  display: grid;
  align-items: start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 12px 14px;
}

body[data-lang="ar"] .goal-list li {
  grid-template-columns: 1fr auto;
  text-align: right;
}

body[data-lang="en"] .goal-list li {
  grid-template-columns: auto 1fr;
  text-align: left;
}

.goal-list i {
  margin-top: 4px;
}

.metrics-section {
  background: linear-gradient(180deg, #ffffff, #f3f8ff);
}

.process-section {
  background: linear-gradient(180deg, #edf3fb, #e8f0f9);
}

.industries-section {
  background: linear-gradient(180deg, #f8fbff, #f2f7fc);
}

.testimonials-section {
  background: #ffffff;
}

.testimonial-card {
  height: 100%;
  background: linear-gradient(165deg, #ffffff, #f3f8ff);
  padding: 22px;
}

.testimonial-rating {
  color: var(--gold);
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

.testimonial-card p {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

.testimonial-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.testimonial-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.location-section {
  background: linear-gradient(180deg, #f4f8fd, #edf4fc);
}

.map-shell {
  background: #fff;
  overflow: hidden;
  min-height: 360px;
}

.map-shell iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
}

.location-info-card {
  height: 100%;
  background: linear-gradient(145deg, #ffffff, #f5f9ff);
  padding: 22px;
}

.location-info-card h4 {
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 800;
}

.location-info-card p {
  color: var(--muted);
  line-height: 1.7;
}

.location-info-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.location-info-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
}

.location-info-card i {
  color: var(--gold);
  margin-top: 2px;
}

.contact-bar {
  background: linear-gradient(90deg, #f7fbff, #eef5fc);
}

.single-form-card {
  background: linear-gradient(165deg, #ffffff 20%, #eef5ff 100%);
}

@media (max-width: 991px) {
  .hero-copy {
    max-width: 95%;
  }

  .map-shell,
  .map-shell iframe {
    min-height: 300px;
  }
}

/* Header smoothness + Hero full panel v3 */
.main-header,
.nav-shell,
.brand-center,
.brand-center img,
.brand-center span,
.brand-center small,
.nav-links a,
.lang-switch {
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.main-header {
  transition-duration: 0.42s;
}

.nav-shell {
  transition-duration: 0.38s;
}

.brand-center {
  min-width: 168px;
  min-height: 64px;
  align-content: center;
  gap: 2px;
}

.brand-center img {
  width: 66px;
  height: 66px;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.main-header.scrolled .brand-center {
  transform: translateY(0);
  min-height: 34px;
  gap: 0;
}

.main-header.scrolled .brand-center img {
  width: 66px;
  height: 66px;
  opacity: 0;
  transform: translateY(-10px) scale(0.72);
  pointer-events: none;
}

.main-header.scrolled .brand-center span {
  font-size: 0;
  line-height: 0;
  margin: 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(-6px);
}

.main-header.scrolled .brand-center small {
  font-size: 0;
  line-height: 0;
  margin: 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
}

.hero-grid {
  min-height: 84vh;
  padding: 112px 0 78px;
}

.hero-full-panel {
  width: min(950px, 96%);
  background:
    linear-gradient(135deg, rgba(20, 43, 73, 0.82), rgba(17, 31, 53, 0.73)),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: clamp(20px, 3.8vw, 42px);
  color: #f2f7ff;
  box-shadow: 0 26px 54px rgba(13, 27, 48, 0.36);
  backdrop-filter: blur(6px);
}

.hero-panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
}

.hero-full-panel .hero-kicker {
  margin: 0;
  color: #c9dff7;
  letter-spacing: 1.3px;
}

.hero-progress-track {
  flex: 1;
  max-width: 220px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.hero-progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #e7bf6a, #c79a3b);
}

.hero-full-panel h1 {
  margin: 14px 0 8px;
  color: #ffffff;
  font-size: clamp(2rem, 4.6vw, 3.9rem);
}

.hero-full-panel h2 {
  margin: 0 0 14px;
  color: #edc676;
}

.hero-full-panel p {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.85;
  color: #e8f0fb;
  max-width: 760px;
}

.hero-route-line {
  margin-top: 14px;
  color: #c3d7ef;
  font-size: 0.93rem;
  letter-spacing: 0.4px;
}

.hero-full-panel .hero-buttons {
  justify-content: flex-start;
  margin-top: 20px;
}

.hero-full-panel .btn-hero-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-full-panel .btn-hero-outline:hover,
.hero-full-panel .btn-hero-outline:focus {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.hero-dots {
  margin-top: 18px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.34);
}

.hero-dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, #edc676, #c79a3b);
}

body[data-lang="ar"] .hero-full-panel {
  text-align: right;
}

body[data-lang="en"] .hero-full-panel {
  text-align: left;
}

@media (max-width: 991px) {
  .hero-grid {
    min-height: 78vh;
    padding: 96px 0 52px;
  }

  .hero-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-progress-track {
    max-width: 100%;
    width: 100%;
  }

  .hero-full-panel .hero-buttons {
    justify-content: center;
  }

  body[data-lang="ar"] .hero-full-panel,
  body[data-lang="en"] .hero-full-panel {
    text-align: center;
  }
}
