/*
Theme Name: Xross Atlas
Theme URI: www.xafair.com
Author: Xross Atlas
Author URI: www.xafair.com
Description: A professional WordPress theme for Xross Atlas - China procurement and sourcing partner
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xross-atlas
Tags: one-column, two-columns, custom-menu, custom-logo, featured-images, translation-ready
*/

/* Custom Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Base font */
* { font-family: 'Inter', sans-serif; }

/* Gradient Text */
.gradient-text { 
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%); 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent; 
  background-clip: text; 
}

/* Glass Effect */
.glass-effect { 
  background: rgba(255, 255, 255, 0.08); 
  backdrop-filter: blur(20px); 
  -webkit-backdrop-filter: blur(20px); 
  border: 1px solid rgba(255, 255, 255, 0.1); 
}

/* Card Hover Animation */
.card-hover { 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
}

.card-hover:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); 
}

/* Float Animation */
.float-animation { 
  animation: float 6s ease-in-out infinite; 
}

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

/* Pulse Glow Animation */
.pulse-glow { 
  animation: pulse-glow 2s ease-in-out infinite; 
}

@keyframes pulse-glow { 
  0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.5); } 
  50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.8); } 
}

/* Scroll Reveal Animation */
.scroll-reveal { 
  opacity: 0; 
  transform: translateY(30px); 
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); 
}

.scroll-reveal.revealed { 
  opacity: 1; 
  transform: translateY(0); 
}

/* Nav Scrolled State */
.nav-scrolled { 
  background: rgba(15, 23, 42, 0.95) !important; 
  backdrop-filter: blur(20px); 
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); 
}

/* Step Connector */
.step-connector { 
  position: relative; 
}

.step-connector::after { 
  content: ''; 
  position: absolute; 
  top: 50%; 
  right: -50%; 
  width: 100%; 
  height: 2px; 
  background: linear-gradient(90deg, #3b82f6, #8b5cf6); 
  transform: translateY(-50%); 
  z-index: 0; 
}

@media (max-width: 768px) { 
  .step-connector::after { display: none; } 
}

/* FAQ Toggle Styles */
.faq-content {
  display: none;
}

.faq-content.active {
  display: block;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Body background for WordPress */
body {
  background-color: #0f172a;
  color: #e2e8f0;
}

/* WordPress-specific overrides */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.5s;
}

.site-main {
  min-height: 100vh;
}

.site-footer {
  background-color: #020617;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* WordPress menu styles */
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  display: inline-block;
  position: relative;
}

.main-navigation a {
  display: block;
  text-decoration: none;
  color: #d1d5db;
  transition: color 0.3s;
}

.main-navigation a:hover {
  color: #ffffff;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-navigation ul {
    display: none;
  }
  
  .main-navigation.active ul {
    display: block;
  }
}

/* Entry content styling for WordPress posts */
.entry-content {
  color: #d1d5db;
  line-height: 1.7;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: #ffffff;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.entry-content p {
  margin-bottom: 1em;
}

.entry-content a {
  color: #60a5fa;
}

.entry-content a:hover {
  color: #93c5fd;
}

/* WordPress widget styles */
.widget {
  margin-bottom: 1.5em;
}

.widgettitle {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* WordPress comment styles */
.comments-area {
  padding-top: 2rem;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
}

/* Utility classes to ensure content visibility */
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-white { color: #ffffff; }
.bg-slate-900 { background-color: #0f172a; }
.bg-slate-950 { background-color: #020617; }

/* Utility classes for lists */
ul, ol {
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.5em;
}

/* ============================================
   Contact Form 7 Custom Styles
   ============================================ */
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.wpcf7-form label {
  display: block;
  color: #d1d5db;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 1rem 1.25rem;
  background-color: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  color: #fff;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s ease;
  outline: none;
  box-sizing: border-box;
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
  color: #6b7280;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.wpcf7-form textarea {
  resize: none;
  min-height: 120px;
}

.wpcf7-form .wpcf7-submit {
  width: 100%;
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.wpcf7-form .wpcf7-submit:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(139, 92, 246, 0.4);
}

.wpcf7-form .wpcf7-submit:active {
  transform: scale(0.98);
}

/* Validation */
.wpcf7-form .wpcf7-not-valid-tip {
  color: #f87171;
  font-size: 0.75rem;
  margin-top: 0.375rem;
}

.wpcf7-form .wpcf7-validation-errors,
.wpcf7-form .wpcf7-mail-sent-ng,
.wpcf7-form .wpcf7-aborted {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 0.75rem;
  padding: 1rem;
  font-size: 0.875rem;
}

.wpcf7-form .wpcf7-mail-sent-ok {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 0.75rem;
  padding: 1rem;
  font-size: 0.875rem;
}

/* Spinner */
.wpcf7-spinner {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.5rem;
  vertical-align: middle;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
  border-radius: 50%;
  animation: cf7-spin 1s linear infinite;
}

@keyframes cf7-spin {
  to { transform: rotate(360deg); }
}

/* reCAPTCHA badge (hide from visual flow, keep accessible) */
.wpcf7-recaptcha {
  margin-bottom: 1rem;
}

/* Grid layout for 2-col fields */
.wpcf7-form .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .wpcf7-form .two-col {
    grid-template-columns: 1fr;
  }
}
