/*
Theme Name: Portal Franchise
Theme URI: 
Author: Portal Franchise
Author URI: 
Description: Landing page konsultasi franchise dengan tone biru keunguan. Dikonversi dari HTML/CSS/JS statis menjadi tema WordPress custom, tampilan tidak diubah sama sekali.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: portal-franchise
*/

:root {
  --bg: #F5F4FC;
  --bg-deep: #EFEDFB;
  --ink: #1E1B4B;
  --ink-soft: #4B4779;
  --primary: #4C1D95;
  --primary-2: #6D28D9;
  --accent: #8B5CF6;
  --line: #E0DDF6;
  --white: #FFFFFF;
  --radius-card: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

h1,
h2,
h3,
h4 {
  font-family: 'Sora', sans-serif;
  color: var(--ink);
  line-height: 1.15;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}


/* =====================================================
   HEADER
===================================================== */

header {
  position: sticky;
  top: 0;
  z-index: 50;

  width: 100%;

  background: rgba(245, 244, 252, 0.95);

  backdrop-filter: blur(10px);

  border-bottom: 1px solid var(--line);
}

header .wrap {
  width: 100%;
}

header nav {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 64px;
  padding: 12px 0;
}


/* =====================================================
   HEADER LOGO (diperbaiki: ukuran pas & sejajar dengan teks)
===================================================== */

header .brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  flex-shrink: 0;

  font-family: 'Sora', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;

  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

header .brand-logo img {
  width: 32px;
  height: 32px;

  object-fit: contain;
  border-radius: 8px;

  flex-shrink: 0;
  display: block;
}

header .brand-logo span {
  display: block;
  line-height: 1;
  white-space: nowrap;
}


/* =====================================================
   NAVIGATION
===================================================== */

header .nav-links {
  display: flex;

  align-items: center;

  gap: 32px;

  margin-left: auto;
  margin-right: 32px;

  font-size: 0.95rem;

  font-weight: 500;
}

header .nav-links a {
  color: var(--ink-soft);

  transition: color 0.2s ease;
}

header .nav-links a:hover {
  color: var(--primary);
}


/* =====================================================
   NAV CTA
===================================================== */

header .nav-cta {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  background: var(--primary);

  color: #fff;

  padding: 10px 20px;

  border-radius: 999px;

  font-weight: 600;

  font-size: 0.9rem;

  line-height: 1;

  white-space: nowrap;

  flex-shrink: 0;

  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

header .nav-cta:hover {
  background: var(--primary-2);

  transform: translateY(-1px);
}


/* =====================================================
   HEADER RESPONSIVE
===================================================== */

@media (max-width: 800px) {

  header .nav-links {
    display: none;
  }

  header .nav-cta {
    padding: 10px 16px;
  }

}

@media (max-width: 480px) {

  header nav {
    min-height: 58px;
  }

  header .brand-logo {
    font-size: 1rem;
  }

  header .brand-logo img {
    width: 26px;
    height: 26px;
  }

  header .nav-cta {
    padding: 9px 14px;

    font-size: 0.82rem;
  }

}


/* =====================================================
   HERO
===================================================== */

.hero {
  padding: 72px 0 56px;

  position: relative;

  overflow: hidden;
}

.hero-grid {
  display: grid;

  grid-template-columns: 1.1fr 0.9fr;

  gap: 56px;

  align-items: center;
}

@media (max-width: 900px) {

  .hero-grid {
    grid-template-columns: 1fr;
  }

}

.eyebrow-line {
  display: flex;

  align-items: center;

  gap: 10px;

  font-size: 0.85rem;

  color: var(--primary-2);

  font-weight: 600;

  margin-bottom: 18px;
}

.eyebrow-line span.bar {
  width: 28px;

  height: 2px;

  background: var(--primary-2);

  display: inline-block;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);

  font-weight: 800;

  max-width: 14ch;

  margin-bottom: 20px;
}

.hero p.lead {
  font-size: 1.08rem;

  color: var(--ink-soft);

  max-width: 46ch;

  margin-bottom: 32px;
}

.hero-actions {
  display: flex;

  gap: 14px;

  flex-wrap: wrap;

  margin-bottom: 44px;
}


/* =====================================================
   BUTTONS
===================================================== */

.btn-primary {
  background: var(--primary);

  color: #fff;

  padding: 15px 26px;

  border-radius: 12px;

  font-weight: 600;

  font-size: 0.98rem;

  box-shadow: 0 10px 24px -8px rgba(76, 29, 149, 0.45);

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

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

  box-shadow: 0 14px 28px -8px rgba(76, 29, 149, 0.55);
}

.btn-ghost {
  border: 1.5px solid var(--line);

  color: var(--ink);

  padding: 14px 24px;

  border-radius: 12px;

  font-weight: 600;

  font-size: 0.98rem;

  background: var(--white);

  transition: border-color 0.15s ease;
}

.btn-ghost:hover {
  border-color: var(--primary-2);
}


/* =====================================================
   STATISTIK
===================================================== */

.stat-row {
  display: flex;

  gap: 36px;

  flex-wrap: wrap;
}

.stat-row .stat b {
  display: block;

  font-family: 'Sora', sans-serif;

  font-size: 1.6rem;

  color: var(--primary);
}

.stat-row .stat span {
  font-size: 0.85rem;

  color: var(--ink-soft);
}


/* =====================================================
   HERO VISUAL
===================================================== */

.hero-visual {
  position: relative;

  height: 420px;
}

.chip {
  position: absolute;

  background: var(--white);

  border: 1px solid var(--line);

  border-radius: 16px;

  padding: 16px 18px;

  box-shadow: 0 16px 30px -14px rgba(76, 29, 149, 0.25);

  display: flex;

  align-items: center;

  gap: 12px;

  width: 198px;
}

.chip .avatar {
  width: 42px;
  height: 42px;

  border-radius: 12px;

  flex-shrink: 0;

  object-fit: contain;

  background: var(--bg-deep);

  padding: 4px;
}

.chip .avatar-fallback {
  width: 42px;
  height: 42px;

  border-radius: 12px;

  flex-shrink: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  font-family: 'Sora', sans-serif;

  font-weight: 700;

  color: #fff;

  font-size: 0.9rem;
}

.chip .info b {
  display: block;

  font-size: 0.9rem;
}

.chip .info span {
  font-size: 0.75rem;

  color: var(--ink-soft);
}

.chip.c1 {
  top: 0;
  left: 20%;

  animation: float1 6s ease-in-out infinite;
}

.chip.c2 {
  top: 150px;
  left: 0;

  animation: float2 7s ease-in-out infinite;
}

.chip.c3 {
  top: 120px;
  right: 0;

  animation: float1 6.5s ease-in-out infinite;
}

.chip.c4 {
  bottom: 20px;
  left: 15%;

  animation: float2 5.5s ease-in-out infinite;
}

@keyframes float1 {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

}

@keyframes float2 {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }

}

