/*
Theme Name: Andy Market Custom
Theme URI: https://andymarket.com
Author: Andy Market
Description: Custom theme untuk Andy Market — Jasa Pembuatan Website & Jasa SEO. CTA WhatsApp terpasang di seluruh halaman.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: andymarket-custom
*/

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 800; color: var(--ink); }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }

:root {
  --blue-900: #0f2a4a;
  --blue-700: #17417a;
  --blue-600: #2b6fc9;
  --blue-500: #3d84e0;
  --blue-100: #eaf2fc;
  --blue-50: #f5f9ff;
  --gold: #f5a623;
  --gold-dark: #d98c0f;
  --wa-green: #25d366;
  --wa-green-dark: #1ebe5b;
  --ink: #16233a;
  --muted: #5b6b84;
  --bg: #ffffff;
  --border: #e1e9f5;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(15,42,74,.18);
  --container: 1160px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 84px 0; }
.section--tint { background: var(--blue-50); }
.section--dark { background: linear-gradient(155deg, var(--blue-900), var(--blue-700)); color: #fff; }
.section--dark h2, .section--dark h3, .section--dark p { color: #fff; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section--dark .eyebrow { background: rgba(255,255,255,.12); color: #bcd6ff; }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.section-head p { color: var(--muted); font-size: 17px; }
.section--dark .section-head p { color: #cfe0f7; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15.5px;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--wa { background: var(--wa-green); color: #fff; box-shadow: 0 10px 24px -8px rgba(37,211,102,.55); }
.btn--wa:hover { background: var(--wa-green-dark); }
.btn--outline { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,.12); }
.btn--outline-blue { background: transparent; border-color: var(--blue-600); color: var(--blue-600); }
.btn--outline-blue:hover { background: var(--blue-100); }
.btn--block { width: 100%; justify-content: center; }
.btn--sm { padding: 10px 18px; font-size: 14px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--blue-900);
  color: #cfe0f7;
  font-size: 13.5px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #cfe0f7; }
.topbar a:hover { color: #fff; }
.topbar__contact { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar__contact span { display: inline-flex; align-items: center; gap: 6px; }
.topbar__contact svg { width: 14px; height: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; color: var(--blue-900); }
.brand__mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(155deg, var(--blue-600), var(--blue-900));
  display: flex; align-items: center; justify-content: center; flex: none;
}
.brand__mark svg { width: 22px; height: 22px; color: #fff; }
.brand span { color: var(--gold-dark); }

.primary-nav { display: flex; align-items: center; gap: 6px; }
.primary-nav ul { display: flex; gap: 4px; }
.primary-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--blue-900);
}
.primary-nav a:hover { background: var(--blue-100); color: var(--blue-600); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .btn { display: none; }
.nav-cta-mobile { display: none; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; color: var(--blue-900); }

@media (min-width: 981px) { .header-actions .btn { display: inline-flex; } }

@media (max-width: 980px) {
  .primary-nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 20px;
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav ul { flex-direction: column; gap: 2px; }
  .nav-cta-mobile { display: block; margin-top: 12px; }
  .nav-toggle { display: flex; }
  .topbar__contact span:nth-child(2) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1100px 500px at 85% -10%, rgba(245,166,35,.18), transparent 60%),
              linear-gradient(160deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--blue-600) 100%);
  color: #fff;
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4.6vw, 50px); color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { font-size: 18px; color: #d9e6fb; max-width: 540px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero__badges { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 40px; }
.hero__badges div { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #d9e6fb; font-weight: 600; }
.hero__badges svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

.hero__art { position: relative; }
.hero__card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
  padding: 22px;
  color: var(--ink);
  transform: rotate(-1.5deg);
}
.hero__card__bar { display: flex; gap: 6px; margin-bottom: 16px; }
.hero__card__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.hero__card__bar span:nth-child(1) { background: #ff6259; }
.hero__card__bar span:nth-child(2) { background: #ffbd2e; }
.hero__card__bar span:nth-child(3) { background: #27c93f; }
.hero__chart { display: flex; align-items: flex-end; gap: 10px; height: 130px; margin: 18px 0 10px; }
.hero__chart div { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--blue-500), var(--blue-600)); }
.hero__chart div:last-child { background: linear-gradient(180deg, var(--gold), var(--gold-dark)); }
.hero__card small { color: var(--muted); font-weight: 600; }
.hero__float {
  position: absolute;
  bottom: -18px; left: -18px;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 700;
}
.hero__float svg { width: 24px; height: 24px; color: var(--wa-green); }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: left; }
  .hero__art { display: none; }
}

/* ---------- Trust strip ---------- */
.trust { background: var(--blue-50); border-bottom: 1px solid var(--border); }
.trust .container { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: center; padding: 22px 20px; }
.trust div { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; color: var(--blue-900); }
.trust svg { width: 18px; height: 18px; color: var(--blue-600); flex: none; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

.svc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.svc-card__icon {
  width: 54px; height: 54px; border-radius: 12px;
  background: var(--blue-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.svc-card__icon svg { width: 28px; height: 28px; color: var(--blue-600); }
.svc-card h3 { font-size: 19px; margin-bottom: 8px; }
.svc-card p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.svc-card__link { font-weight: 700; color: var(--blue-600); font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.svc-card__link svg { width: 16px; height: 16px; transition: transform .15s ease; }
.svc-card:hover .svc-card__link svg { transform: translateX(3px); }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .why-grid { grid-template-columns: 1fr; } }
.why-item { text-align: center; }
.why-item__icon {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--blue-600), var(--blue-900));
  display: flex; align-items: center; justify-content: center;
}
.why-item__icon svg { width: 30px; height: 30px; color: #fff; }
.why-item h3 { font-size: 17.5px; }
.why-item p { color: var(--muted); font-size: 14.5px; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; position: relative; }
@media (max-width: 980px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .process { grid-template-columns: 1fr; } }
.process-step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 22px; }
.process-step__num {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--gold);
  color: var(--blue-900);
  font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.process-step h3 { font-size: 16.5px; margin-bottom: 6px; }
.process-step p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- CTA banner ---------- */
.cta-banner { background: linear-gradient(120deg, var(--blue-900), var(--blue-700)); border-radius: 22px; padding: 56px 44px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-banner h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.cta-banner p { color: #cfe0f7; margin: 0; }
.cta-banner__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-banner__phone { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: #fff; }
.cta-banner__phone svg { width: 26px; height: 26px; color: var(--gold); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; background: #fff; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--blue-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--blue-600);
  flex: none;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__body { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: #cfe0f7; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer .brand span { color: var(--gold); }
.footer-desc { color: #a9c1e2; font-size: 14.5px; margin: 14px 0 0; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #a9c1e2; font-size: 14.5px; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; color: #a9c1e2; font-size: 14.5px; margin-bottom: 14px; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 2px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 0; font-size: 13.5px; color: #8fa9cc; flex-wrap: wrap; }
.footer-bottom a { color: #a9c1e2; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 60;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--wa-green);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,.65);
  animation: wa-pulse 2.4s infinite;
}
.wa-float svg { width: 30px; height: 30px; color: #fff; }
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Generic page template ---------- */
.page-hero { background: var(--blue-100); padding: 56px 0; text-align: center; }
.page-hero h1 { font-size: clamp(26px, 3.6vw, 38px); color: var(--blue-900); }
.page-hero .breadcrumb { color: var(--muted); font-size: 14px; }
.page-hero .breadcrumb a { color: var(--blue-600); font-weight: 600; }
.page-content { max-width: 820px; margin: 0 auto; padding: 60px 20px; }
.page-content h2 { font-size: 24px; margin-top: 1.4em; }
.page-content img { border-radius: 12px; margin: 20px 0; }
.page-content a { color: var(--blue-600); text-decoration: underline; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }
.post-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.post-card__thumb { aspect-ratio: 16/10; background: var(--blue-100); overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 20px; }
.post-card__date { color: var(--blue-600); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.post-card h3 { font-size: 17px; margin: 8px 0; }
.post-card p { color: var(--muted); font-size: 14px; }

.single-article { max-width: 780px; margin: 0 auto; padding: 60px 20px; }
.single-article__meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.single-article img { border-radius: 12px; }

.error-404 { text-align: center; padding: 110px 20px; }
.error-404 h1 { font-size: 90px; color: var(--blue-100); -webkit-text-stroke: 2px var(--blue-600); }
