/* ==================================================================
   MAYYUR EBOOK - MAIN STYLESHEET
   Theme: Teal & Copper (adapted from the Zaara Herbals template,
   same structure, slightly different palette)
   ================================================================== */

:root{
  --green-dark:   #16323f;
  --green:        #1f5d6b;
  --green-mid:    #3f8a91;
  --green-light:  #e5f1f0;
  --gold:         #c9762a;
  --gold-light:   #f5e2c8;
  --cream:        #faf7f2;
  --ink:          #262523;
  --ink-soft:     #5c5850;
  --white:        #ffffff;
  --danger:       #b23a3a;
  --radius:       14px;
  --shadow:       0 8px 24px rgba(22,50,63,0.10);
  --shadow-sm:    0 2px 8px rgba(22,50,63,0.08);
  --max-width:    1160px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin:0;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4{
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--green-dark);
  line-height: 1.25;
  margin: 0 0 .5em;
}

p{ margin: 0 0 1em; color: var(--ink-soft); }

a{ color: var(--green); text-decoration: none; }
a:hover{ color: var(--gold); }

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

.container{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.btn{
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .3px;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center;
}
.btn-primary{
  background: linear-gradient(135deg, var(--gold) 0%, #a85f1c 100%);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--white);
}
.btn-outline{
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
}
.btn-outline:hover{
  background: var(--green);
  color: var(--white);
}
.btn-block{ display:block; width:100%; }

/* ---------------- HEADER ---------------- */
.site-header{
  background: var(--white);
  border-bottom: 1px solid rgba(31,93,107,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.logo{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--green-dark);
}
.logo span{ color: var(--gold); }
.logo-mark{
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 18px;
}
.nav{
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav a{
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
}
.nav a.active, .nav a:hover{ color: var(--gold); }

.nav-toggle{
  display:none;
  background:none;
  border:none;
  font-size: 26px;
  color: var(--green-dark);
  cursor: pointer;
}

@media (max-width: 780px){
  .nav{
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px 24px;
    box-shadow: var(--shadow);
    gap: 14px;
  }
  .nav.open{ display: flex; }
  .nav-toggle{ display: block; }
}

/* ---------------- HERO ---------------- */
.hero{
  background: radial-gradient(circle at 15% 20%, var(--green-light) 0%, var(--cream) 55%);
  padding: 72px 0 64px;
}
.hero-inner{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow{
  display: inline-block;
  background: var(--gold-light);
  color: #7a4a10;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 18px;
}
.hero h1{ font-size: 42px; margin-bottom: 18px; }
.hero p.lead{ font-size: 17px; max-width: 480px; }
.hero-cta{ display:flex; gap:16px; margin-top: 28px; flex-wrap: wrap; }

.hero-card{
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  text-align: center;
  position: relative;
}
.hero-card .badge{
  position:absolute; top:-14px; right: 24px;
  background: var(--danger);
  color: var(--white);
  font-size: 12px; font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
}
.hero-card .cover{
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--green-dark), var(--green) 60%, var(--gold) 140%);
  display:flex; align-items:center; justify-content:center;
  color: var(--gold-light);
  font-family:'Playfair Display', serif;
  font-size: 22px;
  text-align:center;
  padding: 24px;
  margin-bottom: 16px;
}
.price-row{ display:flex; align-items:baseline; justify-content:center; gap:10px; margin: 14px 0; }
.price-mrp{ text-decoration: line-through; color: var(--ink-soft); font-size: 16px; }
.price-sale{ color: var(--green-dark); font-size: 30px; font-weight: 700; }
.price-off{ background: var(--green-light); color: var(--green-dark); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 50px; }

/* ---------------- SECTIONS ---------------- */
.section{ padding: 64px 0; }
.section-alt{ background: var(--white); }
.section-title{ text-align:center; max-width: 640px; margin: 0 auto 44px; }
.section-title h2{ font-size: 32px; }
.section-title p{ font-size: 16px; }

.grid-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 780px){
  .grid-3{ grid-template-columns: 1fr; }
  .hero-inner{ grid-template-columns: 1fr; }
  .hero h1{ font-size: 32px; }
}

.feature-card{
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform .15s ease;
}
.feature-card:hover{ transform: translateY(-4px); }
.feature-icon{
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  display:flex; align-items:center; justify-content:center;
  font-size: 24px;
  margin: 0 auto 16px;
}
.feature-card h3{ font-size: 18px; }
.feature-card p{ font-size: 14.5px; margin: 0; }

/* ---------------- PRODUCT PAGE ---------------- */
.product-layout{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: flex-start;
}
@media (max-width: 780px){ .product-layout{ grid-template-columns: 1fr; } }

.product-media .cover{
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--green-dark), var(--green) 55%, var(--gold) 150%);
  display:flex; align-items:center; justify-content:center;
  color: var(--gold-light);
  font-family:'Playfair Display', serif;
  font-size: 26px;
  text-align:center;
  padding: 32px;
  box-shadow: var(--shadow);
}
.trust-row{
  display:flex; flex-wrap:wrap; gap: 14px; margin-top: 22px;
}
.trust-chip{
  display:flex; align-items:center; gap:8px;
  background: var(--green-light); color: var(--green-dark);
  font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: 50px;
}

