/* ============================================================
   Saung Qur'an — Landing Page Styles
   Palette (5): off-white bg, white surface, deep green,
   soft green, muted gold accent
   ============================================================ */
:root {
  --bg: #f6f2e9;
  --surface: #ffffff;
  --surface-2: #efe9db;
  --green-900: #143a2b;
  --green-700: #1f4d3a;
  --green-500: #2f7d5b;
  --green-100: #dcebe1;
  --gold: #b8893f;
  --ink: #1a2b23;
  --muted: #5b6b62;
  --line: #e3dccd;
  --wa: #25d366;
  --wa-dark: #1da851;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(20, 58, 43, .06), 0 2px 8px rgba(20, 58, 43, .05);
  --shadow-md: 0 8px 30px rgba(20, 58, 43, .10);
  --shadow-lg: 0 20px 60px rgba(20, 58, 43, .16);

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

  --maxw: 1140px;
  --pad: clamp(1.1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--green-900);
  line-height: 1.18;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1rem; text-wrap: pretty; }

a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-500); }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.narrow { max-width: 800px; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--green-700); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--green-500); outline-offset: 2px; border-radius: 6px; }

/* ---------------- Buttons ---------------- */
.btn {
  --btn-bg: var(--green-700);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-weight: 600;
  padding: .7rem 1.25rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .5rem 1rem; font-size: .92rem; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary { --btn-bg: var(--wa); --btn-fg: #08351d; }
.btn-primary:hover { background: var(--wa-dark); color: #fff; }

.btn-outline { background: transparent; color: var(--green-700); border-color: var(--green-700); }
.btn-outline:hover { background: var(--green-700); color: #fff; }

.btn-soft { background: var(--green-100); color: var(--green-900); border-color: transparent; }
.btn-soft:hover { background: var(--green-500); color: #fff; }

.link-btn {
  background: none; border: none; padding: 0; cursor: pointer; font: inherit;
  color: var(--green-700); font-weight: 600; margin-top: .35rem;
}
.link-btn:hover { color: var(--green-500); }

/* WhatsApp glyph via CSS mask-free simple icon */
.wa-icon {
  width: 18px; height: 18px; flex: 0 0 auto; display: inline-block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2308351d'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2 22l5.25-1.38a9.9 9.9 0 0 0 4.79 1.22h.01c5.46 0 9.91-4.45 9.91-9.91 0-2.65-1.03-5.14-2.9-7.01A9.82 9.82 0 0 0 12.04 2Zm5.8 14.13c-.24.68-1.42 1.32-1.95 1.36-.5.04-.5.39-3.15-.66-2.66-1.05-4.31-3.77-4.44-3.95-.13-.18-1.06-1.41-1.06-2.69 0-1.28.67-1.9.91-2.17.24-.26.53-.33.7-.33.18 0 .35 0 .5.01.16.01.38-.06.59.45.24.57.79 1.96.86 2.1.07.14.11.31.02.49-.09.18-.13.29-.26.45-.13.16-.28.35-.4.47-.13.13-.27.28-.12.53.14.26.65 1.07 1.4 1.74.96.86 1.77 1.12 2.02 1.25.25.13.4.11.55-.06.15-.18.63-.74.8-.99.16-.25.33-.21.55-.13.23.08 1.44.68 1.68.8.25.12.41.18.47.29.06.11.06.63-.18 1.31Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: contain;
}
.wa-icon-lg { width: 30px; height: 30px; }
.wa-float .wa-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2 22l5.25-1.38a9.9 9.9 0 0 0 4.79 1.22h.01c5.46 0 9.91-4.45 9.91-9.91 0-2.65-1.03-5.14-2.9-7.01A9.82 9.82 0 0 0 12.04 2Zm5.8 14.13c-.24.68-1.42 1.32-1.95 1.36-.5.04-.5.39-3.15-.66-2.66-1.05-4.31-3.77-4.44-3.95-.13-.18-1.06-1.41-1.06-2.69 0-1.28.67-1.9.91-2.17.24-.26.53-.33.7-.33.18 0 .35 0 .5.01.16.01.38-.06.59.45.24.57.79 1.96.86 2.1.07.14.11.31.02.49-.09.18-.13.29-.26.45-.13.16-.28.35-.4.47-.13.13-.27.28-.12.53.14.26.65 1.07 1.4 1.74.96.86 1.77 1.12 2.02 1.25.25.13.4.11.55-.06.15-.18.63-.74.8-.99.16-.25.33-.21.55-.13.23.08 1.44.68 1.68.8.25.12.41.18.47.29.06.11.06.63-.18 1.31Z'/%3E%3C/svg%3E");
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 242, 233, .85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); background: rgba(246, 242, 233, .95); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-head); font-weight: 700; color: var(--green-900); font-size: 1.2rem; }
.brand:hover { color: var(--green-700); }
.brand-mark { color: var(--gold); font-size: 1.5rem; line-height: 1; }
.nav-desktop { display: none; gap: 1.5rem; }
.nav-desktop a { font-weight: 500; color: var(--ink); font-size: .98rem; }
.nav-desktop a:hover { color: var(--green-500); }
.header-actions { display: flex; align-items: center; gap: .6rem; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 10px;
}
.nav-toggle span { height: 2px; background: var(--green-900); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); }
.mobile-menu nav { display: flex; flex-direction: column; padding: .5rem var(--pad) 1rem; }
.mobile-menu a { padding: .85rem .25rem; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--ink); }
.mobile-menu a:last-child { border-bottom: none; }

