:root {
  --ink: #07151c;
  --navy: #06384a;
  --navy-2: #052b3a;
  --blue: #58a9cf;
  --cyan: #8ed8ef;
  --red: #c80d19;
  --paper: #f7fbfd;
  --muted: #5d717b;
  --line: rgba(6, 56, 74, 0.14);
  --shadow: 0 24px 70px rgba(3, 32, 43, 0.14);
}

[data-theme="dark"] {
  --ink: #edf8fc;
  --navy: #8ed8ef;
  --navy-2: #ffffff;
  --blue: #7fd0f1;
  --cyan: #b7ecff;
  --red: #ff5963;
  --paper: #06151c;
  --muted: #a8c0ca;
  --line: rgba(255, 255, 255, 0.13);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "Cairo", Arial, sans-serif;
  transition: background 0.35s ease, color 0.35s ease;
}

:lang(ar) body {
  font-family: "Cairo", "Inter", Arial, sans-serif;
  word-spacing: 0.03em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 8% 10%, rgba(88, 169, 207, 0.22), transparent 28%),
    radial-gradient(circle at 92% 2%, rgba(200, 13, 25, 0.08), transparent 25%),
    linear-gradient(180deg, #ffffff 0%, #f2f8fb 46%, #ffffff 100%);
  transition: background 0.35s ease;
}

[data-theme="dark"] body::before {
  background:
    radial-gradient(circle at 8% 10%, rgba(88, 169, 207, 0.16), transparent 28%),
    radial-gradient(circle at 92% 2%, rgba(255, 89, 99, 0.12), transparent 25%),
    linear-gradient(180deg, #06151c 0%, #09222d 48%, #041016 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(3, 32, 43, 0.1);
  backdrop-filter: blur(18px);
  animation: dropIn 0.7s ease both;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

[data-theme="dark"] .site-header {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(7, 21, 28, 0.78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 78px;
  height: 54px;
  border-radius: 999px;
  object-fit: cover;
  object-position: center;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #25434e;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover {
  background: rgba(88, 169, 207, 0.14);
  color: var(--navy);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.lang-toggle {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: var(--navy);
  font: inherit;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.theme-toggle:hover,
.lang-toggle:hover {
  transform: translateY(-2px) rotate(8deg);
}

[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .lang-toggle {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

[data-theme="dark"] .site-nav a {
  color: #d9eef5;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.header-cta,
.button.primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 14px 34px rgba(6, 56, 74, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.35s ease, color 0.35s ease;
}

.button.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  transition: transform 0.2s ease, background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.header-cta:hover,
.button:hover {
  transform: translateY(-3px);
}

[data-theme="dark"] .header-cta,
[data-theme="dark"] .button.primary {
  background: #ffffff;
  color: #062330;
}

[data-theme="dark"] .button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.76fr);
  gap: 48px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 96px);
  margin: 0 auto;
  padding: 76px 0 58px;
}

.hero-copy {
  animation: slideUp 0.9s ease 0.08s both;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 790px;
  margin-bottom: 22px;
  color: var(--navy-2);
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  color: var(--navy-2);
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy-2);
  font-size: 22px;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

:lang(ar) h1 {
  line-height: 1.14;
}

:lang(ar) h2 {
  line-height: 1.22;
}

:lang(ar) h3 {
  line-height: 1.42;
}

:lang(ar) p,
:lang(ar) li,
:lang(ar) label,
:lang(ar) input,
:lang(ar) select,
:lang(ar) textarea {
  line-height: 1.95;
}

:lang(ar) .eyebrow,
:lang(ar) .option-label,
:lang(ar) .client-group p {
  letter-spacing: 0;
  word-spacing: 0.12em;
  text-transform: none;
}

:lang(ar) .hero-lead,
:lang(ar) .intro p:last-child,
:lang(ar) .clients-hero p:last-child {
  line-height: 2;
}

:dir(rtl) .section-heading,
:dir(rtl) .hero-copy,
:dir(rtl) .contact-copy,
:dir(rtl) .clients-hero {
  text-align: right;
}

:lang(ar) .service-card,
:lang(ar) .option-card,
:lang(ar) .work-card,
:lang(ar) blockquote,
:lang(ar) .client-group,
:lang(ar) .contact-form {
  padding-block: 30px;
}

:lang(ar) .service-card h3,
:lang(ar) .option-card h3,
:lang(ar) .work-card h3,
:lang(ar) .process-list h3 {
  margin-bottom: 14px;
}

:lang(ar) .option-card ul,
:lang(ar) .client-group ul {
  gap: 14px;
}

.hero-lead {
  max-width: 660px;
  font-size: 20px;
}

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

.hero-stats {
  gap: 18px;
  margin-top: 34px;
}

.hero-stats span {
  min-width: 150px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  transition: transform 0.2s ease, background 0.35s ease, border-color 0.35s ease;
}

.hero-stats span:hover {
  transform: translateY(-4px);
}

[data-theme="dark"] .hero-stats span {
  background: rgba(255, 255, 255, 0.06);
}

.hero-stats strong {
  display: block;
  color: var(--navy);
  font-size: 26px;
}

.hero-stats em {
  font-style: normal;
}

.hero-panel {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(6, 56, 74, 0.96), rgba(3, 35, 48, 0.96)),
    var(--navy);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: floatIn 0.9s ease 0.18s both, panelFloat 6s ease-in-out 1.1s infinite;
}

.hero-panel::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -80px;
  top: -60px;
  border-radius: 50%;
  background: rgba(142, 216, 239, 0.2);
}

.panel-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  color: #fff;
}

.panel-top img {
  width: 72px;
  height: 72px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 22px;
  object-fit: cover;
}

.panel-top strong,
.panel-top span {
  display: block;
}

.panel-top span {
  color: rgba(255, 255, 255, 0.68);
}

.panel-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.metric-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: transform 0.2s ease, background 0.35s ease;
}

.metric-card:hover {
  transform: translateY(-4px);
}

.metric-card.large {
  position: relative;
  margin-bottom: 14px;
}

.metric-card span,
.metric-card strong {
  display: block;
}

.metric-card span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.metric-card strong {
  margin-top: 8px;
  font-size: 24px;
}

.progress {
  height: 8px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), #fff);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: end;
  border-top: 1px solid var(--line);
}

