/* Yabroud.org — coming soon */

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/ibm-plex-sans-arabic/IBMPlexSansArabic-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/ibm-plex-sans-arabic/IBMPlexSansArabic-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/ibm-plex-sans-arabic/IBMPlexSansArabic-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/ibm-plex-sans-arabic/IBMPlexSansArabic-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/ibm-plex-sans-arabic/IBMPlexSansArabic-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ebdfd2;
  --bg-deep: #e4d6c6;
  --bg-elevated: #f4ebe1;
  --ink: #141311;
  --ink-soft: #3a3732;
  --muted: #6b655c;
  --line: rgba(20, 19, 17, 0.12);
  --warm: #9c7936;
  --warm-deep: #7a5d28;
  --warm-soft: rgba(156, 121, 54, 0.14);
  --shadow: 0 18px 50px rgba(40, 30, 18, 0.12);
  --radius: 22px;
  --font: "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--bg);
  background-image: url("../images/page-atmosphere.webp");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Hero */
.hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(5rem, 14vh, 8.5rem) 0 clamp(2.75rem, 7vh, 4.5rem);
}

.hero__inner {
  width: min(100% - 2.5rem, 40rem);
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__title {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink);
  animation: rise 1s var(--ease-out) both;
}

.hero__lead {
  margin: 1.65rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  font-weight: 400;
  line-height: 1.85;
  color: var(--ink-soft);
  text-wrap: pretty;
  animation: rise 1s var(--ease-out) 0.12s both;
}

.hero__lead::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin: 0 auto 1.65rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--warm), transparent);
  opacity: 0.7;
}

/* Platforms */
.platforms {
  position: relative;
  z-index: 2;
  padding: 1rem 0 2.75rem;
}

.platforms__label {
  margin: 0 0 1.15rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
  animation: rise 1s var(--ease-out) 0.38s both;
}

.platform-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.35rem 1.45rem;
  border-radius: var(--radius);
  border: 1px solid rgba(20, 19, 17, 0.1);
  background:
    linear-gradient(145deg, rgba(255, 252, 246, 0.92), rgba(244, 239, 228, 0.88));
  box-shadow: var(--shadow);
  transition:
    transform 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out),
    border-color 0.35s ease;
  animation: rise 1s var(--ease-out) 0.48s both;
}

.platform-card:hover {
  transform: translateY(-4px);
  border-color: rgba(156, 121, 54, 0.35);
  box-shadow: 0 24px 60px rgba(40, 30, 18, 0.16);
}

.platform-card:focus-visible {
  outline: 2px solid var(--warm);
  outline-offset: 3px;
}

.platform-card__mark {
  display: grid;
  place-items: center;
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.9), transparent 55%),
    linear-gradient(160deg, #faf6ee, #efe4d0);
  border: 1px solid rgba(156, 121, 54, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.platform-card__logo {
  width: 2.85rem;
  height: 2.85rem;
}

.platform-card__body {
  min-width: 0;
}

.platform-card__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.platform-card__text {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-soft);
  max-width: 40rem;
  text-wrap: pretty;
}

.platform-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  background: var(--ink);
  color: #f7f1e6;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.3s ease, transform 0.3s var(--ease-out);
}

.platform-card:hover .platform-card__cta {
  background: var(--warm-deep);
}

.platform-card__cta svg {
  width: 1rem;
  height: 1rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 1.35rem 0 1.55rem;
  background: #141311;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  color: rgba(247, 241, 230, 0.62);
  font-size: 0.9rem;
}

.site-footer__inner p {
  margin: 0;
}

.site-footer strong {
  color: #f7f1e6;
  font-weight: 600;
}

/* Motion */
@keyframes rise {
  from {
    opacity: 0.001;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .platform-card {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem;
  }

  .platform-card__mark {
    width: 4.25rem;
    height: 4.25rem;
  }

  .platform-card__logo {
    width: 2.5rem;
    height: 2.5rem;
  }

  .platform-card__cta {
    justify-content: center;
    width: fit-content;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__title,
  .hero__lead,
  .platforms__label,
  .platform-card {
    animation: none !important;
  }

  .platform-card,
  .platform-card__cta {
    transition: none !important;
  }

  .platform-card:hover {
    transform: none;
  }
}
