:root {
  --bg: #fbfaf7;
  --text: #181713;
  --muted: #68635b;
  --line: #e5dfd2;
  --surface: #ffffff;
  --accent: #01193f;
  --accent-dark: #000f27;
  --ink: #01193f;
  --gold: #d5b06a;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(16, 24, 32, 0.12);
  font-family: "Tajawal", "Tahoma", "Arial", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-weight: 500;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 16px clamp(18px, 4vw, 64px);
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
}

.brand small {
  font-size: 0.86rem;
  line-height: 1.35;
}

.brand small,
.eyebrow,
.service-card p,
.wide-copy,
.hero-copy,
.contact p,
.site-footer {
  color: var(--muted);
}

.main-nav {
  display: flex;
  gap: clamp(12px, 3vw, 30px);
  justify-content: center;
  font-size: 1rem;
  font-weight: 500;
}

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--accent);
}

.lang-toggle,
.button {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.lang-toggle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border-radius: 999px;
  line-height: 1;
  text-align: center;
}

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

.section,
.section-band {
  padding: clamp(64px, 9vw, 118px) clamp(18px, 4vw, 64px);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
}

.section-band {
  max-width: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.88fr);
  gap: clamp(44px, 6vw, 96px);
  align-items: center;
  min-height: calc(100svh - 79px);
  background:
    linear-gradient(135deg, #fbfaf7 0%, #f3eadc 48%, #ffffff 100%);
}

.hero-content {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.45rem, 4.6vw, 4.35rem);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2.55rem, 4.6vw, 4.15rem);
  font-weight: 800;
  line-height: 1.15;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.hero-copy,
.wide-copy,
.contact p {
  max-width: 780px;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  font-weight: 500;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.button.ghost:hover,
.lang-toggle:hover {
  background: var(--ink);
  color: #fff;
}

.contact-icon-button {
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  backdrop-filter: blur(8px);
}

.contact-icon-button img,
.contact-icon-button svg {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.contact-icon-button img {
  object-fit: contain;
}

.contact-icon-button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact .contact-icon-button.primary {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.contact .contact-icon-button.ghost {
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
}

.contact-icon-button:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.hero-panel {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(1, 25, 63, 0.96), rgba(1, 25, 63, 0.88)),
    linear-gradient(45deg, var(--accent), var(--gold));
  box-shadow: var(--shadow);
}

.campaign-card {
  position: absolute;
  inset-inline: 34px;
  bottom: 34px;
  z-index: 2;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(1, 25, 63, 0.76);
  color: #fff;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
}

.campaign-card span,
.campaign-card small {
  color: rgba(255, 255, 255, 0.72);
}

.campaign-card strong {
  display: block;
  margin: 8px 0 22px;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  font-weight: 800;
  line-height: 1.25;
}

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

.metric-grid div {
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.metric-grid b,
.metric-grid small {
  display: block;
}

.metric-grid b {
  font-size: 1.35rem;
}

.visual-stack span {
  position: absolute;
  display: block;
  border-radius: var(--radius);
  transform: rotate(-10deg);
}

.visual-stack span:nth-child(1) {
  top: 44px;
  inset-inline-start: 44px;
  width: 52%;
  height: 130px;
  background: var(--gold);
}

.visual-stack span:nth-child(2) {
  top: 110px;
  inset-inline-end: 38px;
  width: 58%;
  height: 170px;
  background: var(--accent);
}

.visual-stack span:nth-child(3) {
  top: 215px;
  inset-inline-start: 78px;
  width: 46%;
  height: 105px;
  background: rgba(255, 255, 255, 0.16);
}

.section-heading {
  max-width: 900px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading .eyebrow {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(2.05rem, 3.6vw, 3.35rem);
  font-weight: 900;
  line-height: 1.16;
}

.section-heading h2 {
  max-width: 760px;
  margin-inline: auto;
  color: var(--muted);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 600;
  line-height: 1.55;
}

.section-heading .wide-copy {
  margin-inline: auto;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
}

#about > .wide-copy {
  max-width: 1120px;
  margin-inline: auto;
  text-align: center;
}

.section-muted {
  max-width: none;
  background: #f0eadf;
}

.section-muted > * {
  max-width: 1180px;
  margin-inline: auto;
}

.service-grid,
.work-grid,
.project-gallery,
.client-logo-grid {
  display: grid;
  gap: 16px;
}

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

.service-card {
  min-height: 245px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.service-card span {
  display: inline-block;
  margin-bottom: 44px;
  color: var(--accent);
  font-weight: 800;
}

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

.work-card {
  position: relative;
  display: flex;
  min-height: 320px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  overflow: hidden;
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink);
}

.work-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 25, 63, 0.08), rgba(1, 25, 63, 0.78));
  content: "";
  opacity: 0;
}

.work-card.has-image::after {
  opacity: 1;
}

.work-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card span {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.72);
}

.work-card h3 {
  position: relative;
  z-index: 1;
  max-width: 280px;
  margin: 8px 0 0;
  font-size: 1.7rem;
  line-height: 1.2;
}

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

.project-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.project-image {
  display: grid;
  min-height: 230px;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: var(--ink);
}

.project-image span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  background: rgba(1, 25, 63, 0.58);
}

.project-image img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.project-slider {
  position: relative;
  width: 100%;
  min-height: 230px;
  overflow: hidden;
}

.project-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 230px;
  opacity: 0;
  transition: opacity 0.65s ease;
}