.intro p:last-child {
  font-size: 18px;
}

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

.services-grid,
.options-grid,
.work-grid,
.testimonials-grid {
  display: grid;
  gap: 18px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.detail-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 46px rgba(3, 32, 43, 0.07);
  padding: 26px;
  transition: transform 0.2s ease, background 0.35s ease, border-color 0.35s ease;
}

.detail-card:hover {
  transform: translateY(-5px);
}

[data-theme="dark"] .detail-card {
  background: rgba(255, 255, 255, 0.06);
}

.service-card,
.option-card,
.work-card,
blockquote,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 46px rgba(3, 32, 43, 0.07);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.2s ease;
}

[data-theme="dark"] .service-card,
[data-theme="dark"] blockquote,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .process-list article {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.service-card {
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(88, 169, 207, 0.55);
  box-shadow: var(--shadow);
}

.service-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 16px;
  background: #e5f4fa;
  color: var(--navy);
  font-weight: 900;
  transition: transform 0.25s ease, background 0.35s ease, color 0.35s ease;
}

.service-card:hover .service-icon {
  transform: rotate(-6deg) scale(1.06);
}

[data-theme="dark"] .service-icon {
  background: rgba(142, 216, 239, 0.12);
  color: #ffffff;
}

.options-section {
  padding: 78px 28px;
  border-radius: 32px;
  background: var(--navy);
  transition: background 0.35s ease;
}

[data-theme="dark"] .options-section {
  background: rgba(255, 255, 255, 0.07);
}

.options-section h2,
.options-section .eyebrow {
  color: #fff;
}

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

.option-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.option-card.featured {
  background: #fff;
  color: var(--ink);
  transform: translateY(-10px);
}

[data-theme="dark"] .option-card.featured {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.option-card p,
.option-card li {
  color: rgba(255, 255, 255, 0.76);
}

.option-card.featured p,
.option-card.featured li {
  color: var(--muted);
}

.option-card h3 {
  color: inherit;
}

.option-label {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.option-card ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 26px;
  padding: 0;
  list-style: none;
}

.package-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: auto;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.35s ease, color 0.35s ease;
}

.package-link:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.18);
}

.option-card.featured .package-link {
  background: var(--navy);
  color: #fff;
}

[data-theme="dark"] .option-card.featured .package-link {
  background: #fff;
  color: #062330;
}

.option-card li {
  position: relative;
  padding-left: 24px;
}

.option-card li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

:dir(rtl) .option-card li {
  padding-right: 24px;
  padding-left: 0;
}

:dir(rtl) .option-card li::before {
  right: 0;
  left: auto;
}

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

.work-card {
  min-height: 260px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(6, 56, 74, 0), rgba(6, 56, 74, 0.94)),
    linear-gradient(135deg, #d9edf5, #ffffff);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.work-card:hover {
  transform: translateY(-6px);
}

