/*
Theme Name: AdLine Premium
Theme URI: https://example.com/adline-premium
Author: Books Corner Digital
Description: A one-page premium landing theme for a Meta credit line ad account service. Apple-inspired: white/light-gray surfaces, a single blue accent, big system typography, generous whitespace. Fully Customizer-editable; reviews render in Bangla.
Version: 1.4.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: adline-premium
*/

/* ============================================================
   0. DESIGN TOKENS — Apple-style: white / light-gray surfaces,
   near-black text, ONE restrained accent color (Apple blue).
   No gradients, no ornamentation — the whitespace and the type
   scale do the "premium" work, not decoration. Bangla is loaded
   only for the client-review text via the .bn utility class.
   ============================================================ */
:root {
  /* Surface */
  --bg: #FFFFFF;
  --bg-alt: #F5F5F7;
  --bg-alt-2: #E8E8ED;
  --panel: #FFFFFF;
  --line: #D2D2D7;
  --line-soft: rgba(0, 0, 0, 0.08);

  /* The one accent color */
  --blue: #0071E3;
  --blue-hover: #0077ED;
  --blue-dim: rgba(0, 113, 227, 0.14);
  --red: #FF3B30;

  /* Text */
  --text: #1D1D1F;
  --text-dim: #6E6E73;
  --text-faint: #86868B;

  /* Type */
  --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Roboto Mono', monospace;
  --font-bangla: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;

  /* Layout */
  --container: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
}

/* ============================================================
   1. RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--text);
}
p { margin: 0 0 1em; color: var(--text-dim); }
.bn { font-family: var(--font-bangla); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   2. UTILITIES
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { position: relative; padding: 120px 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--blue);
  border: 1px solid var(--blue-dim);
  background: rgba(0,113,227,0.06);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #30D158;
  box-shadow: 0 0 8px rgba(48,209,88,0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1;} 50%{opacity:0.35;} }

.section-head { max-width: 640px; margin: 0 0 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); }
.section-head p { font-size: 18px; }
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
  display: block;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 16px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #ffffff;
}
.btn-primary:hover { background: var(--blue-hover); }
.btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: transparent;
  padding-left: 4px;
  padding-right: 4px;
}
.btn-ghost::after { content: '›'; font-size: 19px; line-height: 1; transform: translateY(-1px); }
.btn-ghost:hover { color: var(--blue-hover); }
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.divider { height: 1px; background: var(--line-soft); }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { transition-delay: calc(var(--i, 0) * 80ms); }

/* ============================================================
   3. HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.8);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
  transition: background .3s ease;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.site-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--text); }
.site-logo img { height: 30px; width: auto; border-radius: 6px; }
.site-logo .mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; color: #fff; font-size: 12px;
}
.main-nav ul { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-size: 13.5px; color: var(--text-dim);
  transition: color .2s ease;
}
.main-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions .btn-primary { padding: 9px 20px; font-size: 13.5px; }
.header-actions .btn-ghost { font-size: 13.5px; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .main-nav { position: fixed; inset: 64px 0 0 0; background: var(--bg); transform: translateX(100%); transition: transform .35s ease; padding: 40px 24px; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 26px; }
  .main-nav a { font-size: 20px; }
  .header-actions .btn-ghost { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px;
  }
  .nav-toggle span { width: 20px; height: 2px; background: var(--text); }
}

/* ============================================================
   4. HERO + SIGNATURE LINE
   ============================================================ */
.hero {
  padding: 170px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; position: relative; }
.hero-copy h1 {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 600;
}
.hero-copy h1 .accent { color: var(--blue); }
.hero-copy p.lead { font-size: 19px; max-width: 480px; margin-bottom: 34px; color: var(--text-dim); }
.hero-ctas { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 46px; }

