/* =====================================
   GLOBAL RESET & PAGE SETUP
===================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 24px;
}

/* SECTION SPACING */
section {
  position: relative;
  padding: 50px 0;
}

/* HEADINGS DEFAULT */
h1, h2, h3, h4 {
  margin: 0;
  color: var(--text-strong);
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

/* RESPONSIVE BASE */
@media (max-width: 1024px) {
  section {
    padding: 90px 0;
  }
}

@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }
}


/* =====================================
   ULTRA CTA – BORDER FLOW (HOVER ONLY)
===================================== */

.btn-ultra {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  padding: 18px 46px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--accent)
  );
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(226,108,12,0.35);
  transition:
    transform .45s cubic-bezier(.22,1,.36,1),
    box-shadow .45s cubic-bezier(.22,1,.36,1);
}

/* TEXT */
.btn-ultra .btn-text {
  position: relative;
  z-index: 2;
  color: #fff;
  font-weight: 600;
  letter-spacing: .4px;
}

/* ==========================
   GRADIENT BORDER (IDLE)
========================== */
.btn-ultra .btn-border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px; /* border thickness */
  background: linear-gradient(
    90deg,
    var(--accent),
    var(--primary),
    var(--accent),
    var(--primary)
  );
  background-size: 300% 100%;
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 1;
}

/* CUT CENTER (ONLY BORDER VISIBLE) */
.btn-ultra .btn-border::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--accent)
  );
}

/* ==========================
   HOVER EFFECTS
========================== */
.btn-ultra:hover {
  transform: translateY(-6px) scale(1.06);
  box-shadow: 0 30px 70px rgba(226,108,12,0.45);
}

/* BORDER ANIMATION ON HOVER ONLY */
.btn-ultra:hover .btn-border {
  opacity: 1;
  animation: borderFlow 3s linear infinite;
}

/* ==========================
   BORDER FLOW ANIMATION
========================== */
@keyframes borderFlow {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 300% 50%;
  }
}



/* =====================================
   HERO – PREMIUM BUSINESS GROWTH
===================================== */
.fb-hero-advanced {
  background:
    radial-gradient(circle at top left, var(--primary-soft), transparent 60%),
    radial-gradient(circle at bottom right, var(--accent-soft), transparent 55%),
    var(--bg-dark);
}

/* GRID */
.fb-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 90px;
  align-items: center;
}

/* LEFT */
.fb-badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.fb-title {
  font-size: 3.2rem;
  line-height: 1.15;
}

.fb-title span {
  color: var(--accent);
}

.fb-subtitle {
  margin-top: 16px;
  font-size: 1.4rem;
  color: var(--primary);
}

.fb-text {
  margin-top: 18px;
  max-width: 640px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* RIGHT – GROWTH SYSTEM */
.fb-growth-visual {
  position: relative;
  width: 420px;
  height: 420px;
  margin-inline: auto;
}

/* CENTER FB */
.fb-core {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 160px;
  height: 160px;
  border-radius: var(--radius-xxl);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  animation: corePulse 4s ease-in-out infinite;
  z-index: 2;
}

.fb-core i {
  font-size: 4rem;
  color: #fff;
}

/* NODES */
.growth-node {
  position: absolute;
  padding: 12px 22px;
  background: var(--bg-light);
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  animation: nodeFloat 6s ease-in-out infinite;
}

.leads { top: 40px; left: 20px; }
.traffic { top: 40px; right: 20px; animation-delay: 1.5s; }
.sales { bottom: 20px; left: 50%; transform: translateX(-50%); animation-delay: 3s; }

/* LINES */
.growth-lines {
  position: absolute;
  inset: 0;
}

.growth-lines path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 6;
  animation: dashMove 3s linear infinite;
}

/* ANIMATIONS */
@keyframes corePulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes nodeFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes dashMove {
  to { stroke-dashoffset: -40; }
}

@media (max-width: 1024px) {
  .fb-hero-grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .fb-title {
    font-size: 2.6rem;
  }
}

@media (max-width: 768px) {
  .fb-growth-visual {
    transform: scale(.85);
  }

  .fb-title {
    font-size: 2.2rem;
  }
}
/* =========================
   HERO TEXT RESPONSIVE FIX
========================= */