[data-theme="dark"] .work-card {
  background:
    linear-gradient(180deg, rgba(6, 56, 74, 0), rgba(2, 18, 25, 0.96)),
    linear-gradient(135deg, rgba(88, 169, 207, 0.2), rgba(255, 255, 255, 0.06));
}

.work-card span {
  color: var(--red);
  font-weight: 900;
}

.work-card h3 {
  color: #fff;
}

.work-card p {
  color: rgba(255, 255, 255, 0.8);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--line);
}

.process-list article {
  padding: 26px;
  background: rgba(255, 255, 255, 0.78);
}

.process-list span {
  display: block;
  margin-bottom: 24px;
  color: var(--blue);
  font-size: 34px;
  font-weight: 900;
}

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

blockquote {
  margin: 0;
  padding: 28px;
}

blockquote p {
  color: #314954;
  font-size: 17px;
}

[data-theme="dark"] blockquote p {
  color: #d5e7ee;
}

cite {
  color: var(--navy);
  font-style: normal;
  font-weight: 900;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 34px;
  align-items: start;
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.clients-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 108px 0 54px;
}

.clients-hero h1 {
  max-width: 900px;
}

.clients-hero p:last-child {
  max-width: 720px;
  font-size: 20px;
}

.clients-directory {
  padding-top: 24px;
}

.client-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.client-filter {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--navy);
  font: inherit;
  font-weight: 900;
  padding: 0 18px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.client-filter:hover,
.client-filter.is-active {
  transform: translateY(-2px);
  background: var(--navy);
  color: #fff;
}

[data-theme="dark"] .client-filter {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

[data-theme="dark"] .client-filter.is-active {
  background: #fff;
  color: #062330;
}

.is-hidden {
  display: none !important;
}

.clients-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.clients-strip span {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--navy-2);
  font-size: 18px;
  font-weight: 900;
  padding: 0 22px;
  box-shadow: 0 12px 32px rgba(3, 32, 43, 0.06);
  transition: transform 0.2s ease, background 0.35s ease, border-color 0.35s ease;
}

.clients-strip span:hover {
  transform: translateY(-4px);
  border-color: rgba(88, 169, 207, 0.55);
}

[data-theme="dark"] .clients-strip span {
  background: rgba(255, 255, 255, 0.07);
}

.client-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.client-group {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  padding: 26px;
  box-shadow: 0 16px 46px rgba(3, 32, 43, 0.07);
  transition: transform 0.2s ease, background 0.35s ease, border-color 0.35s ease;
}

.client-group:hover {
  transform: translateY(-5px);
}

[data-theme="dark"] .client-group {
  background: rgba(255, 255, 255, 0.06);
}

.client-group p {
  margin-bottom: 18px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.client-group ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.client-group li {
  color: var(--navy-2);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.25;
}

.clients-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.contact-links a {
  width: fit-content;
  color: var(--navy);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.35s ease, color 0.35s ease;
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(88, 169, 207, 0.18);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 24px;
  padding: 32px;
  border-radius: 28px;
  background: var(--navy);
  transition: background 0.35s ease;
}

[data-theme="dark"] .site-footer {
  background: rgba(255, 255, 255, 0.07);
}

.site-footer img {
  width: 86px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
}

.site-footer p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer .developer-credit {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 800;
}

.site-footer div:last-child {
  text-align: right;
}

:dir(rtl) .site-footer div:last-child {
  text-align: left;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 25;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

:dir(rtl) .floating-whatsapp {
  right: auto;
  left: 18px;
}

.floating-whatsapp:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(37, 211, 102, 0.36);
}

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

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

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes panelFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

  .brand {
    grid-column: 1;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    padding-right: 58px;
  }

  :dir(rtl) .header-actions {
    padding-right: 0;
    padding-left: 58px;
  }

  .header-actions .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--navy);
  }

  .nav-toggle span {
    width: 20px;
    height: 2px;
    background: #fff;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    padding: 10px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero,
  .intro,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .services-grid,
  .options-grid,
  .work-grid,
  .testimonials-grid,
  .process-list,
  .detail-grid,
  .client-category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .option-card.featured {
    transform: none;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .section,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: 46px;
  }

  .hero-panel {
    padding: 18px;
  }

  .panel-grid,
  .services-grid,
  .options-grid,
  .work-grid,
  .testimonials-grid,
  .process-list,
  .detail-grid,
  .client-category-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .options-section {
    padding: 48px 18px;
  }

  .clients-hero {
    width: min(100% - 24px, 1180px);
    padding-top: 74px;
  }

  .clients-strip span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

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

  .site-footer div:last-child {
    text-align: left;
  }

  :dir(rtl) .site-footer div:last-child {
    text-align: right;
  }
}