.hero-visual {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  padding: 28px 24px 20px;
}
.hero-visual .panel-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint);
  margin-bottom: 18px;
}
.hero-visual .panel-head .status { color: #1E9A4E; display:flex; align-items:center; gap:6px; }
.hero-visual .panel-head .status .dot { width:6px; height:6px; border-radius:50%; background:#30D158; box-shadow:0 0 8px rgba(48,209,88,0.5); animation: pulse-dot 2s infinite; }
.hero-chart-caption { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin-top: 10px; }
.hero-chart-caption span.red { color: var(--red); }
.hero-chart-caption span.brand { color: var(--blue); }

.continuity-path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.continuity-path.broken { stroke: var(--red); stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw-line 1.6s .2s ease-out forwards; }
.continuity-path.smooth { stroke: var(--blue); stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw-line 2.2s .9s ease-out forwards; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
.continuity-node { opacity: 0; animation: node-in .5s ease-out forwards; }
.continuity-node.n1 { animation-delay: 1.3s; }
.continuity-node.n2 { animation-delay: 1.7s; }
.continuity-node.n3 { animation-delay: 2.1s; }
.continuity-node.n4 { animation-delay: 2.5s; }
@keyframes node-in { from { opacity:0; transform: scale(0);} to { opacity:1; transform: scale(1);} }

.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-soft);
  margin-top: 70px; padding-top: 40px;
}
.stat-strip .stat { text-align: left; border-left: 1px solid var(--line-soft); padding-left: 20px; }
.stat-strip .stat:first-child { border-left: none; padding-left: 0; }
.stat-num { font-family: var(--font-mono); font-size: clamp(24px, 2.8vw, 32px); color: var(--text); font-weight: 700; }
.stat-label { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

@media (max-width: 900px) {
  .hero { padding: 130px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stat-strip .stat:nth-child(3) { border-left: none; padding-left: 0; }
}

/* ============================================================
   5. PROBLEM SECTION
   ============================================================ */
.problem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.problem-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.problem-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -20px rgba(0,0,0,0.16); }
.problem-card .mini-chart { width: 100%; height: 44px; margin-bottom: 16px; }
.problem-card h3 { font-size: 17px; margin-bottom: 6px; }
.problem-card p { font-size: 14px; margin: 0; }

@media (max-width: 900px) { .problem-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .problem-grid { grid-template-columns: 1fr; } }

/* ============================================================
   6. SOLUTION / COMPARISON
   ============================================================ */
.compare-wrap { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.compare-copy p.lead { font-size: 19px; color: var(--text); max-width: 620px; }
.compare-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.compare-card {
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid var(--line-soft);
  background: var(--panel);
}
.compare-card.bad { background: var(--bg-alt); }
.compare-card.good { background: var(--bg-alt); border-color: var(--blue-dim); }
.compare-card .tag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em; font-weight: 600; }
.compare-card.bad .tag { color: var(--red); }
.compare-card.good .tag { color: var(--blue); }
.compare-card h4 { font-size: 19px; margin: 10px 0 14px; }
.compare-card svg { width: 100%; height: 66px; margin-bottom: 14px; }
.compare-card ul li { font-size: 14.5px; color: var(--text-dim); padding: 5px 0; display: flex; gap: 8px; }
.compare-card.bad ul li::before { content: '✕'; color: var(--red); font-size: 12px; }
.compare-card.good ul li::before { content: '✓'; color: var(--blue); font-size: 12px; }

@media (max-width: 720px) { .compare-cards { grid-template-columns: 1fr; } }

/* ============================================================
   7. FEATURES
   ============================================================ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--blue-dim);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  color: var(--blue);
}
.feature-card h3 { font-size: 18px; margin-bottom: 6px; }
.feature-card p { font-size: 14.5px; margin: 0; }
@media (max-width: 900px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

/* ============================================================
   8. PACKAGES
   ============================================================ */
.packages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.package-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  position: relative;
}
.package-card.featured {
  border: 2px solid var(--blue);
}
.package-badge {
  position: absolute; top: -13px; left: 28px;
  background: var(--blue); color: #fff;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
.package-name { font-size: 14px; font-family: var(--font-mono); letter-spacing: .04em; color: var(--text-dim); text-transform: uppercase; }
.package-price { font-size: 25px; color: var(--text); margin: 10px 0 18px; font-family: var(--font-display); font-weight: 600; }
.package-card.featured .package-price { color: var(--blue); }
.package-card ul { margin-bottom: 28px; flex-grow: 1; }
.package-card ul li { font-size: 14.5px; color: var(--text-dim); padding: 7px 0; display: flex; gap: 9px; border-top: 1px solid var(--line-soft); }
.package-card ul li:first-child { border-top: none; }
.package-card ul li::before { content: '+'; color: var(--blue); font-weight: 700; }
.package-card .btn { justify-content: center; width: 100%; }
@media (max-width: 900px) { .packages-grid { grid-template-columns: 1fr; } }

/* ============================================================
   9. PROCESS
   ============================================================ */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process-list::before {
  content: ''; position: absolute; top: 24px; left: 6%; right: 6%; height: 1px;
  background: var(--line);
}
.process-step { position: relative; padding: 0 18px; text-align: left; }
.process-num {
  font-family: var(--font-mono); font-size: 13px; color: #fff;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-weight: 700; position: relative; z-index: 2;
}
.process-step h3 { font-size: 17px; margin-bottom: 6px; }
.process-step p { font-size: 14px; }
@media (max-width: 900px) {
  .process-list { grid-template-columns: 1fr 1fr; gap: 34px; }
  .process-list::before { display: none; }
}
@media (max-width: 560px) { .process-list { grid-template-columns: 1fr; } }

/* ============================================================
   10. TESTIMONIALS (Bangla content via .bn)
   ============================================================ */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testimonial-card {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 28px 26px;
}
.testimonial-stars { color: #FF9F0A; font-size: 14px; letter-spacing: 2px; margin-bottom: 16px; }
.testimonial-quote { font-size: 15px; color: var(--text); margin-bottom: 22px; line-height: 1.75; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 15px;
}
.testimonial-name { font-size: 14.5px; color: var(--text); }
.testimonial-role { font-size: 12.5px; color: var(--text-faint); }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ============================================================
   11. FAQ
   ============================================================ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-q {
  width: 100%; background: none; border: none; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 4px; font-size: 17px; font-weight: 500; text-align: left; font-family: var(--font-body);
}
.faq-q .plus { font-family: var(--font-mono); font-size: 20px; color: var(--blue); transition: transform .3s ease; flex-shrink: 0; }
.faq-item.is-open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 4px 22px; font-size: 15px; margin: 0; }

/* ============================================================
   12. FINAL CTA
   ============================================================ */
.final-cta {
  background: var(--bg-alt);
  border-radius: 28px;
  padding: 76px 50px;
  text-align: center;
}
.final-cta h2 { font-size: clamp(28px, 3.8vw, 42px); }
.final-cta p { font-size: 18px; max-width: 560px; margin: 0 auto 34px; color: var(--text-dim); }
.final-cta .hero-ctas { justify-content: center; margin-bottom: 0; }

/* ============================================================
   13. FOOTER
   ============================================================ */
.site-footer { background: var(--bg-alt); padding: 60px 0 26px; border-top: 1px solid var(--line-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand p { font-size: 14px; max-width: 320px; }
.footer-col h4 { font-size: 12.5px; color: var(--text); font-family: var(--font-body); font-weight: 600; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 11px; font-size: 13.5px; color: var(--text-dim); }
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 22px; border-top: 1px solid var(--line-soft);
  font-size: 12.5px; color: var(--text-faint);
}
.footer-disclaimer { font-size: 11.5px; color: var(--text-faint); max-width: 640px; margin-top: 10px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ============================================================
   14. BACK-TO-TOP / MISC
   ============================================================ */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(0,113,227,0.5);
}