.project-slider img.active {
  opacity: 1;
}

.project-dots {
  position: absolute;
  inset-inline: 14px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  gap: 7px;
  justify-content: center;
}

.project-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
}

.project-dots span.active {
  background: #fff;
}

.project-item h3,
.project-item p {
  padding-inline: 20px;
}

.project-item h3 {
  margin: 20px 0 8px;
}

.project-item p {
  margin-bottom: 22px;
  color: var(--muted);
}

.project-one {
  background: linear-gradient(135deg, #01193f, #0f3b7a);
}

.project-two {
  background: linear-gradient(135deg, #01193f, #d5b06a);
}

.project-three {
  background: linear-gradient(135deg, #01193f, #4c5b66);
}

.project-four {
  background: linear-gradient(135deg, #d5b06a, #01193f);
}

.project-five {
  background: linear-gradient(135deg, #0f3b7a, #01193f);
}

.project-six {
  background: linear-gradient(135deg, #4c5b66, #01193f);
}

.client-logo-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.client-logo {
  display: grid;
  min-height: 118px;
  place-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-align: center;
}

.client-logo span {
  opacity: 0.62;
}

.client-logo img {
  max-width: 135px;
  max-height: 64px;
  object-fit: contain;
}

.tone-one {
  background: linear-gradient(135deg, #01193f, #0f3b7a);
}

.tone-two {
  background: linear-gradient(135deg, #01193f, #d5b06a);
}

.tone-three {
  background: linear-gradient(135deg, #01193f, #4c5b66);
}

.contact {
  display: flex;
  gap: clamp(56px, 10vw, 170px);
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
}

.contact .eyebrow,
.contact p {
  color: rgba(255, 255, 255, 0.72);
}

.contact .eyebrow {
  margin-bottom: 12px;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 900;
  line-height: 1.18;
}

.contact h2 {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.35;
}

.contact .button.ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}

.footer-social a {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  overflow: hidden;
  font-size: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-social a::before {
  display: none;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
}

.footer-social a[aria-label="WhatsApp"]::before,
.footer-social a[href*="wa.me"]::before {
  background-image: url("social/whatsapp.png");
}

.footer-social a[aria-label="Instagram"]::before,
.footer-social a[href*="instagram.com"]::before {
  background-image: url("social/instagram.png");
}

.footer-social a[aria-label="Snapchat"]::before,
.footer-social a[href*="snapchat.com"]::before {
  background-image: url("social/snapchat.png");
}

.footer-social a[aria-label="TikTok"]::before,
.footer-social a[href*="tiktok.com"]::before {
  background-image: url("social/tiktok.png");
}

.footer-social a[aria-label="X"]::before,
.footer-social a[href*="x.com"]::before {
  background-image: url("social/x.png");
}

.footer-social a[aria-label="LinkedIn"]::before,
.footer-social a[href*="linkedin.com"]::before {
  background-image: url("social/linkedin.png");
}

.footer-social a:hover {
  opacity: 0.86;
  transform: translateY(-2px);
}

.footer-social img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.site-footer {
  padding: 24px clamp(18px, 4vw, 64px);
  text-align: center;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-panel {
    min-height: 390px;
  }

  .service-grid,
  .work-grid,
  .project-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .contact {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 12px 16px;
  }

  .brand {
    justify-self: center;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand small {
    display: none;
  }

  .main-nav {
    justify-content: center;
    gap: 16px;
    font-size: 0.88rem;
  }

  .lang-toggle {
    width: 38px !important;
    height: 38px;
    min-width: 38px;
    max-width: 38px;
    min-height: 38px;
    justify-self: center;
    padding: 0;
    font-size: 0.82rem;
    line-height: 1;
  }

  .section,
  .section-band {
    padding: 58px 16px;
  }

  .hero {
    padding-top: 46px;
  }

  h1 {
    font-size: clamp(2.05rem, 9.4vw, 2.9rem);
    line-height: 1.32;
  }

  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .contact-actions {
    justify-content: center;
  }

  .contact-icon-button {
    width: 48px !important;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    flex: 0 0 48px;
    padding: 0 !important;
  }

  .contact-icon-button img,
  .contact-icon-button svg {
    width: 25px;
    height: 25px;
  }

  .footer-social {
    display: flex !important;
    width: 100%;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    direction: rtl;
  }

  .footer-social a {
    width: 40px !important;
    height: 40px !important;
    min-width: 0 !important;
    flex: 0 0 40px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
  }

  .footer-social a::before {
    display: block;
  }

  .footer-social img {
    width: 40px !important;
    height: 40px !important;
    display: block;
    flex: 0 0 40px;
  }

  .site-footer {
    padding-top: 20px;
    padding-bottom: 22px;
  }

  .site-footer p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .hero-panel {
    min-height: 345px;
  }

  .campaign-card {
    inset-inline: 18px;
    bottom: 18px;
    padding: 18px;
  }

  .service-grid,
  .work-grid,
  .project-gallery,
  .metric-grid {
    grid-template-columns: 1fr;
  }

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

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

  .service-card span {
    margin-bottom: 28px;
  }

  .work-card {
    min-height: 240px;
  }

  .project-image {
    min-height: 205px;
  }

  .project-image img {
    min-height: 205px;
  }

  .project-slider,
  .project-slider img {
    min-height: 205px;
  }

  .client-logo {
    min-height: 96px;
  }
}
