/*
Theme Name: First Class Advanced Co. Pro
Theme URI: https://1stclass.com.sa
Author: First Class Advanced Co.
Author URI: https://1stclass.com.sa
Description: Professional bilingual (AR/EN) WordPress theme for First Class Advanced Co. - International Trade & Sourcing. Built for Elementor with RTL support.
Version: 2.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: firstclass-pro
Tags: rtl-language-support, translation-ready, custom-logo, elementor, business, corporate
*/

/* ============================================
   DESIGN SYSTEM - First Class Advanced Co.
   ============================================ */

:root {
  /* Brand Colors */
  --fc-navy: #151543;
  --fc-gold: #C0822F;
  --fc-white: #FFFFFF;
  --fc-bg: #FFFFFF;
  --fc-fg: #151543;

  /* Semantic Colors */
  --fc-primary: #151543;
  --fc-primary-fg: #FFFFFF;
  --fc-secondary: #C0822F;
  --fc-secondary-fg: #FFFFFF;
  --fc-muted: #F3F4F6;
  --fc-muted-fg: #6B7280;
  --fc-border: #E5E7EB;
  --fc-accent: #C0822F;
  --fc-destructive: #EF4444;

  /* Typography */
  --fc-font-sans: 'Inter', 'Almarai', -apple-system, BlinkMacSystemFont, sans-serif;
  --fc-font-heading: 'Inter', 'Almarai', sans-serif;

  /* Spacing */
  --fc-radius: 0.5rem;
  --fc-radius-lg: 1rem;
  --fc-radius-xl: 2rem;
  --fc-radius-2xl: 2.5rem;
  --fc-radius-3xl: 3rem;
  --fc-radius-4xl: 4rem;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
  font-family: var(--fc-font-sans);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--fc-bg);
  color: var(--fc-fg);
  font-size: clamp(0.875rem, 0.85rem + 0.25vw, 1rem);
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, .fc-h1 {
  font-family: var(--fc-font-heading);
  font-size: clamp(1.75rem, 4vw + 1rem, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--fc-primary);
}

h2, .fc-h2 {
  font-family: var(--fc-font-heading);
  font-size: clamp(1.5rem, 3vw + 0.75rem, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--fc-primary);
}

h3, .fc-h3 {
  font-family: var(--fc-font-heading);
  font-size: clamp(1.25rem, 2.5vw + 0.5rem, 2rem);
  font-weight: 600;
  color: var(--fc-primary);
}

h4, .fc-h4 {
  font-family: var(--fc-font-heading);
  font-weight: 700;
  color: var(--fc-primary);
}

p {
  font-size: clamp(0.9rem, 0.4vw + 0.85rem, 1.1rem);
  color: var(--fc-muted-fg);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.fc-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.fc-section {
  padding: 6rem 0;
}

.fc-section-lg {
  padding: 8rem 0;
}

.fc-text-center { text-align: center; }
.fc-text-gold { color: var(--fc-gold); }
.fc-text-navy { color: var(--fc-navy); }
.fc-text-white { color: var(--fc-white); }
.fc-bg-navy { background-color: var(--fc-navy); }
.fc-bg-gold { background-color: var(--fc-gold); }
.fc-bg-muted { background-color: var(--fc-muted); }
.fc-bg-white { background-color: var(--fc-white); }

/* Accent Bar */
.fc-accent-bar {
  width: 6rem;
  height: 0.375rem;
  background-color: var(--fc-gold);
  border-radius: 9999px;
  margin: 2rem auto 0;
}

.fc-accent-bar-sm {
  width: 5rem;
  height: 0.375rem;
  background-color: var(--fc-gold);
  border-radius: 9999px;
  margin: 0 auto;
}

/* ============================================
   BUTTONS
   ============================================ */

.fc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 200px;
  height: 4rem;
}

.fc-btn-primary {
  background-color: var(--fc-gold);
  color: var(--fc-white);
  box-shadow: 0 10px 40px rgba(192, 130, 47, 0.2);
}

.fc-btn-primary:hover {
  background-color: var(--fc-white);
  color: var(--fc-navy);
  transform: translateY(-2px);
}

.fc-btn-outline {
  background: transparent;
  color: var(--fc-white);
  border-color: rgba(255, 255, 255, 0.3);
}

