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

:root {
  /* Colors */
  --bg-base: #FFFFFF;
  --bg-surface: #F8F8F8;
  --bg-hover: #F0F0F0;
  --border-default: rgba(0, 0, 0, 0.1);
  --border-featured: #D4A017;
  
  --accent-primary: #D4A017;
  --accent-primary-hover: #A07810;
  --accent-secondary: #2ECC71;
  --bg-emerald: #E8F5E9;
  --color-danger: #FF6B6B;
  
  --text-primary: #000000;
  --text-subheading: #333333;
  --text-body: #555555;
  --text-eyebrow: #D4A017;
  --text-placeholder: #999999;
  
  --gradient-gold: linear-gradient(135deg, #F5D060, #D4A017);
  --gradient-btn: linear-gradient(135deg, #F5D060 0%, #D4A017 60%, #A07810 100%);
  
  --shadow-featured: 0 0 24px rgba(212, 160, 23, 0.18);
  --shadow-form-focus: 0 0 0 2px rgba(212, 160, 23, 0.3);
  --shadow-whatsapp: 0 4px 16px rgba(37, 211, 102, 0.4);
  --shadow-whatsapp-hover: 0 6px 24px rgba(37, 211, 102, 0.6);
  
  --nav-scrolled-bg: rgba(255, 255, 255, 0.95);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-base);
  color: var(--text-body);
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
}

body {
  font-size: 17px;
  font-weight: 400;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 150ms ease;
}

ul {
  list-style: none;
}

/* Typography */
h1 {
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-subheading);
  line-height: 1.3;
  margin-bottom: 24px;
}

.text-gold-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-eyebrow);
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 90px 0;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  transition: all 150ms ease;
  text-align: center;
}

.btn-primary {
  background: var(--gradient-btn);
  color: var(--bg-base);
}
.btn-primary:hover {
  filter: brightness(1.12);
  transform: scale(1.02);
}
.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  border-radius: 8px;
}
.btn-secondary:hover {
  background: rgba(212, 160, 23, 0.1);
  transform: scale(1.02);
}
.btn-secondary:active {
  transform: scale(0.97);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: 8px;
}
.btn-ghost:hover {
  color: var(--accent-primary);
}

