/*
Theme Name:   3MF Astra Child
Theme URI:    https://3mf.io
Description:  Custom child theme for 3MF - Vérification Périodique d'Engins & Formation Conducteurs. Corporate professional design for regulatory compliance services in the Indian Ocean.
Author:       3MF
Author URI:   https://3mf.io
Template:     astra
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:  astra-3mf-child
*/

/* ========================================
   3MF BRAND COLORS
   ======================================== */
:root {
  /* Primary Brand Colors */
  --3mf-blue-dark: #003366;      /* Primary corporate blue */
  --3mf-blue-medium: #0066CC;    /* Interactive elements */
  --3mf-blue-light: #E6F2FF;     /* Backgrounds, highlights */

  /* Accent Colors */
  --3mf-orange: #FF6600;         /* Safety orange for CTAs */
  --3mf-orange-hover: #E65C00;   /* Hover state */

  /* Neutral Colors */
  --3mf-gray-dark: #2C3E50;      /* Text primary */
  --3mf-gray-medium: #7F8C8D;    /* Text secondary */
  --3mf-gray-light: #ECF0F1;     /* Borders, dividers */
  --3mf-white: #FFFFFF;

  /* Semantic Colors */
  --3mf-success: #27AE60;        /* Compliance status */
  --3mf-warning: #F39C12;        /* Warnings */
  --3mf-error: #E74C3C;          /* Errors, urgent */
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
body {
  color: var(--3mf-gray-dark);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--3mf-blue-dark);
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

/* ========================================
   PRIMARY NAVIGATION
   ======================================== */
.main-header-bar {
  background-color: var(--3mf-white);
  border-bottom: 3px solid var(--3mf-blue-medium);
  box-shadow: 0 2px 10px rgba(0, 51, 102, 0.1);
}

.main-navigation a {
  color: var(--3mf-blue-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-navigation a:hover {
  color: var(--3mf-blue-medium);
}

/* Webapp CTA Button in Header */
.webapp-cta-button {
  background-color: var(--3mf-orange);
  color: var(--3mf-white);
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-left: 20px;
}

.webapp-cta-button:hover {
  background-color: var(--3mf-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
  color: var(--3mf-white);
}

/* ========================================
   BUTTONS & CTAs
   ======================================== */
.ast-button,
.button,
.wp-block-button__link,
input[type="submit"] {
  background-color: var(--3mf-blue-medium);
  color: var(--3mf-white);
  border: none;
  padding: 12px 32px;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.ast-button:hover,
.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover {
  background-color: var(--3mf-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Secondary Button Style */
.button-secondary {
  background-color: transparent;
  color: var(--3mf-blue-medium);
  border: 2px solid var(--3mf-blue-medium);
}

.button-secondary:hover {
  background-color: var(--3mf-blue-medium);
  color: var(--3mf-white);
}

/* Orange CTA for Primary Actions */
.button-primary-cta {
  background-color: var(--3mf-orange);
}

.button-primary-cta:hover {
  background-color: var(--3mf-orange-hover);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.92), rgba(0, 102, 204, 0.92));
  color: var(--3mf-white);
  padding: 80px 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-copy {
  max-width: 520px;
  text-align: left;
}

.hero-copy h1 {
  color: var(--3mf-white);
  margin-bottom: 20px;
}

.hero-copy p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero-illustration img {
  width: 100%;
  max-width: 520px;
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  margin: 0 auto;
  display: block;
}

/* ========================================
   SERVICE CARDS
   ======================================== */
.service-card {
  background: var(--3mf-white);
  border: 1px solid var(--3mf-gray-light);
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.15);
  border-color: var(--3mf-blue-medium);
}

.service-card h3 {
  color: var(--3mf-blue-dark);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.service-card h3::before {
  content: "✓";
  background-color: var(--3mf-success);
  color: var(--3mf-white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-weight: bold;
}

.service-card-illustration {
  margin: -30px -30px 20px;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.service-card-illustration img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* ========================================
   COMPLIANCE BADGES
   ======================================== */
.compliance-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.compliance-copy {
  text-align: center;
}

.compliance-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.compliance-badge {
  background: rgba(0, 102, 204, 0.1);
  border: 1px solid rgba(0, 102, 204, 0.2);
  border-radius: 12px;
  padding: 18px;
  color: var(--3mf-blue-dark);
  font-weight: 600;
}

.compliance-illustration img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 16px 35px rgba(0, 51, 102, 0.2);
  display: block;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background-color: var(--3mf-blue-dark);
  color: var(--3mf-white);
  padding: 40px 20px 20px;
}

.site-footer a {
  color: var(--3mf-blue-light);
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--3mf-white);
}

.footer-widget h3 {
  color: var(--3mf-white);
  border-bottom: 2px solid var(--3mf-orange);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* ========================================
   FORMS
   ======================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
  border: 2px solid var(--3mf-gray-light);
  border-radius: 4px;
  padding: 12px;
  width: 100%;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
  border-color: var(--3mf-blue-medium);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.container-narrow {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
  .hero-section {
    padding: 60px 20px;
  }

  .webapp-cta-button {
    display: block;
    margin: 15px auto 0;
    text-align: center;
  }

  .service-card {
    padding: 20px;
  }

  .service-card-illustration {
    margin: -20px -20px 20px;
  }

  .hero-grid {
    text-align: center;
    justify-items: center;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-illustration img {
    max-width: 380px;
  }
}

/* ========================================
   ACCESSIBILITY ENHANCEMENTS
   ======================================== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--3mf-blue-dark);
  color: var(--3mf-white);
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--3mf-orange);
  outline-offset: 2px;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .main-header-bar,
  .site-footer,
  .webapp-cta-button {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
  }
}
