/* Pushtika Public Website — Reference-matched design */
:root {
  --green-deep: #032D24;
  --green-primary: #063D30;
  --green-mid: #0C5A45;
  --green-soft: #174A3A;
  --gold: #F4C96B;
  --gold-dark: #C9A45C;
  --cream: #FAF7EF;
  --ivory: #FFFDF7;
  --white: #FFFFFF;
  --text: #0D1F1A;
  --text-muted: #5A6B64;
  --border: #E8E2D6;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 20px rgba(6, 61, 48, 0.08);
  --shadow-sm: 0 2px 10px rgba(6, 61, 48, 0.06);
  --font-serif: "Playfair Display", "Noto Serif Bengali", Georgia, serif;
  --font-bn: "Noto Sans Bengali", "Noto Serif Bengali", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  background: var(--cream);
  color: var(--text);
  line-height: 1.55;
  min-height: 100dvh;
}

.bn { font-family: var(--font-bn); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.hidden { display: none !important; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: var(--gold);
  color: var(--green-deep);
  box-shadow: 0 2px 8px rgba(244, 201, 107, 0.35);
}
.btn-gold:hover { background: #f7d484; }
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-lg { padding: 0.85rem 1.6rem; font-size: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green-primary);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}
.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
}
.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.main-nav {
  display: flex;
  gap: 0.25rem;
  margin-left: 0.5rem;
}
.main-nav .nav-link {
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: background 0.15s, color 0.15s;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 0.75rem;
  color: rgba(255,255,255,0.5);
  pointer-events: none;
}
.search-wrap input {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 0.5rem 1rem 0.5rem 2.4rem;
  color: #fff;
  font-size: 0.9rem;
  width: 180px;
  transition: width 0.2s, background 0.2s;
}
.search-wrap input::placeholder { color: rgba(255,255,255,0.5); }
.search-wrap input:focus {
  outline: none;
  background: rgba(255,255,255,0.18);
  width: 220px;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--green-deep);
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.5rem;
}
.mobile-nav a {
  color: #fff;
  padding: 0.6rem 0;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav .btn { margin-top: 0.5rem; border: none; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  background: var(--green-primary);
  color: #fff;
  overflow: hidden;
}
.hero-content {
  padding: 3.5rem 2rem 3.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
  margin-left: auto;
}
.hero-eyebrow {
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.hero-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.88);
  margin-bottom: 1.75rem;
  max-width: 420px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}
.hero-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-benefits svg { opacity: 0.85; }
.hero-visual {
  position: relative;
  background: linear-gradient(135deg, #1a4a3a 0%, #0a2e24 100%);
  display: flex;
  align-items: stretch;
}
.hero-image-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  min-height: 420px;
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--green-primary);
}
.section-title.light { color: #fff; }
.view-all {
  font-size: 0.95rem;
  color: var(--green-mid);
  font-weight: 500;
}
.view-all:hover { text-decoration: underline; }

.books-section { background: var(--cream); }
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.25rem;
}
.book-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
  padding-bottom: 1rem;
}
.book-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.book-cover {
  aspect-ratio: 3/4;
  background: #e8e4dc;
  overflow: hidden;
}
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  font-family: var(--font-serif);
  color: var(--green-mid);
  background: linear-gradient(145deg, #e8e4dc, #d4cfc4);
}
.book-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0.75rem 0.5rem 0.2rem;
  line-height: 1.3;
}
.book-author {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0 0.5rem;
}
.books-loading, .books-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
}
.books-empty .muted { font-size: 0.9rem; margin-top: 0.35rem; }

.features-section { background: var(--ivory); }
.features-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-top: 1.5rem;
}
.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(244, 201, 107, 0.2);
  color: var(--gold-dark);
  display: grid;
  place-items: center;
}
.feature-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-primary);
  margin-bottom: 0.2rem;
}
.feature-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.app-promo-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  text-align: center;
}
.promo-text {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}
.version-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.75rem 0 1.25rem;
}
.phone-mockup {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}
.phone-frame {
  width: 180px;
  background: var(--green-deep);
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 12px 40px rgba(3, 45, 36, 0.25);
}
.phone-notch {
  width: 40%;
  height: 8px;
  background: #0a1f18;
  border-radius: 0 0 8px 8px;
  margin: 0 auto 12px;
}
.phone-screen {
  background: var(--cream);
  border-radius: 20px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.5rem 1rem;
}
.phone-logo { border-radius: 12px; }
.phone-brand {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--green-primary);
}
.phone-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.how-faq-section { padding-top: 0; padding-bottom: 3rem; }
.how-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.how-panel {
  background: var(--green-primary);
  color: #fff;
  padding: 2.5rem 2rem;
}
.how-panel .section-title { margin-bottom: 1.75rem; }
.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.steps li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.steps h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.steps p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}
.faq-panel {
  background: var(--ivory);
  padding: 2.5rem 2rem;
}
.faq-panel .section-title { margin-bottom: 1.25rem; }
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--green-primary);
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--gold-dark);
  font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.site-footer {
  background: var(--green-deep);
  color: rgba(255,255,255,0.85);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand-name { color: #fff; }
.tagline {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  font-style: italic;
}
.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-left: auto;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 120px;
}
.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  transition: color 0.15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-content {
    padding: 2.5rem 1.5rem;
    max-width: none;
    margin: 0;
  }
  .hero-visual { min-height: 280px; }
  .hero-photo { min-height: 280px; }
  .features-layout { grid-template-columns: 1fr; }
  .how-faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav, .header-actions .search-wrap { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }
  .mobile-nav:not([hidden]) { display: flex; }
  .header-actions .btn-gold { display: none; }
  .books-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
  .footer-inner { flex-direction: column; }
  .footer-cols { margin-left: 0; }
}

@media (max-width: 420px) {
  .hero-ctas { flex-direction: column; }
  .hero-benefits { flex-direction: column; gap: 0.6rem; }
  .books-grid { grid-template-columns: 1fr 1fr; }
}