@media (max-width: 900px) {

  .hero-visual {
    display: none;
  }

}


/* =====================================================
   SECTION
===================================================== */

.section {
  padding: 76px 0;
}

.section-head {
  max-width: 560px;

  margin-bottom: 42px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);

  margin-bottom: 12px;
}

.section-head p {
  color: var(--ink-soft);

  font-size: 1rem;
}


/* =====================================================
   FILTER
===================================================== */

.filters {
  display: flex;

  gap: 10px;

  flex-wrap: wrap;

  margin-bottom: 32px;
}

.filter-btn {
  padding: 9px 18px;

  border-radius: 999px;

  border: 1.5px solid var(--line);

  background: var(--white);

  font-size: 0.88rem;

  font-weight: 600;

  color: var(--ink-soft);

  cursor: pointer;

  transition: all 0.15s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);

  color: #fff;

  border-color: var(--primary);
}


/* =====================================================
   BRAND GRID
===================================================== */

.brand-grid {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fill,
      minmax(240px, 1fr)
    );

  gap: 18px;
}

.brand-card {
  background: var(--white);

  border: 1px solid var(--line);

  border-radius: var(--radius-card);

  padding: 22px;

  display: flex;

  flex-direction: column;

  gap: 14px;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.brand-card:hover {
  transform: translateY(-3px);

  box-shadow:
    0 18px 30px -18px
    rgba(76, 29, 149, 0.3);
}

.brand-top {
  display: flex;

  align-items: center;

  gap: 14px;
}

.brand-avatar-img {
  width: 52px;
  height: 52px;

  border-radius: 14px;

  flex-shrink: 0;

  object-fit: contain;

  background: var(--bg-deep);

  padding: 6px;
}

.brand-avatar-fallback {
  width: 52px;
  height: 52px;

  border-radius: 14px;

  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  font-family: 'Sora', sans-serif;

  font-weight: 700;

  color: #fff;

  font-size: 1.05rem;
}

.brand-top h4 {
  font-size: 1.02rem;
}

.brand-top p {
  font-size: 0.82rem;

  color: var(--ink-soft);
}

.brand-card .cat-tag {
  font-size: 0.75rem;

  color: var(--primary-2);

  font-weight: 600;

  background: var(--bg-deep);

  width: fit-content;

  padding: 4px 10px;

  border-radius: 8px;
}

.brand-link {
  margin-top: auto;

  font-size: 0.88rem;

  font-weight: 600;

  color: var(--primary);

  display: flex;

  align-items: center;

  gap: 6px;
}


/* =====================================================
   HOW IT WORKS
===================================================== */

.steps {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 24px;
}

@media (max-width: 900px) {

  .steps {
    grid-template-columns: 1fr 1fr;
  }

}

@media (max-width: 560px) {

  .steps {
    grid-template-columns: 1fr;
  }

}

.step {
  background: var(--white);

  border: 1px solid var(--line);

  border-radius: var(--radius-card);

  padding: 26px 22px;

  position: relative;
}

.step .num {
  font-family: 'Sora', sans-serif;

  font-weight: 800;

  font-size: 2rem;

  color: var(--line);

  margin-bottom: 10px;
}

.step h4 {
  font-size: 1.02rem;

  margin-bottom: 8px;
}

.step p {
  font-size: 0.88rem;

  color: var(--ink-soft);
}


/* =====================================================
   CTA BANNER
===================================================== */

.cta-banner {
  background:
    linear-gradient(
      135deg,
      var(--primary) 0%,
      var(--primary-2) 55%,
      var(--accent) 100%
    );

  border-radius: 28px;

  padding: 56px 44px;

  color: #fff;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 32px;

  flex-wrap: wrap;
}

.cta-banner h2 {
  color: #fff;

  font-size: clamp(1.5rem, 3vw, 2.1rem);

  max-width: 20ch;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);

  margin-top: 10px;

  max-width: 42ch;
}

