/* ============================================
   PREMIUM FINANCIAL — Custom Styles
   Tailwind CSS Supplement
   ============================================ */

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

:root {
  --primary-dark: #0B0F19;
  --accent-gold: #C5A880;
  --accent-gold-light: #D4AF37;
  --slate-gray: #1E293B;
  --platinum: #E2E8F0;
  --pure-white: #FFFFFF;
  --muted-text: #94A3B8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--primary-dark);
  color: var(--platinum);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

.font-serif {
  font-family: 'Playfair Display', serif !important;
}

.font-sans {
  font-family: 'Inter', sans-serif !important;
}

/* --- GOLD TEXT --- */
.text-gold {
  color: var(--accent-gold);
}

.text-gold-light {
  color: var(--accent-gold-light);
}

/* --- BORDERS --- */
.border-gold {
  border-color: var(--accent-gold);
}

/* --- BUTTONS --- */
.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #B8962E 100%);
  color: var(--primary-dark);
  font-weight: 600;
  transition: all 0.4s ease;
  border: none;
  cursor: pointer;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #D4AF37 0%, var(--accent-gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(197, 168, 128, 0.3);
}

.btn-outline-gold {
  background: transparent;
  border: 1.5px solid var(--accent-gold);
  color: var(--accent-gold);
  font-weight: 500;
  transition: all 0.4s ease;
  cursor: pointer;
}

.btn-outline-gold:hover {
  background: var(--accent-gold);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* --- HERO IMAGE CAROUSEL --- */
.hero-images {
  position: absolute;
  inset: 0;
}

.hero-images .hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 18s ease-in-out infinite;
}

.hero-images .hero-slide:nth-child(1) {
  animation-delay: 0s;
}

.hero-images .hero-slide:nth-child(2) {
  animation-delay: 6s;
}

.hero-images .hero-slide:nth-child(3) {
  animation-delay: 12s;
}

@keyframes heroFade {
  0%, 100% { opacity: 0; }
  8% { opacity: 1; }
  25% { opacity: 1; }
  33% { opacity: 0; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 15, 25, 0.85) 0%,
    rgba(11, 15, 25, 0.6) 50%,
    rgba(11, 15, 25, 0.85) 100%
  );
  z-index: 1;
}

/* --- NAVIGATION --- */
.nav-link {
  position: relative;
  color: var(--platinum);
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-gold);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent-gold);
}

.nav-link.active::after {
  width: 100%;
}

/* --- GLASS CARD --- */
.glass-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(197, 168, 128, 0.15);
  transition: all 0.4s ease;
}

.glass-card:hover {
  border-color: rgba(197, 168, 128, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* --- SECTION DIVIDER --- */
.section-divider {
  width: 60px;
  height: 2px;
  background: var(--accent-gold);
  margin: 1rem 0 1.5rem 0;
}

.section-divider-center {
  width: 60px;
  height: 2px;
  background: var(--accent-gold);
  margin: 1rem auto 1.5rem auto;
}

/* --- FORM STYLES --- */
.form-input {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(197, 168, 128, 0.2);
  color: var(--pure-white);
  padding: 0.875rem 1.25rem;
  border-radius: 0.5rem;
  width: 100%;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
  background: rgba(30, 41, 59, 0.95);
}

.form-input::placeholder {
  color: var(--muted-text);
}

.form-input.error {
  border-color: #EF4444;
}

.form-input.success {
  border-color: #10B981;
}

/* --- STAT COUNTER --- */
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-gold);
}

/* --- SERVICE CARD --- */
.service-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(197, 168, 128, 0.1);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--accent-gold);
  transition: height 0.4s ease;
}

.service-card:hover::before {
  height: 100%;
}

.service-card:hover {
  border-color: rgba(197, 168, 128, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* --- INSIGHT CARD --- */
.insight-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(197, 168, 128, 0.1);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.4s ease;
}

.insight-card:hover {
  border-color: rgba(197, 168, 128, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* --- TIMELINE --- */
.timeline-dot {
  width: 16px;
  height: 16px;
  background: var(--accent-gold);
  border-radius: 50%;
  position: absolute;
  left: -8px;
  top: 4px;
  border: 3px solid var(--primary-dark);
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--slate-gray);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

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

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(197, 168, 128, 0.1);
  }
  50% {
    box-shadow: 0 0 40px rgba(197, 168, 128, 0.3);
  }
}

.pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* --- MOBILE MENU --- */
.mobile-menu-open {
  max-height: 500px !important;
  opacity: 1 !important;
  padding: 1rem 0 !important;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .stat-number {
    font-size: 2rem;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
  }
}

/* --- LOADING SHIMMER --- */
.shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(197, 168, 128, 0.05) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* --- TOAST NOTIFICATION --- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(197, 168, 128, 0.3);
  color: var(--platinum);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.5s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  border-color: #10B981;
}

.toast.error {
  border-color: #EF4444;
}

/* --- GOOGLE MAPS --- */
.map-container {
  width: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(197, 168, 128, 0.15);
  transition: border-color 0.4s ease;
}

.map-container:hover {
  border-color: rgba(197, 168, 128, 0.4);
}

.map-container iframe,
.map-container .map-inner {
  width: 100%;
  height: 100%;
  display: block;
}

/* Custom Google Maps info window overrides */
.gm-style .gm-style-iw-c {
  padding: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

.gm-style .gm-style-iw-d {
  overflow: hidden !important;
  padding: 0 !important;
  border-radius: 12px !important;
}

.gm-style .gm-style-iw-t::after {
  background: #0B0F19 !important;
  box-shadow: none !important;
}

.gm-ui-hover-effect {
  display: none !important;
}

/* FOOTER LINK */
.footer-link {
  color: var(--muted-text);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--accent-gold);
}