/* ============================================================
   ElifSerana · elifserana.com
   Deep emerald · warm cream · gold · Islamic self-improvement
   ============================================================ */

:root {
  --emerald-950: #07231B;
  --emerald-900: #0B2E24;
  --emerald-800: #10402F;
  --emerald-700: #155741;
  --emerald-600: #1C6B52;
  --emerald-100: #DCEAE2;
  --gold: #C9A24B;
  --gold-bright: #E3C77E;
  --gold-deep: #A8842F;
  --cream: #F8F3E7;
  --cream-2: #FDFBF4;
  --ink: #22302B;
  --muted: #5F6E67;
  --line: rgba(16, 64, 47, 0.14);
  --card-shadow: 0 1px 2px rgba(11, 46, 36, 0.06), 0 8px 24px rgba(11, 46, 36, 0.08);
  --card-shadow-hover: 0 2px 4px rgba(11, 46, 36, 0.08), 0 16px 40px rgba(11, 46, 36, 0.14);
  --radius: 14px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream-2);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--emerald-700); }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark { width: 34px; height: 34px; }
.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--emerald-900);
}
.brand-name span { color: var(--gold-deep); }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--emerald-700);
  border-bottom-color: var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(168, 132, 47, 0.35);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(168, 132, 47, 0.45); }
.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-outline {
  border: 1.5px solid var(--emerald-700);
  color: var(--emerald-700);
}
.btn-outline:hover { background: var(--emerald-100); }
.btn-lg { padding: 15px 32px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(201, 162, 75, 0.16), transparent 60%),
    linear-gradient(160deg, var(--emerald-900) 0%, var(--emerald-800) 55%, var(--emerald-700) 100%);
  color: var(--cream);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23F8F3E7' stroke-opacity='0.05'%3E%3Cpath d='M48 8 L58 38 L88 48 L58 58 L48 88 L38 58 L8 48 L38 38 Z'/%3E%3Ccircle cx='48' cy='48' r='14'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  padding-top: 92px;
  padding-bottom: 96px;
  max-width: 860px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 18px;
}
.eyebrow-dark { color: var(--gold-deep); }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5.4vw, 56px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.hero h1 em { font-style: italic; color: var(--gold-bright); }
.hero p.lede {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
  color: rgba(248, 243, 231, 0.88);
  max-width: 640px;
  margin: 0 auto 34px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-trust {
  margin-top: 44px;
  display: flex;
  gap: 10px 28px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: rgba(248, 243, 231, 0.75);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 15px; height: 15px; flex: none; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 660px; margin: 0 auto 48px; text-align: center; }
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 600;
  color: var(--emerald-900);
  margin: 10px 0 12px;
}
.section-head p { color: var(--muted); font-size: 16.5px; }

/* ---------- Collection blocks ---------- */
.collection-block { margin-bottom: 72px; }
.collection-block:last-child { margin-bottom: 0; }
.collection-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 8px;
}
.collection-title h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--emerald-900);
  white-space: nowrap;
}
.collection-title .rule { flex: 1; height: 1px; background: var(--line); }
.collection-blurb { color: var(--muted); font-size: 15px; max-width: 640px; margin-bottom: 26px; }

