/* =========================================================
   Syaima Levantine — Arabic Page
   Clean page-specific styles
   ========================================================= */

:root {
  --id-max-width: 1100px;
  --id-content-width: 760px;
  --id-space-section: 72px;
  --id-radius: 18px;
}


/* =========================================================
   Base
   ========================================================= */

html[lang="ar"] {
  direction: rtl;
}

html[lang="ar"] body {
  direction: rtl;
  text-align: right;
}

body {
  margin: 0;
  background: #f7f5f0;
  color: #171713;
}

.container {
  width: min(
    calc(100% - 40px),
    var(--id-max-width)
  );

  margin: 0 auto;
}


/* =========================================================
   Header
   ========================================================= */

.site-header {
  padding: 20px 0;

  border-bottom: 1px solid rgba(23, 23, 19, 0.08);

  background: #f7f5f0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;

  gap: 10px;

  color: inherit;
  text-decoration: none;

  direction: rtl;
}

.site-brand img {
  width: 32px;
  height: 32px;

  object-fit: contain;
}

.site-brand span {
  font-size: 0.9rem;

  letter-spacing: 0;

  white-space: nowrap;

  text-transform: none;
}

.site-nav {
  display: flex;
  align-items: center;

  gap: 24px;

  direction: rtl;
}

.site-nav a {
  color: inherit;
  text-decoration: none;

  font-size: 0.95rem;

  opacity: 0.8;

  transition: opacity 0.2s ease;
}

.site-nav a:hover {
  opacity: 1;
}


/* =========================================================
   Hero
   ========================================================= */

.id-hero {
  padding: 96px 0 88px;

  background-color: #f7f5f0;

  background-image:
    linear-gradient(
      rgba(247, 245, 240, 0.88),
      rgba(247, 245, 240, 0.88)
    ),
    url("../assets/images/hero/hero-desktop.webp");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.id-hero-content {
  width: 100%;
  max-width: 100%;

  box-sizing: border-box;

  text-align: right;
}

.eyebrow {
  max-width: 100%;

  margin: 0 0 16px;

  font-size: 0.78rem;
  line-height: 1.5;

  letter-spacing: 0;

  text-transform: none;

  opacity: 0.6;
}

.id-hero h1 {
  width: 100%;
  max-width: 720px;

  margin: 0;

  font-size: clamp(2.35rem, 7vw, 4.4rem);
  line-height: 1.35;

  font-weight: 500;

  letter-spacing: 0;

  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.hero-description {
  width: 100%;
  max-width: 620px;

  margin: 28px 0 0;

  font-size: 1.15rem;
  line-height: 1.9;

  opacity: 0.72;

  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;

  margin-top: 36px;
}


/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 48px;

  padding: 0 22px;

  border-radius: 999px;

  text-decoration: none;

  font-size: 0.95rem;
  font-weight: 500;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #171713;
  color: #f7f5f0;
}

.btn-secondary {
  border: 1px solid rgba(23, 23, 19, 0.18);

  color: #171713;
}

.btn-text {
  padding: 0;

  min-height: auto;

  color: inherit;
}


/* =========================================================
   Sections
   ========================================================= */

.id-section {
  padding: var(--id-space-section) 0;
}

.id-section-soft {
  background: rgba(23, 23, 19, 0.035);
}

.section-heading {
  width: 100%;
  max-width: var(--id-content-width);

  margin-bottom: 36px;

  text-align: right;

  box-sizing: border-box;
}

.section-heading h2 {
  margin: 0;

  font-size: clamp(1.8rem, 4vw, 2.8rem);

  line-height: 1.35;

  font-weight: 500;

  letter-spacing: 0;
}

.section-heading > p:not(.eyebrow) {
  max-width: 620px;

  margin-top: 16px;

  font-size: 1.05rem;

  line-height: 1.9;

  opacity: 0.7;

  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}


/* =========================================================
   Feature Cards
   ========================================================= */

.id-feature-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 20px;
}

.id-feature-card {
  display: flex;

  flex-direction: column;

  min-height: 260px;

  padding: 28px;

  border: 1px solid rgba(23, 23, 19, 0.1);

  border-radius: var(--id-radius);

  background: rgba(255, 255, 255, 0.45);

  color: inherit;

  text-decoration: none;

  text-align: right;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease;

  box-sizing: border-box;
}

.id-feature-card:hover {
  transform: translateY(-2px);

  border-color: rgba(23, 23, 19, 0.2);
}

.id-feature-label {
  font-size: 0.78rem;

  line-height: 1.5;

  letter-spacing: 0;

  text-transform: none;

  opacity: 0.55;
}

.id-feature-card h3 {
  margin: 22px 0 0;

  font-size: 1.5rem;

  line-height: 1.45;

  font-weight: 500;

  letter-spacing: 0;
}

.id-feature-card p {
  margin: 14px 0 0;

  font-size: 1rem;

  line-height: 1.8;

  opacity: 0.7;
}

.id-feature-link {
  margin-top: auto;

  padding-top: 28px;

  font-size: 0.92rem;
}


/* =========================================================
   Article Placeholder
   ========================================================= */

.article-placeholder {
  padding: 32px;

  border: 1px dashed rgba(23, 23, 19, 0.18);

  border-radius: var(--id-radius);

  text-align: center;
}

.article-placeholder p {
  margin: 0 0 18px;

  opacity: 0.65;
}


/* =========================================================
   Article Index Cards
   ========================================================= */