.btn-outline-dark {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: 50px;
}
.btn-outline-dark:hover {
  border-color: var(--accent-primary);
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 300ms ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(12px);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-default);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img {
  height: 40px;
  width: auto;
  border-radius: 50%;
}
.nav-brand {
  display: flex;
  flex-direction: column;
}
.nav-brand-title {
  font-weight: 700;
  font-size: 18px;
}
.nav-brand-subtitle {
  font-size: 9px;
  color: var(--text-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav-links {
  display: none;
}
.nav-links.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-surface);
  padding: 24px;
  border-bottom: 1px solid var(--border-default);
  align-items: center;
  gap: 16px;
}
.nav-links a {
  font-size: 16px;
  font-weight: 600;
}
.nav-links a:hover, .nav-links a.active {
  color: #F5D060;
}
.nav-actions {
  display: none;
}
.hamburger {
  display: block;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

/* Cards */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 28px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.card.featured {
  border: 1.5px solid var(--border-featured);
  box-shadow: var(--shadow-featured);
}
.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

/* Footer */
.footer {
  background: var(--bg-base);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-default);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-col h4 {
  color: var(--text-primary);
  font-size: 14px;
  margin-bottom: 24px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 15px;
}
.footer-links a:hover {
  color: var(--accent-primary);
}
.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--text-body);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 180ms ease;
  color: var(--text-body);
}
.social-icon:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--bg-base);
}
.footer-contact-bar {
  display: flex;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid var(--border-default);
  font-size: 14px;
}
.legal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-body);
}
.legal-box strong {
  color: var(--accent-primary);
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}
.copyright-bar {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-placeholder);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
}
.whatsapp-tooltip {
  background: var(--bg-surface);
  color: var(--text-subheading);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-default);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
}
.whatsapp-btn {
  width: 58px;
  height: 58px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-whatsapp);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.whatsapp-btn svg {
  width: 30px;
  height: 30px;
  fill: #FFF;
}
.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}
.whatsapp-float:hover .whatsapp-btn {
  transform: scale(1.1);
  box-shadow: var(--shadow-whatsapp-hover);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links, .nav-actions { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    padding: 24px;
    border-bottom: 1px solid var(--border-default);
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-section { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-contact-bar { flex-direction: column; gap: 16px; text-align: center; }
  .copyright-bar { flex-direction: column; gap: 16px; text-align: center; }
  
  .whatsapp-float {
    bottom: 20px;
    right: 16px;
  }
  .whatsapp-btn {
    width: 50px;
    height: 50px;
  }
  .whatsapp-btn svg {
    width: 26px;
    height: 26px;
  }
  .whatsapp-tooltip {
    display: none;
  }
  
  /* Center align cards in mobile view */
  .card {
    text-align: center;
  }
  .card[style*="display: flex"] {
    align-items: center;
  }
  .card ul {
    align-items: center;
  }
  .card li[style*="display: flex"] {
    justify-content: center;
  }
  .card .icon-box-gold {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  /* Fix headers in cards with space-between */
  .card > div[style*="justify-content: space-between"] {
    justify-content: center !important;
    flex-direction: column;
    align-items: center !important;
    gap: 12px;
  }
  
  /* Disable fade animations on mobile to prevent blank pages */
  .fade-in-up {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Specific Component Styles Added Below Based on Pages */

/* Hero Section */
.hero-stats {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat-number {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}
.stat-label {
  font-size: 13px;
  color: var(--text-body);
}

/* Dashboard Widget (Home) */
.dashboard-widget {
  background: var(--bg-surface);
  border-radius: 12px;
  border: 1px solid var(--border-default);
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-featured);
}
.live-badge {
  background: rgba(46, 204, 113, 0.1);
  color: var(--accent-secondary);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-secondary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46,204,113, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(46,204,113, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46,204,113, 0); }
}

/* Ticker Bar */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background-color: #060402;
  height: 32px;
  display: flex;
  align-items: center;
}
.ticker {
  display: flex;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}
.ticker-item {
  display: inline-flex;
  padding: 0 24px;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
}
.t-sym { color: var(--text-placeholder); }
.t-price { color: var(--text-subheading); }
.t-pos { color: var(--accent-secondary); }
.t-neg { color: var(--color-danger); }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Trust Section */
.icon-box-gold {
  width: 40px;
  height: 40px;
  background: rgba(212, 160, 23, 0.1);
  border: 1px solid var(--accent-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 16px;
}

/* FAQ Accordion */
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}
.faq-question {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
}
.faq-answer {
  max-height: 0;
  padding: 0 24px;
  opacity: 0;
  transition: all 250ms ease-in-out;
}
.faq-item.active {
  background: rgba(212, 160, 23, 0.03);
}
.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 24px;
  opacity: 1;
}
.faq-icon {
  color: var(--accent-primary);
  font-size: 20px;
  transition: transform 250ms;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}
.form-control {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text-subheading);
  font-family: inherit;
  font-size: 15px;
  transition: box-shadow 150ms ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-form-focus);
}
.pill-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pill-option {
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--border-default);
  cursor: pointer;
  font-size: 13px;
  transition: all 150ms ease;
}
.pill-option.active, .pill-option:hover {
  background: var(--accent-primary);
  color: var(--bg-base);
  border-color: var(--accent-primary);
}

/* Testimonial Carousel */
.testimonial-carousel {
  position: relative;
  margin-top: 40px;
}
.testimonial-slide {
  display: none;
  animation: fade 0.5s ease;
}
.testimonial-slide.active {
  display: block;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-placeholder);
  cursor: pointer;
  transition: all 200ms;
}
.carousel-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--accent-primary);
}
.carousel-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.carousel-arrow:hover {
  border-color: var(--accent-primary);
}

/* Header Spacer for sub-pages */
.header-spacer {
  height: 100px;
}

/* User Consent Form Alignment */
.wpcf7-form {
  max-width: 800px;
  margin: 0 auto;
}

.user-contact-row1, .user-contact-row2 {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.cont-row-1, .cont-row-2, .cont-row--1, .cont-row--2 {
  flex: 1;
}

.wpcf7-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 16px;
  color: var(--text-primary);
}

.wpcf7-form-control-wrap {
  display: block;
  margin-top: 5px;
}

.wpcf7-form-control:not(.wpcf7-submit) {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--text-placeholder);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  box-sizing: border-box;
}

.wpcf7-form-control:not(.wpcf7-submit):focus {
  outline: none;
  border-color: var(--accent-primary);
}

.wpcf7-form > label {
  margin-bottom: 20px;
}

.wpcf7-list-item {
  display: inline-block;
  margin-right: 8px;
}

.wpcf7-submit {
  width: 100%;
  background-color: #1A56A6;
  color: white;
  border: none;
  padding: 15px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.2s;
}

.wpcf7-submit:hover {
  background-color: #144383;
}

.wpcf7-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.dscf7_signature {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 400px;
  margin-top: 8px;
}

.digital_signature-pad {
  width: 100%;
  background-color: #dddddd;
  border-radius: 4px;
}

.clearButton {
  position: absolute;
  top: 10px;
  right: 10px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
  color: #333;
}

@media (max-width: 768px) {
  .user-contact-row1, .user-contact-row2 {
    flex-direction: column;
    gap: 0;
  }
}
