/* ============================================
   EXPATS SINGAPORE - Custom Styles
   Luxury Private Banking Inspired Theme
   ============================================ */

/* Google Fonts Import - Modern Luxury Typography */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Libre+Franklin:wght@300;400;500;600;700&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
  /* Primary Colours - OCBC Premier Inspired Theme */
  --color-white: #FFFFFF;
  --color-off-white: #FAFAFA;
  --color-light-gray: #F5F5F5;
  
  /* Burgundy/Ruby - Deep Wine Tones (OCBC Premier Style) */
  --color-ruby: #8B2942;
  --color-ruby-dark: #6B1D32;
  --color-ruby-muted: #7A2439;
  --color-ruby-light: #A33D56;
  
  /* Gold - Warm Brass Tones */
  --color-gold: #B8986A;
  --color-gold-dark: #9A7B4F;
  --color-gold-matte: #A68B5B;
  --color-gold-light: #D4B896;
  
  /* Charcoal - Deep Neutrals */
  --color-charcoal: #1a1a1a;
  --color-charcoal-deep: #0d0d0d;
  --color-charcoal-light: #2d2d2d;
  
  /* Graphite - Text Colors */
  --color-graphite: #4A4A4A;
  --color-graphite-light: #6B6B6B;
  --color-graphite-dark: #333333;
  
  /* Premium Warm Colours - Ivory/Cream Backgrounds */
  --color-premium-taupe: #F5F3EF;
  --color-premium-taupe-light: #FAF9F7;
  --color-premium-taupe-dark: #EDE9E3;
  --color-premium-cream: #FAF8F5;
  --color-premium-ivory: #FDFCFB;
  --color-premium-warm: #F8F6F2;
  
  /* Secondary Colours */
  --color-champagne: #E8DCC8;
  --color-fog: #D1CCC4;
  --color-stone: #E8E4DE;
  --color-border: #E5E2DC;
  --color-slate: #64748b;
  
  /* Typography - Modern Luxury Style */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Libre Franklin', system-ui, sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-white);
  color: var(--color-charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY - Standardized System
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--color-charcoal);
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.375rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  color: var(--color-graphite);
}

/* ============================================
   STANDARDIZED CONTENT TYPOGRAPHY
   For consistent text across all pages
   ============================================ */

/* Body Text - Base readable size */
.text-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-graphite);
}

/* Body Text - Large for hero/intro paragraphs */
.text-body-lg {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-graphite);
}

/* Body Text - Small for captions, metadata */
.text-body-sm {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-graphite-light);
}

/* Section Label - Small uppercase */
.section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* Section Title */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  color: var(--color-charcoal);
  margin-bottom: 1rem;
}

/* Page Title */
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  color: var(--color-charcoal);
  line-height: 1.2;
}

/* Card Title */
.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-charcoal);
  margin-bottom: 0.5rem;
}

/* List Item Text */
.list-text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-graphite);
}

/* Table Text */
.table-text {
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Info Box Text */
.info-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-graphite);
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.8125rem;
  color: var(--color-graphite-light);
}

/* Badge/Tag Text */
.badge-text {
  font-size: 0.8125rem;
  font-weight: 600;
}

/* FAQ Answer Text */
.faq-text {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--color-graphite);
}

/* Stat Number */
.stat-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-gold);
}

/* Stat Label */
.stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-balance {
  text-wrap: balance;
}

.gold-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.gold-line-left {
  height: 1px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
}

.gold-border {
  border: 0.5px solid var(--color-gold-matte);
}

.gold-border-top {
  border-top: 0.5px solid var(--color-gold-matte);
}

.gold-border-bottom {
  border-bottom: 0.5px solid var(--color-gold-matte);
}

/* ============================================
   BUTTON STYLES
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-ruby);
  color: var(--color-white);
  border: none;
}

.btn-primary:hover {
  background-color: var(--color-ruby-muted);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-charcoal);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn-gold {
  background-color: transparent;
  color: var(--color-gold-matte);
  border: 1px solid var(--color-gold);
}

.btn-gold:hover {
  background-color: var(--color-gold);
  color: var(--color-white);
}

/* ============================================
   CARD STYLES
   ============================================ */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  padding: var(--space-lg);
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card:hover {
  border-color: var(--color-gold-matte);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-premium {
  background-color: var(--color-white);
  border: 1px solid var(--color-gold-matte);
  padding: var(--space-lg);
  box-shadow: 0 2px 8px rgba(184, 152, 106, 0.1);
}

/* ============================================
   NAVIGATION STYLES
   ============================================ */
.nav-link {
  position: relative;
  color: var(--color-charcoal);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

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

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

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

/* ============================================
   FORM STYLES
   ============================================ */
.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-charcoal);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

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

.form-input::placeholder {
  color: var(--color-graphite-light);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23B8986A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-color: var(--color-white);
  padding-right: 2.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-graphite);
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
  padding: var(--space-3xl) var(--space-lg);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  color: var(--color-graphite);
  font-weight: 300;
  max-width: 600px;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease forwards;
}

.animation-delay-100 { animation-delay: 0.1s; }
.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-300 { animation-delay: 0.3s; }
.animation-delay-400 { animation-delay: 0.4s; }
.animation-delay-500 { animation-delay: 0.5s; }

/* ============================================
   WIZARD/STEPPER STYLES
   ============================================ */
.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

.progress-bar {
  height: 2px;
  background-color: var(--color-border);
  border-radius: 1px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--color-gold);
  transition: width 0.3s ease;
}

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-graphite);
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.step-indicator.active {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.step-indicator.completed {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-white);
}