@media (max-width: 900px){
  .fb-hero-advanced{
    padding: 40px 0;
   
  }

  .fb-title{
    font-size: 2.3rem;
    line-height: 1.25;
     max-width: 350px;
  }

  .fb-subtitle{
    font-size: 1.15rem;
     max-width: 350px;
  }

  .fb-text{
    font-size: .98rem;
    line-height: 1.65;
     max-width: 350px;
  }
}

@media (max-width: 600px){
  .fb-title{
    font-size: 1.55rem;
    line-height: 1.3;
  }

  .fb-subtitle{
    font-size: 1.05rem;
  }

  .fb-badge{
    font-size: .75rem;
    padding: 6px 14px;
  }

  .fb-text{
    font-size: .85rem;
  }
}

/* =========================
   MOBILE – REMOVE EXTRA GAP
========================= */

@media (max-width: 600px) {

  /* hero padding tighter */
  .fb-hero-advanced {
    padding: 24px 0 !important;
  }

  /* grid spacing control */
  .fb-hero-grid {
    gap: 16px !important; /* key fix */
  }

  /* text bottom spacing tighten */
  .fb-text {
    margin-bottom: 0 !important;
  }

  .fb-subtitle {
    margin-bottom: 6px !important;
  }

  /* visual block spacing */
  .fb-growth-visual {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: 240px;
    height: 240px;
  }

  /* scale animation slightly */
  .fb-growth-visual {
    transform: scale(0.9);
  }

  /* core resize */
  .fb-core {
    width: 110px;
    height: 110px;
  }

  /* prevent hidden overflow gap */
  .fb-hero-advanced * {
    scroll-margin: 0;
  }
}



/* =====================================
   WHY FACEBOOK MARKETING – PREMIUM
===================================== */

.fb-why {
  background:
    radial-gradient(circle at top right, var(--primary-soft), transparent 60%),
    var(--bg-darker);
}

/* HEADER */
.fb-why-header {
  max-width: 820px;
  margin-bottom: 70px;
}

.fb-why-header h2 {
  font-size: 2.6rem;
  line-height: 1.2;
}

.fb-why-header p {
  margin-top: 16px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* GRID */
.fb-why-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

/* LEFT CONTENT */
.fb-why-intro {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 24px;
  color: var(--text-strong);
}

.fb-why-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fb-why-list li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.6;
}

/* DOT INDICATOR */
.fb-why-list .dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--accent)
  );
  flex-shrink: 0;
  box-shadow: 0 0 0 6px var(--primary-soft);
}

/* RIGHT VISUAL */
.fb-why-visual {
  position: relative;
  height: 360px;
}

/* FLOATING CARDS */
.fb-why-card {
  position: absolute;
  padding: 22px 32px;
  background: var(--bg-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  font-weight: 600;
  color: var(--text-strong);
  animation: floatCard 6s ease-in-out infinite;
}

/* INDIVIDUAL POSITIONS */
.card-1 {
  top: 20px;
  left: 40px;
}

.card-2 {
  top: 130px;
  right: 20px;
  animation-delay: 1.5s;
}

.card-3 {
  bottom: 30px;
  left: 120px;
  animation-delay: 3s;
}

/* ANIMATION */
@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .fb-why-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .fb-why-visual {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .fb-why-header h2 {
    font-size: 2.2rem;
  }

  .fb-why-visual {
    display: none; /* clean mobile focus */
  }
}



/* =====================================
   FACEBOOK SERVICES – TREE MAPPING
===================================== */

.fb-tree {
  background:
    radial-gradient(circle at top right, var(--primary-soft), transparent 60%),
    var(--bg-dark);
}

/* HEADER */
.fb-tree-header {
  max-width: 900px;
  margin-bottom: 90px;
}

.fb-tree-header h2 {
  font-size: 2.6rem;
  line-height: 1.2;
}

.fb-tree-header h3 {
  margin-top: 12px;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--primary);
}

