/* Global styles (RTL template) */
/* Use this file for global utilities and component base styles.
   For production: it's recommended to compile only used Tailwind utilities. */

:root {
  --primary-color: #0B3D6E;
  --secondary-color: #0099D8;
  --navy-deep: #072445;
  --cyan-soft: #E7F6FC;
  --text-main: #0F2744;
  --text-muted: #4B627A;
  --line-color: #D7E6F0;
  --base-font: 'Cairo', sans-serif;
}

/* Accessibility: respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Base */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  overflow-x: hidden;
  position: relative;
  font-family: var(--base-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-main);
  background: #ffffff;
}

/* Scrollbar (webkit) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: white;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 999px;
}

/* Firefox scrollbar */
* {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) white;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -40px;
  right: 12px;
  z-index: 10000;
  background: var(--primary-color);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

/* Preloader transition */
#preloader.hide {
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility .5s ease;
}

/* ============================ */
/* ===== SCROLL TOP BTN ======= */
/* ============================ */
#scrollTopBtn {
  transform: translateY(20px);
}

#scrollTopBtn.show {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0);
}

#scrollTopBtn.show:hover {
  animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 153, 216, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(0, 153, 216, 0); }
}

/* ============================ */
/* ===== HEADER =============== */
/* ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(11, 61, 110, 0.08);
}

.header-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.desktop-nav a {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color .2s ease;
}

.desktop-nav a:hover {
  color: var(--secondary-color);
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff !important;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
}

.nav-cta:hover {
  color: #fff !important;
  opacity: 0.92;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 10px;
  background: var(--cyan-soft);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--primary-color);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 1rem 1rem;
  background: #fff;
}

.mobile-nav a {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--line-color);
  font-weight: 600;
  color: var(--text-main);
}

.mobile-nav[hidden] {
  display: none;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }

  .menu-toggle,
  .mobile-nav {
    display: none !important;
  }

  .header-logo img {
    height: 56px;
  }
}

/* ============================ */
/* ===== BUTTONS ============== */
/* ============================ */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 61, 110, 0.22);
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

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

.btn-ghost {
  background: #fff;
  color: var(--primary-color);
  border: 1px solid var(--line-color);
}

.btn-ghost:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.btn-block {
  width: 100%;
}

/* ============================ */
/* ===== HERO ================= */
/* ============================ */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0 3.5rem;
  background:
    radial-gradient(circle at 80% 10%, rgba(0, 153, 216, 0.18), transparent 42%),
    linear-gradient(180deg, #EAF7FD 0%, #ffffff 72%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 61, 110, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 61, 110, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
  pointer-events: none;
}

.hero-kicker,
.section-kicker {
  color: var(--secondary-color);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  margin-bottom: 0.7rem;
}

.hero-copy h1 {
  font-size: clamp(1.55rem, 3.4vw, 2.45rem);
  line-height: 1.55;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 1rem;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-pills li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid var(--line-color);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-color);
}

.hero-pills i {
  color: var(--secondary-color);
  font-size: 0.75rem;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.book-frame {
  width: min(100%, 340px);
  filter: drop-shadow(0 28px 40px rgba(7, 36, 69, 0.28));
}

.book-frame img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  transform: perspective(1200px) rotateY(8deg);
}

.book-caption {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--primary-color);
}

@media (min-width: 1024px) {
  .hero-section {
    padding: 4rem 0 5rem;
  }

  .book-frame {
    width: 400px;
  }
}

/* ============================ */
/* ===== PATH STRIP =========== */
/* ============================ */
.path-strip {
  background: var(--primary-color);
  color: #fff;
  padding: 1rem 0;
}

.path-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.1rem;
  font-weight: 700;
}

.path-list li {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
}

.path-list li:not(:last-child)::after {
  content: "";
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.45);
}

/* ============================ */
/* ===== SECTIONS ============= */
/* ============================ */
.section-block {
  padding: 4rem 0;
}

.section-alt {
  background: #F5FBFE;
}

.section-head {
  max-width: 42rem;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 0.7rem;
  line-height: 1.5;
}

.section-head p {
  color: var(--text-muted);
  line-height: 1.85;
}

.info-card,
.method-card,
.chapter-card {
  background: #fff;
  border: 1px solid var(--line-color);
  border-radius: 18px;
  padding: 1.5rem;
  height: 100%;
}

.info-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--cyan-soft);
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.info-card h3,
.method-card h3,
.chapter-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  color: var(--navy-deep);
}

.info-card p,
.method-card p,
.chapter-card p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.97rem;
}

.chapter-grid {
  display: grid;
  gap: 1.1rem;
}

.chapter-num {
  display: inline-block;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.55rem;
  letter-spacing: 0.04em;
}

.method-card {
  border-top: 3px solid var(--secondary-color);
}

@media (min-width: 768px) {
  .chapter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .chapter-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================ */
/* ===== BUY BOX ============== */
/* ============================ */
.buy-box {
  display: grid;
  gap: 1.5rem;
  background: #fff;
  border: 1px solid var(--line-color);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(11, 61, 110, 0.08);
}

.buy-copy h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 0.7rem;
  line-height: 1.5;
}

.buy-copy > p {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.buy-list {
  display: grid;
  gap: 0.55rem;
}

.buy-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--text-main);
}

.buy-list i {
  color: var(--secondary-color);
  margin-top: 0.3rem;
}

.buy-price {
  background: linear-gradient(180deg, var(--navy-deep), var(--primary-color));
  color: #fff;
  border-radius: 18px;
  padding: 1.6rem 1.3rem;
  text-align: center;
}

.price-label {
  opacity: 0.85;
  margin-bottom: 0.35rem;
}

.price-value {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.price-value span {
  font-size: 3rem;
  line-height: 1;
  display: inline-block;
  margin-left: 0.25rem;
}

.buy-price .btn-primary {
  background: #fff;
  color: var(--primary-color);
  box-shadow: none;
}

.price-note {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  opacity: 0.8;
}

@media (min-width: 900px) {
  .buy-box {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: center;
    padding: 2.2rem;
  }
}

/* ============================ */
/* ===== FAQ ================== */
/* ============================ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line-color);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.faq-item.is-open {
  border-color: rgba(0, 153, 216, 0.45);
  box-shadow: 0 8px 22px rgba(11, 61, 110, 0.08);
}

.faq-heading {
  margin: 0;
  font-size: 1rem;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: right;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  color: var(--navy-deep);
  padding: 1rem 1.1rem;
  line-height: 1.7;
}

.faq-trigger:hover {
  color: var(--primary-color);
}

.faq-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cyan-soft);
  color: var(--primary-color);
  font-size: 0.75rem;
  transition: transform .3s ease, background-color .3s ease, color .3s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
  background: var(--primary-color);
  color: #fff;
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-panel p {
  color: var(--text-muted);
  line-height: 1.85;
  padding: 0 1.1rem 1.1rem;
  margin: 0;
}

/* ============================ */
/* ===== FOOTER =============== */
/* ============================ */
.site-footer {
  background: var(--navy-deep);
  color: #fff;
  padding: 2.2rem 0;
  text-align: center;
}

.footer-inner img {
  height: 52px;
  width: auto;
  margin: 0 auto 0.8rem;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 4px 8px;
}

.footer-inner p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.8;
}
