/* =========================================================
   Power of Night — stylesheet
   Fonts: Hind Siliguri (Bengali-friendly)
   Palette: deep forest green / warm gold / black / red accent
   ========================================================= */

:root {
  --color-green-dark: #0f3d24;
  --color-green: #1c6b3f;
  --color-green-light: #eaf5ee;
  --color-gold: #e0a92a;
  --color-red: #c62828;
  --color-black: #16140f;
  --color-text: #232323;
  --color-muted: #6b6b6b;
  --color-white: #ffffff;
  --radius: 10px;
  --shadow: 0 6px 18px rgba(15, 61, 36, 0.12);
  --container-width: 720px;
  --font: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, sans-serif;

  /* --- Compatibility aliases: keep thank-you.html's existing inline
     styles (written against the old rose/gold token names) working
     without needing to touch that file. --- */
  --surface: var(--color-white);
  --line: #e4e4e4;
  --radius-lg: 16px;
  --shadow-soft: var(--shadow);
  --rose-400: var(--color-green);
  --rose-700: var(--color-green-dark);
  --shadow-rose: 0 6px 16px rgba(28, 107, 63, 0.35);
  --cream: var(--color-green-dark);
  --muted: var(--color-muted);
  --gold: var(--color-gold);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
}

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

/* placeholder look for empty <img src=""> until real images are linked */
img[src=""] {
  background: repeating-linear-gradient(
    45deg, #e9e9e9, #e9e9e9 10px, #f5f5f5 10px, #f5f5f5 20px
  );
  min-height: 160px;
  border: 1px dashed #c9c9c9;
}

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

section { padding: 40px 0; }

.section-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-green-dark);
  margin: 0 0 24px;
  line-height: 1.4;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: 50px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn-primary {
  background: linear-gradient(180deg, var(--color-gold), #c98f18);
  color: var(--color-black);
  box-shadow: 0 6px 16px rgba(224, 169, 42, 0.45);
}

.btn-primary:hover { transform: translateY(-2px); }

.btn-cta {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 24px auto 0;
  padding: 16px 24px;
  font-size: 1.15rem;
  text-align: center;
}

.btn-submit {
  width: 100%;
  padding: 18px 24px;
  font-size: 1.2rem;
  margin-top: 20px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-green-dark);
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.logo-text {
  font-weight: 800;
  font-size: 1.15rem;
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 50% 0%, var(--color-green) 0%, var(--color-green-dark) 70%);
  color: var(--color-white);
  text-align: center;
  padding-bottom: 50px;
}

.hero-title {
  font-size: 1.6rem;
  font-weight: 800;
  padding-top: 28px;
  margin: 0 0 20px;
}

.hero-image {
  max-width: 380px;
  margin: 0 auto 20px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-white);
}

.hero-sub {
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
  color: #eaf5ee;
}

.endorser {
  margin-top: 30px;
}

.endorser p {
  font-weight: 600;
  margin-bottom: 14px;
}

.endorser-name {
  color: var(--color-gold);
}

.endorser-image {
  max-width: 260px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--color-gold);
}

/* ---------- Offer / Countdown ---------- */
.offer-section {
  background: var(--color-green-light);
  text-align: center;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
}

.countdown-box {
  background: var(--color-black);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 14px 18px;
  min-width: 76px;
}

.countdown-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-gold);
}

.countdown-label {
  display: block;
  font-size: .8rem;
  margin-top: 4px;
}

.offer-highlight {
  color: var(--color-red);
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 8px;
}

/* ---------- Benefits ---------- */
.benefits-section { background: var(--color-white); text-align: center; }

.benefits-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-align: right;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--color-green-light);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  font-size: 1.02rem;
  text-align: right;
  flex-direction: row-reverse;
}

.check-icon {
  color: var(--color-green);
  font-weight: 800;
  flex-shrink: 0;
}

.section-image {
  max-width: 480px;
  margin: 0 auto 10px;
  border-radius: var(--radius);
  overflow: hidden;
}

/* ---------- Ingredients ---------- */
.ingredients-section { background: var(--color-green-light); text-align: center; }

.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 480px;
  margin: 0 auto 10px;
}

.ingredient-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-white);
}

/* ---------- Reviews carousel ---------- */
.reviews-section { background: var(--color-white); text-align: center; }

.reviews-carousel {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

.review-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 14px;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.review-track::-webkit-scrollbar { display: none; }

.review-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  border-radius: var(--radius);
  overflow: hidden;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-white);
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.carousel-prev { left: -6px; }
.carousel-next { right: -6px; }