.fb-tree-header p {
  margin-top: 18px;
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* TREE WRAPPER */
.fb-tree-wrapper {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
}

/* CENTER LINE */
.fb-tree-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--primary),
    var(--accent)
  );
  transform: translateX(-50%);
  opacity: 0.35;
}

/* ITEMS */
.fb-tree-item {
  position: relative;
  width: 50%;
  padding: 18px 30px;
}

.fb-tree-item.left {
  left: 0;
  text-align: right;
}

.fb-tree-item.right {
  left: 50%;
  text-align: left;
}

/* CONNECTOR DOT */
.fb-tree-item::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--accent)
  );
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 6px var(--primary-soft);
}

.fb-tree-item.left::before {
  right: -7px;
}

.fb-tree-item.right::before {
  left: -7px;
}

/* CARD */
.fb-tree-card {
  display: inline-block;
  padding: 22px 28px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-strong);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-med);
}

/* HOVER EFFECT */
.fb-tree-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow:
    0 25px 60px rgba(15,23,42,0.18);
  border-color: transparent;
}

/* HIGHLIGHT FINAL NODE */
.fb-tree-card.highlight {
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--accent)
  );
  color: #fff;
  font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .fb-tree-wrapper {
    max-width: 100%;
  }

  .fb-tree-line {
    left: 8px;
  }

  .fb-tree-item,
  .fb-tree-item.left,
  .fb-tree-item.right {
    width: 100%;
    left: 0;
    text-align: left;
    padding-left: 40px;
    padding-right: 0;
  }

  .fb-tree-item::before {
    left: 1px;
    right: auto;
  }
}



/* =====================================
   FACEBOOK ADS – FUNNEL PERFORMANCE
===================================== */

.fb-ads {
  background:
    radial-gradient(circle at bottom right, var(--accent-soft), transparent 60%),
    var(--bg-darker);
}

/* GRID */
.fb-ads-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 90px;
  align-items: center;
}

/* LEFT CONTENT */
.fb-ads-content h2 {
  font-size: 2.6rem;
  line-height: 1.2;
}

.fb-ads-content h3 {
  margin-top: 12px;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--primary);
}

.fb-ads-content p {
  margin-top: 18px;
  max-width: 620px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.fb-ads-content .btn-ultra {
  margin-top: 36px;
}

/* RIGHT VISUAL */
.fb-ads-visual {
  position: relative;
}

/* FUNNEL */
.fb-funnel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 40px;
}

.funnel-step {
  padding: 16px 26px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  color: var(--text-strong);
  width: fit-content;
  box-shadow: var(--shadow-soft);
  animation: funnelFloat 6s ease-in-out infinite;
}

.step-1 { animation-delay: 0s; }
.step-2 { animation-delay: 1.5s; }
.step-3 { animation-delay: 3s; }

/* AD TYPES */
.fb-ad-types {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ad-chip {
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    var(--primary-soft),
    var(--accent-soft)
  );
  font-size: .95rem;
  color: var(--text-strong);
  transition: var(--transition-fast);
  cursor: default;
}

.ad-chip:hover {
  transform: translateY(-6px) scale(1.05);
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--accent)
  );
  color: #fff;
  box-shadow: var(--shadow-soft);
}

/* ANIMATION */
@keyframes funnelFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .fb-ads-grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }
}

@media (max-width: 768px) {
  .fb-ads-content h2 {
    font-size: 2.2rem;
  }

  .fb-funnel {
    flex-direction: row;
    flex-wrap: wrap;
  }
}


/* =====================================
   FACEBOOK PROCESS – ENGINE STYLE
===================================== */

.fb-process-engine {
  background:
    linear-gradient(
      to right,
      var(--bg-dark),
      var(--bg-darker),
      var(--bg-dark)
    );
}

/* HEADER */
.fb-engine-header {
  max-width: 860px;
  margin-bottom: 80px;
}

.fb-engine-header h2 {
  font-size: 2.6rem;
  line-height: 1.2;
}

.fb-engine-header h3 {
  margin-top: 12px;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--primary);
}

/* ENGINE FLOW */
.fb-engine-flow {
  display: flex;
  align-items: stretch;
  gap: 26px;
  overflow-x: auto;
  padding-bottom: 20px;
}

