:root {
  --ink: #123b48;
  --deep: #0b323e;
  --blue: #087d9b;
  --cyan: #bcecf0;
  --pale: #eef8f6;
  --orange: #f3a45e;
  --muted: #6c858b;
  --line: #dbe7e7;
  --white: #fff;
  --shadow: 0 22px 65px rgba(13, 66, 78, 0.13);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #f7fbfa;
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", "Cairo", sans-serif;
  /* Nothing should ever scroll the page sideways on a phone. */
  overflow-x: hidden;
}
img,
svg {
  max-width: 100%;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  cursor: pointer;
}
button {
  border: 0;
}
.site-shell {
  overflow: hidden;
}
.navbar {
  height: 90px;
  max-width: 1240px;
  margin: auto;
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  direction: ltr;
}
.brand-mark {
  width: 47px;
  height: 47px;
  border: 7px solid var(--blue);
  border-radius: 50%;
  display: inline-block;
  position: relative;
}
.brand-mark:before,
.brand-mark:after {
  content: "";
  position: absolute;
  background: var(--blue);
  left: 50%;
  transform: translateX(-50%);
}
.brand-mark:before {
  width: 8px;
  height: 27px;
  top: -3px;
  border-radius: 5px;
}
.brand-mark:after {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  bottom: 3px;
  background: var(--pale);
}
.brand-mark i {
  position: absolute;
  top: -7px;
  left: -7px;
  width: 18px;
  height: 17px;
  background: #f7fbfa;
  border-radius: 0 0 18px 0;
  display: block;
}
.brand-mark b {
  position: absolute;
  bottom: -7px;
  right: -7px;
  width: 17px;
  height: 20px;
  background: #f7fbfa;
  border-radius: 18px 0 0;
  display: block;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-copy strong {
  font:
    700 29px/1 "Cairo",
    sans-serif;
  letter-spacing: -1px;
}
.brand-copy small {
  font-size: 10px;
  letter-spacing: 2px;
  margin-top: 5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-right: auto;
}
.nav-links a {
  position: relative;
  color: #55727a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 0;
}
.nav-links a:after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: 0.25s;
}
.nav-links a:hover:after,
.nav-links a.active:after {
  width: 22px;
}
.nav-apply,
.primary-button {
  background: var(--ink);
  color: #fff;
  border-radius: 3px;
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  gap: 23px;
  font-size: 14px;
  font-weight: 700;
  transition: 0.25s;
}
.nav-apply:hover,
.primary-button:hover {
  background: var(--blue);
  transform: translateY(-2px);
}
.nav-apply span,
.primary-button span {
  font-size: 19px;
  color: var(--orange);
}
.menu-toggle {
  display: none;
  background: none;
  color: var(--ink);
  font-size: 24px;
}
.section-pad {
  padding-left: max(38px, calc((100vw - 1164px) / 2));
  padding-right: max(38px, calc((100vw - 1164px) / 2));
}
.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 54px;
  padding-bottom: 70px;
  position: relative;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--blue);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
}
.eyebrow span {
  width: 30px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
}
.hero h1 {
  font:
    800 clamp(56px, 7vw, 91px)/1.06 "Cairo",
    sans-serif;
  letter-spacing: -4px;
  margin: 0;
  color: var(--deep);
}
h1 em,
h2 em {
  font-style: normal;
  color: var(--blue);
}
.hero-intro {
  max-width: 435px;
  color: var(--muted);
  font-size: 16px;
  line-height: 2;
  margin: 25px 0;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}
