/* =====================================================
   XPERTANS TOOLS HUB — SHARED STYLESHEET
   Brand: Black + Gold | Dark Premium Theme
   ===================================================== */

/* ─────────────────────────────────────────────────────
   1. CSS RESET & ROOT VARIABLES
   ───────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,700;0,800;1,700&display=swap');

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

:root {
  --bg-primary:      #0a0a0a;
  --bg-secondary:    #111111;
  --bg-card:         #161616;
  --bg-card-hover:   #1e1e1e;
  --gold:            #d4a017;
  --gold-light:      #f0c040;
  --gold-dim:        rgba(212, 160, 23, 0.15);
  --text-primary:    #f0f0f0;
  --text-secondary:  #aaaaaa;
  --text-muted:      #666666;
  --border:          #2a2a2a;
  --border-gold:     rgba(212, 160, 23, 0.3);
  --success:         #22c55e;
  --danger:          #ef4444;
  --warning:         #f59e0b;
  --radius-sm:       6px;
  --radius:          12px;
  --radius-lg:       20px;
  --shadow:          0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-gold:     0 4px 24px rgba(212, 160, 23, 0.15);
  --transition:      all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

input, select, textarea, button {
  font-family: inherit;
}

/* ─────────────────────────────────────────────────────
   2. TYPOGRAPHY
   ───────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 4vw, 3rem);     font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem);font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 600; }
h5 { font-size: 1rem;     font-weight: 600; }
h6 { font-size: 0.875rem; font-weight: 600; }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─────────────────────────────────────────────────────
   3. NAVBAR
   ───────────────────────────────────────────────────── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-text {
  font-size: 1.6rem;
  letter-spacing: 1.5px;
  color: var(--gold);
  font-weight: 800;
}

.nav-logo-sub {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: -4px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Offcanvas Menu */
.mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: calc(100vh - 70px);
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  transform: translateX(-100%);
  transition: var(--transition);
  z-index: 999;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-menu a.active {
  color: var(--gold);
}

/* ─────────────────────────────────────────────────────
   4. HERO SECTION
   ───────────────────────────────────────────────────── */

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top right, rgba(212, 160, 23, 0.07), transparent 60%);
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

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

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), #b8860b);
  color: #000;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  border: none;
  transition: var(--transition);
}

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

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-gold);
  color: var(--gold);
  background: transparent;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero-stat .number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold-light);
}

.hero-stat .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ─────────────────────────────────────────────────────
   5. GENERAL SECTION STYLES
   ───────────────────────────────────────────────────── */

.section {
  padding: 80px 0;
}

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

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

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}

.section-desc {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
}

/* ─────────────────────────────────────────────────────
   6. TOOL CARDS GRID
   ───────────────────────────────────────────────────── */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.tool-icon {
  font-size: 2.25rem;
  margin-bottom: 20px;
}

.tool-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.tool-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.tool-arrow {
  margin-top: auto;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.2rem;
}

/* ─────────────────────────────────────────────────────
   7. CALCULATOR LAYOUT & STYLING
   ───────────────────────────────────────────────────── */

.calc-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.calc-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  position: sticky;
  top: 90px;
}

.calc-category {
  margin-bottom: 16px;
}

.calc-cat-header {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  padding-left: 12px;
}

.calc-nav-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.calc-nav-item:hover, .calc-nav-item.active {
  background: var(--gold-dim);
  color: var(--gold-light);
}

.calc-panel {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.calc-panel.active {
  display: block;
}

.calc-panel-header {
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.08), transparent);
  border-bottom: 1px solid var(--border);
  padding: 24px 32px;
}

.calc-panel-title {
  font-size: 1.3rem;
  color: var(--gold-light);
}

.calc-panel-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.calc-body {
  padding: 32px;
}

.input-group {
  margin-bottom: 20px;
}

.input-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.input-field {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
}

.input-field:focus {
  outline: none;
  border-color: var(--gold);
}

.btn-calculate {
  background: linear-gradient(135deg, var(--gold), #b8860b);
  color: #000;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-calculate:hover {
  transform: translateY(-1px);
}

.result-box {
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.06), transparent);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 30px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.result-item {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  border: 1px solid var(--border);
}

.result-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-light);
}

.result-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-top: 4px;
}

.suggestion-box {
  background: rgba(34, 197, 94, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 20px;
}

.warning-box {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 20px;
}

.pro-note {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--text-muted);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ─────────────────────────────────────────────────────
   8. PRICING CARDS
   ───────────────────────────────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: var(--transition);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
}

.pricing-card.featured {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.08), var(--bg-card));
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  margin: 16px 0 8px;
}

.pricing-period {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pricing-features li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
}

.btn-pay {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-pay-primary {
  background: linear-gradient(135deg, var(--gold), #b8860b);
  color: #000;
}

.btn-pay-outline {
  border: 2px solid var(--border-gold);
  color: var(--gold);
}

.btn-pay:hover {
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────
   9. FOOTER
   ───────────────────────────────────────────────────── */

.footer {
  background: #050505;
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

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

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 280px;
}

.footer-links h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

/* ─────────────────────────────────────────────────────
   10. TABLES (General)
   ───────────────────────────────────────────────────── */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

th, td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: center;
  font-size: 0.85rem;
}

th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

/* ─────────────────────────────────────────────────────
   11. RESPONSIVE BREAKPOINTS
   ───────────────────────────────────────────────────── */

@media (max-width: 992px) {
  .calc-layout {
    grid-template-columns: 1fr;
  }
  .calc-sidebar {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 12px;
  }
  .calc-category {
    display: flex;
    gap: 8px;
    margin-bottom: 0;
  }
  .calc-cat-header {
    display: none;
  }
  .calc-nav-item {
    white-space: nowrap;
    width: auto;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* =====================================================
   FLOATING ACTION BUTTONS (WhatsApp + Call)
   ===================================================== */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s ease;
  animation: floatPulse 2.5s ease-in-out infinite;
}
.wa-float:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 10px 35px rgba(37, 211, 102, 0.55);
}
.call-float {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold), #b8860b);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(212, 160, 23, 0.4);
  z-index: 9998;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s ease;
}
.call-float:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 10px 30px rgba(212, 160, 23, 0.5);
}
@keyframes floatPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 4px 30px rgba(37,211,102,0.7), 0 0 0 8px rgba(37,211,102,0.08); }
}

/* =====================================================
   PRINT: hide floating buttons
   ===================================================== */
@media print {
  .wa-float, .call-float { display: none !important; }
}
