/**
 * M-Fix Mobiles — Global styles
 * Primary gradient: 135deg rgb(2,3,129) → rgb(40,116,252)
 */

:root {
  --mf-primary-start: rgb(2, 3, 129);
  --mf-primary-end: rgb(40, 116, 252);
  --mf-gradient: linear-gradient(135deg, var(--mf-primary-start) 0%, var(--mf-primary-end) 100%);
  --mf-shadow: 0 0.5rem 1.25rem rgba(2, 3, 129, 0.18);
  --mf-radius: 0.75rem;
  /* Same gold as .hero-brand-name (navbar icon + hero brand line) */
  --mf-brand-gold: #c9a227;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1a1d24;
  padding-bottom: 4.5rem;
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

/* Top bar */
.top-bar {
  background: var(--mf-gradient);
}

/* Navbar */
.bg-navbar {
  background: rgba(2, 3, 129, 0.96);
  backdrop-filter: blur(8px);
}

.navbar .nav-link {
  font-weight: 500;
  padding: 0.5rem 0.75rem !important;
  border-radius: 0.375rem;
  transition: background-color 0.2s, color 0.2s;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  background-color: rgba(255, 255, 255, 0.08);
}

.navbar .nav-link.active {
  background: rgba(40, 116, 252, 0.35);
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 162, 39, 0.45);
  font-size: 1.25rem;
}

.brand-mark i {
  color: var(--mf-brand-gold);
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.85)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55))
    drop-shadow(0 2px 12px rgba(255, 215, 80, 0.35));
}

/* Navbar tagline: compact type on small screens; full size from lg up */
.brand-tagline {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

@media (max-width: 991.98px) {
  .brand-tagline {
    font-size: 0.8125rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
  }
}

.navbar-brand {
  max-width: calc(100% - 3.75rem);
}

.navbar-brand .brand-text {
  min-width: 0;
}

.btn-cta {
  background: var(--mf-gradient);
  border: none;
  color: #fff !important;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--mf-shadow);
  color: #fff !important;
}

/* Hero */
.hero-section {
  background: var(--mf-gradient);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12), transparent 45%);
  pointer-events: none;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

/* Brand line above hero H1 — dark gold for contrast on blue gradient */
.hero-brand-name {
  font-size: clamp(1.05rem, 2.75vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mf-brand-gold);
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.8),
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 2px 12px rgba(255, 215, 80, 0.35);
}

/* Secondary positioning line under brand — readable on gradient */
.hero-repair-research-line {
  font-size: clamp(0.95rem, 2.5vw, 1.125rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero-visual {
  box-shadow: 0 0.5rem 2rem rgba(2, 3, 129, 0.22);
}

.hero-chip-svg {
  width: 100%;
  height: auto;
  max-height: min(22rem, 52vh);
  display: block;
}

.hero-visual-caption {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.875rem, 2.8vw, 1rem);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

@media (min-width: 992px) {
  .hero-chip-svg {
    max-height: min(26rem, 58vh);
  }
}

.hero-badges .badge {
  background: rgba(255, 255, 255, 0.15);
  font-weight: 500;
  padding: 0.45em 0.75em;
}

.btn-hero-outline {
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  font-weight: 600;
}

.btn-hero-outline:hover {
  background: #fff;
  color: var(--mf-primary-start);
}

/* Hero — WhatsApp CTA (brand green + glow) */
.btn-hero-whatsapp {
  background-color: #25d366;
  border: 2px solid #1dae58;
  color: #fff !important;
  font-weight: 700;
  box-shadow:
    0 4px 16px rgba(37, 211, 102, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease,
    filter 0.15s ease;
}

.btn-hero-whatsapp:hover {
  background-color: #1ebe57;
  border-color: #19924a;
  color: #fff !important;
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    0 8px 26px rgba(37, 211, 102, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-hero-whatsapp:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.btn-hero-whatsapp:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 0.2rem rgba(255, 255, 255, 0.95),
    0 0 0 0.45rem rgba(37, 211, 102, 0.65);
}

/* Section titles */
.section-title {
  font-weight: 700;
  color: var(--mf-primary-start);
}

.section-lead {
  max-width: 42rem;
}

/* Cards */
.card-soft {
  border: none;
  border-radius: var(--mf-radius);
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.card-soft:hover {
  transform: translateY(-4px);
  box-shadow: var(--mf-shadow);
}

.icon-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mf-gradient);
  color: #fff;
  font-size: 1.25rem;
}

.icon-circle-lg {
  width: 3.625rem;
  height: 3.625rem;
  font-size: 1.375rem;
}

/* Services preview — enterprise-style tiles (centered icon + title) */
#services-preview .service-tile {
  background: #fff;
  border: 1px solid rgba(2, 3, 129, 0.09);
  overflow: hidden;
}

#services-preview .service-tile:hover {
  border-color: rgba(40, 116, 252, 0.28);
  box-shadow: 0 1rem 2.5rem rgba(2, 3, 129, 0.11);
}

#services-preview .service-tile .icon-circle-lg {
  box-shadow: 0 8px 22px rgba(2, 3, 129, 0.2);
}

