﻿:root {
  --bg: #f5f0e7;
  --bg-alt: #efe4cf;
  --surface: rgba(255, 250, 244, 0.82);
  --surface-strong: #ffffff;
  --navy: #1f4573;
  --navy-deep: #153357;
  --gold: #cbb996;
  --gold-deep: #a58b5d;
  --text: #17314f;
  --text-soft: rgba(23, 49, 79, 0.72);
  --line: rgba(31, 69, 115, 0.12);
  --shadow: 0 28px 70px rgba(20, 39, 68, 0.12);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1180px, calc(100vw - 2rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id],
footer[id],
header[id] {
  scroll-margin-top: 7.5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 6.5rem;
  font-family: "Tajawal", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(203, 185, 150, 0.34), transparent 24%),
    radial-gradient(circle at 18% 20%, rgba(31, 69, 115, 0.12), transparent 22%),
    linear-gradient(180deg, #f9f5ef 0%, #f3ebdf 52%, #efe5d6 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 69, 115, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 69, 115, 0.03) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at center, black 38%, transparent 95%);
}

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

.site-shell {
  position: relative;
}

.section,
.hero,
.topbar {
  width: var(--container);
  margin-inline: auto;
}

.topbar {
  position: fixed;
  top: 1rem;
  right: 50%;
  transform: translateX(50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(20, 39, 68, 0.08);
  z-index: 40;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.topbar.scrolled {
  box-shadow: 0 20px 55px rgba(20, 39, 68, 0.14);
  background: rgba(255, 250, 244, 0.88);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: cover;
  border-radius: 1rem;
  background: #fff;
  padding: 0.18rem;
  border: 1px solid rgba(203, 185, 150, 0.65);
  box-shadow: 0 10px 24px rgba(31, 69, 115, 0.12);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-size: 1.08rem;
}

.brand-copy small {
  margin-top: 0.24rem;
  color: var(--text-soft);
  font-size: 0.72rem;
  letter-spacing: 0.18rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.45rem;
}

.nav-links a {
  position: relative;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
  transform: scaleX(0);
  transition: transform 0.24s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: var(--navy);
}

.menu-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: rgba(31, 69, 115, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 0.35rem auto;
  background: var(--navy);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero {
  position: relative;
  padding: 2rem 1.6rem 3rem;
  border-radius: 2.6rem;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 34px 90px rgba(20, 39, 68, 0.16);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(12, 31, 54, 0.88) 0%, rgba(12, 31, 54, 0.74) 32%, rgba(12, 31, 54, 0.48) 58%, rgba(245, 240, 231, 0.64) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 16% 24%, rgba(203, 185, 150, 0.18), transparent 22%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: auto, 46px 46px, 46px 46px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.hero-copy,
.section {
  position: relative;
  z-index: 1;
}

.eyebrow,
.kicker {
  margin: 0;
  color: var(--gold-deep);
  letter-spacing: 0.08rem;
  font-size: 0.84rem;
  font-weight: 800;
}

.about-lead .kicker {
  margin-bottom: 0.9rem;
}

.eyebrow.light {
  color: rgba(255, 245, 228, 0.86);
}

.hero-copy {
  max-width: 52rem;
  padding: 2.5rem 0 0;
}

.hero-copy .eyebrow {
  margin-bottom: 1rem;
  color: rgba(235, 220, 188, 0.95);
}

.hero-copy h1,
.section-heading h2,
.about-lead h3,
.strategy-panel h2 {
  margin: 0;
  font-family: "Amiri", serif;
}

.hero-copy h1 {
  max-width: 10.2ch;
  font-size: clamp(3.4rem, 7vw, 6.4rem);
  line-height: 1.22;
  color: #fff9f1;
}

.hero-text {
  max-width: 46rem;
  margin: 1.35rem 0 0;
  color: rgba(255, 245, 228, 0.9);
  font-size: 1.08rem;
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  box-shadow: 0 16px 30px rgba(31, 69, 115, 0.22);
}

.button-secondary {
  color: #fff8ef;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stat-card,
.info-card,
.service-card,
.project-card,
.contact-card,
.about-lead {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 251, 245, 0.75));
  box-shadow: var(--shadow);
}

.stat-card {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.18), rgba(255, 250, 244, 0.1));
  backdrop-filter: blur(14px);
}

.stat-icon,
.card-icon,
.service-icon,
.contact-icon {
  width: 2.85rem;
  height: 2.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, rgba(31, 69, 115, 0.12), rgba(203, 185, 150, 0.28));
  color: var(--navy);
}

.stat-icon svg,
.card-icon svg,
.service-icon svg,
.contact-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

.stat-card strong {
  font-family: "Amiri", serif;
  font-size: 2.1rem;
  color: #fff8ef;
}

.stat-card span:last-child {
  color: rgba(255, 245, 228, 0.82);
}

.section {
  padding: 2.2rem 0 4rem;
}

.section-heading {
  display: grid;
  justify-items: start;
  gap: 0.35rem;
  margin-bottom: 1.8rem;
}

.footer .section-heading {
  max-width: 64rem;
  margin-inline: auto;
}

.section-heading h2 {
  max-width: 13ch;
  font-size: clamp(2.2rem, 4vw, 4.1rem);
  line-height: 1.26;
  color: var(--navy-deep);
}

.vision-grid,
.services-grid,
.projects-grid,
.contact-grid,
.strategy-grid {
  display: grid;
  gap: 1.2rem;
}

.vision-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.service-card,
.project-card,
.contact-card {
  border-radius: var(--radius-lg);
  padding: 1.45rem;
}

.feature-card {
  min-height: 19rem;
  position: relative;
  overflow: hidden;
}

.feature-card::after,
.service-card::after {
  content: "";
  position: absolute;
  inset: auto 1.1rem 1rem auto;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 1.6rem 1.6rem 0 1.6rem;
  background: linear-gradient(135deg, rgba(31, 69, 115, 0.06), rgba(203, 185, 150, 0.18));
}

.card-index {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-family: "Amiri", serif;
  font-size: 2.1rem;
  color: var(--gold-deep);
}

.info-card h3,
.service-card h3,
.project-body h3,
.contact-card h3 {
  margin: 0.8rem 0 0.9rem;
  font-size: 1.38rem;
  color: var(--navy-deep);
}

.info-card p,
.service-card p,
.contact-card p,
.project-body dd,
.project-body dt,
.about-lead p:last-child {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.95;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.2rem;
}

.about-lead {
  padding: 2rem;
  border-radius: var(--radius-xl);
}

.about-lead h3 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.28;
  color: var(--navy-deep);
}