.text-button {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}
.text-button span {
  color: var(--orange);
  margin-right: 7px;
  font-size: 20px;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7e9499;
  font-size: 12px;
  margin-top: 48px;
}
.note-dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 6px #fff2e4;
}
.hero-visual {
  /* --vs scales every absolutely-positioned child together, so the scene
     shrinks as one piece instead of overflowing on narrow screens. */
  --vs: 1;
  height: 480px;
  position: relative;
  background: linear-gradient(135deg, #e6f7f5, #c6e9ed);
  overflow: hidden;
}
.visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.46) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.46) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent);
}
.orbit {
  position: absolute;
  border: 1px solid rgba(8, 125, 155, 0.25);
  border-radius: 50%;
  transform: rotate(-23deg);
}
.orbit-one {
  width: calc(440px * var(--vs));
  height: calc(190px * var(--vs));
  top: calc(90px * var(--vs));
  right: calc(-90px * var(--vs));
}
.orbit-two {
  width: calc(510px * var(--vs));
  height: calc(230px * var(--vs));
  top: calc(145px * var(--vs));
  right: calc(-120px * var(--vs));
}
.visual-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  backdrop-filter: blur(7px);
}
.card-main {
  width: calc(310px * var(--vs));
  height: calc(230px * var(--vs));
  left: 50%;
  top: calc(121px * var(--vs));
  transform: translateX(-44%);
  padding: calc(27px * var(--vs));
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: #739098;
  font: 600 calc(10px * var(--vs)) "Cairo";
}
.mini-logo {
  border: 2px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  height: calc(22px * var(--vs));
  width: calc(22px * var(--vs));
  flex: none;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
}
.path-line {
  height: calc(77px * var(--vs));
  border-bottom: 2px solid var(--orange);
  position: relative;
  margin: calc(7px * var(--vs)) 0 calc(18px * var(--vs));
}
.path-line:after {
  content: "";
  position: absolute;
  width: calc(90px * var(--vs));
  height: calc(72px * var(--vs));
  border-right: 2px solid var(--orange);
  border-top: 2px solid var(--orange);
  transform: skewY(-23deg);
  right: calc(42px * var(--vs));
  top: -2px;
}
.path-point {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 3px solid var(--blue);
  background: #fff;
  border-radius: 50%;
  bottom: -7px;
  z-index: 1;
}
.path-point:nth-child(1) {
  right: 0;
}
.path-point:nth-child(2) {
  right: 43%;
  background: var(--orange);
  border-color: var(--orange);
}
.path-point:nth-child(3) {
  left: 5px;
}
.card-bottom {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #71888d;
  font-size: calc(11px * var(--vs));
}
.card-bottom strong {
  color: var(--ink);
  font-size: calc(16px * var(--vs));
}
.floating-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(15px * var(--vs)) calc(19px * var(--vs));
  left: 15%;
  bottom: calc(74px * var(--vs));
  max-width: calc(100% - 70px);
}
.floating-card strong,
.floating-card small {
  display: block;
}
.floating-card strong {
  font-size: calc(13px * var(--vs));
}
.floating-card small {
  color: #80979b;
  font-size: calc(11px * var(--vs));
  margin-top: 4px;
}
.check {
  width: calc(31px * var(--vs));
  height: calc(31px * var(--vs));
  flex: none;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: calc(18px * var(--vs));
}
.vertical-label {
  position: absolute;
  bottom: 18px;
  right: 22px;
  writing-mode: vertical-rl;
  letter-spacing: 3px;
  color: rgba(18, 59, 72, 0.45);
  font-size: 9px;
}
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 22px;
  padding-bottom: 22px;
}
.stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-left: 1px solid var(--line);
  padding-right: 25px;
}
.stat:first-child {
  border-left: 0;
}
.stat strong {
  font: 700 34px "Cairo";
  color: var(--blue);
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.stat-accent strong {
  color: var(--orange);
}
.about {
  padding-top: 145px;
  padding-bottom: 145px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
}
.section-heading h2,
.services h2,
.cta h2 {
  font: 800 clamp(36px, 4vw, 58px)/1.35 "Cairo";
  letter-spacing: -2px;
  margin: 0;
  color: var(--deep);
}
.about-content {
  padding-top: 55px;
  max-width: 440px;
  position: relative;
}
.about-content p {
  font-size: 16px;
  line-height: 2;
  margin: 0 0 18px;
  color: #637f85;
}
.circle-link {
  display: grid;
  place-items: center;
  width: 57px;
  height: 57px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  text-decoration: none;
  font-size: 25px;
  margin-top: 36px;
  transition: 0.2s;
}
.circle-link:hover {
  background: var(--blue);
  color: #fff;
}
.services {
  background: #edf7f5;
  padding-top: 105px;
  padding-bottom: 110px;
}
.services-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 55px;
}
.services-lead {
  max-width: 260px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 14px;
  margin: 0;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service-card {
  padding: 28px 30px 32px;
  min-height: 295px;
  background: #fff;
  position: relative;
  border-top: 3px solid transparent;
  transition: 0.3s;
}
.service-card:hover {
  transform: translateY(-7px);
  border-color: var(--orange);
  box-shadow: 0 15px 35px rgba(8, 70, 80, 0.1);
}
.service-card.featured {
  background: var(--ink);
  color: #fff;
}
.service-number {
  font: 700 12px "Cairo";
  color: var(--orange);
}
.service-icon {
  position: absolute;
  left: 27px;
  top: 25px;
  font-size: 28px;
  color: var(--blue);
}
.featured .service-icon {
  color: var(--orange);
}
.service-card h3 {
  font: 700 25px "Cairo";
  margin: 83px 0 12px;
}
.service-card p {
  color: #789096;
  line-height: 1.9;
  font-size: 13px;
  max-width: 240px;
}
.featured p {
  color: #b6cbcd;
}
.service-card a {
  position: absolute;
  bottom: 27px;
  text-decoration: none;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}
.service-card a span {
  margin-right: 9px;
  font-size: 18px;
}
.featured a {
  color: var(--orange);
}
.cta {
  background: var(--blue);
  min-height: 330px;
  display: flex;
  align-items: center;
  gap: 100px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta:before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  left: -150px;
  top: -190px;
}
.cta-mark {
  position: absolute;
  left: 90px;
  font: 800 330px/1 "Cairo";
  color: rgba(255, 255, 255, 0.06);
}
.cta .eyebrow {
  color: #c9f4f1;
}
.cta h2 {
  color: #fff;
  position: relative;
}
.light-button {
  background: #fff;
  color: var(--ink);
  padding: 17px 25px;
  font-weight: 700;
  margin-right: auto;
  z-index: 1;
}
.light-button span {
  color: var(--orange);
  font-size: 19px;
  margin-right: 18px;
}
footer {
  max-width: 1240px;
  margin: auto;
  padding: 31px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #789096;
  font-size: 11px;
}
.footer-brand .brand-mark {
  width: 34px;
  height: 34px;
  border-width: 5px;
}
.footer-brand .brand-mark:before {
  height: 20px;
  width: 6px;
}
.footer-brand .brand-mark:after {
  width: 9px;
  height: 9px;
}
.footer-brand .brand-copy strong {
  font-size: 22px;
}
.footer-brand .brand-copy small {
  font-size: 8px;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
}
.modal.open {
  display: block;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 36, 44, 0.72);
  backdrop-filter: blur(4px);
}
.application-sheet {
  position: absolute;
  background: #f7fbfa;
  inset: 26px max(20px, calc((100vw - 940px) / 2));
  overflow: auto;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.28);
  animation: slideUp 0.35s ease;
}
.form-header {
  background: linear-gradient(120deg, #e5f6f4, #c5e8ed);
  padding: 30px 42px 26px;
  position: relative;
}
.close-button {
  position: absolute;
  left: 27px;
  top: 23px;
  background: #fff;
  color: var(--ink);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 25px;
  line-height: 1;
}
.form-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  direction: ltr;
  width: max-content;
}
.form-brand .brand-mark {
  width: 38px;
  height: 38px;
  border-width: 5px;
}
.form-brand .brand-mark:before {
  height: 22px;
  width: 6px;
}
.form-brand .brand-mark:after {
  width: 10px;
  height: 10px;
}
.form-brand .brand-copy strong {
  font-size: 23px;
}
.form-brand .brand-copy small {
  font-size: 8px;
  direction: rtl;
}
.form-title {
  text-align: center;
  margin: 18px auto 0;
}
.form-title .eyebrow {
  justify-content: center;
  margin-bottom: 6px;
}
.form-title h2 {
  font: 800 28px "Cairo";
  margin: 0;
  color: var(--ink);
}
.form-title > p:last-child {
  margin: 3px 0 0;
  color: #719096;
  font-size: 12px;
}
.application-sheet form {
  padding: 18px 42px 35px;
}
.form-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
  color: var(--ink);
}
.form-section-title b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 27px;
  background: var(--blue);
  color: #fff;
  border-radius: 5px;
  font-size: 12px;
}
.form-section-title strong {
  font-size: 15px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 20px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #59757b;
  font-weight: 600;
}
.full {
  grid-column: 1/-1;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #d8e5e5;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  border-radius: 2px;
  outline: none;
  font-size: 13px;
  transition: 0.2s;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(8, 125, 155, 0.1);
}
textarea {
  resize: vertical;
}
.checkbox-grid {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px 14px;
}
.checkbox-grid legend,
.radio-group legend {
  grid-column: 1/-1;
  color: #59757b;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 3px;
}
.checkbox-grid label,
.radio-group label,
.form-consent label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  color: #6b8488;
}
.checkbox-grid input,
.radio-group input,
.form-consent input {
  accent-color: var(--blue);
  width: auto;
}
.radio-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 0;
  padding: 0;
  margin: 0;
}
.radio-group legend {
  grid-column: 1/-1;
}
.form-consent {
  padding-top: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.form-consent label {
  flex: 1;
  line-height: 1.7;
}
.form-consent .primary-button {
  white-space: nowrap;
}
.toast {
  position: fixed;
  bottom: 24px;
  right: 50%;
  transform: translateX(50%) translateY(20px);
  opacity: 0;
  background: var(--ink);
  color: #fff;
  padding: 15px 22px;
  border-right: 4px solid var(--orange);
  z-index: 30;
  transition: 0.3s;
  font-size: 13px;
}
.toast.show {
  opacity: 1;
  transform: translateX(50%) translateY(0);
}
.reveal {
  animation: fadeIn 0.75s both;
}
.delay-1 {
  animation-delay: 0.15s;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* ---- Tablet / small laptop: keep two columns but tighten the rhythm ---- */
@media (max-width: 1024px) {
  .navbar {
    padding: 0 26px;
    gap: 20px;
  }
  .nav-links {
    gap: 22px;
  }
  .hero {
    min-height: 0;
    gap: 36px;
  }
  .hero-visual {
    height: auto;
    aspect-ratio: 4 / 3;
    --vs: 0.9;
  }
  .hero-note {
    margin-top: 28px;
  }
  .about {
    gap: 50px;
    padding-top: 100px;
    padding-bottom: 100px;
  }
  .about-content {
    padding-top: 0;
  }
  .services {
    padding-top: 80px;
    padding-bottom: 85px;
  }
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta {
    gap: 45px;
  }
  .cta-mark {
    left: 10px;
    font-size: 220px;
  }
  .section-pad {
    padding-left: 26px;
    padding-right: 26px;
  }
}

@media (max-width: 800px) {
  .navbar {
    height: 75px;
    padding: 0 20px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 75px;
    right: 0;
    left: 0;
    background: #fff;
    padding: 14px 22px;
    z-index: 5;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.08);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-apply {
    padding: 10px 14px;
    font-size: 12px;
  }
  .menu-toggle {
    display: block;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 58px;
    padding-bottom: 55px;
    gap: 45px;
  }
  .hero h1 {
    font-size: clamp(38px, 11vw, 59px);
    letter-spacing: -2px;
  }
  .hero-intro {
    max-width: none;
  }
  .hero-visual {
    /* Fluid instead of a fixed height: the scene keeps its proportions
       and --vs shrinks the contents to match. */
    height: auto;
    aspect-ratio: 5 / 4;
    max-height: 420px;
    --vs: 0.82;
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 0;
  }
  .stat {
    padding-right: 18px;
  }
  .stat:nth-child(3) {
    border-left: 0;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 15px;
    padding-top: 85px;
    padding-bottom: 85px;
  }
  .about-content {
    padding-top: 10px;
  }
  .services-head {
    display: block;
  }
  .services-lead {
    margin-top: 20px;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    min-height: 245px;
  }
  .cta {
    gap: 30px;
    min-height: 300px;
  }
  .cta-mark {
    left: -25px;
    font-size: 250px;
  }
  .cta .light-button {
    margin-right: 0;
  }
  .application-sheet {
    inset: 0;
  }
  .form-header {
    padding: 25px 20px;
  }
  .application-sheet form {
    padding: 8px 20px 28px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-title h2 {
    font-size: 23px;
  }
  .checkbox-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .radio-group {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .form-consent {
    display: block;
  }
  .form-consent .primary-button {
    margin-top: 18px;
    width: 100%;
    justify-content: center;
  }
  footer {
    padding: 25px 20px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .footer-brand {
    order: 1;
  }
  footer p {
    order: 3;
    width: 100%;
    text-align: center;
  }
  footer > span {
    order: 2;
  }
  .section-pad {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ---- Large phones: the nav button competes with the burger, drop it ---- */
@media (max-width: 620px) {
  .navbar {
    padding: 0 16px;
    gap: 12px;
  }
  .navbar .nav-apply {
    display: none;
  }
  .nav-links .nav-apply {
    display: inline-flex;
    justify-content: center;
    margin-top: 10px;
  }
  .brand-copy strong {
    font-size: 24px;
  }
  .brand-mark {
    width: 40px;
    height: 40px;
    border-width: 6px;
  }
  .hero-visual {
    aspect-ratio: 1 / 1;
    max-height: 340px;
    --vs: 0.66;
  }
  .stats-strip {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .stat {
    justify-content: space-between;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
  }
  .stat:last-child {
    border-bottom: 0;
  }
  .hero-actions {
    flex-wrap: wrap;
    gap: 16px;
  }
  .about {
    padding-top: 65px;
    padding-bottom: 65px;
  }
  .services {
    padding-top: 60px;
    padding-bottom: 65px;
  }
  .cta {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 22px;
    padding-top: 45px;
    padding-bottom: 45px;
    min-height: 0;
  }
  .cta-mark {
    left: -40px;
    font-size: 170px;
  }
  .checkbox-grid,
  .radio-group {
    grid-template-columns: 1fr;
  }
}

/* ---- Small phones (320–400px): nothing may overflow the viewport ---- */
@media (max-width: 400px) {
  .navbar {
    height: 66px;
    padding: 0 14px;
  }
  .nav-links {
    top: 66px;
    padding: 12px 16px;
  }
  .brand-copy strong {
    font-size: 21px;
  }
  .brand-copy small {
    letter-spacing: 1px;
  }
  .hero {
    padding-top: 42px;
    padding-bottom: 40px;
    gap: 32px;
  }
  .hero h1 {
    letter-spacing: -1px;
  }
  .hero-intro {
    font-size: 14px;
    line-height: 1.9;
  }
  .hero-visual {
    max-height: 280px;
    --vs: 0.54;
  }
  /* These two sit at the edges of the scene and are the first to clip. */
  .floating-card {
    left: 50%;
    transform: translateX(-50%);
    bottom: 16px;
    max-width: calc(100% - 28px);
  }
  .vertical-label {
    display: none;
  }
  .section-pad {
    padding-left: 16px;
    padding-right: 16px;
  }
  .service-card {
    padding: 22px 20px 26px;
    min-height: 0;
  }
  .form-header,
  .application-sheet form {
    padding-left: 16px;
    padding-right: 16px;
  }
  .cta-mark {
    font-size: 140px;
  }
}

:root {
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(188, 236, 240, 0.22),
      transparent 25rem
    ),
    #f7fbfa;
}

.navbar {
  position: sticky;
  top: 14px;
  z-index: 10;
  height: 76px;
  margin-top: 14px;
  border: 1px solid rgba(219, 231, 231, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 35px rgba(13, 66, 78, 0.07);
  backdrop-filter: blur(18px);
  transition:
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.navbar:hover {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 42px rgba(13, 66, 78, 0.11);
}

.brand-mark {
  transition: transform 0.5s var(--ease-smooth);
}

.brand:hover .brand-mark {
  transform: rotate(18deg) scale(1.05);
}

.nav-apply,
.primary-button,
.light-button {
  border-radius: 999px;
  transition:
    transform 0.35s var(--ease-smooth),
    background 0.25s ease,
    box-shadow 0.35s ease;
}

.nav-apply:hover,
.primary-button:hover,
.light-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(8, 125, 155, 0.2);
}

.hero-visual {
  border-radius: var(--radius-lg) 8px var(--radius-lg) 8px;
  box-shadow: 0 30px 75px rgba(13, 66, 78, 0.12);
  isolation: isolate;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.28),
    transparent 70%
  );
  transform: translateX(-100%);
  animation: shine 7s 1s var(--ease-smooth) infinite;
}

.orbit-one {
  animation: orbitFloat 8s ease-in-out infinite;
}

.orbit-two {
  animation: orbitFloat 10s 1s ease-in-out infinite reverse;
}

.visual-card {
  border-radius: var(--radius-md);
}

.card-main {
  animation: cardFloat 6s ease-in-out infinite;
}

.floating-card {
  border-radius: var(--radius-sm);
  animation: cardFloat 5s 0.8s ease-in-out infinite reverse;
}

.stat strong {
  transition:
    color 0.3s ease,
    transform 0.3s var(--ease-smooth);
}

.stat:hover strong {
  color: var(--orange);
  transform: translateY(-4px);
}

.service-card {
  border: 1px solid rgba(219, 231, 231, 0.8);
  border-top: 3px solid transparent;
  border-radius: var(--radius-md);
  transition:
    transform 0.45s var(--ease-smooth),
    box-shadow 0.45s ease,
    border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-11px) rotate(-1deg);
  border-color: var(--orange);
  box-shadow: 0 24px 45px rgba(8, 70, 80, 0.14);
}

.circle-link {
  transition:
    transform 0.4s var(--ease-smooth),
    background 0.25s ease,
    color 0.25s ease;
}

.circle-link:hover {
  transform: rotate(-25deg) scale(1.08);
}

.cta {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.application-sheet {
  border-radius: var(--radius-lg);
}

input,
textarea,
select {
  border-radius: var(--radius-sm);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

input:focus,
textarea:focus,
select:focus {
  transform: translateY(-1px);
}

.reveal {
  opacity: 0;
  transform: translateY(38px) scale(0.98);
  animation: none;
  transition:
    opacity 0.8s var(--ease-smooth),
    transform 0.8s var(--ease-smooth);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: 0.14s;
}

@keyframes cardFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -11px;
  }
}

@keyframes orbitFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 12px -8px;
  }
}

@keyframes shine {
  0%,
  25% {
    transform: translateX(-100%);
  }
  55%,
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 800px) {
  .navbar {
    top: 8px;
    margin-top: 8px;
    border-radius: 22px;
  }

  .nav-links {
    top: 68px;
    border-radius: 0 0 20px 20px;
  }

  .hero-visual {
    border-radius: var(--radius-md);
  }

  .cta {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .application-sheet {
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

footer {
  max-width: none;
  padding: 76px max(38px, calc((100vw - 1164px) / 2)) 24px;
  background: var(--deep);
  color: #b6cbcd;
}

.footer-main {
  max-width: 1164px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 1.25fr 0.95fr;
  gap: 48px;
  padding-bottom: 58px;
}

.footer-intro {
  max-width: 290px;
}

.footer-brand {
  color: #fff;
}

.footer-brand .brand-mark {
  border-color: var(--cyan);
}

.footer-brand .brand-mark:before {
  background: var(--cyan);
}

.footer-intro > p {
  color: #9db9bd;
  font-size: 13px;
  line-height: 2;
  margin: 25px 0 22px;
}

.footer-socials {
  display: flex;
  gap: 9px;
}

.footer-socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(188, 236, 240, 0.28);
  border-radius: 50%;
  color: var(--cyan);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition:
    transform 0.3s var(--ease-smooth),
    background 0.25s ease,
    color 0.25s ease;
}

.footer-socials a:hover {
  background: var(--orange);
  color: var(--deep);
  transform: translateY(-5px) rotate(-8deg);
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.footer-column h3 {
  color: #fff;
  font: 700 16px "Cairo";
  margin: 0 0 10px;
}

.footer-column a,
.footer-column p {
  color: #9db9bd;
  font-size: 12px;
  line-height: 1.8;
  margin: 0;
  text-decoration: none;
  transition:
    color 0.25s ease,
    transform 0.25s var(--ease-smooth);
}

.footer-column a:hover {
  color: var(--orange);
  transform: translateX(-5px);
}

.footer-contact-column a,
.footer-contact-column p {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.contact-icon {
  color: var(--orange);
  font-weight: 700;
  min-width: 16px;
  text-align: center;
}

.footer-hours p {
  margin-bottom: -8px;
}

.footer-hours strong {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.footer-mail {
  margin-top: 13px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(243, 164, 94, 0.65);
  color: var(--orange) !important;
}

.footer-mail span {
  margin-right: 12px;
  font-size: 17px;
}

.footer-bottom {
  max-width: 1164px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(188, 236, 240, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #789a9f;
  font-size: 11px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-bottom a:hover {
  color: var(--orange);
}

@media (max-width: 800px) {
  footer {
    padding: 58px 20px 22px;
  }

  footer p {
    width: auto;
    text-align: start;
    order: initial;
  }

  .footer-intro > p {
    width: 100%;
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 42px 24px;
    padding-bottom: 42px;
  }

  .footer-intro {
    grid-column: 1 / -1;
    max-width: 360px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-intro {
    grid-column: auto;
  }
}

.submitted-modal {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: none;
}

.submitted-modal.open {
  display: block;
}

.submitted-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 36, 44, 0.78);
  backdrop-filter: blur(8px);
}

.submitted-sheet {
  position: absolute;
  inset: 18px max(16px, calc((100vw - 1020px) / 2));
  overflow: auto;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #e9f3f1;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s var(--ease-smooth);
}

.submitted-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 4px 14px;
}

.preview-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
  transition:
    transform 0.3s var(--ease-smooth),
    background 0.25s ease;
}

.preview-close:hover {
  background: var(--orange);
  transform: rotate(90deg);
}

.preview-action-group {
  display: flex;
  gap: 10px;
}

.outline-button {
  padding: 12px 18px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  transition:
    transform 0.3s var(--ease-smooth),
    background 0.25s ease,
    color 0.25s ease;
}

.outline-button:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-3px);
}

.outline-button span,
#download-application span {
  margin-right: 10px;
  color: var(--orange);
}

.print-form {
  max-width: 900px;
  margin: 0 auto;
  padding: 38px 44px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 15px 50px rgba(13, 66, 78, 0.12);
}

.print-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 25px;
  border-bottom: 3px solid var(--blue);
}

.print-heading {
  text-align: left;
}

.print-heading p {
  margin: 0;
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
}

.print-heading h2 {
  margin: 5px 0;
  color: var(--ink);
  font: 800 27px "Cairo";
}

.print-heading span {
  color: var(--muted);
  font-size: 11px;
}

.preview-section {
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.preview-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.preview-section-title b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 29px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
}

.preview-section-title strong {
  font-size: 15px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px 25px;
}

.preview-field {
  min-height: 45px;
  padding: 7px 0;
  border-bottom: 1px solid #e6eeee;
}

.preview-field.full {
  grid-column: 1 / -1;
}

.preview-field span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
}

.preview-field strong {
  display: block;
  min-height: 18px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  white-space: pre-line;
}

.preview-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.preview-skills span {
  padding: 7px 13px;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  background: #f5fcfb;
  color: var(--ink);
  font-size: 11px;
}

.preview-declaration {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 25px;
  padding: 18px;
  border-radius: 15px;
  background: var(--pale);
}

.declaration-check {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
}

.preview-declaration p {
  flex: 1;
  margin: 0;
  color: #5f7b81;
  font-size: 11px;
  line-height: 1.8;
}

.preview-declaration div {
  min-width: 80px;
  color: var(--muted);
  font-size: 10px;
}

.preview-declaration div strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 11px;
}

@media (max-width: 800px) {
  .submitted-sheet {
    inset: 0;
    padding: 12px;
    border-radius: 0;
  }

  .submitted-actions {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 4px 0 12px;
    background: #e9f3f1;
  }

  .preview-action-group {
    flex: 1;
    justify-content: flex-end;
  }

  .outline-button,
  #download-application {
    padding: 10px 12px;
    font-size: 11px;
  }

  .print-form {
    padding: 25px 20px;
  }

  .print-form-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .print-heading {
    text-align: right;
  }

  .print-heading h2 {
    font-size: 22px;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .preview-field.full {
    grid-column: auto;
  }

  .preview-declaration {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .preview-declaration p {
    flex-basis: calc(100% - 48px);
  }
}

@media print {
  body * {
    visibility: hidden !important;
  }

  .submitted-modal.open,
  .submitted-modal.open * {
    visibility: visible !important;
  }

  .submitted-modal.open {
    position: static;
    display: block;
  }

  .submitted-backdrop,
  .submitted-actions {
    display: none !important;
  }

  .submitted-sheet {
    position: static;
    inset: auto;
    overflow: visible;
    padding: 0;
    background: #fff;
    box-shadow: none;
  }

  .print-form {
    max-width: none;
    padding: 0;
    box-shadow: none;
  }

  @page {
    size: A4;
    margin: 12mm;
  }
}

.submitted-sheet {
  background: #dcefed;
}

.print-form {
  max-width: 820px;
  padding: 36px 42px 30px;
  box-shadow: 0 18px 45px rgba(13, 66, 78, 0.14);
}

.print-form-header {
  display: grid;
  grid-template-columns: 155px 1fr 155px;
  align-items: center;
  min-height: 125px;
  padding-bottom: 22px;
  border-bottom: 0;
  direction: ltr;
}

.print-form-header::after {
  content: "PEOPLE\A OPPORTUNITIES\A GROWTH";
  white-space: pre;
  color: #a1b6b8;
  font-size: 8px;
  letter-spacing: 1px;
  line-height: 1.45;
  text-align: right;
}

.print-form-header .form-brand {
  align-self: start;
}

.print-heading {
  direction: rtl;
  text-align: center;
}

.print-heading p {
  color: #8ba9aa;
  font-size: 11px;
}

.print-heading h2 {
  color: #266276;
  font-size: 29px;
  line-height: 1.35;
}

.print-heading span {
  color: #93a9aa;
  font-size: 11px;
}

.preview-section {
  padding: 11px 0 16px;
  border-bottom: 0;
}

.preview-section-title {
  width: 290px;
  min-height: 34px;
  margin: 0 0 9px auto;
  padding: 0 0 0 14px;
  border-radius: 20px 0 0 20px;
  background: #d5eff1;
  color: #337b89;
  direction: rtl;
}

.preview-section-title b {
  width: 35px;
  height: 34px;
  margin-right: 0;
  border-radius: 0 7px 7px 0;
  background: #2387a0;
}

.preview-section-title strong {
  padding-right: 13px;
  font-size: 13px;
}

.preview-grid {
  gap: 0 28px;
}

.preview-field {
  min-height: 43px;
  padding: 7px 5px 5px;
  border-bottom: 1px solid #d5e1e1;
}

.preview-field span {
  margin-bottom: 3px;
  color: #7b9294;
  font-size: 10px;
}

.preview-field strong {
  color: #315f69;
  font-size: 12px;
}

.preview-skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 18px;
  padding: 0 5px;
}

.preview-skills span {
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid #d5e1e1;
  border-radius: 0;
  background: transparent;
  color: #557477;
  font-size: 11px;
}

.preview-skills span::first-letter {
  color: #2387a0;
}

.preview-declaration {
  margin-top: 11px;
  padding: 17px 5px 5px;
  border-top: 1px solid #d5e1e1;
  border-radius: 0;
  background: transparent;
}

.declaration-check {
  background: #2387a0;
}

@media (max-width: 800px) {
  .print-form-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .print-form-header::after {
    display: none;
  }

  .print-heading {
    text-align: right;
  }

  .preview-section-title {
    width: 250px;
  }

  .preview-skills {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media print {
  .submitted-sheet {
    background: #fff;
  }

  .print-form {
    padding: 0;
    box-shadow: none;
  }
}

/* ------------------------------------------------------------------
   Final phone pass. Kept last on purpose: several earlier 800px blocks
   set the same properties, and CSS resolves ties by source order.
   ------------------------------------------------------------------ */
@media (max-width: 400px) {
  /* Navbar is a floating pill below 800px; the dropdown must follow
     its shorter height here. */
  .nav-links {
    top: 60px;
  }

  .form-title h2 {
    font-size: 20px;
  }

  .toast {
    left: 14px;
    right: 14px;
    bottom: 14px;
    font-size: 13px;
  }
}

/* ---- Footer: quiet entry point to the admin panel ---- */
.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 14px;
  /* Never let the long copyright text squeeze these two into wrapping. */
  flex-shrink: 0;
}

/* Muted on purpose: staff know it is there, visitors are not pulled to it. */
.footer-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: #6d8f95 !important;
  opacity: 0.75;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.footer-admin-link:hover {
  color: var(--cyan) !important;
  opacity: 1;
}

.footer-admin-link span {
  font-size: 12px;
}

@media (max-width: 620px) {
  .footer-bottom-links {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
}

/* Back-to-top reads as an action, not stray text. */
.footer-top-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 8px 15px;
  border: 1px solid rgba(188, 236, 240, 0.22);
  border-radius: 999px;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.footer-top-link span {
  font-size: 13px;
  line-height: 1;
  color: var(--orange);
  transition: transform 0.25s ease;
}

.footer-top-link:hover {
  border-color: rgba(188, 236, 240, 0.45);
  background: rgba(188, 236, 240, 0.08);
}

.footer-top-link:hover span {
  transform: translateY(-2px);
}

/* The copyright is the only part that may give up space. */
.footer-bottom p,
.footer-bottom > span {
  min-width: 0;
}

/* The footer logo doubles as the mobile admin gesture (long press). Suppress
   the browser's own long-press callout so the hold is not interrupted. */
.footer-brand {
  /* No longer a link, so it must not look clickable. */
  cursor: default;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Latin numbers inside an RTL page get reordered by the browser's bidi
   algorithm, which throws the "+" to the wrong end. Forcing LTR on just this
   span makes the number its own island so it reads left-to-right as dialled. */
.ltr-number {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