#services-preview .service-tile-title {
  color: var(--mf-primary-start);
  letter-spacing: -0.018em;
  max-width: 15rem;
}

#services-preview .service-tile-desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  max-width: 17.5rem;
}

/* Brands slider */
.brands-track {
  display: flex;
  animation: brands-scroll 28s linear infinite;
  gap: 3rem;
  width: max-content;
}

.brands-slider-wrap:hover .brands-track {
  animation-play-state: paused;
}

@keyframes brands-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(2, 3, 129, 0.12);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--mf-primary-start);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Brand marquee logos: compact on phone, larger from laptop up */
.brand-pill-svg {
  min-width: 5.75rem;
  padding: 0.45rem 1.1rem;
  color: #1d1d1f;
}

.brand-logo-svg {
  display: block;
  height: 1.5rem;
  width: auto;
  max-width: 6.5rem;
}

.brand-logo-svg--apple {
  height: 1.65rem;
  width: 1.35rem;
  max-width: none;
}

.brand-logo-svg--oneplus {
  max-width: 3.5rem;
}

.brand-logo-svg--mi {
  max-width: 4.25rem;
}

@media (min-width: 992px) {
  .brand-pill-svg {
    min-width: 11.5rem;
    padding: 0.9rem 2.2rem;
  }

  .brand-logo-svg {
    height: 3rem;
    max-width: 13rem;
  }

  .brand-logo-svg--apple {
    height: 3.3rem;
    width: 2.7rem;
  }

  .brand-logo-svg--oneplus {
    max-width: 7rem;
  }

  .brand-logo-svg--mi {
    max-width: 8.5rem;
  }
}

.brands-mask {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* Growth timeline */
.growth-item {
  border-left: 3px solid transparent;
  border-image: var(--mf-gradient) 1;
  padding-left: 1rem;
  margin-bottom: 1rem;
}

/* Footer */
.footer-new {
  background: linear-gradient(160deg, rgb(8, 12, 56) 0%, rgb(2, 3, 129) 50%, rgb(20, 70, 160) 100%);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Footer — contact column: icon + text rows (multi-line address) */
.footer-new .footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-new .footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.footer-new .footer-contact-icon {
  flex: 0 0 1.125rem;
  width: 1.125rem;
  text-align: center;
  line-height: 1.45;
  padding-top: 0.12em;
  opacity: 0.95;
}

.footer-new .footer-contact-icon i {
  display: block;
  font-size: 0.85rem;
  line-height: 1.45;
}

.footer-new .footer-contact-text {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.45;
}

/* Floating WhatsApp */
.btn-float-whatsapp {
  position: fixed;
  right: 1rem;
  bottom: 5rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
  z-index: 1065;
  transition: transform 0.2s;
}

.btn-float-whatsapp:hover,
.btn-float-whatsapp:focus,
.btn-float-whatsapp:focus-visible,
.btn-float-whatsapp:active {
  transform: scale(1.06);
  color: #fff !important;
  text-decoration: none !important;
}

.btn-float-whatsapp i {
  text-decoration: none !important;
  line-height: 1;
  display: block;
}

@media (min-width: 992px) {
  .btn-float-whatsapp {
    bottom: 1.5rem;
  }
}

/* Sticky mobile call bar */
.sticky-call {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  background: var(--mf-gradient);
  color: #fff !important;
  padding: 0.75rem 1rem;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 -4px 20px rgba(2, 3, 129, 0.25);
}

.sticky-call:hover {
  color: #fff !important;
  filter: brightness(1.05);
}

/* Contact form */
.form-control:focus {
  border-color: rgb(40, 116, 252);
  box-shadow: 0 0 0 0.2rem rgba(40, 116, 252, 0.2);
}

.map-embed {
  border-radius: var(--mf-radius);
  overflow: hidden;
  box-shadow: var(--mf-shadow);
}

/* Contact — full-width map band (stays above footer, no clipping) */
.contact-map-band {
  position: relative;
  z-index: 2;
  isolation: isolate;
  padding-bottom: 4.5rem;
}

.contact-map-shell {
  max-width: 1600px;
  border-radius: 0;
}

@media (min-width: 992px) {
  .contact-map-shell {
    border-radius: var(--mf-radius);
  }
}

.contact-map-iframe {
  display: block;
  width: 100%;
  height: min(52vh, 520px);
  min-height: 360px;
  border: 0;
}

.page-contact main#main-content {
  overflow-x: hidden;
}

/* Training growth & performance (matches bg-light-soft + primary accents) */
.section-training-growth {
  background: linear-gradient(180deg, #f4f7ff 0%, #fff 100%);
  color: #1a1d24;
  /* Prevent wide SVG / row margins from widening the page on mobile (fixes horizontal scroll + fixed bar clipping) */
  overflow-x: hidden;
  max-width: 100%;
}

.section-training-growth .growth-prose {
  line-height: 1.65;
  font-size: 1rem;
}

.section-training-growth .growth-emphasis {
  color: var(--mf-primary-start);
  font-weight: 700;
}

.growth-chart-legend {
  border-bottom: 1px solid rgba(2, 3, 129, 0.12);
}

.section-training-growth .growth-chart-legend span.small {
  color: #1a1d24;
  font-weight: 500;
}

.growth-chart-card {
  background: #fff;
  border: 1px solid rgba(2, 3, 129, 0.08);
  box-shadow: 0 0.25rem 1rem rgba(2, 3, 129, 0.07);
  max-width: 100%;
  min-width: 0;
}

.growth-chart-svg-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.growth-legend-swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
  flex-shrink: 0;
}

.growth-legend-swatch--mac {
  background: #5da9e9;
}

.growth-legend-swatch--android {
  background: #00d2c1;
}

.growth-legend-swatch--iphone {
  background: #0a0a0a;
  border: 1px solid rgba(0, 0, 0, 0.22);
}

.growth-chart-svg {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  display: block;
}

.growth-chart-svg .growth-seg-inner {
  transform: scaleX(0);
  transform-origin: left center;
  transform-box: fill-box;
  animation: growthBarGrow 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes growthBarGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .growth-chart-svg .growth-seg-inner {
    animation: none !important;
    transform: scaleX(1) !important;
  }
}

.section-training-growth .growth-insights-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.6rem;
  color: #4a5568;
  line-height: 1.5;
}