.fc-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.fc-btn-navy {
  background-color: var(--fc-navy);
  color: var(--fc-white);
  box-shadow: 0 10px 40px rgba(21, 21, 67, 0.2);
}

.fc-btn-navy:hover {
  background-color: rgba(21, 21, 67, 0.9);
  transform: translateY(-2px);
}

.fc-btn-sm {
  height: 2.5rem;
  padding: 0.5rem 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  min-width: auto;
}

/* ============================================
   CARDS
   ============================================ */

.fc-card {
  background: var(--fc-white);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-2xl);
  padding: 2rem;
  box-shadow: 0 25px 60px rgba(21, 21, 67, 0.05);
  transition: all 0.5s ease;
  overflow: hidden;
  position: relative;
}

.fc-card:hover {
  box-shadow: 0 25px 60px rgba(192, 130, 47, 0.1);
  transform: translateY(-4px);
}

.fc-card-round {
  border-radius: var(--fc-radius-3xl);
}

/* Icon boxes */
.fc-icon-box {
  width: 5rem;
  height: 5rem;
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: all 0.5s ease;
}

.fc-icon-box-primary {
  background-color: rgba(21, 21, 67, 0.1);
  color: var(--fc-primary);
}

.fc-icon-box-secondary {
  background-color: rgba(192, 130, 47, 0.1);
  color: var(--fc-secondary);
}

.fc-card:hover .fc-icon-box {
  background-color: var(--fc-navy);
  color: var(--fc-white);
}

/* ============================================
   NAVBAR
   ============================================ */

.fc-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.fc-navbar.scrolled {
  background: var(--fc-white);
  padding: 0.5rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.fc-navbar .fc-nav-link {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  padding: 0.5rem 0;
}

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

.fc-navbar .fc-nav-link:hover::after,
.fc-navbar .fc-nav-link.active::after {
  width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */

.fc-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5rem;
  overflow: hidden;
  background-color: var(--fc-navy);
}

.fc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(21, 21, 67, 0.9), rgba(21, 21, 67, 0.8), var(--fc-navy));
  z-index: 1;
}

.fc-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.fc-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  transform: scale(1.05);
}

.fc-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.fc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  background-color: rgba(192, 130, 47, 0.2);
  color: var(--fc-gold);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 2.5rem;
}

.fc-hero-badge .pulse-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background-color: var(--fc-gold);
  animation: fc-pulse 2s infinite;
}

@keyframes fc-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.fc-hero h1 {
  color: var(--fc-white);
  font-size: clamp(2rem, 5vw + 1rem, 4.5rem);
  margin-bottom: 2rem;
  letter-spacing: -0.05em;
}

.fc-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  max-width: 48rem;
  margin: 0 auto 3rem;
  line-height: 1.7;
  font-weight: 500;
}

.fc-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

/* Decorative rotating rings */
.fc-hero-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.1;
  z-index: 0;
}

