/*
Theme Name:  Bazara
Theme URI:   https://falak-abi.com
Author:      Koperasi Bazara
Author URI:  https://falak-abi.com
Description: Tema resmi Bazara — Pulsa & PPOB Koperasi. Dari kita untuk kita.
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: bazara
Tags:        custom-background, custom-logo, full-width-template, sticky-post
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --tosca:       #1AA6B7;
  --tosca-dark:  #0D8A9A;
  --tosca-light: #E8F8FA;
  --tosca-pale:  #F0FAFB;
  --orange:      #F59E0B;
  --dark:        #0F2A35;
  --text:        #334155;
  --muted:       #64748B;
  --border:      #E2E8F0;
  --white:       #FFFFFF;
  --bg:          #F8FCFD;

  --font-head: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 4px 24px rgba(26,166,183,0.10);
  --shadow-lg: 0 12px 48px rgba(26,166,183,0.18);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--tosca); text-decoration: none; transition: color .2s; }
a:hover { color: var(--tosca-dark); }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  color: var(--dark);
  line-height: 1.25;
  font-weight: 700;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER & NAVIGASI
   ============================================================ */
#masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}

#masthead.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo img { height: 44px; width: auto; }
.site-logo .site-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--tosca);
  letter-spacing: -0.5px;
}

/* Nav */
.main-nav ul { list-style: none; display: flex; gap: 8px; align-items: center; }
.main-nav a {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  transition: all .2s;
}
.main-nav a:hover, .main-nav .current-menu-item a {
  background: var(--tosca-light);
  color: var(--tosca);
}

.btn-download {
  background: var(--tosca) !important;
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(26,166,183,0.35) !important;
  transition: transform .2s, box-shadow .2s !important;
}
.btn-download:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(26,166,183,0.45) !important;
}

/* Hamburger mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all .3s;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark) 0%, #0D4A55 50%, var(--tosca-dark) 100%);
}

/* Dekorasi background */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(26,166,183,0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(245,158,11,0.15) 0%, transparent 40%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-badge span { 
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-title .accent {
  background: linear-gradient(90deg, var(--tosca), #7DD3FC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  max-width: 460px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tosca);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(26,166,183,0.4);
  transition: all .25s;
}
.btn-primary:hover {
  background: var(--tosca-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(26,166,183,0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  backdrop-filter: blur(8px);
  transition: all .25s;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  transform: translateY(-2px);
}

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-mockup {
  position: relative;
  width: 280px;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.5));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-16px); }
}

.phone-mockup img { width: 100%; border-radius: 36px; }

/* Floating stats cards */
.stat-card {
  position: absolute;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  animation: float 4s ease-in-out infinite;
}
.stat-card:nth-child(2) { animation-delay: -1s; }
.stat-card:nth-child(3) { animation-delay: -2s; }

.stat-card.left  { left: -40px; top: 30%; }
.stat-card.right { right: -30px; bottom: 25%; }

.stat-card .label { font-size: 11px; color: var(--muted); font-weight: 500; }
.stat-card .value {
  font-size: 18px;
  font-weight: 800;
  color: var(--tosca);
  font-family: var(--font-head);
}

/* ============================================================
   LAYANAN SECTION
   ============================================================ */
.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  background: var(--tosca-light);
  color: var(--tosca);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.section-desc {
  color: var(--muted);
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto;
}

/* Grid layanan */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  cursor: default;
}

.service-card:hover {
  border-color: var(--tosca);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--tosca-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 26px;
  transition: all .3s;
}

.service-card:hover .service-icon {
  background: var(--tosca);
  transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--dark);
}

.service-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================================
   KEUNGGULAN / FITUR
   ============================================================ */
.features-section {
  background: linear-gradient(135deg, var(--dark) 0%, #0D4A55 100%);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.features-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(26,166,183,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all .3s;
}

.feature-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(26,166,183,0.5);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 20px;
  display: block;
}

.feature-card h3 {
  font-size: 18px;
  color: var(--white);
  margin-bottom: 10px;
}

.feature-card p {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  line-height: 1.7;
}

/* ============================================================
   CARA KERJA
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--tosca), var(--tosca-light));
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 64px;
  height: 64px;
  background: var(--tosca);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-head);
  margin: 0 auto 20px;
  box-shadow: 0 6px 20px rgba(26,166,183,0.4);
  border: 4px solid var(--bg);
}

.step-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   SYARAT & KETENTUAN / KEBIJAKAN PRIVASI
   ============================================================ */
.legal-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
  margin: 48px 0;
}

.legal-section h2 {
  font-size: 28px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--tosca-light);
}

.legal-section h3 {
  font-size: 18px;
  margin: 28px 0 12px;
  color: var(--tosca-dark);
}

.legal-section p, .legal-section li {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-section ul, .legal-section ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--tosca) 0%, var(--tosca-dark) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: 17px;
  margin-bottom: 36px;
  position: relative;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.btn-white {
  background: var(--white);
  color: var(--tosca);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .25s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.btn-white:hover {
  color: var(--tosca-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

/* ============================================================
   FOOTER
   ============================================================ */
#colophon {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  margin-top: 14px;
  color: rgba(255,255,255,0.55);
}

.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  font-family: var(--font-head);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--tosca); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid   { grid-template-columns: repeat(2, 1fr); }
  .features-grid   { grid-template-columns: repeat(2, 1fr); }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {```css
@media (max-width: 768px) {

  /* ==========================
     HEADER MOBILE FIX
     ========================== */
  #masthead {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--border);
  }

  .header-inner {
    height: 68px;
  }

  /* Tombol hamburger */
  .nav-toggle {
    display: flex;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
  }

  .nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 999px;
    transition: all .3s ease;
  }

  /* ==========================
     MOBILE NAVBAR
     ========================== */
  .main-nav {
    display: none;

    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;

    background: #ffffff; /* FIX transparan */
    opacity: 1;

    padding: 24px;
    overflow-y: auto;

    z-index: 999;
    border-top: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav a {
    display: block;
    width: 100%;

    padding: 14px 18px;
    border-radius: 12px;

    color: var(--text);
    font-size: 16px;
    font-weight: 600;

    transition: all .2s ease;
  }

  .main-nav a:hover,
  .main-nav .current-menu-item a {
    background: var(--tosca-light);
    color: var(--tosca);
  }

  /* tombol download tetap bagus di HP */
  .btn-download {
    display: block;
    text-align: center;
    margin-top: 8px;
  }

  /* ==========================
     SECTION RESPONSIVE
     ========================== */
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin: 0 auto 36px;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

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

  .steps-grid::before {
    display: none;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .legal-section {
    padding: 28px 20px;
  }
}
```

}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid    { grid-template-columns: 1fr; }
}
