/*
Theme Name: SF Capital
Theme URI: http://localhost/sf-capital
Author: Swayam
Author URI: http://localhost
Description: Custom theme for SF Capital website
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sf-capital
*/

/* ================= includes TAILWIND EXTENSIONS ================= */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200..800&family=Roboto+Mono:wght@100..700&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");
@import url("https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css");

/* ================= CUSTOM ANIMATIONS ================= */
@keyframes gradient-glow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes float-up-down {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes gentle-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.02);
  }
}

@keyframes gold-pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(224, 187, 127, 0.242);
  }
  50% {
    box-shadow: 0 0 40px rgba(224, 187, 127, 0.31);
  }
}

@keyframes mobile-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= includes UTILITY CLASSES ================= */
.brand-gradient {
  background: linear-gradient(
    135deg,
    #1b385b 0%,
    #2a4d7c 25%,
    #1b385b 50%,
    #0f2540 75%,
    #1b385b 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: gradient-glow 6s ease infinite;
}

.gold-gradient {
  background: linear-gradient(
    135deg,
    #e0bb7f 0%,
    #f0d6aa 25%,
    #c99f5a 50%,
    #e0bb7f 75%,
    #f0d6aa 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: gradient-glow 5s ease infinite;
}

.hero-shape-1 {
  background: radial-gradient(
    circle,
    rgba(27, 56, 91, 0.15) 0%,
    rgba(27, 56, 91, 0) 70%
  );
  animation: float-up-down 8s ease-in-out infinite;
}

.hero-shape-2 {
  background: radial-gradient(
    circle,
    rgba(224, 187, 127, 0.15) 0%,
    rgba(224, 187, 127, 0) 70%
  );
  animation: float-up-down 10s ease-in-out infinite 2s;
}

.hero-grid-bg {
  background-image: linear-gradient(rgba(27, 56, 91, 0) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 187, 127, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 70%);
}

.accounts-bg-pattern {
  background-image: linear-gradient(to right, #e0bb7f0d 1px, transparent 1px),
    linear-gradient(to bottom, #1b385b13 1px, transparent 1px);
  background-size: 14px 24px;
  mask-image: radial-gradient(
    ellipse 60% 50% at 50% 0%,
    #000 70%,
    transparent 100%
  );
}

/* ================= BUTTON STYLES ================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 2px solid transparent;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  text-decoration: none;
  z-index: 1;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.btn:focus {
  outline: 2px solid rgba(27, 56, 91, 0.5);
  outline-offset: 2px;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.btn-md {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  line-height: 1.5rem;
}
.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.btn-xl {
  padding: 1.25rem 3rem;
  font-size: 1.25rem;
  line-height: 1.75rem;
  min-width: 280px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn:not(:disabled):hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.btn:not(:disabled):active {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #0f2540 0%, #1b385b 50%, #2a4d7c 100%);
  color: white;
  border: none;
  position: relative;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: all 0.6s;
  z-index: -1;
}

.btn-primary:hover::before {
  left: 100%;
}
.btn-primary:hover {
  box-shadow: 0 10px 25px rgba(27, 56, 91, 0.4);
}

.btn-gold {
  background: linear-gradient(135deg, #c99f5a 0%, #e0bb7f 50%, #f0d6aa 100%);
  color: #1f2937;
  border: none;
  position: relative;
}

.btn-gold::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: all 0.6s;
  z-index: -1;
}

.btn-gold:hover::before {
  left: 100%;
}
.btn-gold:hover {
  box-shadow: 0 10px 25px rgba(224, 187, 127, 0.4);
}

.btn-outline-blue {
  background: transparent;
  color: #1b385b;
  border: 2px solid #1b385b;
  position: relative;
}

.btn-outline-blue::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(135deg, #0f2540 0%, #1b385b 100%);
  transition: all 0.4s;
  z-index: -1;
}

.btn-outline-blue:hover::before {
  width: 100%;
}
.btn-outline-blue:hover {
  color: white;
  border-color: #1b385b;
}

.btn-outline-gold {
  background: transparent;
  color: #e0bb7f;
  border: 2px solid #e0bb7f;
  position: relative;
}

.btn-outline-gold::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(135deg, #c99f5a 0%, #e0bb7f 100%);
  transition: all 0.4s;
  z-index: -1;
}

.btn-outline-gold:hover::before {
  width: 100%;
}
.btn-outline-gold:hover {
  color: #1f2937;
  border-color: #e0bb7f;
}

/* Ripple Effect */
.ripple {
  position: relative;
  overflow: hidden;
}
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
}

/* Animations */
.pulse-animation {
  animation: gentle-pulse 2s ease-in-out infinite;
}
.gold-pulse {
  animation: gold-pulse 2s infinite;
}
.mobile-pulse {
  animation: mobile-pulse 1s ease-in-out infinite;
}

.btn-full {
  width: 100%;
  display: flex;
}

.btn i {
  transition: transform 0.3s ease;
}
.btn:hover i {
  transform: translateX(3px);
}

/* Responsive */
@media (max-width: 768px) {
  .btn-md {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }
  .btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
  .btn-xl {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    min-width: 250px;
  }
  .btn:not(:disabled):hover {
    transform: translateY(-2px);
  }
}

/* ================= includes UTILITIES ================= */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: #1b385b;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 1000;
}

.skip-to-main:focus {
  top: 0;
}

.focus-visible:focus-visible {
  outline: 3px solid #1b385b;
  outline-offset: 3px;
}

/* Trading-specific */
.trading-hero-background {
  background-image: url("/images/sf-capital-forex-trading-hero.jpg");
}

.trading-feature-icon {
  width: 48px;
  height: 48px;
}

.trading-account-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.trading-platform-download {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* FIX FOR WHITE SPACE ON RIGHT SIDE */
html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

.touch-device .btn:not(:disabled):hover {
  transform: none;
}
.touch-device .btn:active {
  transform: scale(0.98);
}

/* footer css */
html,
body {
  color: #1f2937;
  overflow-x: hidden;
}

/* Custom gradient for footer */
.footer-gradient {
  background: linear-gradient(135deg, #0f2540 0%, #1b385b 50%, #2a4d7c 100%);
}

/* License box styling */
.license-box {
  background: rgba(27, 56, 91, 0.3);
  border: 1px solid rgba(224, 187, 127, 0.3);
}

/* Hover effects */
.footer-link:hover {
  color: #e0bb7f !important;
  transform: translateX(3px);
  transition: all 0.3s ease;
}

.footer-icon {
  transition: all 0.3s ease;
}

.footer-link:hover .footer-icon {
  color: #e0bb7f !important;
  transform: translateX(2px);
}

/********** CONTACT PAGE **********/
/* Custom styles for polygon cards and gradient text */
.polygon-card {
  clip-path: polygon(0 0, 80% 0, 100% 20%, 100% 100%, 20% 100%, 0 80%);
}

/* Animation classes */
.aos-init {
  opacity: 0;
}

.aos-animate {
  opacity: 1;
  animation: fadeInUp 0.5s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .polygon-card {
    clip-path: none;
    border-radius: 1rem !important;
  }
}

/********** FAQ PAGE **********/
/* FAQ item fade transition */
.faq-item {
  transition: all 0.3s ease;
}

.faq-item.hidden {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
}

.faq-item:not(.hidden) {
  animation: fadeInUp 0.5s ease-out;
}

/********** FOREX PAGE **********/
.forex-hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Accessibility */
.skip-to-main-content {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-to-main-content:focus {
  position: fixed;
  top: 20px;
  left: 20px;
  width: auto;
  height: auto;
  padding: 10px 20px;
  background: #3b82f6;
  color: white;
  z-index: 10000;
  border-radius: 4px;
}

/* SEO semantic styling */
.forex-benefit-card,
.forex-faq-item,
.forex-review-card,
.forex-market-navigation {
  transition: all 0.3s ease;
}

.forex-trading-widget {
  border-radius: 12px;
  overflow: hidden;
}

/***************** INDICES PAGE ****************/
.indices-hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Accessibility */
.skip-to-main-content {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-to-main-content:focus {
  position: fixed;
  top: 20px;
  left: 20px;
  width: auto;
  height: auto;
  padding: 10px 20px;
  background: #3b82f6;
  color: white;
  z-index: 10000;
  border-radius: 4px;
}

/* SEO semantic styling */
.indices-benefit-card,
.indices-faq-item,
.indices-review-card,
.indices-market-navigation {
  transition: all 0.3s ease;
}

.indices-trading-widget {
  border-radius: 12px;
  overflow: hidden;
}

/****************** CAREERS PAGE *************/

/* Toggle switch styling */
.careers-toggle-checkbox {
  display: none;
}

.careers-toggle-label {
  display: inline-block;
  width: 40px;
  height: 20px;
  background-color: #ccc;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s;
}

.careers-toggle-label:after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: white;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
}

.careers-toggle-checkbox:checked + .careers-toggle-label {
  background-color: #3b82f6;
}

.careers-toggle-checkbox:checked + .careers-toggle-label:after {
  transform: translateX(20px);
}

/* Gold gradient text */
.gold-gradient {
  background: linear-gradient(90deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* SEO optimized focus styles */
.seo-focus:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Lazy loading for images */
.lazy-image {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy-image.loaded {
  opacity: 1;
}

/****************** NEWS PAGE *******************/

/* Enhanced Dropdown with proper z-index */
.market-insights-dropdown-container {
  position: relative;
  display: inline-block;
}

.market-insights-dropdown-content {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  min-width: 280px;
  z-index: 9999 !important;
}

/* Mobile Optimized Dropdown */
@media (max-width: 768px) {
  .market-insights-dropdown-content {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    border-radius: 1rem 1rem 0 0;
    width: 100% !important;
    max-height: 80vh;
    overflow-y: auto;
    min-width: auto !important;
    z-index: 9999 !important;
  }
}

/* Desktop Dropdown */
@media (min-width: 769px) {
  .market-insights-dropdown-content {
    position: absolute !important;
    top: 100% !important;
    bottom: auto !important;
    left: auto !important;
    right: 0 !important;
    z-index: 9999 !important;
  }
}

/* SEO Friendly Article Card Styling */
.market-insights-article-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, box-shadow;
  z-index: 1;
}

.market-insights-article-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Optimize for Core Web Vitals */
.market-insights-lazy-load {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.market-insights-lazy-load.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Brand gradient colors */
/* .brand-gradient {
  background: linear-gradient(
    135deg,
    var(--color-blue-dark, #1e40af) 0%,
    var(--color-blue, #3b82f6) 50%,
    var(--color-gold, #f4d03f) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
} */

.text-gradient-blue {
  background: linear-gradient(
    135deg,
    var(--color-blue-dark, #1e40af) 0%,
    var(--color-blue, #3b82f6) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: linear-gradient(
    135deg,
    var(--color-gold-dark, #d4af37) 0%,
    var(--color-gold, #f4d03f) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Improved card shadows */
.card-shadow {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.card-shadow:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Animation delays for staggered effects */
.animate-delay-100 {
  animation-delay: 100ms;
}
.animate-delay-200 {
  animation-delay: 200ms;
}
.animate-delay-300 {
  animation-delay: 300ms;
}
.animate-delay-400 {
  animation-delay: 400ms;
}

/* Custom focus styles */
.focus-brand:focus {
  outline: 2px solid var(--color-blue, #3b82f6);
  outline-offset: 2px;
  border-color: var(--color-blue, #3b82f6);
}