.cta-banner .btn-primary {
  background: #fff;

  color: var(--primary);

  box-shadow: none;
}

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


/* =====================================================
   FOOTER
===================================================== */

footer {
  border-top: 1px solid var(--line);

  padding: 40px 0;

  margin-top: 20px;
}

.footer-row {
  display: flex;

  justify-content: space-between;

  align-items: center;

  flex-wrap: wrap;

  gap: 16px;
}


/* Footer logo (diperbaiki: ukuran pas & sejajar dengan teks) */

footer .brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;

  color: var(--primary);
  white-space: nowrap;
}

footer .brand-logo img {
  width: 28px;
  height: 28px;

  object-fit: contain;
  border-radius: 8px;

  flex-shrink: 0;
  display: block;
}

footer .brand-logo span {
  display: block;
  line-height: 1;
  white-space: nowrap;
}

.footer-row p {
  font-size: 0.85rem;

  color: var(--ink-soft);
}


/* =====================================================
   WHATSAPP FLOAT
===================================================== */

.wa-float {
  position: fixed;

  bottom: 22px;

  right: 22px;

  z-index: 60;

  background: var(--primary);

  color: #fff;

  width: 56px;

  height: 56px;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  box-shadow:
    0 12px 24px -10px
    rgba(76, 29, 149, 0.6);
}

.wa-float svg {
  width: 26px;

  height: 26px;

  fill: #fff;
}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

  .chip {
    animation: none !important;
  }

}
