/*
Theme Name: FINGRID
Theme URI: https://fingird.co
Author: FINGRID
Author URI: https://fingird.co
Description: A modern, dark-themed WordPress theme for FINGRID - a global financial services firm specializing in international trade facilitation and cross-border financial operations.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fingrid
Tags: dark, one-page, custom-menu, custom-logo, translation-ready
*/

/* ==========================================================================
   CSS Reset & Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #0a0e14;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(255, 255, 255, 0.2);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Glass Effect
   ========================================================================== */

.glass {
  background: rgba(12, 44, 84, 0.2);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
}

.glass-card {
  background: rgba(12, 44, 84, 0.2);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
  border-radius: 1.5rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(12, 44, 84, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.glass-card:hover {
  background: rgba(12, 44, 84, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.glass-card:hover::before {
  opacity: 1;
}

/* ==========================================================================
   Text Gradient
   ========================================================================== */

.text-gradient {
  background: linear-gradient(to right, #ffffff, #00b439);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   Animations / Keyframes
   ========================================================================== */

@keyframes blob {
  0% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0px, 0px) scale(1); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

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

@keyframes expandWidth {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 100px;
    opacity: 1;
  }
}

@keyframes navSlideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.animate-blob {
  animation: blob 7s infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Scroll-triggered animations */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].animate-in {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="expand"] {
  width: 0;
  opacity: 0;
  transform: none;
  transition: width 0.6s ease-out, opacity 0.6s ease-out;
}

[data-animate="expand"].animate-in {
  width: 100px;
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.site-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.5rem;
  transition: padding 0.3s ease;
  animation: navSlideDown 0.5s ease-out;
}

.site-navbar.is-scrolled {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.navbar-logo {
  position: relative;
  z-index: 50;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.navbar-logo .fin {
  color: #ffffff;
}

.navbar-logo .grid {
  color: #00b439;
}

.navbar-desktop-menu {
  display: none;
  align-items: center;
  gap: 2rem;
}

.navbar-desktop-menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.navbar-desktop-menu a:hover {
  color: #ffffff;
}

.navbar-toggle {
  position: relative;
  z-index: 50;
  color: #ffffff;
  display: block;
  padding: 0.25rem;
}

.navbar-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 20, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-overlay nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-menu-overlay a {
  font-size: 1.875rem;
  font-weight: 300;
  color: #ffffff;
  transition: color 0.3s ease;
}

.mobile-menu-overlay a:hover {
  color: #00b439;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 5rem;
}

.hero-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
}

.hero-blob--1 {
  top: -10%;
  left: -10%;
  width: 80vw;
  height: 80vw;
  background: rgba(12, 44, 84, 0.5);
  filter: blur(80px);
}

.hero-blob--2 {
  top: 20%;
  right: -5%;
  width: 70vw;
  height: 70vw;
  background: rgba(12, 44, 84, 0.4);
  filter: blur(80px);
}

.hero-blob--3 {
  bottom: -5%;
  left: 10%;
  width: 75vw;
  height: 75vw;
  background: rgba(12, 44, 84, 0.4);
  filter: blur(80px);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title .fin {
  color: #ffffff;
}

.hero-title .grid-text {
  color: #00b439;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 42rem;
  margin: 0 auto 3rem;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background-color: #00b439;
  color: #ffffff;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1.125rem;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero-cta-primary:hover {
  transform: scale(1.05);
}

.hero-cta-primary svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.hero-cta-primary:hover svg {
  transform: translateX(4px);
}

.hero-cta-secondary {
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1.125rem;
  color: #ffffff;
  transition: all 0.3s ease;
}

.hero-cta-secondary:hover {
  background: rgba(12, 44, 84, 0.3);
  transform: scale(1.05);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeInUp 1s ease-out 1.5s both;
}

.scroll-indicator span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.scroll-indicator-line {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.4), transparent);
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-section {
  padding: 8rem 0;
  position: relative;
}

.section-header {
  margin-bottom: 5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.section-underline {
  height: 4px;
  background: #ffffff;
  border-radius: 9999px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 5rem;
}

.about-text-primary {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-text-secondary {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: #00b439;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.pillar-icon-wrap {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: rgba(12, 44, 84, 0.2);
  width: fit-content;
  transition: background-color 0.3s ease;
}

.glass-card:hover .pillar-icon-wrap {
  background: rgba(12, 44, 84, 0.3);
}

.pillar-icon-wrap svg {
  width: 24px;
  height: 24px;
  color: #00b439;
}

.pillar-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.pillar-desc {
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.services-section {
  padding: 8rem 0;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-icon-wrap {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(12, 44, 84, 0.2);
  width: fit-content;
  transition: background-color 0.3s ease;
}

.glass-card:hover .service-icon-wrap {
  background: rgba(12, 44, 84, 0.3);
}

.service-icon-wrap svg {
  width: 32px;
  height: 32px;
  color: #00b439;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-desc {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.service-link {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
}

.service-link-line {
  width: 1rem;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.glass-card:hover .service-link {
  color: #ffffff;
}

.glass-card:hover .service-link-line {
  width: 2rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-section {
  padding: 8rem 0;
  position: relative;
}

.contact-bg-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 500px;
  background: linear-gradient(to top, rgba(12, 44, 84, 0.15), transparent);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 10;
}

.contact-header {
  margin-bottom: 5rem;
  text-align: center;
}

.contact-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

.contact-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 42rem;
  margin: 0 auto;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.contact-card {
  text-align: center;
  height: 100%;
}

.contact-card-icon-wrap {
  margin: 0 auto 1rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(12, 44, 84, 0.2);
  width: fit-content;
  transition: background-color 0.3s ease;
}

.glass-card:hover .contact-card-icon-wrap {
  background: rgba(12, 44, 84, 0.3);
}

.contact-card-icon-wrap svg {
  width: 24px;
  height: 24px;
  color: #00b439;
}

.contact-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-card-value {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
}

a.contact-card-value:hover {
  color: #00b439;
}

.contact-cta-wrap {
  text-align: center;
}

.contact-cta {
  display: inline-block;
  padding: 1.25rem 2.5rem;
  background-color: #00b439;
  color: #ffffff;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.25rem;
  transition: transform 0.3s ease;
  box-shadow: 0 0 40px -10px rgba(0, 180, 57, 0.4);
}

.contact-cta:hover {
  transform: scale(1.05);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  position: relative;
  padding: 8rem 0 3rem;
  overflow: hidden;
}

.footer-top-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(12, 44, 84, 0.3), transparent);
}

.footer-inner {
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 5rem;
}

.footer-brand-logo {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

.footer-brand-logo .fin {
  color: #ffffff;
}

.footer-brand-logo .grid {
  color: #00b439;
}

.footer-brand-desc {
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.footer-col-title {
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-chat-text {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.footer-chat-email {
  font-size: 1.25rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-chat-email:hover {
  color: #00b439;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-bottom-links a {
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* ==========================================================================
   WordPress Specific
   ========================================================================== */

/* WordPress nav menu classes */
.navbar-desktop-menu .menu-item a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.navbar-desktop-menu .menu-item a:hover {
  color: #ffffff;
}

.navbar-desktop-menu .menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* ==========================================================================
   Responsive — md (768px+)
   ========================================================================== */

@media (min-width: 768px) {
  .navbar-desktop-menu {
    display: flex;
  }

  .navbar-toggle {
    display: none;
  }

  .hero-title {
    font-size: 4.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-ctas {
    flex-direction: row;
    justify-content: center;
  }

  .hero-blob--1 {
    width: 50vw;
    height: 50vw;
    background: rgba(12, 44, 84, 0.4);
    filter: blur(120px);
  }

  .hero-blob--2 {
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: rgba(12, 44, 84, 0.3);
    filter: blur(120px);
  }

  .hero-blob--3 {
    bottom: -10%;
    left: 20%;
    width: 45vw;
    height: 45vw;
    background: rgba(12, 44, 84, 0.3);
    filter: blur(120px);
  }

  .scroll-indicator {
    bottom: 2.5rem;
  }

  .section-title {
    font-size: 3.75rem;
  }

  .stat-value {
    font-size: 2.25rem;
  }

  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-title {
    font-size: 4.5rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Responsive — lg (1024px+)
   ========================================================================== */

@media (min-width: 1024px) {
  .hero-title {
    font-size: 6rem;
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
