/* ===========================================================
   United Business Solutions — Premium Stylesheet
   Palette: Purple #5B1A72 / Gold #C9A24B / Ivory #FAF7F2
   =========================================================== */

:root {
  --purple-900: #3a0e4b;
  --purple-800: #4a1561;
  --purple-700: #5b1a72;
  --purple-600: #6e2288;
  --purple-500: #7b2d95;
  --gold-700: #a4812f;
  --gold-600: #b9923d;
  --gold-500: #c9a24b;
  --gold-400: #d9b666;
  --gold-300: #e6cc8c;
  --ivory: #faf7f2;
  --cream: #f3ede2;
  --ink-900: #1a0f24;
  --ink-700: #3b2b47;
  --ink-500: #6b5e76;
  --ink-300: #b7afbf;
  --white: #ffffff;
  --wa: #25d366;
  --wa-dark: #128c7e;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 4px 12px rgba(58, 14, 75, 0.08);
  --shadow-md: 0 12px 32px rgba(58, 14, 75, 0.12);
  --shadow-lg: 0 24px 64px rgba(58, 14, 75, 0.18);

  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Manrope', 'Helvetica Neue', system-ui, sans-serif;

  --container: 1240px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink-700);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--ink-900); line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }

p { font-size: 1rem; }
.lead { font-size: 1.12rem; color: var(--ink-700); margin-bottom: 1rem; }

.gold { color: var(--gold-600); font-style: italic; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-500);
  font-weight: 700;
  margin-bottom: 1rem;
  padding: 6px 14px;
  border: 1px solid rgba(201, 162, 75, 0.5);
  border-radius: 100px;
  background: rgba(201, 162, 75, 0.08);
}
.eyebrow.dark { color: var(--purple-700); border-color: rgba(91, 26, 114, 0.3); background: rgba(91, 26, 114, 0.06); }
.eyebrow.light { color: var(--gold-300); border-color: rgba(230, 204, 140, 0.5); background: rgba(230, 204, 140, 0.1); }

/* ------------ Buttons ------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn i { font-size: 1.05em; }
.btn-primary {
  background: var(--purple-700);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(91, 26, 114, 0.3);
}
.btn-primary:hover { background: var(--purple-800); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(91, 26, 114, 0.45); }

.btn-whatsapp {
  background: var(--wa);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover { background: var(--wa-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--purple-700);
  border-color: var(--purple-700);
}
.btn-outline:hover { background: var(--purple-700); color: var(--white); }

.btn-dark { background: var(--ink-900); color: var(--white); }
.btn-dark:hover { background: var(--purple-800); transform: translateY(-2px); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

/* ------------ Topbar ------------ */
.topbar {
  background: var(--ink-900);
  color: var(--cream);
  font-size: 0.82rem;
  padding: 10px 0;
  letter-spacing: 0.02em;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-left { display: flex; gap: 28px; }
.topbar i { color: var(--gold-500); margin-right: 6px; }

/* ------------ Header ------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(91, 26, 114, 0.08);
  transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-sm); background: rgba(255, 255, 255, 0.98); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 24px; }

.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: var(--white); padding: 4px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-heading); font-size: 1.15rem; color: var(--purple-700); font-weight: 700; letter-spacing: -0.01em; }
.brand-tag { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; }

.nav { display: flex; gap: 6px; align-items: center; }
.nav-link {
  position: relative;
  padding: 10px 16px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-700);
  border-radius: 100px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--gold-500);
  transition: var(--transition);
}
.nav-link:hover { color: var(--purple-700); }
.nav-link:hover::after, .nav-link.active::after { transform: translateX(-50%) scaleX(1); }
.nav-link.active { color: var(--purple-700); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: 8px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--purple-700); transition: var(--transition); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------ Hero Slider ------------ */
.hero { position: relative; height: calc(100vh - 140px); min-height: 580px; max-height: 820px; overflow: hidden; background: var(--ink-900); }
.slider { position: relative; width: 100%; height: 100%; }
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease, transform 8s ease;
  display: flex;
  align-items: center;
  transform: scale(1.05);
}
.slide.active { opacity: 1; transform: scale(1); z-index: 2; }
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(26, 15, 36, 0.85) 0%, rgba(58, 14, 75, 0.6) 50%, rgba(26, 15, 36, 0.3) 100%);
}
.slide-content { position: relative; z-index: 3; color: var(--white); max-width: 720px; animation: fadeSlide 1s ease both; }
.slide.active .slide-content { animation: fadeSlide 1s ease 0.3s both; }
.slide-content h1 { color: var(--white); margin: 1rem 0 1.5rem; }
.slide-content p { font-size: 1.15rem; color: rgba(255, 255, 255, 0.88); max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

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

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  z-index: 5;
  transition: var(--transition);
  font-size: 1rem;
}
.slider-btn:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--ink-900); transform: translateY(-50%) scale(1.08); }
.slider-btn.prev { left: 32px; }
.slider-btn.next { right: 32px; }