.list-check{ list-style:none; padding:0; margin: 18px 0; }
.list-check li{
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--ink);
}
.list-check li::before{
  content: "✓";
  position:absolute; left:0; top: 0;
  width: 20px; height: 20px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  font-size: 12px;
  display:flex; align-items:center; justify-content:center;
}

.buy-box{
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  margin-top: 24px;
}

/* ---------------- FORMS ---------------- */
.form-group{ margin-bottom: 18px; }
.form-group label{ display:block; font-weight:600; font-size:14px; margin-bottom:6px; color: var(--green-dark); }
.form-control{
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e2dccb;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  color: var(--ink);
}
.form-control:focus{ outline: none; border-color: var(--gold); }
textarea.form-control{ resize: vertical; min-height: 110px; }

.alert{ padding: 14px 18px; border-radius: 10px; font-size: 14px; margin-bottom: 20px; }
.alert-error{ background:#fbeaea; color: var(--danger); border:1px solid #f0c8c8; }
.alert-success{ background: var(--green-light); color: var(--green-dark); border:1px solid #cfe3e3; }

/* ---------------- ORDER SUMMARY ---------------- */
.order-summary{
  background: var(--green-light);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.order-summary .row{ display:flex; justify-content:space-between; padding: 6px 0; font-size: 14.5px; }
.order-summary .row.total{ border-top: 1px solid rgba(22,50,63,0.15); margin-top: 8px; padding-top: 12px; font-weight:700; font-size: 17px; color: var(--green-dark); }

/* ---------------- LEGAL / POLICY PAGES ---------------- */
.page-hero{
  background: var(--green-dark);
  color: var(--gold-light);
  padding: 56px 0 44px;
  text-align: center;
}
.page-hero h1{ color: var(--white); font-size: 34px; margin-bottom: 8px; }
.page-hero p{ color: var(--gold-light); margin:0; }

.legal-content{
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px;
}
.legal-content h2{ font-size: 22px; margin-top: 34px; }
.legal-content h2:first-child{ margin-top: 0; }
.legal-content p, .legal-content li{ color: var(--ink); font-size: 15.5px; }
.legal-content ul{ padding-left: 22px; }
.legal-content .updated{
  display:inline-block;
  background: var(--gold-light); color:#7a4a10;
  font-size: 13px; font-weight:600;
  padding: 5px 14px; border-radius: 50px;
  margin-bottom: 24px;
}

/* ---------------- CONTACT ---------------- */
.contact-layout{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 780px){ .contact-layout{ grid-template-columns: 1fr; } }
.contact-info-card{
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px;
}
.contact-info-card .item{ display:flex; gap: 14px; margin-bottom: 20px; }
.contact-info-card .item .ic{
  width: 42px; height:42px; flex-shrink:0;
  background: var(--green-light); color: var(--green-dark);
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  font-size: 18px;
}
.contact-info-card .item h4{ margin:0 0 4px; font-size: 15px; font-family: inherit; color: var(--green-dark); }
.contact-info-card .item p{ margin:0; font-size: 14.5px; }

/* ---------------- FOOTER ---------------- */
.site-footer{
  background: var(--green-dark);
  color: #cfe4e0;
  padding: 56px 0 24px;
  margin-top: 40px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
@media (max-width: 780px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-grid h4{ color: var(--gold-light); font-size: 15px; margin-bottom: 16px; font-family: inherit; }
.footer-grid ul{ list-style:none; padding:0; margin:0; }
.footer-grid ul li{ margin-bottom: 10px; }
.footer-grid a{ color: #cfe4e0; font-size: 14px; }
.footer-grid a:hover{ color: var(--gold); }
.footer-grid p{ color: #b3c7c3; font-size: 14px; }
.footer-logo{ font-family:'Playfair Display', serif; font-size: 22px; color: var(--white); margin-bottom: 10px; }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap: 10px;
  font-size: 13px; color: #a3b8b4;
}
.footer-bottom a{ color: #a3b8b4; }
.badges-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 8px; }
.badges-row span{
  background: rgba(255,255,255,0.08);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 12px;
}

/* ---------------- MISC ---------------- */
.center{ text-align: center; }
.mt-0{ margin-top:0; }
.small{ font-size: 13px; color: var(--ink-soft); }
.divider{ height:1px; background: rgba(0,0,0,0.06); margin: 32px 0; }

.sticky-buy{
  position: fixed;
  bottom: 0; left:0; right:0;
  background: var(--white);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.12);
  padding: 14px 20px;
  display:none;
  align-items:center; justify-content:space-between;
  gap: 16px;
  z-index: 200;
}
@media (max-width: 780px){ .sticky-buy.show{ display:flex; } }

/* ==================================================================
   ADDITIONS (v2) — cover images, checkout, FAQ, WhatsApp button
   ================================================================== */
.top-strip{
  background: var(--green-dark); color: var(--gold-light);
  text-align:center; font-size: 13.5px; padding: 8px 16px;
}
.top-strip strong{ color: var(--white); }
.top-strip s{ opacity:.7; }
.btn-sm{ padding: 9px 20px; font-size: 14px; }
.nav{ align-items:center; }
.nav a.nav-cta, .nav a.nav-cta:hover{ color: var(--white); }
@media (max-width: 780px){ .nav a.nav-cta{ align-self:flex-start; } }

.cover-img{
  width:100%; height:auto; border-radius: 10px;
  box-shadow: var(--shadow);
}
.book-3d{ width:100%; max-width: 420px; height:auto; margin: 0 auto; filter: drop-shadow(0 18px 24px rgba(22,50,63,.18)); }
.hero-card .book-3d{ max-width: 300px; margin-bottom: 8px; }
.hero-card{ padding-top: 34px; }
.product-media{ position: sticky; top: 96px; }
@media (max-width: 780px){ .product-media{ position: static; } }

.trust-row{ justify-content:center; }
.product-info .trust-row{ justify-content:flex-start; }

.chapters{ display:grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
@media (max-width: 780px){ .chapters{ grid-template-columns: 1fr; } }
.chapter{
  background: var(--white); border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow-sm); display:flex; gap: 16px; align-items:flex-start;
}
.chapter .num{
  flex-shrink:0; width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--gold-light); font-weight:700; display:flex; align-items:center; justify-content:center;
}
.chapter h4{ margin: 0 0 4px; font-size: 16px; font-family: inherit; }
.chapter p{ margin:0; font-size: 14px; }

.steps{ display:grid; grid-template-columns: repeat(3,1fr); gap: 24px; counter-reset: s; }
@media (max-width: 780px){ .steps{ grid-template-columns: 1fr; } }
.step{ background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); text-align:center; }
.step::before{
  counter-increment: s; content: counter(s);
  display:flex; align-items:center; justify-content:center;
  width: 44px; height: 44px; margin: 0 auto 12px; border-radius:50%;
  background: var(--gold); color: var(--white); font-weight:700; font-size: 18px;
}
.step h3{ font-size: 17px; }
.step p{ font-size: 14px; margin:0; }

.faq{ max-width: 800px; margin: 0 auto; }
.faq details{
  background: var(--white); border-radius: 12px; box-shadow: var(--shadow-sm);
  margin-bottom: 12px; padding: 0 22px;
}
.faq summary{
  cursor:pointer; list-style:none; padding: 18px 0; font-weight:600; color: var(--green-dark);
  display:flex; justify-content:space-between; gap: 12px;
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:"+"; font-size: 22px; line-height: 1; color: var(--gold); }
.faq details[open] summary::after{ content:"–"; }
.faq details p{ padding-bottom: 18px; margin:0; font-size: 15px; }

.cta-band{
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: var(--white); border-radius: 20px; padding: 44px 36px;
  display:grid; grid-template-columns: 200px 1fr; gap: 36px; align-items:center;
}
.cta-band h2{ color: var(--white); font-size: 28px; }
.cta-band p{ color: #d4e7e4; }
.cta-band .price-sale{ color: var(--white); }
.cta-band .price-mrp{ color: #b3c7c3; }
@media (max-width: 780px){ .cta-band{ grid-template-columns: 1fr; text-align:center; padding: 32px 22px; } .cta-band .book-3d{ max-width: 180px; } .cta-band .price-row{ justify-content:center !important; } }

/* checkout / status */
.checkout-wrap{ max-width: 980px; margin: 0 auto; display:grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items:start; }
@media (max-width: 780px){ .checkout-wrap{ grid-template-columns: 1fr; } }
.card{ background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 28px; }
.mini-product{ display:flex; gap: 16px; align-items:center; margin-bottom: 18px; }
.mini-product img{ width: 84px; border-radius: 6px; box-shadow: var(--shadow-sm); }
.mini-product h3{ font-size: 17px; margin: 0 0 4px; }
.status-box{ max-width: 620px; margin: 0 auto; text-align:center; }
.status-icon{ font-size: 56px; line-height: 1; margin-bottom: 10px; }
.order-list{ list-style:none; padding:0; margin: 18px 0 0; }
.order-list li{ display:flex; justify-content:space-between; align-items:center; gap: 12px; padding: 14px 0; border-top: 1px solid rgba(0,0,0,.06); flex-wrap: wrap; }

.sticky-buy .sb-price{ font-weight:700; color: var(--green-dark); font-size: 18px; }
.sticky-buy .sb-price s{ color: var(--ink-soft); font-weight:400; font-size: 13px; margin-left: 6px; }
body.has-sticky{ padding-bottom: 0; }
@media (max-width: 780px){ body.has-sticky{ padding-bottom: 74px; } body.has-sticky .wa-float{ bottom: 88px; } }

.wa-float{
  position: fixed; right: 18px; bottom: 18px; z-index: 300;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.wa-float:hover{ transform: scale(1.06); }
.hp-field{ position:absolute; left:-9999px; }
