/*
 * BranjaSocial - site styles
 * Built on the Bootstrap 5 grid. Palette and type are tokens on :root.
 */

:root {
  --brand: #5b3df5;
  --brand-dark: #4426d4;
  --brand-soft: #efecff;
  --accent: #ff6b4a;
  --mint: #19c3a6;
  --ink: #0f1424;
  --ink-2: #1d2440;
  --text: #2a3045;
  --muted: #5d6478;
  --bg: #ffffff;
  --surface: #f6f5fb;
  --line: #e6e6f0;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 20, 36, 0.04), 0 12px 32px rgba(15, 20, 36, 0.08);
  --font: "Plus Jakarta Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --gradient: linear-gradient(135deg, #5b3df5 0%, #8b5cf6 45%, #ff6b4a 100%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4, h5 {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.5rem, 5.2vw, 4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }

p { margin-bottom: 1rem; }

section { padding: 96px 0; }

.section-bg { background: var(--surface); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-title {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-title h2 { margin-bottom: 14px; }
.section-title p { color: var(--muted); font-size: 1.08rem; margin: 0; }

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn-primary-sb,
.btn-ghost-sb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.btn-primary-sb {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(91, 61, 245, 0.28);
}

.btn-primary-sb:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); }

.btn-ghost-sb {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.btn-ghost-sb:hover { border-color: var(--brand); color: var(--brand); }

/* Header */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 997;
  padding: 18px 0;
  transition: background-color 0.3s, box-shadow 0.3s, padding 0.3s;
}

#header.header-scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 0;
}

#header .container { display: flex; align-items: center; justify-content: space-between; }

.logo {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo a {
  color: var(--ink);
  font-family: "Manrope", var(--font);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo a:hover { color: var(--ink); }

.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo span {
  font-weight: 300;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.navbar ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 4px; }

.navbar a {
  display: block;
  padding: 9px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 999px;
}

.navbar a:hover,
.navbar a.active { color: var(--brand); background: var(--brand-soft); }

.navbar .getstarted {
  margin-left: 10px;
  background: var(--brand);
  color: #fff;
  padding: 10px 20px;
}

.navbar .getstarted:hover { background: var(--brand-dark); color: #fff; }

.mobile-nav-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--ink);
}

/* Hero */
#hero {
  position: relative;
  min-height: min(100vh, 860px);
  padding: 150px 0 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(700px 500px at -10% 100%, rgba(255, 107, 74, 0.14), transparent 60%),
    var(--bg);
}

#hero h1 { margin-bottom: 22px; }

#hero .lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 10px;
}

.hero-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.hero-points i { color: var(--mint); font-size: 1.2rem; line-height: 1.5; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-img {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-img img {
  max-width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-badge {
  position: absolute;
  left: -12px;
  bottom: 28px;
  background: #fff;
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.hero-badge i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--mint);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

/* Platforms strip */
.platforms {
  padding: 36px 0;
  border-block: 1px solid var(--line);
}

.platforms p {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.platform-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}

.platform-list i { font-size: 1.1rem; color: var(--brand); }

/* Intro */
.intro-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}

.intro-list li { display: flex; gap: 12px; }
.intro-list i { color: var(--brand); font-size: 1.25rem; line-height: 1.5; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.stat strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}

.stat span { font-size: 0.88rem; color: var(--muted); }

/* Service cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: var(--brand);
  background: var(--brand-soft);
  margin-bottom: 22px;
}

.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* Process */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li { position: relative; padding-top: 8px; }

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  margin-bottom: 18px;
}

.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* Results / testimonials */
.quote-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.quote-card .metric {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
  margin-bottom: 8px;
}

.quote-card p { color: var(--muted); margin-bottom: 20px; }

.quote-card .who {
  margin-top: auto;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}

.quote-card .who span { display: block; font-weight: 500; color: var(--muted); font-size: 0.88rem; }

.placeholder {
  background: #fff3cd;
  color: #6b4e00;
  padding: 0 6px;
  border-radius: 6px;
  font-weight: 600;
}

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }

.price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border: 2px solid var(--brand);
  box-shadow: 0 20px 48px rgba(91, 61, 245, 0.18);
}

.price-card .tag {
  position: absolute;
  top: -14px;
  left: 30px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

.price-card .plan { font-size: 1rem; font-weight: 700; color: var(--brand); margin-bottom: 4px; }
.price-card h3 { font-size: 1.4rem; margin-bottom: 14px; }

.price {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}

.price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }

.price-card .desc { color: var(--muted); font-size: 0.97rem; margin: 14px 0 22px; }

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
}

.price-card li { display: flex; gap: 10px; font-size: 0.97rem; }
.price-card li i { color: var(--mint); font-size: 1.15rem; line-height: 1.5; }

.price-card .btn-primary-sb,
.price-card .btn-ghost-sb { margin-top: auto; justify-content: center; }

