/* ============================================
   KING MARKETING - Shared Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800;900&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --black: #0a0a0a;
  --black-soft: #141414;
  --black-card: #1a1a1a;
  --gold: #d4a853;
  --gold-light: #e8c97a;
  --gold-dark: #b8923e;
  --white: #fafafa;
  --white-soft: #f0ede8;
  --gray: #8a8a8a;
  --gray-light: #c4c4c4;
  --gray-dark: #3a3a3a;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.18);
  --shadow-gold: 0 8px 32px rgba(212,168,83,0.2);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--black);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

/* ---- HEADER / NAV ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.6rem 0;
  box-shadow: 0 1px 0 rgba(212,168,83,0.15);
}

.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo img {
  height: 44px;
  width: auto;
  border-radius: 8px;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
}

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

.nav-links a.active {
  color: var(--gold);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  filter: saturate(0.4);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.6) 0%, rgba(10,10,10,0.85) 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(212,168,83,0.4);
  padding: 0.5rem 1.5rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease 0.15s both;
}

.hero h1 .gold {
  color: var(--gold);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--gray-light);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  animation: fadeUp 0.8s ease 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.45s both;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--black-soft);
  transform: translateY(-2px);
}

/* ---- SECTIONS ---- */
.section {
  padding: 6rem 2rem;
}

.section-inner {
  max-width: 1320px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--black);
}

.section-title.light {
  color: var(--white);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 600px;
  line-height: 1.7;
}

.section-desc.light {
  color: var(--gray-light);
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* ---- DARK SECTION ---- */
.section-dark {
  background: var(--black);
  color: var(--white);
}

.section-dark .section-title {
  color: var(--white);
}

.section-dark .section-desc {
  color: var(--gray-light);
}

/* ---- SOFT SECTION ---- */
.section-soft {
  background: var(--white-soft);
}

/* ---- CARDS ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-dark {
  background: var(--black-card);
  color: var(--white);
}

.card-dark:hover {
  box-shadow: 0 12px 40px rgba(212,168,83,0.1);
}

/* ---- STATS BANNER ---- */
.stats-banner {
  background: var(--black);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--gray-light);
  font-weight: 500;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  max-width: 320px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand-logo img {
  height: 36px;
  border-radius: 6px;
}

.footer-brand-logo span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--gold);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
}

.footer-links-group h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.footer-links-group a {
  display: block;
  color: var(--gray);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: var(--transition);
}

.footer-links-group a:hover {
  color: var(--white);
  padding-left: 0.5rem;
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--gray);
}

.footer-socials {
  display: flex;
  gap: 0.8rem;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-socials a:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ---- WHATSAPP FLOAT ---- */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  width: 48px;
  height: 48px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
  transition: var(--transition);
  text-decoration: none;
}

.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}

.wa-float svg {
  width: 24px;
  height: 24px;
  fill: white;
}

/* ---- CHATBOT ---- */
.chatbot-wrap {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 950;
}

.chatbot-trigger {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(212,168,83,0.35);
  transition: var(--transition);
}

.chatbot-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(212,168,83,0.5);
}

.chatbot-trigger img {
  width: 26px;
  height: 26px;
  border-radius: 5px;
}

.chatbot-panel {
  position: absolute;
  bottom: 60px;
  left: 0;
  width: 320px;
  height: 440px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgba(0,0,0,0.22);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: chatSlideUp 0.3s ease;
}

.chatbot-panel.open {
  display: flex;
}

@keyframes chatSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.chatbot-head {
  background: var(--black);
  color: var(--white);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-head-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.chatbot-head-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.chatbot-head-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.chatbot-head-name {
  font-weight: 600;
  font-size: 0.82rem;
}

.chatbot-head-status {
  font-size: 0.65rem;
  color: #4caf50;
  display: flex;
  align-items: center;
  gap: 3px;
}

.chatbot-head-status::before {
  content: '';
  width: 5px;
  height: 5px;
  background: #4caf50;
  border-radius: 50%;
}

.chatbot-close {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.15rem;
  transition: var(--transition);
}

.chatbot-close:hover {
  color: var(--white);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #f5f5f3;
}

.msg {
  max-width: 85%;
  padding: 0.55rem 0.8rem;
  border-radius: 14px;
  font-size: 0.78rem;
  line-height: 1.45;
  animation: fadeIn 0.3s ease;
}

.msg.bot {
  align-self: flex-start;
  background: var(--white);
  color: var(--black);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.msg.user {
  align-self: flex-end;
  background: var(--black);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.typing-dots {
  display: flex;
  gap: 3px;
  padding: 0.55rem 0.8rem;
  background: var(--white);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--gray);
  border-radius: 50%;
  animation: dotBounce 1.4s infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.chatbot-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.05);
}

.chatbot-quick button {
  padding: 0.3rem 0.75rem;
  background: var(--white-soft);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition);
  color: var(--black);
}

.chatbot-quick button:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

.chatbot-input-row {
  padding: 0.5rem 0.8rem;
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  gap: 0.4rem;
}

.chatbot-input-row input {
  flex: 1;
  padding: 0.5rem 0.8rem;
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 100px;
  font-size: 0.78rem;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
}

.chatbot-input-row input:focus {
  border-color: var(--gold);
}

.chatbot-input-row button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--black);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.chatbot-input-row button:hover {
  background: var(--gold);
}

.chatbot-input-row button svg {
  width: 15px;
  height: 15px;
  fill: var(--white);
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--black);
    flex-direction: column;
    padding: 5rem 2rem;
    transition: right 0.4s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    padding: 0.8rem 0;
    font-size: 1rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

  .section {
    padding: 4rem 1.5rem;
  }

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

  .chatbot-panel {
    width: calc(100vw - 2rem);
    height: 400px;
    left: -0.75rem;
    bottom: 58px;
  }

  .footer-top {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .stats-banner {
    grid-template-columns: 1fr 1fr;
    padding: 2rem 1rem;
  }
  
  .stat-number {
    font-size: 2.2rem;
  }
}