/* ---------- Why us ---------- */
.why-us-section { background: var(--color-green-light); text-align: center; }

.why-us-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-align: right;
}

.why-us-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  text-align: right;
  flex-direction: row-reverse;
}

/* ---------- Usage ---------- */
.usage-section { background: var(--color-white); text-align: center; }

.usage-text {
  max-width: 520px;
  margin: 0 auto 20px;
  font-size: 1.05rem;
}

/* ---------- Pricing ---------- */
.pricing-section {
  background: var(--color-black);
  color: var(--color-white);
  text-align: center;
}

.price-regular {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #cfcfcf;
}

.price-strike {
  text-decoration: line-through;
  color: #999;
  margin-left: 6px;
}

.price-current {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.price-highlight {
  color: var(--color-gold);
  font-size: 1.6rem;
  margin-left: 6px;
}

/* ---------- Warning ---------- */
.warning-section {
  background: #fdecea;
  border-top: 4px solid var(--color-red);
  border-bottom: 4px solid var(--color-red);
  text-align: center;
}

.warning-section .section-title { color: var(--color-red); }

.warning-text {
  max-width: 560px;
  margin: 0 auto;
  color: #7a1f1f;
  font-weight: 500;
}

/* ---------- Call ---------- */
.call-section { background: var(--color-green-light); text-align: center; }

/* ---------- Order form ---------- */
.order-section { background: var(--color-white); }

.order-form h3 {
  font-size: 1.1rem;
  color: var(--color-green-dark);
  margin-bottom: 14px;
}

.offer-table, .summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 26px;
}

.offer-table th, .offer-table td,
.summary-table th, .summary-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: .95rem;
}

.offer-table thead th, .summary-table thead th {
  color: var(--color-muted);
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
}

.product-name { font-weight: 600; }

.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 50px;
  overflow: hidden;
}

.qty-btn {
  background: var(--color-green-light);
  border: none;
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--color-green-dark);
}

#qty-input {
  width: 40px;
  text-align: center;
  border: none;
  font-size: 1rem;
  -moz-appearance: textfield;
}

.price-cell { font-weight: 700; }

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: .95rem;
}

.required { color: var(--color-red); }

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 1rem;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(28, 107, 63, 0.15);
}

.order-summary {
  background: var(--color-green-light);
  border-radius: var(--radius);
  padding: 20px;
}

.summary-table tfoot td {
  border-bottom: none;
  font-weight: 700;
}

.total-row td {
  font-size: 1.1rem;
  color: var(--color-green-dark);
}

.payment-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--color-white);
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.payment-option input { margin-top: 4px; }

.privacy-note {
  font-size: .8rem;
  color: var(--color-muted);
  margin-bottom: 4px;
}

/* ---------- Form validation errors ---------- */
.form-error {
  display: block;
  min-height: 1.1em;
  color: var(--color-red);
  font-size: .82rem;
  margin-top: 4px;
}

.form-field.field-invalid input,
.form-field.field-invalid textarea {
  border-color: var(--color-red);
}

/* ---------- thank-you.html compatibility ---------- */
/* thank-you.html reuses .bg-decor/.bg-glow and .btn/.btn-call/.btn-block
   from the old design; keep minimal versions so that page still looks
   correct without needing to edit it separately. */
.bg-decor { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .25;
  background: var(--color-green);
}
.bg-glow-a { top: -120px; left: -120px; }
.bg-glow-b { bottom: -120px; right: -120px; background: var(--color-gold); }

.btn-call {
  background: var(--color-green-dark);
  color: var(--color-white);
}
.btn-block { display: block; width: 100%; text-align: center; padding: 14px 20px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-black);
  color: #aaa;
  text-align: center;
  padding: 24px 0 90px;
  font-size: .85rem;
}

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-top: 1px solid #ddd;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 14px rgba(0,0,0,0.08);
  z-index: 60;
}

.sticky-cta .btn-cta { margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (min-width: 600px) {
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.8rem; }
  section { padding: 60px 0; }
}

@media (min-width: 860px) {
  :root { --container-width: 820px; }
  .offer-table th, .offer-table td,
  .summary-table th, .summary-table td { font-size: 1rem; }
}

@media (max-width: 400px) {
  .countdown { gap: 8px; }
  .countdown-box { min-width: 64px; padding: 10px 12px; }
  .countdown-num { font-size: 1.4rem; }
}
