/*
Theme Name: JMF Precision - Elementor
Theme URI: https://jmf-precision.fr
Author: JMF Precision
Author URI: https://jmf-precision.fr
Description: Custom WordPress theme for JMF Precision with full Elementor compatibility
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: jmf-precision
Tags: elementor, custom-header, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ========================================
   JMF PRECISION - WORDPRESS THEME
   Compatible with Elementor Page Builder
   ======================================== */

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

/* CSS Variables */
:root {
  --jmf-primary: #c8102e;
  --jmf-primary-dark: #a00d24;
  --jmf-black: #000000;
  --jmf-white: #ffffff;
  --jmf-gray: #6b7280;
  --jmf-gray-light: #f3f4f6;
  --jmf-font: 'Montserrat', sans-serif;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--jmf-font);
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* WordPress Required Styles */
.alignleft {
  float: left;
  margin-right: 20px;
}

.alignright {
  float: right;
  margin-left: 20px;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 14px;
  color: var(--jmf-gray);
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
}

/* Elementor Compatibility */
.elementor-widget-heading .elementor-heading-title {
  font-family: var(--jmf-font);
}

.elementor-widget-text-editor {
  font-family: var(--jmf-font);
}

/* Custom Classes for Elementor */
.jmf-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.jmf-section {
  padding: 80px 0;
}

.jmf-bg-red {
  background-color: var(--jmf-primary);
}

.jmf-bg-black {
  background-color: var(--jmf-black);
}

.jmf-bg-gray {
  background-color: var(--jmf-gray-light);
}

.jmf-text-red {
  color: var(--jmf-primary);
}

.jmf-text-white {
  color: var(--jmf-white);
}

/* Button Styles */
.jmf-btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: var(--jmf-font);
  font-size: 14px;
  cursor: pointer;
  border: none;
}

.jmf-btn-primary {
  background-color: var(--jmf-primary);
  color: var(--jmf-white);
  border: 2px solid var(--jmf-primary);
}

.jmf-btn-primary:hover {
  background-color: var(--jmf-primary-dark);
  border-color: var(--jmf-primary-dark);
}

.jmf-btn-outline-white {
  background-color: transparent;
  color: var(--jmf-white);
  border: 2px solid var(--jmf-white);
}

.jmf-btn-outline-white:hover {
  background-color: var(--jmf-white);
  color: var(--jmf-primary);
}

.jmf-btn-outline-red {
  background-color: transparent;
  color: var(--jmf-primary);
  border: 2px solid var(--jmf-primary);
}

.jmf-btn-outline-red:hover {
  background-color: var(--jmf-primary);
  color: var(--jmf-white);
}

/* Hero Section */
.jmf-hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.jmf-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.jmf-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--jmf-white);
}

/* Page Banner */
.jmf-page-banner {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.jmf-page-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.jmf-page-banner-title {
  position: relative;
  z-index: 1;
  color: var(--jmf-white);
  font-size: 48px;
  font-weight: 700;
}

/* Accordion */
.jmf-accordion-item {
  background-color: var(--jmf-primary);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.jmf-accordion-header {
  width: 100%;
  padding: 15px 20px;
  background: none;
  border: none;
  color: var(--jmf-white);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.jmf-accordion-content {
  padding: 0 20px 15px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

/* Service Card */
.jmf-service-card {
  background: var(--jmf-white);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.jmf-service-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.jmf-service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  color: var(--jmf-primary);
}

.jmf-service-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
}

.jmf-service-description {
  font-size: 14px;
  color: var(--jmf-gray);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Project Gallery */
.jmf-project-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.jmf-project-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
  filter: grayscale(100%);
}

.jmf-project-item:hover img {
  transform: scale(1.1);
  filter: grayscale(0%);
}

.jmf-project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.jmf-project-title {
  color: var(--jmf-white);
  font-size: 14px;
  font-weight: 600;
}

/* Testimonial */
.jmf-testimonial {
  display: flex;
  gap: 20px;
}

.jmf-testimonial-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #e5e7eb;
  flex-shrink: 0;
}

.jmf-testimonial-content {
  flex: 1;
}

.jmf-testimonial-line {
  width: 60px;
  height: 3px;
  background: var(--jmf-primary);
  margin-bottom: 15px;
}

.jmf-testimonial-name {
  font-weight: 700;
  margin-bottom: 5px;
}

.jmf-testimonial-role {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.jmf-testimonial-text {
  font-size: 14px;
  color: var(--jmf-gray);
  line-height: 1.6;
}

/* Contact Form */
.jmf-contact-form input,
.jmf-contact-form select,
.jmf-contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  color: var(--jmf-white);
  font-family: var(--jmf-font);
  font-size: 14px;
}

.jmf-contact-form input::placeholder,
.jmf-contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.jmf-contact-form select option {
  color: #333;
}

/* Stats Section */
.jmf-stats-section {
  position: relative;
  padding: 80px 0;
  background-size: cover;
  background-position: center;
}

.jmf-stats-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(200, 16, 46, 0.85);
}

.jmf-stat-item {
  text-align: center;
  color: var(--jmf-white);
}

.jmf-stat-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 15px;
}

.jmf-stat-value {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 5px;
}

.jmf-stat-label {
  font-size: 18px;
}

/* Footer */
.jmf-footer {
  background: var(--jmf-black);
  color: var(--jmf-white);
  padding: 60px 0 30px;
}

.jmf-footer-logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--jmf-primary);
}

.jmf-footer-title {
  font-weight: 600;
  margin-bottom: 20px;
}

.jmf-footer-text {
  color: #9ca3af;
  font-size: 14px;
  margin-bottom: 8px;
}

.jmf-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.jmf-footer-social a {
  width: 35px;
  height: 35px;
  background: var(--jmf-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jmf-white);
  transition: background 0.3s ease;
}

.jmf-footer-social a:hover {
  background: var(--jmf-primary-dark);
}

/* Floating CTA */
.jmf-floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background: var(--jmf-primary);
  color: var(--jmf-white);
  padding: 15px 25px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}

.jmf-floating-cta:hover {
  background: var(--jmf-primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
  .jmf-hero {
    height: 400px;
  }
  
  .jmf-page-banner {
    height: 300px;
  }
  
  .jmf-page-banner-title {
    font-size: 32px;
  }
  
  .jmf-testimonial {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .jmf-testimonial-line {
    margin: 15px auto;
  }
  
  .jmf-stat-value {
    font-size: 36px;
  }
  
  .jmf-floating-cta {
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* Elementor Widget Specific Styles */
.elementor-widget-jmf-hero {
  margin: 0 !important;
}

.elementor-widget-jmf-services .jmf-service-card {
  height: 100%;
}

.elementor-widget-jmf-projects .jmf-project-item {
  margin-bottom: 0;
}

/* Menu Styles for Elementor */
.jmf-main-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.jmf-main-menu a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s ease;
}

.jmf-main-menu a:hover,
.jmf-main-menu .current-menu-item a {
  color: var(--jmf-primary);
}

/* Dropdown Menu */
.jmf-menu-item-has-children {
  position: relative;
}

.jmf-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--jmf-white);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 10px 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  list-style: none;
}

.jmf-menu-item-has-children:hover .jmf-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.jmf-submenu a {
  display: block;
  padding: 8px 20px;
  font-size: 13px;
}

.jmf-submenu a:hover {
  background: #f3f4f6;
}