/* ---------- Product cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 26px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--card-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.product-card .cover { aspect-ratio: 4 / 3.4; overflow: hidden; }
.product-card .cover svg { width: 100%; height: 100%; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-collection {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 6px;
}
.card-body h3 {
  font-family: var(--serif);
  font-size: 19.5px;
  font-weight: 600;
  color: var(--emerald-900);
  line-height: 1.25;
  margin-bottom: 6px;
}
.card-hook { font-size: 13.8px; color: var(--muted); flex: 1; }
.card-foot {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}
.price { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--emerald-800); }
.price .pkr-sub { display: none; font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--muted); }
body[data-currency="PKR"] .price .usd-amt { display: none; }
body[data-currency="PKR"] .price .pkr-amt { display: inline; }
body[data-currency="PKR"] .price .pkr-sub { display: none; }
.price .pkr-amt { display: none; }
.card-view { font-size: 13.5px; font-weight: 600; color: var(--emerald-700); }
.product-card:hover .card-view { text-decoration: underline; }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
  counter-reset: step;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.step-num {
  counter-increment: step;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-700), var(--emerald-900));
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step-num::before { content: counter(step); }
.step h3 { font-family: var(--serif); font-size: 18px; color: var(--emerald-900); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- Product page ---------- */
.crumbs { font-size: 13px; color: var(--muted); margin: 26px 0 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--emerald-700); }
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 52px;
  align-items: start;
  margin-bottom: 26px;
}
.product-cover {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  position: sticky;
  top: 92px;
}
.product-cover svg { width: 100%; height: auto; }
.product-info .card-collection { font-size: 12px; }
.product-info h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  color: var(--emerald-900);
  line-height: 1.15;
  margin: 4px 0 12px;
}
.product-hook {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18.5px;
  color: var(--gold-deep);
  margin-bottom: 20px;
}
.product-desc p { margin-bottom: 14px; color: var(--ink); font-size: 15.5px; }
.buy-box {
  margin: 26px 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.buy-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.buy-box .price { font-size: 30px; }
.buy-box .price .pkr-amt { font-size: 26px; }
.currency-toggle {
  display: inline-flex;
  border: 1.5px solid var(--emerald-700);
  border-radius: 999px;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 600;
}
.currency-toggle button {
  border: 0;
  background: transparent;
  color: var(--emerald-700);
  padding: 7px 16px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
.currency-toggle button[aria-pressed="true"] {
  background: var(--emerald-700);
  color: #fff;
}
.buy-note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.feature-list { list-style: none; margin: 8px 0 26px; }
.feature-list li {
  position: relative;
  padding: 7px 0 7px 30px;
  font-size: 15px;
  border-bottom: 1px dashed var(--line);
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before {
  content: "✦";
  position: absolute;
  left: 6px;
  color: var(--gold-deep);
  font-size: 13px;
  top: 10px;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 10px 0 8px;
}
.spec-table th, .spec-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { color: var(--emerald-900); font-weight: 600; width: 180px; }
.spec-table td { color: var(--muted); }

/* Inside preview */
.inside-preview {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 8px 0 64px;
}
.inside-preview h2 {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--emerald-900);
  margin-bottom: 6px;
}
.inside-preview .sub { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.preview-table-wrap { overflow-x: auto; }
.preview-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.preview-table th {
  background: var(--emerald-800);
  color: var(--cream);
  text-align: left;
  padding: 9px 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.preview-table td { padding: 9px 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
.preview-table tr:nth-child(even) td { background: var(--cream-2); }

/* Cross-sell */
.cross-sell { border-top: 1px solid var(--line); padding-top: 54px; }
.cross-sell h2 {
  font-family: var(--serif);
  font-size: 25px;
  color: var(--emerald-900);
  margin-bottom: 26px;
}

/* ---------- Prose pages (about / faq / contact) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--emerald-900), var(--emerald-700));
  color: var(--cream);
  padding: 66px 0 58px;
  text-align: center;
}
.page-hero h1 { font-family: var(--serif); font-size: clamp(30px, 4.4vw, 44px); font-weight: 600; }
.page-hero p { color: rgba(248, 243, 231, 0.85); max-width: 600px; margin: 12px auto 0; font-size: 16.5px; }
.prose { max-width: 720px; margin: 0 auto; padding: 60px 24px 90px; }
.prose h2 { font-family: var(--serif); font-size: 24px; color: var(--emerald-900); margin: 34px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 14px; color: var(--ink); font-size: 15.5px; }
.prose ul { margin: 0 0 16px 22px; color: var(--ink); font-size: 15.5px; }
.prose li { margin-bottom: 6px; }
.contact-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-top: 26px;
}
.contact-card a { font-weight: 600; }
details.faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 22px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--emerald-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--gold-deep); font-size: 20px; flex: none; }
details.faq[open] summary::after { content: "–"; }
details.faq .faq-body { padding: 0 22px 18px; color: var(--ink); font-size: 14.8px; }
details.faq .faq-body p { margin-bottom: 10px; }

/* ---------- Banner CTA ---------- */
.cta-band {
  background:
    radial-gradient(900px 400px at 15% 120%, rgba(201, 162, 75, 0.25), transparent 60%),
    linear-gradient(150deg, var(--emerald-900), var(--emerald-800));
  color: var(--cream);
  text-align: center;
  padding: 74px 0;
}
.cta-band h2 { font-family: var(--serif); font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 12px; }
.cta-band p { color: rgba(248, 243, 231, 0.85); max-width: 560px; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--emerald-950);
  color: rgba(248, 243, 231, 0.78);
  padding: 54px 0 34px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.site-footer .brand-name { color: var(--cream); }
.footer-about { max-width: 340px; margin-top: 12px; line-height: 1.7; }
.site-footer h4 {
  color: var(--gold-bright);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(248, 243, 231, 0.78); text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); }
.footer-base {
  border-top: 1px solid rgba(248, 243, 231, 0.14);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.8px;
  color: rgba(248, 243, 231, 0.55);
}

/* ---------- Mobile menu ---------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2.2px;
  width: 100%;
  border-radius: 2px;
  background: var(--emerald-800);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.6px) rotate(-45deg); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .product-layout { grid-template-columns: 1fr; gap: 30px; }
  .product-cover { position: static; max-width: 460px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 62px 0; }
}
@media (max-width: 640px) {
  .menu-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--cream-2);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 26px rgba(11, 46, 36, 0.1);
    padding: 10px 24px 16px;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 11px 4px;
    font-size: 15.5px;
    border-bottom: 1px solid var(--line);
  }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
  .main-nav a:last-child { border-bottom: 0; }
  .hero .wrap { padding-top: 64px; padding-bottom: 68px; }
  .buy-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

:focus-visible { outline: 2.5px solid var(--gold-deep); outline-offset: 2px; border-radius: 4px; }