.slider-dots { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.slider-dots button {
  width: 36px; height: 4px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  transition: var(--transition);
}
.slider-dots button.active { background: var(--gold-500); width: 60px; }

/* ------------ Stats ------------ */
.stats { background: var(--purple-700); color: var(--white); padding: 40px 0; position: relative; overflow: hidden; }
.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(201, 162, 75, 0.2) 0%, transparent 50%);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; text-align: center; }
.stat-num { font-family: var(--font-heading); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; color: var(--gold-400); line-height: 1; }
.stat-num::after { content: '+'; }
.stat-label { font-size: 0.88rem; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.85; margin-top: 8px; }

/* ------------ Sections ------------ */
.section { padding: 100px 0; }
.section-alt { background: linear-gradient(180deg, var(--ivory) 0%, var(--cream) 100%); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-head h2 { margin-bottom: 1rem; }
.section-head p { color: var(--ink-500); font-size: 1.05rem; }

/* ------------ Product Grid ------------ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(91, 26, 114, 0.06);
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(201, 162, 75, 0.3); }
.product-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.product-card:hover .product-media img { transform: scale(1.08); }
.product-media .tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--ink-900);
  color: var(--gold-400);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  font-weight: 600;
}
.product-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-body h3 { color: var(--purple-700); }
.product-body p { color: var(--ink-500); flex: 1; font-size: 0.95rem; }
.product-body .btn { margin-top: 8px; }

/* ------------ About ------------ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; }
.about-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--gold-500);
  color: var(--ink-900);
  padding: 24px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 16px;
}
.about-badge-num { font-family: var(--font-heading); font-size: 3rem; font-weight: 800; line-height: 1; }
.about-badge-text { font-size: 0.9rem; line-height: 1.3; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }

.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { color: var(--ink-700); margin-bottom: 1rem; }
.about-tagline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: var(--white);
  border-left: 4px solid var(--gold-500);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0 32px;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--purple-700);
  box-shadow: var(--shadow-sm);
}
.about-tagline i { color: var(--gold-500); font-size: 1rem; }
.about-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ------------ Why ------------ */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.why-card {
  background: var(--white);
  padding: 40px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold-500);
  transition: var(--transition);
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-top-color: var(--purple-700); }
.why-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-700) 0%, var(--purple-900) 100%);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: var(--transition);
}
.why-card:hover .why-icon { background: var(--gold-500); color: var(--ink-900); transform: rotate(-8deg) scale(1.05); }
.why-card h3 { color: var(--purple-700); margin-bottom: 12px; }
.why-card p { color: var(--ink-500); font-size: 0.95rem; }

