/* ==========================================================
   SeerahKey — recreated styles
   ========================================================== */

:root {
  /* Colours sampled from the original site */
  --sky-blue:        #1DC4F4;
  --sky-blue-deep:   #0BB5E8;
  --sky-blue-soft:   #C8EEFB;
  --navy:            #0B2D52;
  --navy-deep:       #08213E;
  --navy-card:       #102E55;
  --mint:            #A8E6A1;
  --mint-glow:       rgba(168, 230, 161, 0.55);
  --pink:            #F8B4C4;
  --pink-glow:       rgba(248, 180, 196, 0.55);
  --cream:           #FFF7E8;
  --white:           #FFFFFF;

  /* Type */
  --font-display:    'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-body:       'Nunito', system-ui, sans-serif;
  --font-serif:      'Cinzel', Georgia, serif;
  --font-arabic:     'Amiri', 'Scheherazade New', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ==========================================================
   PRELOADER
   ========================================================== */
.preloader {
  position: fixed; inset: 0;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader__logo img {
  width: 180px;
  max-width: 60vw;
  filter: drop-shadow(0 0 25px rgba(255,255,255,0.08));
  animation: pulseLogo 2s ease-in-out infinite;
}
@keyframes pulseLogo {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(1.04); opacity: .85; }
}

/* ==========================================================
   HERO  /  TODAY'S SEERAH
   ========================================================== */
.hero {
  position: relative;
  background-color: var(--sky-blue);
  background-image: url('assets/bg-pattern-blue.png');
  background-size: 600px auto;
  background-repeat: repeat;
  padding: 28px 0 0;
  overflow: hidden;
}

.hero__inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 24px 32px;
  position: relative;
  z-index: 2;
}

.hero__header {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}
.hero__logo {
  width: 150px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.1;
  color: var(--white);
  text-align: center;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  text-shadow: 0 2px 0 rgba(0,0,0,0.06);
}
.hero__title-emoji {
  display: inline-block;
  animation: bounceY 2.2s ease-in-out infinite;
}
@keyframes bounceY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

.hero__context {
  text-align: center;
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  max-width: 360px;
  margin: 0 auto 26px;
  line-height: 1.5;
}
.hero__context strong { font-weight: 800; letter-spacing: .03em; }

/* ---- Hadith card ---- */
.hadith-card {
  background: var(--navy-card);
  color: var(--white);
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: 0 10px 35px -10px rgba(0,0,0,0.35);
  margin-bottom: 30px;
}
.hadith-card__intro {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 18px;
}
.hadith-card__quote {
  font-style: italic;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 18px;
  font-family: var(--font-display);
}
.hadith-card__reflection p {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 14px;
  font-family: var(--font-display);
}
.hadith-card__reflection p:last-child { margin-bottom: 0; }

/* ---- Hero bottom illustration ---- */
.hero__bottom {
  position: relative;
  height: 200px;
  margin-top: -10px;
}
.hero__clouds {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  z-index: 1;
}
.hero__kaaba {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  width: 220px;
  z-index: 2;
  animation: floatY 4s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-6px); }
}

/* ==========================================================
   TRAVEL THROUGH ISLAMIC HISTORY
   ========================================================== */
.travel {
  background: var(--white);
  padding: 50px 0 60px;
  position: relative;
}
.travel__inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.travel__visuals {
  position: relative;
  height: 280px;
  margin-bottom: 30px;
}
.travel__calligraphy {
  position: absolute;
  left: 0;
  top: 10px;
  width: 95px;
  opacity: 0.9;
}
.travel__cards {
  position: absolute;
  right: 0;
  top: 0;
  width: 80%;
  height: 100%;
}

.travel__card {
  position: absolute;
  border-radius: 22px;
  overflow: hidden;
  display: block;
  transition: transform .3s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  text-decoration: none;
}
.travel__card:hover { transform: translateY(-4px); }
.travel__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.travel__card--pink {
  top: 0;
  right: 0;
  width: 68%;
  aspect-ratio: 16 / 11;
  border: 5px solid var(--pink);
  box-shadow: 0 0 0 4px var(--pink-glow), 0 6px 18px rgba(0,0,0,0.08);
  z-index: 2;
}
.travel__card--green {
  bottom: 0;
  left: 0;
  width: 68%;
  aspect-ratio: 16 / 11;
  border: 5px solid var(--mint);
  box-shadow: 0 0 0 4px var(--mint-glow), 0 6px 18px rgba(0,0,0,0.08);
  z-index: 3;
}