/* ============================================
   MOBILE MENU STYLES
   ============================================ */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--color-white);
  z-index: 100;
  transition: right 0.3s ease;
  padding: var(--space-2xl);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 768px) {
  .section {
    padding: var(--space-2xl) var(--space-sm);
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
}

/* ============================================
   WHATSAPP FLOATING BUBBLE
   ============================================ */
.whatsapp-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-bubble-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.whatsapp-bubble-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-bubble-btn svg {
  width: 32px;
  height: 32px;
  fill: white;
}

.whatsapp-bubble-tooltip {
  background: var(--color-charcoal);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  position: relative;
}

.whatsapp-bubble-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid var(--color-charcoal);
}

.whatsapp-bubble:hover .whatsapp-bubble-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .whatsapp-bubble {
    bottom: 16px;
    right: 16px;
  }
  
  .whatsapp-bubble-btn {
    width: 56px;
    height: 56px;
  }
  
  .whatsapp-bubble-btn svg {
    width: 28px;
    height: 28px;
  }
  
  .whatsapp-bubble-tooltip {
    display: none;
  }
}

/* ============================================
   PREMIUM HERO SECTIONS
   OCBC Premier Banking Inspired Backgrounds
   ============================================ */

/* Premium Light Backgrounds - Ivory/Cream */
.bg-premium-warm {
  background: linear-gradient(135deg, #FAFAF8 0%, #F5F2ED 50%, #EDE8E0 100%);
}

.bg-premium-taupe {
  background: linear-gradient(145deg, #FAF9F7 0%, #F3F1ED 60%, #EAE6E0 100%);
}

.bg-premium-cream {
  background: linear-gradient(180deg, #FAF8F5 0%, #F5F0E8 100%);
}

.bg-premium-ivory {
  background: linear-gradient(180deg, #FDFCFB 0%, #FAF8F5 100%);
}

/* Premium Dark Backgrounds - Warm Charcoal (NOT pure black) */
.bg-premium-dark {
  background: linear-gradient(135deg, #2A2826 0%, #252525 50%, #1F1F1F 100%);
}

.bg-premium-charcoal {
  background: linear-gradient(145deg, #302E2C 0%, #282624 60%, #1F1D1B 100%);
}

/* CTA Section - Elegant Dark */
.bg-premium-cta {
  background: linear-gradient(135deg, #2A2826 0%, #232220 100%);
}

/* Premium Card Backgrounds */
.bg-premium-card-light {
  background: #FFFFFF;
  border: 1px solid #E5E2DC;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.bg-premium-card-dark {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Premium Text Colors */
.text-premium-light {
  color: rgba(255, 255, 255, 0.95);
}

.text-premium-muted {
  color: rgba(255, 255, 255, 0.75);
}

.text-premium-subtle {
  color: rgba(255, 255, 255, 0.55);
}

/* Premium Border */
.border-premium {
  border-color: rgba(255, 255, 255, 0.15);
}

.border-premium-gold {
  border-color: rgba(184, 152, 106, 0.4);
}

/* Premium Divider */
.divider-premium {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

/* Premium Button Styles for Warm Backgrounds */
.btn-premium-primary {
  background-color: var(--color-ruby);
  color: white;
  border: none;
}

.btn-premium-primary:hover {
  background-color: var(--color-ruby-muted);
}

.btn-premium-secondary {
  background-color: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-premium-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-premium-gold {
  background-color: var(--color-gold);
  color: var(--color-charcoal);
  border: none;
}

.btn-premium-gold:hover {
  background-color: var(--color-gold-light);
}

/* ============================================
   CONSISTENT CARD STYLES
   Clean, Premium Card Design System
   ============================================ */

/* Standard Info Card - Light Background */
.card-info {
  background: linear-gradient(135deg, #FAF8F5 0%, #F5F0E8 100%);
  border: 1px solid rgba(201, 169, 98, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Pro Tip Card */
.card-tip {
  background: linear-gradient(135deg, #FEF9E7 0%, #FDF6E3 100%);
  border: 1px solid rgba(201, 169, 98, 0.3);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

/* Warning/Important Card */
.card-warning {
  background: linear-gradient(135deg, #FFF5F5 0%, #FEF2F2 100%);
  border: 1px solid rgba(139, 41, 66, 0.2);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

/* Success/Positive Card */
.card-success {
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

/* Premium Info Box - Warm Gradient */
.box-premium {
  background: linear-gradient(135deg, #FAF8F5 0%, #F5F0E8 100%);
  border: 2px solid rgba(201, 169, 98, 0.25);
  border-radius: 16px;
  padding: 2rem;
}

/* Clean White Card */
.card-clean {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.card-clean:hover {
  border-color: rgba(201, 169, 98, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Stat Card */
.card-stat {
  background: white;
  border: 1px solid rgba(201, 169, 98, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.card-stat .stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-gold-dark);
  line-height: 1.2;
}

.card-stat .stat-label {
  font-size: 0.875rem;
  color: var(--color-graphite);
  margin-top: 0.25rem;
}

/* Feature Card with Icon */
.card-feature {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.card-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(201, 169, 98, 0.3);
}

.card-feature .icon-wrapper {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #FAF8F5 0%, #F5F0E8 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* CTA Box - Premium Style */
.box-cta {
  background: linear-gradient(135deg, #FAF8F5 0%, #F5F0E8 100%);
  border: 2px solid rgba(201, 169, 98, 0.3);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}

/* ============================================
   CONSISTENT SECTION BACKGROUNDS
   ============================================ */

/* Light Cream Section */
.section-cream {
  background: linear-gradient(180deg, #FAF8F5 0%, #F5F0E8 100%);
}

/* Warm Gray Section */
.section-warm-gray {
  background: #F8F6F3;
}

/* Pure White Section */
.section-white {
  background: #FFFFFF;
}

/* Soft Divider Between Sections */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 98, 0.3), transparent);
}

