:root {
  --navy: #175b84;
  --navy-deep: #0b3f60;
  --navy-dark: #072d46;
  --yellow: #efc34a;
  --color-error: #f28c8c;
  --cream: #f8f2e3;
  --white: #fffdf8;
  --page-background: radial-gradient(ellipse 34% 44% at 50% 51%, #216b98 0%, transparent 100%),
    linear-gradient(155deg, var(--navy-dark), var(--navy-deep) 57%, #0d527a);
  --page-dot: #fff3;
  --headline-color: var(--cream);
  --headline-shadow: #031b325c;
  --decoration-line: #d9edfa24;
  --decoration-symbol: #f9e5ad;
  --footer-color: #d9eaf4;
  --dialog-surface: var(--cream);
  --dialog-border: #ffffff52;
  --dialog-shadow: #021623ba;
  --dialog-text: var(--navy-dark);
  --dialog-intro: #34556c;
  --close-surface: #dce9ef;
  --close-hover: #c7dce7;
  --input-surface: var(--white);
  --input-border: #9eb7c4;
  --header-control-surface: #ffffff14;
  --header-control-border: #d9edfa66;
  --header-control-text: var(--cream);
  --confirmation-backdrop: #072d4680;
  --confirmation-surface: var(--navy-deep);
  --confirmation-mark: var(--yellow);
  --confirmation-shadow: #02162380;
  --focus-ring: var(--yellow);
  font-family: "Cairo", sans-serif;
  color: var(--white);
  background: var(--navy-dark);
  font-synthesis: none;
}

:root[lang="en"] { font-family: "Poppins", sans-serif; }
:root[data-theme="light"] {
  --page-background: radial-gradient(ellipse 34% 44% at 50% 51%, #deedf2 0%, transparent 100%),
    linear-gradient(155deg, #fbf9f2, #f5f7f4 57%, #e9f2f5);
  --page-dot: #175b8429;
  --headline-color: var(--navy-dark);
  --headline-shadow: #175b8421;
  --decoration-line: #175b8433;
  --decoration-symbol: var(--navy);
  --footer-color: var(--navy-deep);
  --dialog-surface: var(--white);
  --dialog-border: #175b842e;
  --dialog-shadow: #0b3f6030;
  --header-control-surface: #ffffffbd;
  --header-control-border: #175b8466;
  --header-control-text: var(--navy-dark);
  --confirmation-backdrop: #072d4659;
  --confirmation-surface: var(--cream);
  --confirmation-mark: var(--navy-dark);
  --confirmation-shadow: #0b3f6030;
  --focus-ring: var(--navy);
  color: var(--navy-dark);
  background: #f8f6ed;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; min-width: 320px; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 4px; }

.page-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: clip;
  isolation: isolate;
  background: var(--page-background);
}

.page-shell::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(var(--page-dot) 0.7px, transparent 0.7px) 0 0 / 8px 8px;
  opacity: .2;
  pointer-events: none;
  content: "";
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: .75rem;
  inset-inline-start: .75rem;
  padding: .6rem 1rem;
  border-radius: 999px;
  color: var(--navy-dark);
  background: var(--yellow);
  transform: translateY(-170%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  width: min(100%, 1600px);
  margin-inline: auto;
  padding: clamp(1rem, 2.5vw, 2rem) clamp(1.1rem, 4vw, 4rem) 0;
}
.brand-frame {
  display: grid;
  place-items: center;
  width: clamp(60px, 6vw, 82px);
  aspect-ratio: 1;
  flex: none;
}
.brand-frame img { width: 100%; height: 100%; object-fit: contain; }
.brand-logo--light { display: none; }
:root[data-theme="light"] .brand-logo--dark { display: none; }
:root[data-theme="light"] .brand-logo--light { display: block; }
.header-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; min-width: 0; max-width: 100%; }
.header-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 1px solid var(--header-control-border);
  border-radius: 50%;
  background: var(--header-control-surface);
  color: var(--header-control-text);
  font-weight: 700;
  transition: background .2s, color .2s, border-color .2s;
}
.header-toggle:hover { background: var(--navy); color: var(--white); }
.header-toggle svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle__sun { display: none; }
:root[data-theme="light"] .theme-toggle__sun { display: block; }
:root[data-theme="light"] .theme-toggle__moon { display: none; }
.language-toggle { font-family: "Poppins", "Cairo", sans-serif; font-size: .84rem; }
.language-toggle[lang="ar"] { font-family: "Cairo", sans-serif; font-size: 1.15rem; }
.contact-trigger, .submit-button {
  min-height: 48px;
  padding: .55rem 1.45rem;
  border: 1px solid var(--yellow);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy-dark);
  font-weight: 800;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.contact-trigger:hover, .submit-button:hover { background: #ffe08a; box-shadow: 0 7px 22px #efc34a44; }
.contact-trigger:active, .submit-button:active { transform: scale(.98); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-width: 0;
  padding: 1rem 1rem 1.4rem;
}
.hero__composition {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__headline {
  position: relative;
  z-index: 2;
  margin: 0;
  width: max-content;
  min-width: 0;
  max-width: 100%;
  padding: .12em .16em .18em;
  color: var(--headline-color);
  font-size: clamp(5rem, 13vw, 11.5rem);
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-shadow: 0 18px 45px var(--headline-shadow);
}
:root[lang="en"] .hero__headline { font-size: clamp(2.6rem, 8.2vw, 8rem); }
.hero__mascot-stage {
  position: relative;
  z-index: 1;
  width: min(30vw, 340px);
  margin-top: clamp(-2.7rem, -3vw, -1.2rem);
  aspect-ratio: 1086 / 1448;
  max-height: min(45dvh, 465px);
}
.hero__mascot-reveal, .hero__mascot-motion { width: 100%; height: 100%; }
.hero__mascot-motion img { width: 100%; height: 100%; object-fit: contain; }
.hero__teaser {
  margin: .35rem 0 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--headline-color);
  font-size: clamp(1.4rem, 2.3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.5;
}
.hero__decoration {
  position: absolute;
  z-index: 0;
  display: grid;
  place-items: center;
  width: clamp(190px, 30vw, 430px);
  aspect-ratio: 1;
  border: 1px solid var(--decoration-line);
  border-radius: 50%;
  pointer-events: none;
}
.hero__decoration span {
  color: var(--decoration-symbol);
  font-family: "Poppins", sans-serif;
  font-size: clamp(6rem, 15vw, 13rem);
  font-weight: 600;
  line-height: 1;
  opacity: .07;
}
.hero__decoration--right { top: 9%; right: -10%; transform: rotate(-17deg); }
.hero__decoration--left { bottom: 2%; left: -8%; transform: rotate(19deg) scale(.8); }

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  width: min(100%, 1600px);
  margin-inline: auto;
  padding: 0 clamp(1.1rem, 4vw, 4rem) clamp(1rem, 2vw, 1.7rem);
  color: var(--footer-color);
  font-family: "Poppins", sans-serif;
  font-size: .74rem;
  letter-spacing: .01em;
}

.contact-dialog {
  width: min(100% - 2rem, 490px);
  max-height: min(88dvh, 760px);
  padding: clamp(1.2rem, 4vw, 2rem);
  overflow-y: auto;
  border: 1px solid var(--dialog-border);
  border-radius: 26px;
  background: var(--dialog-surface);
  color: var(--dialog-text);
  box-shadow: 0 28px 90px var(--dialog-shadow);
}
.contact-dialog::backdrop { background: #031e35bf; backdrop-filter: blur(5px); }
.contact-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.contact-dialog__head > div { min-width: 0; overflow-wrap: anywhere; }
.contact-dialog__eyebrow { margin: 0 0 .15rem; color: var(--navy); font: 600 .72rem "Poppins", sans-serif; }
.contact-dialog h2 { margin: 0; font-size: clamp(1.55rem, 5vw, 2rem); line-height: 1.35; }
.contact-dialog__intro { margin: .25rem 0 1.2rem; color: var(--dialog-intro); }
.contact-dialog__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--close-surface);
  color: var(--navy-dark);
  font-size: 1.9rem;
  line-height: 1;
}
.contact-dialog__close:hover { background: var(--close-hover); }
.form-field { margin-block: .75rem; }
.form-field label { display: block; margin-bottom: .35rem; font-weight: 700; }
.form-field input, .form-field textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: .55rem .75rem;
  border: 1.5px solid var(--input-border);
  border-radius: 12px;
  background: var(--input-surface);
  color: var(--navy-dark);
  font-size: 1rem;
}
.form-field textarea { min-height: 105px; resize: vertical; }
.form-field [aria-invalid="true"] { border-color: #a83637; }
.field-error { display: block; margin-top: .4rem; color: #9a2728; font-size: .82rem; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.field-error:empty { display: none; }
.form-status { min-height: 1.6em; margin: .85rem 0 .8rem; font-size: .88rem; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.form-status:empty { display: none; }
.form-status[data-state="error"] { color: #9a2728; }
.form-status[data-state="success"] { color: #11613e; }
.submit-button { width: 100%; }
.submit-button:disabled { cursor: wait; opacity: .6; box-shadow: none; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

.contact-confirmation[hidden] { display: none; }
.contact-confirmation {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--confirmation-backdrop);
}
.contact-confirmation__circle {
  display: grid;
  place-items: center;
  width: clamp(96px, 26vw, 128px);
  aspect-ratio: 1;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  background: var(--confirmation-surface);
  box-shadow: 0 18px 55px var(--confirmation-shadow);
}
.contact-confirmation[data-state="error"] { --confirmation-surface: var(--navy-deep); --confirmation-mark: var(--color-error); }
.contact-confirmation[data-state="error"] .contact-confirmation__circle { border-color: var(--color-error); }
.contact-confirmation__circle svg { width: 58%; height: 58%; }
.contact-confirmation__cross,
.contact-confirmation[data-state="error"] .contact-confirmation__check { display: none; }
.contact-confirmation[data-state="error"] .contact-confirmation__cross { display: block; }
.contact-confirmation__circle path {
  stroke: var(--confirmation-mark);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 767px) {
  .site-header { padding-top: .9rem; }
  .brand-frame { width: 60px; }
  .header-actions { gap: .35rem; }
  .contact-trigger { min-height: 44px; padding-inline: .8rem; font-size: .84rem; }
  .hero { padding: .4rem .7rem .6rem; }
  .hero__headline { max-width: calc(100% + 1.4rem); font-size: clamp(4.3rem, 19vw, 6.8rem); }
  .hero__mascot-stage { width: min(66vw, 300px); max-height: 43dvh; margin-top: -1.2rem; }
  .hero__teaser { margin-top: .15rem; font-size: clamp(1.3rem, 5vw, 1.7rem); }
  .hero__decoration--right { top: 12%; right: -36%; }
  .hero__decoration--left { bottom: 6%; left: -42%; }
  .hero__decoration span { opacity: .055; }
  .site-footer { font-size: .6rem; }
}
@media (max-width: 360px) and (max-height: 650px) {
  .hero__headline { font-size: 4.1rem; }
  .hero__mascot-stage { width: 205px; max-height: 39dvh; }
  .hero__teaser { font-size: 1.2rem; }
  .contact-dialog { max-height: 94dvh; padding: 1rem; }
  .contact-dialog__intro { margin-bottom: .45rem; }
  .form-field { margin-block: .35rem; }
  .form-field textarea { min-height: 75px; }
}
@media (max-height: 850px) and (min-width: 768px) {
  .hero__headline { font-size: clamp(5rem, 10vw, 9rem); }
  .hero__mascot-stage { max-height: 39dvh; }
}
@media (max-height: 480px) {
  .hero__composition { padding-block: 1rem; }
  .hero__mascot-stage { max-height: 50dvh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
