:root {
  --gold-dark: #644819;
  --gold: #c49f60;
  --gold-soft: #a07732;
  --cream: #fffbeb;
  --ink: #0a0a0a;
  --ink-soft: #373737;
  --label: #6a7282;
  --muted: #99a1af;
  --footer-bg: #0f0f0f;

  --page-w: 1512px;
  --gutter: 64px;

  --font-headline: "Markazi Text", "Tajawal", "Reem Kufi", serif;
  --font-display: "Tajawal", "Reem Kufi", "Markazi Text", "IBM Plex Sans Arabic", serif;
  --font-body: "Tajawal", "IBM Plex Sans Arabic", "Noto Sans Arabic", system-ui, sans-serif;
  --font-foot: "IBM Plex Sans Arabic", "Tajawal", sans-serif;
  --font-num: "Inter", "Tajawal", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #f7f2ea;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  position: relative;
  max-width: var(--page-w);
  margin: 0 auto;
  min-height: 100vh;
  overflow: hidden;
  background: #fbf6ec;
  display: flex;
  flex-direction: column;
}

/* ------ Backdrop ------ */
.bg-image {
  position: absolute;
  inset: 0;
  background-image: url("/assets/bg.jpg");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  z-index: 0;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(255, 251, 235, 0.92) 0%,
      rgba(255, 251, 235, 0.78) 30%,
      rgba(255, 251, 235, 0.30) 60%,
      rgba(255, 251, 235, 0.00) 78%);
  z-index: 1;
}

/* ------ Top bar (logo centered, lang toggle in top-right corner) ------ */
.topbar {
  position: relative;
  z-index: 5;
  padding: 36px var(--gutter) 8px;
  text-align: center;
}

.logo {
  display: inline-block;
}

.logo img {
  display: block;
  height: 130px;
  width: auto;
}

.lang-toggle {
  position: absolute;
  top: 36px;
  inset-inline-end: var(--gutter);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(196, 159, 96, 0.14);
  border: 1px solid rgba(196, 159, 96, 0.45);
  border-radius: 999px;
  color: #fff;
  font: 700 16px/1 var(--font-display);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.lang-toggle iconify-icon { color: #fff; display: inline-block; }

/* ------ Hero text column ------ */
.hero {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1080px;
  margin: 24px auto 0;
  padding: 0 var(--gutter);
  text-align: center;
}

.hero-title {
  margin: 0;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 128px;
  line-height: 1.05;
  letter-spacing: 0;
  /* dark gold on the right, light gold on the left — matches Figma so the
     right portion (over the bright gold-pour image) stays readable */
  background: linear-gradient(to left, var(--gold-dark) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px auto;
  max-width: 480px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(196,159,96,0) 0%, rgba(196,159,96,0.55) 50%, rgba(196,159,96,0) 100%);
}

.divider-diamond {
  width: 12px;
  height: 12px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: 0 0 12px;
  box-shadow: 0 0 0 2px rgba(196,159,96,0.18);
}

.hero-subtitle {
  margin: 0 auto 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.3;
  color: var(--ink);
  max-width: 640px;
}

.hero-desc {
  margin: 0 auto 28px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 620px;
}

/* ------ Contact strip (3 cards in a row) ------ */
.contact-section {
  position: relative;
  z-index: 5;
  padding: 0 var(--gutter) 8px;
}

.contact-strip {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 36px rgba(100, 72, 25, 0.08);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--cream);
  border-radius: 14px;
  min-width: 0;
}

.contact-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: var(--gold);
  border: 1px solid rgba(196, 159, 96, 0.25);
}

.contact-text {
  min-width: 0;
  flex: 1;
}

.contact-label {
  font-size: 12px;
  color: var(--label);
  margin-bottom: 4px;
}

.contact-value {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  word-break: break-word;
}

.contact-value.ltr {
  direction: ltr;
  text-align: right;
  font-family: var(--font-num);
}

.contact-value:hover { color: var(--gold-soft); }

/* ------ CTA + Subscribe ------ */
.cta {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 720px;
  margin: 28px auto 8px;
  padding: 0 var(--gutter);
  text-align: center;
}

.cta-title {
  margin: 0 auto 6px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.4;
  color: var(--gold-soft);
  max-width: 600px;
}

.subscribe {
  margin: 22px auto 0;
  max-width: 560px;
}

.subscribe-label {
  display: block;
  font-size: 14px;
  color: var(--label);
  margin-bottom: 10px;
}

.subscribe-row {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid rgba(196, 159, 96, 0.35);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(100, 72, 25, 0.08);
}

.subscribe-input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 14px 18px;
  font: 500 15px/1 var(--font-num);
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.subscribe-input::placeholder { color: #b8b3a8; }

.subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 0;
  background: linear-gradient(95deg, var(--gold-dark) 0%, var(--gold) 100%);
  color: #fff;
  font: 600 15px/1 var(--font-display);
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.05s ease;
}

.subscribe-btn:hover { filter: brightness(1.08); }
.subscribe-btn:active { transform: translateY(1px); }

.subscribe-status {
  margin: 10px 4px 0;
  min-height: 1.2em;
  font-size: 13px;
  color: var(--label);
}

.subscribe-status.is-error { color: #b42318; }
.subscribe-status.is-success { color: #1f7a34; }

/* ------ Features (4 cards) ------ */
.features {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1080px;
  margin: 40px auto 56px;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 18px 12px;
  text-align: center;
  box-shadow: none;
}

.feature-icon {
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  width: 56px;
  height: 56px;
  color: var(--gold);
}

.feature-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}

.feature-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ------ Footer ------ */
.footer {
  position: relative;
  z-index: 5;
  background: var(--footer-bg);
  color: #d1d5db;
  padding: 22px var(--gutter);
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  max-width: 1380px;
  margin: 0 auto;
}

.socials {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.social {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.social:hover {
  background: rgba(196, 159, 96, 0.18);
  border-color: rgba(196, 159, 96, 0.45);
  color: var(--gold);
}

.copyright {
  font-family: var(--font-foot);
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.footer-logo img {
  display: block;
  height: 44px;
  width: auto;
}

/* ------ Responsive ------ */
@media (max-width: 1200px) {
  :root { --gutter: 32px; }
  .hero-title { font-size: 110px; }
  .contact-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero-title { font-size: 80px; }
  .lang-toggle { top: 26px; }
  .topbar { padding-top: 24px; }
  .logo img { height: 96px; }
  .contact-strip { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 14px; justify-items: center; }
  .socials { justify-content: center; }
  .footer-logo img { height: 38px; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .hero-title { font-size: 56px; }
  .hero-subtitle { font-size: 22px; }
  .hero-desc { font-size: 15px; }
  .cta-title { font-size: 18px; }
  .logo img { height: 80px; }
  .lang-toggle { padding: 8px 12px; font-size: 13px; }
  .subscribe-row { flex-direction: column; }
  .subscribe-btn { justify-content: center; padding: 14px; }
  .features { grid-template-columns: 1fr; }
  .contact-card { padding: 12px; }
}
