:root {
  --bg: #0c1118;
  --bg-elevated: #141c27;
  --bg-card: #1a2433;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f7fb;
  --text-muted: #9aa8bc;
  --accent: #c9a227;
  --accent-light: #e8c84a;
  --accent-dark: #8f7420;
  --whatsapp: #25d366;
  --success: #3ecf8e;
  --error: #ff6b6b;
  --radius: 16px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --font-ar: "Cairo", sans-serif;
  --font-en: "Inter", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ar);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

body[lang="en"] {
  font-family: var(--font-en);
}

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

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.bg-pattern {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.bg-glow--top {
  top: -180px;
  inset-inline-end: -120px;
  background: var(--accent-dark);
}

.bg-glow--bottom {
  bottom: -220px;
  inset-inline-start: -160px;
  background: #1e4d7a;
}

.header,
main,
.footer {
  position: relative;
  z-index: 1;
}

.header {
  padding: 1.25rem 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand__logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(201, 162, 39, 0.2);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand__name-ar {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand__name-en {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-en);
}

.lang-switch {
  display: flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem;
  gap: 0.25rem;
}

.lang-switch__btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  transition: background 0.2s, color 0.2s;
}

.lang-switch__btn.is-active {
  background: var(--accent);
  color: #111;
  font-weight: 700;
}

.hero {
  padding: 3rem 0 4rem;
}

.hero__inner {
  text-align: center;
  max-width: 760px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: var(--accent-light);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero__subtitle {
  margin: 0 auto 2rem;
  max-width: 620px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero__progress {
  height: 8px;
  background: var(--bg-elevated);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
}

.hero__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-light));
  border-radius: inherit;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.hero__progress-label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact {
  padding: 2rem 0 5rem;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
}

.section-head__desc {
  margin: 0 auto;
  max-width: 560px;
  color: var(--text-muted);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.info-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 162, 39, 0.35);
  box-shadow: var(--shadow);
}

.info-card--whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.45);
}

.info-card__icon {
  width: 28px;
  height: 28px;
  color: var(--accent-light);
}

.info-card--whatsapp .info-card__icon {
  color: var(--whatsapp);
}

.info-card__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.info-card__value {
  font-weight: 600;
  font-size: 1rem;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 12px;
  padding: 0.95rem 1.5rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.btn--primary {
  width: 100%;
  min-height: 52px;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #111;
  box-shadow: 0 12px 30px rgba(201, 162, 39, 0.25);
}

.btn__loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.btn__label.is-hidden,
.btn__loading.is-hidden,
.btn__loading[hidden] {
  display: none !important;
}

.btn__spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(17, 17, 17, 0.2);
  border-top-color: #111;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(201, 162, 39, 0.32);
}

.btn--primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-status {
  min-height: 1.5rem;
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: var(--error);
}

.footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer__domain {
  margin: 0;
  color: var(--accent-light);
  font-family: var(--font-en);
  font-weight: 600;
}

@media (max-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .lang-switch {
    align-self: center;
  }

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

  .brand__name-ar {
    font-size: 1.05rem;
  }

  .brand__logo {
    width: 60px;
    height: 60px;
  }
}