/* index.html — page styles */

.hero {
  position: relative;
  padding-top: 110px;
  min-height: 840px;
  overflow: hidden;
  background: var(--paper);
}
.hero-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.khatam-wrap {
  position: absolute;
  inset-inline: 0;
  top: 60px;
  display: grid;
  place-items: center;
  transform: translateX(-9%);
}
.khatam {
  grid-area: 1/1;
  width: min(70vw, 680px);
}
.khatam rect {
  fill: currentColor;
}
.k1 {
  color: var(--sand);
}
.k2 {
  color: var(--turq-l);
  opacity: 0.4;
  width: min(48vw, 470px);
}
.bird {
  position: absolute;
  left: 0;
  width: 44px;
  fill: none;
  stroke: var(--lapis);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.7;
}
.bird:nth-of-type(1) {
  top: 22%;
}
.bird:nth-of-type(2) {
  top: 30%;
  width: 34px;
}
.bird:nth-of-type(3) {
  top: 16%;
  width: 28px;
}
.bird path {
  transform-origin: center;
  animation: flap 0.45s ease-in-out infinite alternate;
}
.mosque-wrap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  transform: translateX(-9%);
  z-index: 1;
  pointer-events: none;
}
.hero-mosque {
  flex: none;
  width: min(1200px, 125vw);
  height: auto;
}
.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 500px 1fr 300px;
  align-items: end;
  min-height: 720px;
  padding-bottom: 30px;
}
.hero-text {
  align-self: start;
  padding-top: 10px;
}
.hero-kicker {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  background: var(--lime);
  padding: 0.3rem 1rem;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.92rem;
}
.hero-title {
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  margin: 1rem 0;
  color: var(--lapis);
}
.hero-title span {
  display: block;
  overflow: hidden;
}
.hero-title span:nth-child(2) {
  color: var(--turq);
}
.hero-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 1.6rem;
}
.hero-trust {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}
.hero-trust li {
  background: #fff;
  border-radius: 30px;
  padding: 0.15rem 0.9rem;
  box-shadow: 0 6px 16px rgba(59, 36, 23, 0.1);
}
.hero-trust i {
  color: var(--pink);
  margin-inline-end: 0.3rem;
}
.hero-art {
  position: relative;
  height: 430px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.hero-art::after {
  content: "";
  position: absolute;
  bottom: -4px;
  width: 150px;
  height: 22px;
  border-radius: 50%;
  background: rgba(59, 36, 23, 0.3);
  filter: blur(7px);
}
.hero-bottle {
  position: relative;
  height: 420px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(26, 63, 134, 0.25));
  z-index: 2;
}
.hero-tag {
  position: absolute;
  z-index: 3;
  background: #fff;
  border-radius: 16px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  box-shadow: 0 10px 24px rgba(59, 36, 23, 0.14);
}
.hero-tag b {
  color: var(--pink);
  font-size: 1.15rem;
}
.tag-a {
  top: 40px;
  inset-inline-start: -30px;
}
.tag-b {
  bottom: 130px;
  inset-inline-end: -10px;
  background: var(--lime);
}
.petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.petal {
  position: absolute;
  top: -30px;
  width: 14px;
  height: 18px;
  border-radius: 70% 0 70% 0;
  opacity: 0.85;
}
.sand {
  background: var(--sand);
}
.sec-head.light h2 {
  color: var(--lime);
}
.sec-head.light p {
  color: #f0d9b8;
}
.termeh-bg {
  background: #221611 url(../img/termeh.webp) center/auto 100% repeat-x;
}
.marquee {
  overflow: hidden;
  padding: 1rem 0;
  border-block: 6px solid var(--clay);
}
.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  align-items: center;
  animation: slide 32s linear infinite;
  font-family: "Aref Ruqaa";
  font-size: 1.7rem;
  background: rgba(34, 22, 17, 0.85);
  padding: 0.4rem 2rem;
  color: var(--lime);
}
.marquee-track i {
  width: 10px;
  height: 10px;
  background: var(--pink);
  transform: rotate(45deg);
}
.marquee-track span:nth-of-type(even) {
  color: #fff;
}
#categories {
  overflow: hidden;
}
#categories::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  inset-inline-end: -200px;
  top: 30px;
  opacity: 0.1;
  animation: spin 70s linear infinite;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%231A3F86' stroke-width='.8'%3E%3Crect x='15' y='15' width='70' height='70'/%3E%3Crect x='15' y='15' width='70' height='70' transform='rotate(45 50 50)'/%3E%3C/g%3E%3C/svg%3E")
    center/contain no-repeat;
}
.cat-medal {
  position: absolute;
  top: 78px;
  inset-inline: 0;
  margin-inline: auto;
  width: 104px;
  height: 104px;
}
.cat-medal svg {
  width: 100%;
  height: 100%;
  animation: sway 5s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.8s);
  transition: transform 0.6s;
}
.cat:hover .cat-medal svg {
  transform: rotate(180deg) scale(1.15);
}
.cat-go {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--ink);
  color: var(--lime);
  border-radius: 20px;
  padding: 0.1rem 0.8rem;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.35s;
}
.cat:hover .cat-go {
  opacity: 1;
  transform: none;
}
@media (hover: none) {
  .cat-go {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 992px) {
  #catGrid > div:nth-child(even) {
    margin-top: 50px;
  }
}
.filters {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.story-frame {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
  padding: 0 0 22px 22px;
}
.fr-star {
  position: absolute;
  top: -34px;
  right: -34px;
  width: 150px;
  height: 150px;
  opacity: 0.7;
  z-index: 0;
  animation: spin 40s linear infinite;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%231A3F86' stroke-width='1.4'%3E%3Crect x='15' y='15' width='70' height='70'/%3E%3Crect x='15' y='15' width='70' height='70' transform='rotate(45 50 50)'/%3E%3C/g%3E%3C/svg%3E")
    center/contain no-repeat;
}
.fr-shadow {
  position: absolute;
  left: 0;
  right: 22px;
  top: 22px;
  bottom: 0;
  background: var(--pink);
  clip-path: var(--arch);
  z-index: 0;
}
.fr-outer {
  position: relative;
  z-index: 1;
  background: var(--turq);
  padding: 10px;
  clip-path: var(--arch);
}
.fr-gap {
  background: var(--paper);
  padding: 7px;
  clip-path: var(--arch);
}
.fr-photo {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  clip-path: var(--arch);
  background: var(--clay);
}
.fr-photo img {
  position: absolute;
  left: 0;
  top: -8%;
  width: 100%;
  height: 116%;
  object-fit: cover;
  max-width: none;
}
.fr-chip {
  position: absolute;
  z-index: 3;
  right: -8px;
  bottom: 100px;
  background: #fff;
  border-radius: 30px;
  padding: 0.3rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 10px 24px rgba(59, 36, 23, 0.18);
  animation: bob 4s ease-in-out infinite;
}
.fr-chip i {
  color: var(--pink);
  margin-inline-end: 0.3rem;
}
.stamp {
  z-index: 3;
}
.stamp {
  position: absolute;
  bottom: -14px;
  inset-inline-end: -10px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: "Aref Ruqaa";
  font-size: 1.3rem;
  animation: spin 14s linear infinite;
  text-align: center;
}
.display-h {
  font-size: clamp(2rem, 3.8vw, 3rem);
  color: var(--lapis);
}
.body-l {
  color: var(--muted);
  font-size: 1.05rem;
}
.stats {
  margin-top: 2rem;
}
.stats b {
  display: block;
  font-size: 2.2rem;
  font-family: "Aref Ruqaa";
  color: var(--turq);
  line-height: 1.2;
}
.stats span {
  font-size: 0.9rem;
  color: var(--muted);
}
.process .step {
  background: rgba(255, 247, 230, 0.96);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  height: 100%;
  position: relative;
  transition: transform 0.35s;
}
.process .step:hover {
  transform: translateY(-8px);
}
.step i {
  font-size: 2.2rem;
  color: var(--turq);
}
.step h3 {
  font-size: 1.4rem;
  margin: 0.6rem 0 0.3rem;
  color: var(--lapis);
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.step-n {
  position: absolute;
  top: -16px;
  inset-inline-start: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--lime);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.why {
  padding: 1.8rem;
  border-radius: 24px;
  background: #fff;
  height: 100%;
  transition:
    background 0.3s,
    transform 0.3s;
}
.why:hover {
  background: var(--lime);
  transform: translateY(-6px);
}
.why i {
  font-size: 2rem;
  color: var(--pink);
  transition: color 0.3s;
}
.why:hover i {
  color: var(--ink);
}
.why h3 {
  font-size: 1.3rem;
  margin: 0.5rem 0 0.3rem;
}
.why p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--muted);
}
.why:hover p {
  color: var(--ink);
}
.quote {
  font-family: "Aref Ruqaa";
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--lapis);
  line-height: 2;
}
.who {
  color: var(--muted);
}
.dots {
  position: static;
  margin-top: 1.5rem;
}
.dots button {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50%;
  background: var(--ink) !important;
  border: 0 !important;
}
.dots .active {
  background: var(--pink) !important;
}
.cta {
  padding: 100px 0;
  text-align: center;
}
.cta h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  color: var(--lime);
}
.cta p {
  color: #f2dfc2;
}
.cta-form {
  display: flex;
  gap: 0.7rem;
  max-width: 560px;
  margin: 2rem auto 0;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-form input {
  flex: 1 1 240px;
  border-radius: 50px;
  border: 0;
  padding: 0.85rem 1.4rem;
}

.cta-form-msg {
    margin-top: 10px;
    font-size: .9rem;
    min-height: 1.2em;
}
.cta-form-msg.success { color: #10b981; }
.cta-form-msg.error   { color: #ef4444; }

.lane-bottle {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5;
  width: var(--bw);
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
  isolation: isolate;
}
.lane-bottle img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 14px 12px rgba(59, 36, 23, 0.28));
}
.halo {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 190%;
  aspect-ratio: 1;
  margin: -95% 0 0 -95%;
  border-radius: 50%;
  background: var(--sand);
  opacity: 0.75;
  z-index: -1;
}
.halo::after {
  content: "";
  position: absolute;
  inset: 8%;
  opacity: 0.5;
  animation: spin 50s linear infinite;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%231A3F86' stroke-width='1.4'%3E%3Crect x='15' y='15' width='70' height='70'/%3E%3Crect x='15' y='15' width='70' height='70' transform='rotate(45 50 50)'/%3E%3C/g%3E%3C/svg%3E")
    center/contain no-repeat;
}
@media (min-width: 1200px) {
  .halo {
    display: block;
  }
}
@media (max-width: 1199px) {
  .hero-grid {
    grid-template-columns: 440px 1fr 230px;
  }
  .hero-bottle {
    height: 340px;
  }
  .hero-art {
    height: 350px;
  }
}
@media (max-width: 991px) {
  .hero {
    padding-top: 90px;
    min-height: 0;
  }
  .mosque-wrap,
  .khatam-wrap {
    transform: none;
  }
  .hero-mosque {
    width: 175vw;
    opacity: 0.3;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: 0;
  }
  .hero-text {
    padding-top: 0;
  }
  .hero-spacer {
    display: none;
  }
  .hero-lead {
    margin-inline: auto;
  }
  .hero-btns,
  .hero-trust {
    justify-content: center;
  }
  .hero-art {
    height: 360px;
    margin-top: 1rem;
  }
  .hero-bottle {
    height: 340px;
  }
  .tag-a {
    inset-inline-start: 8%;
  }
  .tag-b {
    inset-inline-end: 8%;
  }
  #categories::before {
    width: 340px;
    height: 340px;
  }
  .story-frame {
    max-width: 380px;
  }
  .stats {
    text-align: center;
  }
}
@media (max-width: 575px) {
  .hero {
    padding-top: 84px;
  }
  .hero-title {
    font-size: clamp(2rem, 9.5vw, 2.6rem);
  }
  .hero-lead {
    font-size: 0.98rem;
  }
  .hero-btns .btn {
    flex: 1 1 auto;
    padding: 0.75rem 1rem;
  }
  .hero-art {
    height: 300px;
  }
  .hero-bottle {
    height: 290px;
  }
  .hero-tag {
    font-size: 0.74rem;
    padding: 0.3rem 0.7rem;
  }
  .tag-a {
    top: 20px;
  }
  .tag-b {
    bottom: 90px;
  }
  .hero-kicker {
    font-size: 0.8rem;
  }
  .marquee-track {
    font-size: 1.3rem;
    gap: 1.2rem;
  }
  .cat-medal {
    top: 60px;
    width: 84px;
    height: 84px;
  }
  #catGrid > div:nth-child(even) {
    margin-top: 26px;
  }
  .stamp {
    width: 84px;
    height: 84px;
    font-size: 1.05rem;
  }
  .stats b {
    font-size: 1.8rem;
  }
  .process .step {
    padding: 1.6rem 1.2rem;
  }
  .why {
    padding: 1.3rem;
  }
  .cta-form .btn {
    width: 100%;
  }
  .fr-star {
    width: 100px;
    height: 100px;
    top: -24px;
    right: -12px;
  }
  .fr-chip {
    right: 0;
    bottom: 80px;
    font-size: 0.75rem;
  }
  .story-frame {
    padding-left: 16px;
  }
  .fr-shadow {
    right: 16px;
  }
}
