/* ==========================================================
   RK TECH TRADING — SHARED DESIGN SYSTEM
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;600;700;800&display=swap');

/* ── CSS Custom Properties ─────────────────────────────── */
:root {
  --bg-primary:    #ffffff;
  --bg-secondary:  #f8fafc;
  --bg-card:       #ffffff;
  --bg-glass:      rgba(255, 255, 255, 0.95);

  --accent-blue:   #d97706;
  --accent-teal:   #1e293b;
  --accent-green:  #b45309;

  --text-primary:  #0f172a;
  --text-secondary:#334155;
  --text-muted:    #64748b;

  --border:        rgba(30, 41, 59, 0.08);
  --border-hover:  rgba(217, 119, 6, 0.25);

  --gradient-hero: linear-gradient(135deg, #ffffff 0%, #f1f5f9 50%, #ffffff 100%);
  --gradient-blue: linear-gradient(135deg, #d97706, #b45309);
  --gradient-card: linear-gradient(135deg, rgba(217, 119, 6, 0.03), rgba(30, 41, 59, 0.01));

  --shadow-sm:     0 2px 10px rgba(30, 41, 59, 0.03);
  --shadow-md:     0 10px 30px rgba(30, 41, 59, 0.05);
  --shadow-glow:   0 0 30px rgba(217, 119, 6, 0.08);

  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-pill:   999px;

  --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height:    72px;
}

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* ── Utility Classes ───────────────────────────────────── */
.text-gradient {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--gradient-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217,119,6,0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
}
.btn-outline:hover {
  background: rgba(217,119,6,0.06);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(217,119,6,0.08);
  border: 1px solid rgba(217,119,6,0.2);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-blue);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── Reveal Animation ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ═══════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  z-index: 1000;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-md);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img {
  height: 40px;
  width: 40px;
  object-fit: cover;
  border-radius: 8px;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-logo-text .brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}
.nav-logo-text .sub {
  font-size: 0.65rem;
  color: var(--accent-teal);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-glass);
}

/* Quote Button */
.nav-quote {
  padding: 9px 22px;
  background: var(--gradient-blue);
  color: #fff !important;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
  border: none;
  display: inline-block;
  text-decoration: none;
}
.nav-quote:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(217,119,6,0.4);
  background: var(--gradient-blue) !important;
  color: #fff !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 20px 5%;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
  animation: slideDown 0.3s ease;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  border: 1px solid transparent;
}
.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--text-primary);
  background: var(--bg-glass);
  border-color: var(--border);
}
.mobile-nav .nav-quote {
  text-align: center;
  margin-top: 8px;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  background: #0f172a;
  border-top: 1px solid var(--border);
  padding: 64px 5% 0;
  /* Local overrides for high readability in dark footer */
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(217, 119, 6, 0.4);
  --accent-teal: #f59e0b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .nav-logo { margin-bottom: 16px; }

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.footer-social a svg {
  width: 18px;
  height: 18px;
  display: block;
}
.footer-social a:hover {
  background: rgba(217,119,6,0.15);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: var(--transition);
}
.footer-col ul li a:hover {
  color: var(--accent-teal);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-contact-item .icon {
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.footer-contact-item p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}
.footer-contact-item a {
  color: var(--accent-teal);
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-contact-item a:hover { color: var(--accent-blue); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.82rem;
}
.footer-bottom span {
  color: var(--accent-teal);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-quote.desktop { display: none; }
  .hamburger { display: flex; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand p { max-width: 100%; }
}

@media (max-width: 480px) {
  .footer { padding: 48px 5% 0; }
}

/* ── FLOATING WHATSAPP BUTTON ──────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5), 0 0 20px rgba(37, 211, 102, 0.3);
  background-color: #20ba5a;
  color: #fff;
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}