/* ---------------- Sections ---------------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--surface-2); }
.section-lede { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.center .section-lede, .narrow.center .section-lede { margin-inline: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 700; color: var(--gold); margin-bottom: .6rem; }

/* ---------------- Hero ---------------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.hero-copy .lede { font-size: 1.18rem; color: var(--muted); margin-bottom: 1.4rem; max-width: 54ch; }
.hero-loc { font-weight: 600; color: var(--green-700); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.8rem; }
.trust-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; }
.trust-points li { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--green-900); font-size: .96rem; }
.tp-icon { font-size: 1.15rem; }
.hero-media img {
  border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%;
  object-fit: cover; aspect-ratio: 5 / 5.4;
  border: 6px solid var(--surface);
}

/* ---------------- Check list ---------------- */
.check-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .7rem; }
.check-list li { position: relative; padding-left: 2rem; color: var(--ink); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.4rem; height: 1.4rem; background: var(--green-100); color: var(--green-700);
  border-radius: 50%; display: grid; place-items: center; font-size: .85rem; font-weight: 700;
}

/* ---------------- Cards ---------------- */
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 2rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .35rem; }
.card p { margin: 0; color: var(--muted); }
.card-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1rem;
  background: var(--green-100); border-radius: 14px; font-size: 1.5rem;
}
.info-card h3 { color: var(--green-700); }

.notice {
  display: flex; gap: .7rem; align-items: flex-start; text-align: left;
  background: var(--green-100); border: 1px solid var(--green-500); border-radius: var(--radius-sm);
  padding: 1rem 1.2rem; margin: 1.5rem auto; max-width: 46ch;
}
.notice p { margin: 0; color: var(--green-900); }
.notice-icon { font-size: 1.2rem; line-height: 1.4; }

/* ---------------- Split ---------------- */
.split { display: grid; gap: clamp(1.8rem, 4vw, 3rem); align-items: center; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; object-fit: cover; aspect-ratio: 4 / 4.2; border: 6px solid var(--surface); }
.split-copy p { color: var(--muted); }
.split-copy .btn { margin-top: .5rem; }