.fc-hero-rings .ring-outer {
  width: 800px;
  height: 800px;
  border: 40px solid rgba(192, 130, 47, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fc-rotate 60s linear infinite;
}

.fc-hero-rings .ring-inner {
  width: 500px;
  height: 500px;
  border: 20px solid rgba(21, 21, 67, 0.05);
  border-radius: 50%;
}

@keyframes fc-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================
   STATS SECTION
   ============================================ */

.fc-stats {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.fc-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  max-width: 72rem;
  margin: 0 auto;
}

.fc-stat-item {
  text-align: center;
  cursor: default;
}

.fc-stat-value {
  font-size: clamp(2rem, 4vw, 3.75rem);
  font-weight: 900;
  color: var(--fc-navy);
  letter-spacing: -0.05em;
  margin-bottom: 0.5rem;
  transition: all 0.5s ease;
}

.fc-stat-item:hover .fc-stat-value {
  color: var(--fc-gold);
  transform: scale(1.05);
}

.fc-stat-label {
  font-size: 0.875rem;
  font-weight: 800;
  color: rgba(21, 21, 67, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.fc-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 84rem;
  margin: 0 auto;
}

.fc-service-card {
  border-radius: var(--fc-radius-2xl);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.fc-service-card .fc-corner-decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 8rem;
  height: 8rem;
  background-color: rgba(192, 130, 47, 0.1);
  border-bottom-left-radius: 100%;
  transform: translate(4rem, -4rem);
  transition: transform 0.7s ease;
}

.fc-service-card:hover .fc-corner-decoration {
  transform: translate(0, 0);
}

.fc-service-card .fc-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fc-navy);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.fc-service-card:hover .fc-card-title {
  color: var(--fc-gold);
}

/* ============================================
   WHY US SECTION
   ============================================ */

.fc-whyus {
  background-color: var(--fc-navy);
  color: var(--fc-white);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.fc-whyus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.fc-whyus-point {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

.fc-whyus-point:hover {
  background: rgba(255, 255, 255, 0.1);
}

.fc-whyus-check {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background-color: rgba(192, 130, 47, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fc-gold);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.fc-contact-form {
  background-color: rgba(192, 130, 47, 0.05);
  padding: 2.5rem 4rem;
  border-radius: var(--fc-radius-4xl);
  border: 1px solid var(--fc-border);
  box-shadow: 0 25px 60px rgba(21, 21, 67, 0.05);
}

.fc-input {
  width: 100%;
  height: 4rem;
  padding: 0 1.5rem;
  border-radius: 1rem;
  background-color: var(--fc-white);
  border: 2px solid var(--fc-border);
  font-size: 1.125rem;
  font-family: var(--fc-font-sans);
  transition: all 0.3s ease;
  outline: none;
}

.fc-input:focus {
  border-color: var(--fc-gold);
  box-shadow: 0 0 0 4px rgba(192, 130, 47, 0.1);
}

.fc-textarea {
  width: 100%;
  padding: 1.5rem;
  border-radius: 1.5rem;
  background-color: var(--fc-white);
  border: 2px solid var(--fc-border);
  font-size: 1.125rem;
  font-family: var(--fc-font-sans);
  resize: none;
  transition: all 0.3s ease;
  outline: none;
}

.fc-textarea:focus {
  border-color: var(--fc-gold);
  box-shadow: 0 0 0 4px rgba(192, 130, 47, 0.1);
}

.fc-label {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  margin-left: 0.25rem;
}

/* ============================================
   FOOTER
   ============================================ */

.fc-footer {
  background-color: var(--fc-navy);
  color: var(--fc-white);
  padding: 3rem 0;
}

.fc-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.fc-footer h4 {
  color: var(--fc-gold);
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
}

.fc-footer a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.fc-footer a:hover {
  color: var(--fc-gold);
}

.fc-footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.625rem;
}

/* ============================================
   FLOATING CONTACT BUTTONS
   ============================================ */

.fc-floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 60;
  width: 3.5rem;
  height: 3.5rem;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease;
}

.fc-floating-whatsapp:hover {
  transform: scale(1.1);
}

.fc-floating-phone {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 60;
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--fc-navy);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(21, 21, 67, 0.4);
  transition: transform 0.3s ease;
}

.fc-floating-phone:hover {
  transform: scale(1.1);
}

/* ============================================
   PAGE HEADERS (Inner pages)
   ============================================ */

.fc-page-header {
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.fc-page-header-navy {
  background-color: var(--fc-navy);
  color: var(--fc-white);
}

.fc-page-header-gold {
  background-color: rgba(192, 130, 47, 0.15);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .fc-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fc-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fc-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .fc-services-grid {
    grid-template-columns: 1fr;
  }
  .fc-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .fc-hero h1 {
    font-size: 2rem;
  }
  .fc-hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .fc-contact-form {
    padding: 2rem 1.5rem;
  }
  .fc-footer-grid {
    grid-template-columns: 1fr;
  }
  .fc-whyus-grid {
    grid-template-columns: 1fr;
  }
  .fc-section {
    padding: 4rem 0;
  }
}

/* ============================================
   RTL SUPPORT
   ============================================ */

[dir="rtl"] {
  font-family: 'Almarai', 'Inter', sans-serif;
}

[dir="rtl"] .fc-navbar .fc-nav-link::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .fc-whyus-point {
  flex-direction: row;
}

/* ============================================
   ANIMATIONS (for non-Elementor use)
   ============================================ */

.fc-fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.fc-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   ELEMENTOR OVERRIDES
   ============================================ */

.elementor-section.elementor-section-stretched {
  max-width: 100%;
}

.elementor-widget-container {
  transition: all 0.3s ease;
}

/* Ensure Elementor doesn't override our card styles */
.elementor .fc-card {
  border-radius: var(--fc-radius-2xl) !important;
}

body.rtl .elementor-widget-wrap {
  direction: rtl;
}