.section-training-growth .growth-insights-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(40, 116, 252);
  box-shadow: 0 0 0 2px rgba(40, 116, 252, 0.2);
}

.section-training-growth .growth-insights-foot {
  color: #5c6370;
  line-height: 1.65;
  font-size: 0.98rem;
}

/* About — testimonials / feedback */
.about-feedback-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mf-primary-start);
}

.about-testimonials-banner {
  background: var(--mf-gradient);
  box-shadow: var(--mf-shadow);
  max-width: 100%;
}

.about-testimonials-wrap .testimonial-card {
  background: #eef2f9;
  border-radius: var(--mf-radius);
  box-shadow: 0 0.2rem 0.85rem rgba(2, 3, 129, 0.06);
}

.about-testimonials-wrap .testimonial-avatar {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(2, 3, 129, 0.2);
}

.about-testimonials-wrap .testimonial-avatar--f {
  background: linear-gradient(145deg, rgb(40, 116, 252) 0%, rgb(120, 165, 235) 100%);
}

.about-testimonials-wrap .testimonial-avatar--m {
  background: linear-gradient(145deg, rgb(2, 3, 129) 0%, rgb(46, 91, 186) 100%);
}

.about-testimonials-wrap .testimonial-stars {
  font-size: 0.85rem;
  color: rgb(40, 116, 252);
  letter-spacing: 0.08em;
}

.about-testimonials-wrap .carousel-indicators.about-testimonial-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin: 0 0.35rem;
  border: none;
  background-color: rgba(2, 3, 129, 0.22);
  opacity: 1;
  transition: background-color 0.2s, transform 0.2s;
}

.about-testimonials-wrap .carousel-indicators.about-testimonial-dots button.active {
  background-color: rgb(2, 3, 129);
  transform: scale(1.15);
}

@media (prefers-reduced-motion: reduce) {
  #aboutTestimonials.carousel .carousel-item {
    transition: none !important;
  }
}

/* About — HiTech TV: thumbnail links to Facebook Watch */
.about-video-thumb-link {
  max-width: 52rem;
}

.about-video-thumb-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.95), 0 0 0 0.45rem rgba(40, 116, 252, 0.45);
  border-radius: 1rem;
}

.about-video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    filter 0.2s ease,
    transform 0.25s ease;
}

.about-video-thumb-link:hover .about-video-thumb-img {
  filter: brightness(0.92);
  transform: scale(1.02);
}

.about-video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  pointer-events: none;
  transition: background 0.2s ease;
}

.about-video-thumb-link:hover .about-video-play-overlay {
  background: rgba(0, 0, 0, 0.38);
}

.about-video-play-circle {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.about-video-play-circle i {
  font-size: 1.35rem;
  margin-left: 0.2rem;
}

/* Home — workflow trust cards */
.home-workflow-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
  .home-workflow-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--mf-shadow) !important;
  }
}

/* Utilities */
.bg-light-soft {
  background: linear-gradient(180deg, #f4f7ff 0%, #fff 100%);
}

.text-gradient {
  background: var(--mf-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
