@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  /* Brand Colors */
  --primary-color: #0A192F; /* Deep Navy */
  --secondary-color: #00B4D8; /* Teal */
  --secondary-dark: #0090ad;
  --accent-color: #F4A261; /* Warm Accent */
  --accent-dark: #e08b47;

  /* Neutrals */
  --off-white: #F8F9FA;
  --white: #FFFFFF;
  --charcoal: #2B2D42;
  --text-body: #4A4E69;
  --soft-gray: #E9ECEF;
  --border-color: #DDE2E5;

  /* Semantic */
  --success: #2A9D8F;
  --warning: #E9C46A;
  --danger: #E76F51;

  /* Typography */
  --font-heading: "Outfit", sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-number: 'Space Grotesk', sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(10, 25, 47, 0.05);
  --shadow-md: 0 4px 12px rgba(10, 25, 47, 0.08);
  --shadow-lg: 0 12px 24px rgba(10, 25, 47, 0.12);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* Base Styles */
body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--off-white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--charcoal);
  font-weight: 700;
  margin-bottom: 1rem;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--secondary-dark);
}

/* Consistent, visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.text-primary-navy { color: var(--primary-color) !important; }
.text-teal { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.bg-primary-navy { background-color: var(--primary-color) !important; color: var(--white); }
.bg-off-white { background-color: var(--off-white) !important; }

/* Navigation */
.navbar {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--primary-color);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand i {
  color: var(--secondary-color);
}

.nav-link {
  font-weight: 600;
  color: var(--charcoal);
  padding: 0.5rem 1rem !important;
}

.nav-link:hover, .nav-link.active {
  color: var(--secondary-color);
}

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: 0.75rem;
}

.dropdown-item {
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.dropdown-item:hover {
  background-color: var(--off-white);
  color: var(--secondary-color);
}

/* Buttons */
.btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--white);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  transition: all 0.2s;
}

.btn-primary:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-accent {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--white);
  font-weight: 600;
}

.btn-accent:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
}

/* Cards */
.card {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero-section {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.5;
}

.hero-eyebrow {
  color: var(--secondary-color);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: block;
}

.hero-section h1 {
  color: var(--white);
  /* Scales smoothly instead of overflowing on smaller screens */
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  padding: 60px 0 30px;
  margin-top: 5rem;
  border-top: 5px solid var(--secondary-color);
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-brand i { color: var(--secondary-color); }

.footer p { color: rgba(255,255,255,0.7); }
.footer h5 { color: var(--white); margin-bottom: 1.5rem; }
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 0.75rem; }
.footer ul li a { color: rgba(255,255,255,0.7); }
.footer ul li a:hover { color: var(--secondary-color); }
.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-link:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: all 0.3s ease;
  text-decoration: none;
}
.social-icon:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  color: var(--white);
}

/* Content Pages */
.page-header {
  background-color: var(--off-white);
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 3rem;
}

.content-section {
  padding: 2rem 0;
}

.content-section h2 { margin-top: 2rem; margin-bottom: 1rem; }
.content-section h3 { margin-top: 1.5rem; margin-bottom: 1rem; }
.content-section ul { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.content-section li { margin-bottom: 0.5rem; }

/* Custom Financial Dashboard Card (Hero Visual) */
.hero-visual-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 24px 48px rgba(0,0,0,0.2);
  color: var(--charcoal);
  position: relative;
  z-index: 2;
}

.visual-label {
  font-size: 0.875rem;
  color: var(--text-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.visual-amount {
  font-family: var(--font-number);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin: 0.5rem 0 1.5rem;
}

.visual-stats {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.visual-stat-item p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-body);
}

.visual-stat-item strong {
  font-family: var(--font-number);
  font-size: 1.125rem;
  color: var(--charcoal);
}

/* Utilities */
.number-font { font-family: var(--font-number); }


/* ==========================================================================
   Modern Animations & Google Translate Overrides
   ========================================================================== */

/* Google Translate Style overrides */
.goog-te-gadget {
    font-family: var(--font-body) !important;
    color: var(--white) !important;
}
.goog-te-gadget-simple {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    cursor: pointer;
}
.goog-te-gadget-simple .goog-te-menu-value {
    color: var(--white) !important;
}
.goog-te-gadget-simple .goog-te-menu-value span {
    color: var(--white) !important;
}
.goog-te-banner-frame {
    display: none !important;
}
body {
    top: 0 !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.slide-up {
    animation: fadeInUp 1s ease-out forwards;
}

.slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

/* Respect users who've asked for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fade-in, .slide-up, .slide-left {
        animation: none;
    }
    .card, .btn-primary, .footer-link, .social-icon, .nav-link {
        transition: none;
    }
}


/* ==========================================================================
   Premium Header & Translation Widget
   ========================================================================== */
.navbar.premium-header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.premium-header .navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar.premium-header .nav-link {
    color: var(--charcoal) !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar.premium-header .nav-link:hover,
.navbar.premium-header .nav-link.active {
    color: var(--secondary-color) !important;
    background: rgba(0, 180, 216, 0.1);
}

.navbar.premium-header .nav-link::after {
    display: none; /* Remove old underline */
}

/* Custom Lang & Currency Buttons */
.utility-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(10, 25, 47, 0.05);
    border: 1px solid rgba(10, 25, 47, 0.1);
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.utility-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

/* Fix Google Translate styling to integrate seamlessly */
.translate-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}
.translate-wrapper select {
    background: rgba(10, 25, 47, 0.05);
    border: 1px solid rgba(10, 25, 47, 0.1);
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
}
#google_translate_element .goog-te-gadget-simple {
    background-color: rgba(10, 25, 47, 0.05) !important;
    border: 1px solid rgba(10, 25, 47, 0.1) !important;
    padding: 8px 12px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-family: var(--font-body) !important;
    font-weight: 600;
}
#google_translate_element .goog-te-gadget-simple .goog-te-menu-value span {
    color: var(--primary-color) !important;
}