.about-lead p:last-child {
  margin-top: 1rem;
}

.timeline-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.timeline-strip span {
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  background: rgba(31, 69, 115, 0.08);
  color: var(--navy);
  font-weight: 700;
}

.about-columns {
  display: grid;
  gap: 1.2rem;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  min-height: 14rem;
  position: relative;
  overflow: hidden;
}

.service-card p,
.service-card h3,
.feature-card p,
.feature-card h3 {
  position: relative;
  z-index: 1;
}

.strategy-panel {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 2rem;
  padding: 2rem;
  border-radius: 2.2rem;
  color: #fff8ef;
  background:
    radial-gradient(circle at top left, rgba(203, 185, 150, 0.28), transparent 26%),
    linear-gradient(135deg, var(--navy-deep), var(--navy));
  box-shadow: 0 32px 80px rgba(21, 51, 87, 0.22);
}

.strategy-panel h2 {
  font-size: clamp(2.2rem, 3.5vw, 3.5rem);
  line-height: 1.3;
}

.strategy-copy {
  display: grid;
  align-content: start;
  gap: 1.2rem;
}

.strategy-copy p {
  margin: 0;
  color: rgba(255, 245, 228, 0.82);
  line-height: 1.95;
}

.strategy-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.3rem;
}

.strategy-grid article {
  padding: 1rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.08);
}

