/* =========================================================
   Syaima Levantine — Indonesian Homepage
   Page-specific styles
   ========================================================= */

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


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

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;
}

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

  object-fit: contain;
}

.site-brand span {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

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

  gap: 24px;
}

.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;
}

.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;
}

.eyebrow {
  margin: 0 0 16px;

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

  letter-spacing: 0.16em;
  text-transform: uppercase;

  opacity: 0.6;
}

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

  margin: 0;

  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1.05;
  font-weight: 500;

  letter-spacing: -0.035em;
}

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

  margin: 28px 0 0;

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

  opacity: 0.72;
}

.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 {
  max-width: var(--id-content-width);

  margin-bottom: 36px;
}

.section-heading h2 {
  margin: 0;

  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  font-weight: 500;

  letter-spacing: -0.025em;
}

.section-heading p:last-child {
  max-width: 620px;

  margin-top: 16px;

  line-height: 1.7;

  opacity: 0.7;
}


/* =========================================================
   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;

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

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

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

.id-feature-label {
    font-size: 0.72rem;
    line-height: 1.4;

    letter-spacing: 0;
    text-transform: none;

    opacity: 0.55;
}

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

  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 500;
}

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

  line-height: 1.7;

  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;
}


/* =========================================================
   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;
}


/* =========================================================
   Mobile
   ========================================================= */

@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;
  }

  .id-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
  }

  .hero-description {
    font-size: 1.05rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

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

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

}

/* =========================================================
   Subtle Botanical Hero — Responsive Backgrounds
   ========================================================= */

@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) {

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

}

/* =========================================================
   Arabic RTL Refinement
   ========================================================= */

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

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

html[lang="ar"] .site-brand {
  direction: rtl;
}
html[lang="ar"] .site-brand span {
  letter-spacing: 0;
  text-transform: none;
}
html[lang="ar"] .site-nav {
  direction: rtl;
}

html[lang="ar"] .id-hero-content {
  text-align: right;
}

html[lang="ar"] .id-feature-card {
  text-align: right;
}

html[lang="ar"] .section-heading {
  text-align: right;
}

html[lang="ar"] .article-placeholder {
  text-align: center;
}

/* =========================================================
   Arabic RTL Typography — Mobile Safe
   ========================================================= */

html[lang="ar"] .id-hero-content {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

html[lang="ar"] .id-hero h1 {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;

  font-size: clamp(1.9rem, 8vw, 2.8rem);
  line-height: 1.4;

  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  text-align: right;
}

html[lang="ar"] .hero-description {
  width: 100%;
  max-width: 100%;

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

  overflow-wrap: break-word;
}

html[lang="ar"] .eyebrow {
  max-width: 100%;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 700px) {

  html[lang="ar"] .id-hero {
    overflow-x: hidden;
  }

  html[lang="ar"] .id-hero-content {
    width: 100%;
    max-width: 100%;
  }

  html[lang="ar"] .id-hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
    line-height: 1.4;
    max-width: 100%;
  }

  html[lang="ar"] .hero-description {
    font-size: 1rem;
    line-height: 1.9;
  }

}

/* =========================================================
   Arabic Typography — 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: break-word;
    hyphens: none;
    white-space: normal;
    letter-spacing: 0;
    
}
/* Arabic — Preserve whole words */
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;
}