/* ==========================================================================
   MICAH DREAM SA DE CV — Official Corporate Theme
   B2B Industrial Supply Chain & Purchasing Services
   ========================================================================== */

:root {
  --navy-dark: #071527;
  --navy-main: #0a2540;
  --navy-light: #1e3a8a;
  --blue-accent: #0284c7;
  --blue-hover: #0369a1;
  --gold-accent: #d97706;
  
  --bg-gray: #f8fafc;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --border-subtle: rgba(255, 255, 255, 0.1);
  
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  
  --font-family: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', 'Noto Sans SC', sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 40px rgba(10, 37, 64, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-body);
  background-color: #ffffff;
  line-height: 1.6;
}

a {
  color: var(--blue-accent);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--blue-hover);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.25;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
}

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

.section-dark {
  background-color: var(--navy-dark);
  color: var(--text-light);
}

.section-header {
  margin-bottom: 56px;
}

.section-header.text-center {
  text-align: center;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--blue-accent);
  margin-bottom: 10px;
}

.section-tag.light {
  color: #38bdf8;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--navy-main);
  margin-bottom: 14px;
}

.section-dark .section-title {
  color: #ffffff;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto;
}

.section-dark .section-sub {
  color: #94a3b8;
}

/* Top Bar */
.top-bar {
  background-color: var(--navy-dark);
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.top-bar-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left span, .top-bar-right span {
  margin-right: 20px;
}

.top-bar i {
  color: var(--blue-accent);
  margin-right: 6px;
}

.contact-pill {
  background: rgba(2, 132, 199, 0.2);
  padding: 4px 12px;
  border-radius: 99px;
  color: #38bdf8 !important;
  font-weight: 600;
}

.lang-switch-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.lang-btn.active, .lang-btn:hover {
  color: #ffffff;
  background: var(--blue-accent);
}

.lang-divider {
  color: #475569;
}

/* Header Navbar */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon-wrap {
  width: 44px;
  height: 44px;
  background: var(--navy-main);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.4rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-main);
  letter-spacing: -0.02em;
}

.logo-sub {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-accent);
  letter-spacing: 0.1em;
}

.nav-menu {
  display: flex;
  gap: 28px;
}

.nav-link {
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 0;
  position: relative;
}

.nav-link.active, .nav-link:hover {
  color: var(--navy-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--blue-accent);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-navy {
  background: var(--navy-main);
  color: #ffffff;
}

.btn-navy:hover {
  background: var(--navy-light);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.25);
}

.btn-glow {
  background: var(--blue-accent);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.4);
}

.btn-glow:hover {
  background: var(--blue-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.btn-outline:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--navy-main);
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, #071527 0%, #0a2540 50%, #0f172a 100%);
  color: #ffffff;
  padding: 120px 0 90px 0;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(2, 132, 199, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid rgba(2, 132, 199, 0.3);
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 0.85rem;
  color: #38bdf8;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title .accent {
  color: #38bdf8;
}

.sub-hero {
  font-size: 2rem;
  font-weight: 700;
  color: #94a3b8;
  display: block;
  margin-top: 8px;
}

.hero-lead {
  font-size: 1.25rem;
  color: #cbd5e1;
  max-width: 820px;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-btn-group {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  padding: 24px;
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: #38bdf8;
  font-family: var(--font-heading);
}

.stat-num .unit {
  font-size: 1.2rem;
}

.stat-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 4px;
}

/* About Us Grid & Vision */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.paragraph {
  margin-bottom: 16px;
  font-size: 1.05rem;
  color: var(--text-body);
}

.about-highlights {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hl-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-main);
}

.hl-item i {
  color: var(--blue-accent);
  font-size: 1.1rem;
  margin-top: 3px;
}

.vision-box {
  background: var(--navy-main);
  color: #ffffff;
  padding: 44px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.vision-icon {
  width: 60px;
  height: 60px;
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
  font-size: 1.8rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.vision-box h3 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.vision-quote {
  font-size: 1.2rem;
  font-weight: 700;
  color: #38bdf8;
  line-height: 1.5;
  margin-bottom: 16px;
}

.vision-sub {
  color: #cbd5e1;
  font-size: 0.95rem;
}

/* Timeline Stepper */
.timeline-stepper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.step-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease;
}

.step-card:hover {
  transform: translateX(8px);
  border-color: var(--blue-accent);
}

.step-card.active {
  border-left: 6px solid var(--blue-accent);
}

.step-card.future {
  border-left: 6px solid var(--gold-accent);
  background: #fffdf5;
}

.step-num {
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: var(--navy-main);
  min-width: 50px;
}

.step-content h4 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-accent);
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.service-index {
  font-size: 1.8rem;
  font-weight: 900;
  color: #cbd5e1;
  font-family: var(--font-heading);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-gray);
  color: var(--navy-main);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.es-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--blue-accent);
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-list li {
  font-size: 0.9rem;
  color: var(--text-body);
}

.service-list i {
  color: var(--blue-accent);
  font-size: 0.8rem;
  margin-right: 4px;
}

/* Sourcing Flow Section */
.sourcing-box {
  background: var(--navy-main);
  color: #ffffff;
  padding: 60px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.sourcing-box .section-title {
  color: #ffffff;
}

.sourcing-box .section-title .sub {
  display: block;
  font-size: 1rem;
  color: #38bdf8;
  margin-top: 6px;
}

.sourcing-box .section-sub {
  color: #cbd5e1;
}

.flow-steps-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
}