.strategy-grid strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.strategy-grid span {
  color: rgba(255, 245, 228, 0.78);
  line-height: 1.75;
  font-size: 0.96rem;
}

.strategy-visual {
  margin: 0;
  padding: 0.9rem;
  border-radius: 1.8rem;
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.16), rgba(255, 250, 244, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.strategy-visual img {
  width: 100%;
  border-radius: 1.2rem;
  display: block;
  background: rgba(255, 250, 244, 0.92);
}

.projects-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  padding: 0;
  overflow: hidden;
}

.project-visual {
  position: relative;
  height: 20rem;
  overflow: hidden;
}

.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(11, 32, 58, 0.75) 100%);
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 0.5s ease;
}

.project-card:hover .project-visual img {
  transform: scale(1.08);
}

.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.9);
  color: var(--navy);
  font-weight: 800;
}

.project-body {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
}

.project-city {
  color: var(--text-soft);
}

.project-body dl {
  display: grid;
  gap: 0.85rem;
}

.project-body dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.project-body dt {
  color: var(--gold-deep);
  font-weight: 800;
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 64rem;
  margin-inline: auto;
}

.contact-form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.6rem;
  max-width: 64rem;
  margin-inline: auto;
}

.contact-form {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 251, 245, 0.78));
  box-shadow: var(--shadow);
}

.contact-form {
  padding: 1.4rem;
}

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

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  color: var(--navy-deep);
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(31, 69, 115, 0.12);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(31, 69, 115, 0.38);
  box-shadow: 0 0 0 4px rgba(31, 69, 115, 0.08);
  background: #fff;
}

.field textarea {
  resize: vertical;
  min-height: 9rem;
}

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

.form-submit {
  margin-top: 1rem;
  border: 0;
  cursor: pointer;
}

.form-submit:disabled {
  opacity: 0.72;
  cursor: wait;
}

.form-status {
  min-height: 1.75rem;
  margin: 0.85rem 0 0;
  font-weight: 700;
}

.form-status.is-success {
  color: #2c6a42;
}

.form-status.is-error {
  color: #a63d34;
}

.contact-card {
  display: grid;
  gap: 0.75rem;
  min-height: 100%;
}

.contact-card a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 800;
}

.contact-title {
  color: var(--gold-deep);
  font-weight: 800;
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tilt-card:hover {
  box-shadow: 0 34px 80px rgba(20, 39, 68, 0.16);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .about-layout,
  .strategy-panel,
  .vision-grid,
  .services-grid,
  .projects-grid,
  .contact-grid,
  .contact-form-wrap,
  .strategy-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .section-heading h2,
  .about-lead h3 {
    max-width: none;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    padding-top: 6rem;
  }

  .topbar {
    align-items: start;
    flex-wrap: wrap;
    border-radius: 1.5rem;
  }

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

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.5rem;
  }

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

  .topbar.is-open .menu-toggle span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .topbar.is-open .menu-toggle span:last-child {
    transform: translateY(-5px) rotate(-45deg);
  }

  .brand-copy small {
    letter-spacing: 0.08rem;
  }

  .hero {
    padding: 1.35rem 1rem 2rem;
    border-radius: 2rem;
  }

  .hero-copy {
    padding-top: 1rem;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(12, 31, 54, 0.88) 0%, rgba(12, 31, 54, 0.7) 45%, rgba(12, 31, 54, 0.58) 100%);
  }

  .hero-copy h1 {
    font-size: clamp(2.7rem, 11vw, 4.2rem);
  }

  .project-body dl div {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .service-card,
  .feature-card {
    min-height: auto;
  }

  .project-visual {
    height: 16rem;
  }
}