.article-card {
  width: 100%;
  max-width: 760px;

  margin-inline: auto;

  text-align: right;

  box-sizing: border-box;
}

.article-card > a {
  display: block;

  color: inherit;

  text-decoration: none;
}

.article-card .article-image,
.article-card > a > .article-image,
.article-card > figure.article-image {
  display: block;

  width: 320px;
  max-width: 100%;

  margin: 0 auto 1.5rem;

  box-sizing: border-box;
}

.article-card .article-image img,
.article-card > a > .article-image img,
.article-card > figure.article-image img {
  display: block;

  width: 100%;
  max-width: 100%;

  height: auto;

  margin: 0;
}

.article-card-content {
  width: 100%;

  text-align: right;

  box-sizing: border-box;
}

.article-card-content h2,
.article-card-content h3 {
  margin-top: 0;

  font-size: 22px;

  line-height: 1.6;

  font-weight: 700;

  letter-spacing: 0;
}

.article-card-content > p:not(.article-meta) {
  font-size: 18px;

  line-height: 1.9;

  text-align: right;

  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.article-meta {
  display: flex;

  align-items: center;

  gap: 12px;

  flex-wrap: wrap;

  margin-top: 20px;
  margin-bottom: 24px;

  font-size: 16px;
}

.article-author {
  display: inline-flex;

  align-items: center;

  gap: 8px;
}

.article-author-icon {
  width: 20px;
  height: 20px;

  object-fit: contain;

  flex-shrink: 0;
}

.article-notes-heading {
  margin-top: 40px;
}

.article-cta {
  margin: 40px 0;
}

.article-image {
  margin: 40px 0;
}


/* =========================================================
   Article Content
   ========================================================= */

.article-content {
  width: 100%;

  text-align: right;

  direction: rtl;

  box-sizing: border-box;
}

.article-content p {
  font-size: 17px;
  line-height: 1.8;
  text-align: justify;
}

.article-content h2 {
  font-size: 17px;
  line-height: 1.8;
  font-weight: 700;
  text-align: right;
}

.article-content h3 {
  font-size: 17px;
  line-height: 1.8;
  font-weight: 700;
  text-align: right;
}

.article-content ul {
  font-size: 17px;
  line-height: 1.8;
}

.article-meta {
  font-size: 16px;
}

.section-heading > p:not(.eyebrow) {
  font-size: 17px;
  line-height: 1.8;
  text-align: justify;
}


/* =========================================================
   Arabic Word Integrity
   ========================================================= */

html[lang="ar"] body,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] p,
html[lang="ar"] a,
html[lang="ar"] span,
html[lang="ar"] li {
  word-break: normal;

  overflow-wrap: normal;

  hyphens: none;

  white-space: normal;

  letter-spacing: 0;
}

html[lang="ar"] .article-content,
html[lang="ar"] .article-content p,
html[lang="ar"] .article-content h1,
html[lang="ar"] .article-content h2,
html[lang="ar"] .article-content h3,
html[lang="ar"] .article-content h4,
html[lang="ar"] .article-content a {
  word-break: normal;

  overflow-wrap: normal;

  hyphens: none;

  white-space: normal;

  letter-spacing: 0;
}
html[lang="ar"] .article-content p {
  text-align: justify;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  padding: 32px 0;

  border-top: 1px solid rgba(23, 23, 19, 0.08);

  background: #f7f5f0;
}

.site-footer p {
  margin: 0;

  font-size: 0.85rem;

  opacity: 0.55;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1023px) {

  .id-hero {
    background-image:
      linear-gradient(
        rgba(247, 245, 240, 0.88),
        rgba(247, 245, 240, 0.88)
      ),
      url("../assets/images/hero/hero-tablet.webp");
  }

}


@media (max-width: 700px) {

  .container {
    width: min(
      calc(100% - 32px),
      var(--id-max-width)
    );
  }

  .site-header {
    padding: 16px 0;
  }

  .site-header .container {
    align-items: flex-start;

    flex-direction: column;
  }

  .site-nav {
    gap: 18px;
  }

  .id-hero {
    padding: 68px 0 64px;

    overflow-x: hidden;
  }

  .id-hero-content {
    width: 100%;
    max-width: 100%;
  }

  .id-hero h1 {
    width: 100%;
    max-width: 100%;

    font-size: clamp(2rem, 8vw, 3.2rem);

    line-height: 1.4;
  }

  .hero-description {
    width: 100%;
    max-width: 100%;

    font-size: 1rem;

    line-height: 1.9;
  }

  .hero-actions {
    flex-direction: column;

    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .id-feature-grid {
    grid-template-columns: 1fr;
  }

  .id-feature-card {
    min-height: 220px;
  }

  .section-heading {
    max-width: 100%;
  }

  .section-heading h2 {
    font-size: 1.9rem;

    line-height: 1.45;
  }

  .section-heading > p:not(.eyebrow) {
    font-size: 1rem;

    line-height: 1.9;
  }

  .article-card {
    width: 100%;
    max-width: 100%;
  }

  .article-card .article-image,
  .article-card > a > .article-image,
  .article-card > figure.article-image {
    width: 320px;
    max-width: 100%;

    margin-left: auto;
    margin-right: auto;
  }

  .article-card-content h2,
  .article-card-content h3 {
    font-size: 20px;

    line-height: 1.6;
  }

  .article-card-content > p:not(.article-meta) {
    font-size: 17px;

    line-height: 1.9;
  }

  .article-content p {
    font-size: 17px;

    line-height: 1.9;
  }

}