.flow-step {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.flow-step.highlight {
  border-color: #38bdf8;
  background: rgba(2, 132, 199, 0.25);
}

.step-badge {
  width: 32px;
  height: 32px;
  background: #38bdf8;
  color: var(--navy-dark);
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px auto;
}

.step-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: #ffffff;
}

.flow-step p {
  font-size: 0.8rem;
  color: #cbd5e1;
}

.flow-arrow {
  color: #38bdf8;
  font-size: 1.2rem;
}

/* Client Experience */
.key-clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.client-case-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--navy-main);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.client-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-main);
  margin-bottom: 10px;
}

.client-supply {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.client-logos-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 32px;
  border-radius: var(--radius-md);
  text-align: center;
}

.client-logos-header {
  font-weight: 700;
  color: var(--navy-main);
  margin-bottom: 16px;
}

.client-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.client-tags-cloud span {
  background: var(--bg-gray);
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-body);
}

/* Core Advantages Grid */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.adv-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.25s ease;
}

.adv-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-accent);
}

.adv-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--blue-accent);
  font-family: var(--font-heading);
  margin-bottom: 12px;
}

.adv-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.es-sub {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.adv-card p {
  color: var(--text-body);
  font-size: 0.95rem;
}

/* Contact & RFQ Form */
.contact-intro {
  color: #cbd5e1;
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.es-sub.light {
  color: #38bdf8;
  font-size: 1.3rem;
  font-weight: 600;
}

.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cd-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.cd-icon {
  width: 44px;
  height: 44px;
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.cd-text {
  color: #e2e8f0;
  font-size: 0.95rem;
}

.cd-text a {
  color: #38bdf8;
  font-weight: 600;
}

.rfq-form-card {
  background: #ffffff;
  color: var(--text-dark);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.rfq-form-card h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
  color: var(--navy-main);
}

.rfq-form-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy-main);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--blue-accent);
}

.full-width {
  width: 100%;
}

.rfq-status-msg {
  margin-top: 14px;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 600;
}

/* Site Footer */
.site-footer {
  background: #040c1a;
  color: #64748b;
  padding: 30px 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left .brand {
  font-weight: 800;
  color: #ffffff;
  font-size: 1rem;
}

/* Responsive Media Queries & Mobile Optimizations */
@media (max-width: 992px) {
  .hero-title { font-size: 2.6rem; }
  .sub-hero { font-size: 1.5rem; }
  .hero-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .services-grid, .advantages-grid, .key-clients-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-steps-grid { flex-wrap: wrap; }
  .flow-arrow { display: none; }
}

@media (max-width: 768px) {
  /* Touch & Body Tweaks */
  body {
    -webkit-tap-highlight-color: transparent;
  }

  .section {
    padding: 60px 0;
  }

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

  .section-header {
    margin-bottom: 36px;
  }

  /* Top Bar Mobile */
  .top-bar-container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 8px 16px;
  }
  
  .top-bar-left span {
    margin-right: 0;
    display: block;
    font-size: 0.8rem;
    margin-bottom: 2px;
  }

  .top-bar-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .contact-pill {
    font-size: 0.75rem;
    padding: 3px 10px;
  }

  .lang-btn {
    padding: 4px 10px;
    font-size: 0.8rem;
    min-height: 32px;
  }

  /* Header & Navigation Drawer */
  .header-container {
    padding: 12px 16px;
  }

  .logo-main {
    font-size: 1.15rem;
  }

  .logo-sub {
    font-size: 0.7rem;
  }

  .header-actions .btn-navy {
    display: none; /* Hide top header quote button on mobile to save space */
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-gray);
  }

  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid var(--blue-accent);
    display: none;
    z-index: 999;
  }

  .nav-menu.show {
    display: flex;
    animation: fadeInDown 0.3s ease forwards;
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-link.active::after {
    display: none;
  }

  /* Hero Section Mobile */
  .hero {
    padding: 60px 0 50px 0;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 6px 14px;
    margin-bottom: 16px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .sub-hero {
    font-size: 1.2rem;
    margin-top: 6px;
  }

  .hero-lead {
    font-size: 0.95rem;
    margin-bottom: 28px;
  }

  .hero-btn-group {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
  }

  .hero-btn-group .btn {
    width: 100%;
    padding: 14px 20px;
  }

  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card {
    padding: 16px 12px;
  }

  .stat-num {
    font-size: 1.6rem;
  }

  /* Cards & Sections Mobile */
  .vision-box {
    padding: 24px 20px;
  }

  .vision-quote {
    font-size: 1.05rem;
  }

  .step-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px;
  }

  .step-num {
    font-size: 1.5rem;
    min-width: auto;
  }

  .services-grid, .advantages-grid, .key-clients-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card, .adv-card, .client-case-card {
    padding: 24px 20px;
  }

  .sourcing-box {
    padding: 32px 20px;
  }

  .flow-steps-grid {
    flex-direction: column;
    gap: 12px;
  }

  .flow-step {
    width: 100%;
    padding: 16px;
  }

  .rfq-form-card {
    padding: 24px 20px;
  }

  /* Prevent auto-zoom on iOS Safari when tapping inputs */
  .form-group input, .form-group textarea {
    font-size: 16px !important;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