.travel__play {
  position: absolute;
  top: 50%; left: 50%;
  width: 56px; height: 56px;
  transform: translate(-50%, -50%);
  z-index: 4;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
  animation: pulseBtn 2.4s ease-in-out infinite;
}
.travel__play svg { width: 100%; height: 100%; }
@keyframes pulseBtn {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    }
  50%      { transform: translate(-50%, -50%) scale(1.08); }
}

.travel__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 14px;
}
.travel__title span {
  display: inline-block;
  animation: bounceY 2.2s ease-in-out infinite;
}
.travel__cta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  max-width: 320px;
  margin: 0 auto;
}
.travel__cta em { font-style: italic; font-weight: 700; }

/* ==========================================================
   QURAN VERSE
   ========================================================== */
.quran {
  background-color: var(--sky-blue-soft);
  background-image: url('assets/bg-pattern-light.png');
  background-size: 600px auto;
  background-repeat: repeat;
  padding: 50px 0 60px;
}
.quran__inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.quran__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--navy);
  margin-bottom: 14px;
}
.quran__sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  max-width: 320px;
  margin: 0 auto 28px;
  line-height: 1.5;
}

.quran-card {
  background: var(--white);
  border-radius: 24px;
  border: 3px solid var(--mint);
  box-shadow: 0 0 0 4px var(--mint-glow), 0 8px 22px rgba(0,0,0,0.06);
  padding: 32px 24px;
  text-align: center;
}

.quran-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  background: rgba(168, 230, 161, 0.15);
  border: 2px dashed var(--mint);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}
.quran-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.quran-card__arabic {
  font-family: var(--font-arabic);
  font-size: 28px;
  line-height: 1.9;
  color: var(--navy);
  margin-bottom: 18px;
  font-weight: 700;
  direction: rtl;
}

.quran-card__ref {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 24px;
  line-height: 1.3;
}

.quran-card__translation-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .12em;
  color: var(--navy);
  margin-bottom: 12px;
}
.quran-card__translation {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  line-height: 1.55;
  margin-bottom: 16px;
}
.quran-card__reflection {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--navy);
  line-height: 1.55;
  opacity: 0.85;
}
.quran-card__reflection:empty { display: none; }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  background: var(--navy);
  background-image: url('assets/bg-pattern-blue.png');
  background-size: 600px auto;
  background-blend-mode: overlay;
  background-color: var(--navy);
  color: var(--white);
  padding: 60px 24px 50px;
  text-align: center;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--navy);
  opacity: 0.92;
  z-index: 0;
}
.footer__inner {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
}
.footer__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.25;
  margin-bottom: 18px;
}
.footer__arabic {
  font-family: var(--font-arabic);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 28px;
}
.footer__logo {
  width: 130px;
  margin: 0 auto 50px;
}
.footer__reference {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 28px;
}
.footer__ref-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .12em;
  margin-bottom: 8px;
  opacity: 0.85;
}
.footer__ref-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  opacity: 0.92;
}

/* ==========================================================
   DESKTOP / LARGER SCREENS
   ========================================================== */
@media (min-width: 720px) {
  .hero__inner,
  .travel__inner,
  .quran__inner,
  .footer__inner { max-width: 560px; }

  .hero__title { font-size: 46px; }
  .hadith-card { padding: 36px 32px; }
  .hadith-card__quote { font-size: 19px; }
  .hadith-card__reflection p { font-size: 17px; }
  .hero__kaaba { width: 260px; }

  .travel__visuals { height: 340px; }
  .travel__calligraphy { width: 110px; }
  .travel__title { font-size: 34px; }

  .quran__title { font-size: 38px; }
  .quran-card__arabic { font-size: 32px; }
  .quran-card__ref { font-size: 24px; }

  .footer__title { font-size: 32px; }
}

/* Accessibility — respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
