/* Quran Se Shifa — spiritual book sales site */
:root {
  --green-950: #041a14;
  --green-900: #0b3d2e;
  --green-800: #14523d;
  --green-700: #1a6b4f;
  --gold-400: #e0c36a;
  --gold-500: #c9a227;
  --gold-600: #a8841a;
  --cream-50: #f7f3e8;
  --ink: #10241c;
  --muted: #4a6358;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(4, 26, 20, 0.28);
  --radius: 18px;
  --max: 1120px;
  --font-display: "Cormorant Garamond", "Noto Serif Devanagari", Georgia, serif;
  --font-body: "Noto Sans Devanagari", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(201, 162, 39, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(20, 82, 61, 0.18), transparent 50%),
    linear-gradient(180deg, #f3efe3 0%, #e8f0ea 45%, #f6f2e8 100%);
  line-height: 1.65;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(4, 26, 20, 0.88);
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--cream-50);
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gold-500);
  object-fit: cover;
  background: var(--cream-50);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--gold-400);
}

.brand-text span {
  font-size: 0.78rem;
  color: rgba(247, 243, 232, 0.75);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  color: rgba(247, 243, 232, 0.9);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--gold-400);
}

.nav-cta {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--green-950) !important;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(201, 162, 39, 0.45);
  color: var(--gold-400);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(100vh, 860px);
  display: grid;
  align-items: end;
  color: var(--cream-50);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(4, 26, 20, 0.35) 0%, rgba(4, 26, 20, 0.72) 48%, rgba(4, 26, 20, 0.94) 100%),
    radial-gradient(circle at 70% 30%, rgba(201, 162, 39, 0.22), transparent 40%),
    url("../assets/book-cover.jpg") center / cover no-repeat;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(224, 195, 106, 0.35) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
}

.hero-content {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 7rem 0 4.5rem;
  display: grid;
  gap: 1.25rem;
  max-width: 40rem;
  justify-items: start;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: fadeUp 0.9s ease both;
}

.hero-brand img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid var(--gold-500);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  background: var(--cream-50);
}

.hero-brand-name {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--gold-400);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.55rem, 4.2vw, 2.35rem);
  line-height: 1.25;
  max-width: 16ch;
  animation: fadeUp 0.9s ease 0.12s both;
}

.hero p {
  margin: 0;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  color: rgba(247, 243, 232, 0.88);
  max-width: 34ch;
  animation: fadeUp 0.9s ease 0.22s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.4rem;
  animation: fadeUp 0.9s ease 0.32s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--green-950);
  box-shadow: 0 10px 28px rgba(201, 162, 39, 0.35);
}

.btn-ghost {
  background: rgba(247, 243, 232, 0.08);
  color: var(--cream-50);
  border: 1px solid rgba(224, 195, 106, 0.45);
}

.price-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-top: 0.35rem;
  animation: fadeUp 0.9s ease 0.4s both;
}

.price-chip .amount {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold-400);
  font-weight: 700;
}

.price-chip .note {
  font-size: 0.9rem;
  color: rgba(247, 243, 232, 0.7);
}

/* Sections */
section {
  padding: 4.5rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--green-900);
  line-height: 1.2;
}

.section-head p {
  margin: 0 auto;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.ornament {
  width: 72px;
  height: 2px;
  margin: 0.9rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}

/* About book */
.book-layout {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 2.5rem;
  align-items: center;
}

.book-cover-wrap {
  position: relative;
}

.book-cover-wrap img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201, 162, 39, 0.35);
  transition: transform 0.35s ease;
}

.book-cover-wrap:hover img {
  transform: scale(1.02);
}

.book-meta h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--green-900);
}

.book-meta p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.feature-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(11, 61, 46, 0.12);
}

.feature-list li:last-child {
  border-bottom: 1px solid rgba(11, 61, 46, 0.12);
}

.feature-list .mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(11, 61, 46, 0.1);
  color: var(--green-800);
  font-size: 0.85rem;
}

.feature-list strong {
  display: block;
  color: var(--green-900);
  margin-bottom: 0.15rem;
}