/* STEP CARD */
.engine-step {
  position: relative;
  min-width: 260px;
  padding: 32px 26px;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-med);
}

/* NUMBER */
.engine-no {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

/* TITLE */
.engine-step h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

/* TEXT */
.engine-step p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ARROW BETWEEN STEPS */
.engine-arrow {
  position: relative;
  width: 46px;
  flex-shrink: 0;
}

.engine-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--primary),
    var(--accent)
  );
  transform: translateY(-50%);
}

.engine-arrow::after {
  content: "➜";
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.2rem;
}

/* HOVER EFFECT */
.engine-step:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 30px 70px rgba(15,23,42,0.18);
  border-color: transparent;
}

/* FINAL STEP HIGHLIGHT */
.engine-step.highlight {
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--accent)
  );
}

.engine-step.highlight h4,
.engine-step.highlight p,
.engine-step.highlight .engine-no {
  color: #fff;
}

/* TRUST LINE */
.fb-engine-trust {
  margin-top: 70px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-main);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .fb-engine-flow {
    padding-bottom: 10px;
  }
}

@media (max-width: 768px) {
  .fb-engine-header h2 {
    font-size: 2.2rem;
  }
}


/* =====================================
   FACEBOOK PRICING – ROI LAYERS
===================================== */

.fb-pricing-layers {
  background:
    radial-gradient(circle at top left, var(--accent-soft), transparent 55%),
    radial-gradient(circle at bottom right, var(--primary-soft), transparent 55%),
    var(--bg-darker);
  text-align: center;
}

/* HEADER */
.fb-pricing-header {
  max-width: 820px;
  margin-inline: auto;
  margin-bottom: 80px;
}

.fb-pricing-header h2 {
  font-size: 2.6rem;
  line-height: 1.2;
}

.fb-pricing-header p {
  margin-top: 18px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* STACK */
.fb-pricing-stack {
  position: relative;
  max-width: 760px;
  margin: 0 auto 60px;
  height: 320px;
}

/* LAYER CARD */
.pricing-layer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  padding: 28px;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-med);
}

/* INDIVIDUAL POSITIONS */
.layer-1 {
  top: 0;
  z-index: 3;
}

.layer-2 {
  top: 90px;
  z-index: 2;
  transform: translateX(-50%) scale(0.96);
}

.layer-3 {
  top: 180px;
  z-index: 1;
  transform: translateX(-50%) scale(0.92);
}

/* TITLE */
.pricing-layer h4 {
  font-size: 1.15rem;
  color: var(--text-strong);
}

/* HOVER EFFECT */
.pricing-layer:hover {
  transform: translateX(-50%) translateY(-12px) scale(1.02);
  box-shadow: 0 30px 80px rgba(15,23,42,0.2);
  border-color: transparent;
}

/* FOOTER NOTE */
.fb-pricing-note {
  max-width: 720px;
  margin: 0 auto 50px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-main);
}

/* CTA */
.fb-pricing-cta {
  display: flex;
  justify-content: center;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .fb-pricing-header h2 {
    font-size: 2.2rem;
  }

  .fb-pricing-stack {
    height: auto;
  }

  .pricing-layer {
    position: static;
    transform: none !important;
    margin-bottom: 20px;
  }
}


/* =====================================
   MOBILE & TABLET OVERFLOW FIX ONLY
   (Desktop untouched)
===================================== */

/* Prevent horizontal scroll only on small screens */
@media (max-width: 1024px) {
  html, body {
    overflow-x: hidden;
  }

  /* Reduce grid overflow */
  .fb-hero-grid,
  .fb-why-grid,
  .fb-ads-grid {
    grid-template-columns: 1fr;
    gap: 650px;
  }

  /* Scale fixed-width visuals */
  .fb-growth-visual {
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 1 / 1;
    margin-inline: auto;
  }

  /* Prevent absolute elements from pushing width */
  .fb-growth-visual,
  .fb-why-visual,
  .fb-ads-visual {
    overflow: hidden;
  }
}

/* Extra small mobile polish */
@media (max-width: 600px) {
  .fb-growth-visual {
    max-width: 260px;
  }
}