/* ---------------- Activity / proof ---------------- */
.activity-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 2rem; }
.activity { margin: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.activity img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.activity figcaption { padding: .9rem 1.1rem; color: var(--muted); font-size: .95rem; }
.proof-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.8rem; }
.proof-grid img { border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* ---------------- Gallery ---------------- */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); margin-top: 2rem; }
.gallery-item { padding: 0; border: none; cursor: pointer; background: none; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; }
.gallery-item img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after { content: "＋"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.6rem; background: rgba(20, 58, 43, .0); opacity: 0; transition: opacity .3s ease, background .3s ease; }
.gallery-item:hover::after { opacity: 1; background: rgba(20, 58, 43, .35); }

/* ---------------- Quick questions / CTA rows ---------------- */
.quick-questions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 1.8rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.6rem; }

/* ---------------- Steps ---------------- */
.steps { list-style: none; counter-reset: step; margin: 2.2rem 0 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); position: relative; }
.step-num { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--green-700); color: #fff; font-family: var(--font-head); font-size: 1.2rem; margin-bottom: .8rem; }
.step h3 { margin-bottom: .3rem; }
.step p { margin: 0; color: var(--muted); }

/* ---------------- FAQ ---------------- */
.faq { margin-top: 2rem; display: grid; gap: .8rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer; font: inherit; font-weight: 600;
  color: var(--green-900); padding: 1.1rem 1.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q:hover { color: var(--green-500); }
.faq-chevron { flex: 0 0 auto; width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .25s ease; margin-top: -4px; }
.faq-q[aria-expanded="true"] .faq-chevron { transform: rotate(-135deg); margin-top: 4px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { margin: 0; padding: 0 1.2rem 1.2rem; color: var(--muted); }

/* ---------------- Objection grid ---------------- */
.obj-grid { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); margin: 2rem 0 1.5rem; }
.obj { background: var(--surface); border: 1px dashed var(--green-500); border-radius: var(--radius-sm); padding: 1rem; text-align: center; font-weight: 600; color: var(--green-900); }

/* ---------------- Final CTA ---------------- */
.final-cta { background: linear-gradient(180deg, var(--green-700), var(--green-900)); color: #eafaf0; }
.final-cta h2 { color: #fff; }
.final-cta .section-lede { color: #cfe6d6; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--green-900); color: #cfe0d6; padding: 3rem 0 2rem; }
.footer-inner { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.footer-brand .brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: #fff; }
.footer-brand p { margin-top: .6rem; color: #a9c3b4; max-width: 40ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.footer-nav a { color: #cfe0d6; font-weight: 500; }
.footer-nav a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; }
.footer-link { color: #cfe0d6; text-decoration: underline; }
.footer-bottom { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-bottom p { margin: 0; font-size: .88rem; color: #9ab7a7; }

/* ---------------- Floating WA + sticky mobile CTA ---------------- */
.wa-float {
  position: fixed; right: 18px; bottom: 84px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--wa); box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
  animation: wa-pulse 2.6s ease-out infinite;
}
.wa-float:hover { background: var(--wa-dark); }
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
  padding: .6rem var(--pad) calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(246, 242, 233, .96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}

/* ---------------- Lightbox ---------------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 26, 19, .92); display: grid; place-items: center; padding: 1rem; }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: 92vw; max-height: 82vh; }
.lb-figure img { max-width: 92vw; max-height: 76vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lb-counter { text-align: center; color: #d7ede0; margin-top: .7rem; font-size: .95rem; }
.lb-close { position: absolute; top: 14px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .14); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lb-close:hover { background: rgba(255, 255, 255, .28); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .14); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lb-nav:hover { background: rgba(255, 255, 255, .28); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------- Responsive ---------------- */
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .activity-grid { grid-template-columns: repeat(3, 1fr); }
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
  .sticky-cta { display: none; }
  .wa-float { bottom: 22px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .obj-grid { grid-template-columns: repeat(3, 1fr); }
  body { padding-bottom: 0; }
}
/* keep content clear of sticky mobile CTA */
@media (max-width: 899px) {
  body { padding-bottom: 72px; }
}
