/* =========================================
   TAKKAH | تَكّة
   ZID NUMU THEME - VERSION 4.0
========================================= */

/* 1. BRAND COLORS */

:root {
  --takkah-navy: #0B1B2E;
  --takkah-turquoise: #00BFCB;
  --takkah-orange: #FF6A00;
  --takkah-white: #FFFFFF;
  --takkah-light: #F6F5F4;
  --takkah-muted: #545352;
  --takkah-border: #E0E4E8;
  --takkah-radius: 8px;
}

/* 2. GLOBAL STYLES */

body {
  color: var(--takkah-navy);
  font-family: "Cairo", sans-serif;
}

:where(a, button, input, select, textarea)
:focus-visible {
  outline: 2px solid var(--takkah-turquoise);
  outline-offset: 3px;
}

/* 3. HERO BANNER */

#main section.section-hero {
  position: relative;
  isolation: isolate;
}

#main section.section-hero
> .theme-container {
  position: relative;
  z-index: 11;
  color: #FFFFFF !important;
}

/* HERO TEXT */

#main section.section-hero
> .theme-container
:is(h1, h2, h3, h4, p, span, small) {
  color: #FFFFFF !important;
  text-shadow: 0 2px 7px
    rgba(0, 0, 0, 0.35);
}

#main section.section-hero
> .theme-container
:is(h1, h2, h3) {
  line-height: 1.45;
  text-wrap: balance;
}

#main section.section-hero
> .theme-container p {
  line-height: 1.8;
}

/* 4. HERO BUTTON */

#main section.section-hero
> .theme-container
:is(a, button) {
  background-color: #00BFCB !important;
  color: #0B1B2E !important;
  border-color: #00BFCB !important;
  border-radius: 8px;
  text-shadow: none !important;
  font-weight: 700;
  transition: background-color 0.2s ease;
}

#main section.section-hero
> .theme-container
:is(a, button)
:is(span, small) {
  color: #0B1B2E !important;
  text-shadow: none !important;
}

#main section.section-hero
> .theme-container
:is(a, button):hover {
  background-color: #38D0D9 !important;
}

/* 5. DESKTOP LAYOUT */

/* Products on left, copy on right */

@media (min-width: 768px) {

  #main section.section-hero {
    justify-content: flex-start !important;
  }

  #main section.section-hero
  > .theme-container {
    box-sizing: border-box;

    width: min(46%, 620px) !important;
    max-width: min(46%, 620px) !important;

    margin-right: 0 !important;
    margin-left: auto !important;

    text-align: right !important;
    align-items: flex-start;
  }

}

/* 6. MOBILE LAYOUT */

@media (max-width: 767px) {

  #main section.section-hero
  > .theme-container {
    width: 100% !important;
    max-width: 100% !important;

    margin-inline: auto !important;

    text-align: center !important;
    align-items: center;
  }

  #main section.section-hero
  > .theme-container
  :is(h1, h2) {
    font-size: clamp(
      1.5rem,
      6vw,
      2.2rem
    );
  }

}

/* 7. ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

  #main section.section-hero
  > .theme-container
  :is(a, button) {
    transition: none;
  }

/* TAKKAH - Mobile Hero Refinement */

@media (max-width: 767px) {

  /* حاوية محتوى البنر */
  #main section.section-hero .theme-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-inline: 18px !important;
    box-sizing: border-box;
    text-align: center !important;
    gap: 12px;
  }

  /* العنوان */
  #main section.section-hero
  .theme-container h1,
  #main section.section-hero
  .theme-container h2 {
    font-size: clamp(
      24px, 6.5vw, 30px
    ) !important;
    line-height: 1.45 !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    text-wrap: balance;
  }

  /* الوصف */
  #main section.section-hero
  .theme-container p {
    font-size: 15px !important;
    line-height: 1.8 !important;
    color: #FFFFFF !important;
  }

  /* زر التسوق */
  #main section.section-hero
  .theme-container a,
  #main section.section-hero
  .theme-container button {
    font-size: 15px !important;
    padding: 11px 22px !important;
    border-radius: 10px !important;
    min-height: 44px;
    max-width: 100%;
    background-color: #00BFCB !important;
    color: #0B1B2E !important;
  }
}

/* TAKKAH - Categories Mobile Cards V4 */

@media (max-width: 767px) {

  /* تصغير كل بطاقة تصنيف */
  #main section.section-categories
  .embla__slide {
    flex: 0 0 46% !important;
    width: 46% !important;
    min-width: 0 !important;
    max-width: 46% !important;
  }

  /* تنسيق الصور */
  #main section.section-categories
  .embla__slide img {
    width: 100% !important;
    aspect-ratio: 4 / 5 !important;
    object-fit: cover !important;
    border-radius: 8px;
  }

  /* أسماء التصنيفات */
  #main section.section-categories
  .embla__slide h3 {
    font-size: 14px !important;
    line-height: 1.5 !important;
    text-align: center !important;
  }

}

}