/* FAQ */
.faq-wrap { max-width: 820px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 56px 20px 22px;
  font-weight: 700;
  color: var(--ink);
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--brand);
}

.faq-item[open] summary::after { content: "–"; }

.faq-item p {
  padding: 0 22px 20px;
  margin: 0;
  color: var(--muted);
}

/* Contact */
.info-card {
  background: var(--ink);
  color: #c9cde0;
  border-radius: var(--radius);
  padding: 40px;
  height: 100%;
}

.info-card h3 { color: #fff; margin-bottom: 20px; }
.info-card .info-row { display: flex; gap: 14px; margin-bottom: 22px; }
.info-card .info-row i {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--mint);
  font-size: 1.3rem;
}
.info-card .info-row strong { display: block; color: #fff; font-size: 0.95rem; }
.info-card .info-row span,
.info-card .info-row a { color: #c9cde0; font-size: 0.95rem; }
.info-card .info-row a:hover { color: #fff; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.contact-form .form-control {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  padding: 13px 16px;
  font-size: 0.98rem;
  font-family: inherit;
  background: var(--surface);
}

.contact-form .form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(91, 61, 245, 0.14);
  background: #fff;
}

.contact-form .btn-primary-sb { border: 0; cursor: pointer; }

/* CTA band */
.cta-band { padding: 0 0 96px; }

.cta-inner {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--gradient);
  color: #fff;
  padding: 64px 48px;
  text-align: center;
}

.cta-inner::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.cta-inner h2 { color: #fff; max-width: 720px; margin: 0 auto 14px; }
.cta-inner p { color: rgba(255, 255, 255, 0.88); max-width: 580px; margin: 0 auto 28px; font-size: 1.08rem; }
.cta-inner .btn-primary-sb { background: #fff; color: var(--brand); box-shadow: none; }
.cta-inner .btn-primary-sb:hover { background: var(--ink); color: #fff; }

/* Footer */
#footer {
  background: var(--ink);
  color: #aab0c6;
  font-size: 0.95rem;
}

#footer .footer-top { padding: 72px 0 40px; }

#footer h3 { color: #fff; font-size: 1.3rem; margin-bottom: 16px; }
#footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 18px; }

#footer p { color: #aab0c6; margin: 0; }
#footer strong { color: #fff; font-weight: 600; }

#footer .footer-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
#footer .footer-links a { color: #aab0c6; }
#footer .footer-links a:hover { color: #fff; }

#footer .copyright-bar {
  border-top: 1px solid #222a47;
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
}

#footer .copyright-bar a { color: #aab0c6; }
#footer .copyright-bar a:hover { color: #fff; }

#footer .legal-links { display: flex; gap: 18px; flex-wrap: wrap; }

#footer .social-links { display: flex; gap: 10px; }
#footer .social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #171e35;
  color: #fff;
  font-size: 1.1rem;
}
#footer .social-links a:hover { background: var(--brand); color: #fff; }

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 996;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 10px 24px rgba(91, 61, 245, 0.3);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
}

.back-to-top:hover { color: #fff; transform: translateY(-2px); }
.back-to-top.active { opacity: 1; visibility: visible; }

/* Legal pages */
.legal-page { padding: 150px 0 96px; }
.legal-page .wrap { max-width: 760px; margin: 0 auto; }
.legal-page h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: 14px; }
.legal-page h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.legal-page ul { padding-left: 20px; }
.legal-page li { margin-bottom: 8px; }
.legal-page .updated { color: var(--muted); font-size: 0.95rem; margin-bottom: 32px; }

.note-box {
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: var(--ink-2);
  font-size: 0.95rem;
  margin: 24px 0;
}

/* Responsive */
@media (max-width: 1199px) {
  .navbar a { padding: 8px 10px; font-size: 0.9rem; }
}

@media (max-width: 991px) {
  section { padding: 72px 0; }

  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: #fff;
    padding: 90px 24px 24px;
    box-shadow: -10px 0 40px rgba(15, 20, 36, 0.12);
    transition: right 0.3s;
    overflow-y: auto;
  }

  .navbar.navbar-mobile { right: 0; }
  .navbar ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .navbar a { padding: 12px 14px; font-size: 1rem; }
  .navbar .getstarted { margin: 14px 0 0; text-align: center; }
  .mobile-nav-toggle { display: block; z-index: 9999; }

  .card-grid,
  .price-grid { grid-template-columns: repeat(2, 1fr); }

  .steps { grid-template-columns: repeat(2, 1fr); }

  .hero-img { margin-top: 48px; }
}

@media (max-width: 767px) {
  #hero { min-height: auto; padding: 130px 0 64px; }
  .card-grid,
  .price-grid,
  .steps { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .cta-inner { padding: 48px 26px; }
  .contact-form,
  .info-card { padding: 28px; }
  .hero-badge { left: 8px; }
}

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