.feature-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Benefits */
.benefits {
  background:
    linear-gradient(180deg, rgba(11, 61, 46, 0.04), rgba(11, 61, 46, 0.09));
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.benefit {
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(11, 61, 46, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.benefit:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(4, 26, 20, 0.1);
}

.benefit .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--green-800), var(--green-900));
  color: var(--gold-400);
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

.benefit h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--green-900);
}

.benefit p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Videos */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--green-950);
  box-shadow: var(--shadow);
}

.video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

.video-card figcaption {
  padding: 0.9rem 1.1rem 1.1rem;
  color: rgba(247, 243, 232, 0.9);
  font-size: 0.95rem;
}

/* Author */
.author {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, var(--green-900), var(--green-950));
  color: var(--cream-50);
  border-radius: 28px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: var(--shadow);
}

.author h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  color: var(--gold-400);
}

.author p {
  margin: 0 0 1rem;
  color: rgba(247, 243, 232, 0.85);
}

.author-facts {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

.author-facts div {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.author-facts strong {
  color: var(--gold-400);
  min-width: 5.5rem;
}

.author-aside {
  text-align: center;
  padding: 1.25rem;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.author-aside .big-price {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--gold-400);
  line-height: 1;
  margin: 0.4rem 0 0.2rem;
}

.author-aside .pages {
  color: rgba(247, 243, 232, 0.7);
  margin-bottom: 1.2rem;
}

/* Order */
.order {
  background:
    radial-gradient(circle at top right, rgba(201, 162, 39, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(11, 61, 46, 0.06));
}

.order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.order-copy h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--green-900);
}

.order-copy p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.order-steps {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  counter-reset: step;
  display: grid;
  gap: 0.9rem;
}

.order-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.8rem;
  align-items: start;
}

.order-steps li::before {
  content: counter(step);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-900);
  color: var(--gold-400);
  font-weight: 700;
}

.order-form {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(11, 61, 46, 0.1);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(4, 26, 20, 0.08);
}

.order-form h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--green-900);
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.field label {
  font-size: 0.92rem;
  color: var(--green-900);
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(11, 61, 46, 0.18);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid rgba(201, 162, 39, 0.55);
  border-color: transparent;
}

.form-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.4rem 0 1rem;
}

.wa-submit {
  width: 100%;
  background: #25d366;
  color: #06351a;
}

.wa-submit:hover {
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
}

/* Preview strip */
.preview-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.preview-strip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border-radius: 14px;
  border: 1px solid rgba(11, 61, 46, 0.12);
  box-shadow: 0 10px 24px rgba(4, 26, 20, 0.1);
  filter: blur(0.4px);
}

/* Footer */
.site-footer {
  background: var(--green-950);
  color: rgba(247, 243, 232, 0.8);
  padding: 2.5rem 0 6.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h3,
.site-footer h4 {
  margin: 0 0 0.75rem;
  color: var(--gold-400);
  font-family: var(--font-display);
}

.site-footer p,
.site-footer a {
  color: rgba(247, 243, 232, 0.78);
  margin: 0 0 0.45rem;
}

.site-footer a:hover {
  color: var(--gold-400);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  font-size: 0.88rem;
  color: rgba(247, 243, 232, 0.55);
  text-align: center;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 50;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease;
}

.wa-float:hover {
  transform: scale(1.06);
}

.wa-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.wa-tooltip {
  position: absolute;
  right: 72px;
  white-space: nowrap;
  background: var(--green-950);
  color: var(--cream-50);
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.wa-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 900px) {
  .book-layout,
  .order-grid,
  .author,
  .footer-grid,
  .benefit-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .preview-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-content {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(4, 26, 20, 0.97);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.35rem;
    border-bottom: 1px solid rgba(201, 162, 39, 0.25);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 0.5rem;
  }

  .nav-cta {
    text-align: center;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-brand img {
    width: 68px;
    height: 68px;
  }

  .preview-strip {
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.4rem;
  }

  .preview-strip img {
    width: 180px;
    scroll-snap-align: start;
  }

  section {
    padding: 3.25rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-bg,
  .reveal,
  .hero-brand,
  .hero h1,
  .hero p,
  .hero-actions,
  .price-chip {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