/* ------------ CTA ------------ */
.cta { position: relative; color: var(--white); overflow: hidden; padding: 80px 0; }
.cta-bg {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--purple-900) 0%, var(--purple-700) 50%, var(--purple-800) 100%);
}
.cta-bg::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(201, 162, 75, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(201, 162, 75, 0.15) 0%, transparent 50%);
}
.cta-inner { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta-text h2 { color: var(--white); margin: 1rem 0; max-width: 600px; }
.cta-text p { color: rgba(255, 255, 255, 0.85); max-width: 520px; }

/* ------------ Contact ------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-list { list-style: none; margin-top: 32px; }
.contact-list li { display: flex; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(91, 26, 114, 0.1); }
.contact-list li:last-child { border-bottom: 0; }
.ci { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--purple-700), var(--purple-900)); color: var(--gold-400); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; }
.contact-list strong { display: block; font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 4px; font-weight: 700; }
.contact-list a, .contact-list span { color: var(--ink-900); font-weight: 500; font-size: 1.05rem; }
.contact-list a:hover { color: var(--purple-700); }

.contact-form { background: var(--white); padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border-top: 4px solid var(--gold-500); }
.contact-form h3 { color: var(--purple-700); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid rgba(91, 26, 114, 0.15);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink-900);
  background: var(--ivory);
  margin-bottom: 14px;
  transition: var(--transition);
  outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--purple-700); background: var(--white); box-shadow: 0 0 0 4px rgba(91, 26, 114, 0.1); }
.contact-form textarea { resize: vertical; font-family: inherit; }

/* ------------ Footer ------------ */
.footer { background: var(--ink-900); color: rgba(255, 255, 255, 0.75); padding: 80px 0 0; position: relative; }
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--purple-700), var(--gold-500), var(--purple-700));
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; }
.brand-footer .brand-name { color: var(--white); }
.brand-footer .brand-logo { background: var(--white); }
.footer-about { margin-top: 20px; font-size: 0.93rem; line-height: 1.7; }
.footer h4 { color: var(--gold-400); font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 24px; font-weight: 700; }
.footer-links, .footer-contact { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; transition: var(--transition); }
.footer-links a:hover { color: var(--gold-400); padding-left: 6px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; }
.footer-contact i { color: var(--gold-500); margin-top: 4px; width: 16px; flex-shrink: 0; }
.footer .btn { margin-top: 20px; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 24px 0; font-size: 0.85rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; color: rgba(255, 255, 255, 0.5); }

/* ------------ Floating WhatsApp ------------ */
.float-wa {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  z-index: 90;
  transition: var(--transition);
}
.float-wa:hover { background: var(--wa-dark); transform: scale(1.1); }
.float-wa .pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--wa);
  opacity: 0.5;
  animation: pulse 2s ease-out infinite;
  z-index: -1;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.6); opacity: 0; } }

/* ------------ Reveal Animation ------------ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ------------ Responsive ------------ */
@media (max-width: 1024px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-media img { aspect-ratio: 16/10; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
    gap: 4px;
  }
  .nav.open .nav-link { padding: 14px 20px; text-align: left; }
  .menu-toggle { display: flex; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .hide-sm { display: none; }
  .topbar { font-size: 0.78rem; }
  .topbar-left { gap: 14px; }
  .brand-text { display: none; }
  .brand-logo { width: 48px; height: 48px; }
  .hero { min-height: 560px; height: 90vh; }
  .slide-content p { font-size: 1rem; }
  .slider-btn { width: 44px; height: 44px; }
  .slider-btn.prev { left: 14px; }
  .slider-btn.next { right: 14px; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .header-actions .btn-whatsapp span { display: none; }
  .header-actions .btn-whatsapp { width: 44px; height: 44px; padding: 0; }
  .about-badge { bottom: -16px; right: 16px; padding: 16px 20px; }
  .about-badge-num { font-size: 2.2rem; }
  .cta-inner { flex-direction: column; text-align: center; align-items: center; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
  .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
  .float-wa { width: 54px; height: 54px; font-size: 1.6rem; bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .btn { padding: 12px 22px; font-size: 0.9rem; }
  .btn-lg { padding: 15px 26px; font-size: 0.95rem; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
}
