/* =========================
   /assets/css/theme.css
   EL-MECH Industrial Modern Theme
   Bootstrap 5.3 compatible
   ========================= */

:root{
  /* Neutral system */
  --bg:#0B1220;              /* base (deep ink) used in hero only */
  --surface:#ffffff;         /* cards */
  --page:#F4F7FB;            /* page background */
  --text:#0B1220;
  --muted:#5B6B84;
  --line:rgba(15,23,42,.10);

  /* Brand */
  --brand:#1B76D1;
  --brand2:#0F3A63;
  --accent:#F4B400;

  --radius:18px;
  --radius2:22px;

  --shadow: 0 18px 45px rgba(2,6,23,.12);
  --shadow2: 0 10px 25px rgba(2,6,23,.10);

  --ring: 0 0 0 4px rgba(27,118,209,.14);
}

html, body{ height:100%; }
body{
  background: var(--page);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: -0.01em;
}

a{ color: var(--brand); text-decoration: none; }
a:hover{ color: #145EA8; }

/* ===== Navbar ===== */
.em-navbar{
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.em-navbar .navbar-brand img{
  height: 44px;
  width: auto;
  object-fit: contain;
}

.em-navbar .nav-link{
  color: rgba(11,18,32,.72);
  font-weight: 650;
  padding: .55rem .85rem;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.em-navbar .nav-link:hover{
  color: rgba(11,18,32,.95);
  background: rgba(27,118,209,.08);
}
.em-navbar .nav-link.active{
  color: var(--brand2);
  background: rgba(27,118,209,.14);
  border: 1px solid rgba(27,118,209,.18);
}

.em-navbar .navbar-toggler{
  border: 1px solid rgba(11,18,32,.14);
  border-radius: 12px;
  padding: .45rem .6rem;
}

.btn-nav-cta{
  border-radius: 999px;
  font-weight: 850;
  padding: .6rem 1rem;
  color:#fff;
  background: linear-gradient(135deg, var(--brand), #145EA8);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 12px 26px rgba(27,118,209,.22);
}
.btn-nav-cta:hover{
  color:#fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(27,118,209,.30);
}

/* ===== Buttons ===== */
.btn-em{
  border-radius: 999px;
  font-weight: 800;
  padding: .85rem 1.2rem;
}
.btn-em-primary{
  border-radius: 999px;
  font-weight: 850;
  padding: .85rem 1.25rem;
  border: none;
  color:#fff;
  background: linear-gradient(135deg, var(--brand), #145EA8);
  box-shadow: 0 14px 32px rgba(27,118,209,.22);
}
.btn-em-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(27,118,209,.30);
  color:#fff;
}
.btn-em-outline{
  border-radius: 999px;
  font-weight: 850;
  padding: .85rem 1.25rem;
  background:#fff;
  border: 1px solid rgba(15,23,42,.14);
  color: rgba(11,18,32,.90);
}
.btn-em-outline:hover{
  border-color: rgba(27,118,209,.35);
  box-shadow: var(--shadow2);
}

/* ===== Hero (single cohesive top section) ===== */
.em-hero{
  position: relative;
  border-radius: var(--radius2);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(900px 500px at 10% 20%, rgba(27,118,209,.25), transparent 55%),
    radial-gradient(900px 520px at 90% 10%, rgba(244,180,0,.12), transparent 60%),
    linear-gradient(180deg, #0B1220 0%, #0F1E36 70%, #101828 100%);
  color:#fff;
}

.em-hero-inner{
  padding: 2.2rem 2.2rem 2rem;
}

.em-kicker{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:.4rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  font-weight: 800;
  font-size: .86rem;
  color: rgba(255,255,255,.92);
}
.em-kicker .dot{
  width:10px;height:10px;border-radius:999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(244,180,0,.15);
}

.em-hero h1{
  font-size: clamp(2.0rem, 3.0vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: .85rem 0 .75rem;
}

.em-hero p{
  color: rgba(255,255,255,.78);
  font-size: 1.05rem;
  max-width: 54ch;
}

.em-hero-card{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem;
  backdrop-filter: blur(8px);
}

.em-hero-card .mini{
  color: rgba(255,255,255,.78);
  font-size: .92rem;
}

.em-badges{
  display:flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.em-badge{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.4rem .65rem;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.90);
  font-weight: 750;
  font-size: .82rem;
}
.em-badge .tick{
  width:18px;height:18px;border-radius:999px;
  display:inline-flex;align-items:center;justify-content:center;
  background: rgba(244,180,0,.18);
  border: 1px solid rgba(244,180,0,.25);
  color: #fff;
  font-size: .8rem;
}

/* ===== Carousel inside hero (looks intentional) ===== */
.em-carousel{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 12px 26px rgba(2,6,23,.18);
  background: rgba(255,255,255,.04);
}

.em-carousel .carousel-item{ position: relative; }
.em-carousel .carousel-item img{
  width: 100%;
  height: 320px;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  display:block;
}

.em-overlay{
  position:absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  padding: 14px 14px 12px;
  border-radius: 16px;
  color:#fff;
  background: linear-gradient(180deg, rgba(2,6,23,.10), rgba(2,6,23,.76));
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
}

.em-overlay .tag{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: .78rem;
  background: rgba(27,118,209,.92);
  border: 1px solid rgba(255,255,255,.18);
}

.em-overlay h3{
  font-size: 1.1rem;
  line-height: 1.2;
  margin: 8px 0 4px;
}

.em-overlay .desc{
  opacity: .92;
  font-size: .95rem;
  line-height: 1.25;
}

.em-overlay .btn{
  border-radius: 999px;
  font-weight: 850;
  padding: .5rem .95rem;
}

/* Carousel dots */
.em-carousel .carousel-indicators [data-bs-target]{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin: 0 4px;
}

/* ===== Sections ===== */
.em-section{
  padding: 2.2rem 0;
}

.em-title{
  font-weight: 900;
  letter-spacing: -0.02em;
}

.em-sub{
  color: var(--muted);
}

/* ===== Cards ===== */
.em-card{
  background: var(--surface);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(2,6,23,.06);
}
.em-card-hover{
  transition: transform .15s ease, box-shadow .15s ease;
}
.em-card-hover:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(2,6,23,.12);
}

.em-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(27,118,209,.10);
  border: 1px solid rgba(27,118,209,.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--brand2);
}

.em-soft{
  background: linear-gradient(180deg, #ffffff 0%, #F2F6FC 100%);
  border-top: 1px solid rgba(15,23,42,.06);
  border-bottom: 1px solid rgba(15,23,42,.06);
}

/* ===== Modal ===== */
.em-modal{
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: var(--shadow);
}

/* ===== Mobile polish ===== */
@media (max-width: 576px){
  .em-navbar .navbar-brand img{ height: 38px; }
  .em-hero-inner{ padding: 1.35rem 1.2rem 1.2rem; }
  .em-carousel .carousel-item img{ height: 220px; }
  .em-overlay{ left: 12px; right: 12px; bottom: 12px; padding: 10px 12px; }
  .em-overlay h3{ font-size: 1rem; }
}



/* =========================
   Hero background: engineering gradient + subtle blueprint grid
   ========================= */
.em-hero{
  background:
    /* faint blueprint grid */
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    /* spotlight accents */
    radial-gradient(900px 520px at 12% 20%, rgba(27,118,209,.35), transparent 60%),
    radial-gradient(900px 520px at 90% 10%, rgba(244,180,0,.14), transparent 62%),
    /* base gradient */
    linear-gradient(135deg, #071326 0%, #0B1D38 45%, #0A1424 100%) !important;

  background-size:
    44px 44px,   /* grid size */
    44px 44px,
    auto,
    auto,
    auto;

  border: 1px solid rgba(255,255,255,.12);
}

/* =========================
   Slider overlay: compact card + mobile strip
   ========================= */

/* Desktop/tablet: compact overlay card that doesn't cover the image */
.em-overlay{
  left: 16px !important;
  right: auto !important;
  bottom: 16px !important;
  width: min(420px, calc(100% - 32px));
  padding: 12px 12px 10px !important;
  border-radius: 14px !important;
}

.em-overlay .tag{
  padding: 5px 9px;
  font-size: .74rem;
}

.em-overlay h3{
  font-size: 1.02rem !important;
  margin: 7px 0 4px !important;
}

.em-overlay .desc{
  font-size: .92rem;
  line-height: 1.25;
  max-width: 46ch;
}

/* Buttons: keep small + single line when possible */
.em-overlay .btn{
  padding: .45rem .75rem !important;
  font-weight: 850;
}

/* Mobile: turn overlay into a thin bottom strip (no image cover) */
@media (max-width: 576px){
  .em-carousel .carousel-item img{ height: 220px; }

  .em-overlay{
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    width: auto !important;
    padding: 10px 10px 8px !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, rgba(2,6,23,.18), rgba(2,6,23,.72)) !important;
  }

  .em-overlay .desc{
    display: none; /* key: remove description on mobile so image shows */
  }

  .em-overlay h3{
    font-size: .95rem !important;
    margin: 6px 0 6px !important;
  }

  .em-overlay .btn{
    padding: .4rem .65rem !important;
    font-size: .86rem;
  }
}
/* =========================
   Footer: distinguished end-cap
   ========================= */
.em-footer{
  background:
    radial-gradient(700px 240px at 12% 0%, rgba(27,118,209,.12), transparent 60%),
    radial-gradient(700px 240px at 92% 0%, rgba(244,180,0,.10), transparent 65%),
    linear-gradient(180deg, #ffffff 0%, #F1F6FF 100%);
  border-top: 1px solid rgba(15,23,42,.10);
}

.em-footer .em-footer-card{
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(2,6,23,.10);
}

.em-footer .em-footer-h{
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #0B1220;
}

.em-footer a{ color: rgba(11,18,32,.80); }
.em-footer a:hover{ color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }

.em-footer-bottom{
  background: linear-gradient(90deg, #071326 0%, #0B1D38 60%, #071326 100%);
  color: rgba(255,255,255,.82);
  border-top: 1px solid rgba(255,255,255,.08);
}
.em-footer-bottom a{ color: rgba(255,255,255,.92); }
.em-footer-bottom a:hover{ color:#fff; }
/* =========================
   WhatsApp: pronounced CTA
   ========================= */
.btn-em-whatsapp{
  border-radius: 999px;
  font-weight: 950;
  padding: .85rem 1.2rem;
  color:#fff;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 55%, #15803d 100%);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 16px 34px rgba(34,197,94,.30);
}
.btn-em-whatsapp:hover{
  color:#fff;
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(34,197,94,.38);
}
.btn-em-whatsapp:focus{
  box-shadow: var(--ring), 0 20px 44px rgba(34,197,94,.38);
}
/* =========================
   Slider overlay: text-only (no panel)
   ========================= */

.em-overlay{
  background: none !important;
  border: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;

  padding: 0 !important;
  max-width: 520px;
  left: 20px !important;
  bottom: 20px !important;
  right: auto !important;

  color: #fff;
}

/* Badge stays readable */
.em-badge{
  background: rgba(27,118,209,.92) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  box-shadow: 0 10px 20px rgba(0,0,0,.18);
}

/* Text readability without a panel */
.em-overlay h3,
.em-overlay div{
  text-shadow:
    0 2px 16px rgba(0,0,0,.45),
    0 1px 2px rgba(0,0,0,.35);
}

/* Tighten typography */
.em-overlay h3{
  font-size: 1.25rem;
  font-weight: 900;
  margin: 10px 0 6px !important;
}
.em-overlay div{
  font-size: 1rem;
  opacity: .95;
}

/* Buttons: strong contrast without needing a panel */
.em-overlay .btn-light{
  font-weight: 900;
  border: none;
  box-shadow: 0 14px 30px rgba(0,0,0,.28);
}
.em-overlay .btn-outline-light{
  font-weight: 850;
  border-width: 2px;
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}

/* Mobile: keep overlay compact and reduce coverage */
@media (max-width: 576px){
  .em-overlay{
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    max-width: none;
  }

  .em-overlay div{
    display: none; /* hide description on mobile so image shows */
  }

  .em-overlay h3{
    font-size: 1.02rem;
    margin: 8px 0 8px !important;
  }

  .em-overlay .btn{
    padding: .42rem .70rem !important;
    font-size: .9rem;
  }
}
/* Subtle readability fade at bottom of image (no panel) */
.em-carousel .carousel-item::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.45) 100%);
  z-index: 2;
}
.em-overlay{ z-index: 3; }
/* =========================
   Footer: stronger identity + card surface
   ========================= */
.em-footer{
  background:
    radial-gradient(900px 260px at 12% 0%, rgba(27,118,209,.16), transparent 60%),
    radial-gradient(900px 260px at 92% 0%, rgba(244,180,0,.10), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #F1F6FF 100%);
  border-top: 1px solid rgba(15,23,42,.10);
}

.em-footer .container{
  position: relative;
}

/* Add a subtle "surface" behind footer content */
.em-footer .row{
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 18px 44px rgba(2,6,23,.10);
}

/* Brand logo polish */
.em-footer img{
  height: 48px;
  width: auto;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 12px 30px rgba(2,6,23,.10);
}

/* Footer headings and links */
.em-footer-h{
  font-weight: 950;
  letter-spacing: -.01em;
  color: #0B1220;
}
.em-footer-links a{
  color: rgba(11,18,32,.80);
  font-weight: 650;
}
.em-footer-links a:hover{
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Contact pill icons */
.em-icon-pill{
  background: rgba(27,118,209,.12);
  border: 1px solid rgba(27,118,209,.18);
}

/* WhatsApp more pronounced */
.btn-em-whatsapp{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;

  width: 100%;
  max-width: 260px;

  border-radius: 999px;
  font-weight: 950;
  padding: .75rem 1.05rem;

  background: linear-gradient(135deg, #22c55e 0%, #16a34a 55%, #15803d 100%);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.20);
  box-shadow: 0 18px 40px rgba(34,197,94,.30);
}
.btn-em-whatsapp:hover{
  transform: translateY(-1px);
  box-shadow: 0 24px 52px rgba(34,197,94,.38);
}

/* Bottom bar stronger */
.em-footer-bottom{
  background: linear-gradient(90deg, #071326 0%, #0B1D38 55%, #071326 100%);
  border-top: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.86);
}
.em-footer-bottom a{
  color: rgba(255,255,255,.92);
}
.em-footer-bottom a:hover{
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Mobile: reduce padding */
@media (max-width: 576px){
  .em-footer .row{
    padding: 16px;
    border-radius: 18px;
  }
  .btn-em-whatsapp{
    max-width: none;
  }
}
/* ===== Footer logo sizing ===== */
.em-footer-logo{
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* ===== Dealer badge in footer ===== */
.em-dealer-footer{
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: rgba(15,23,42,.04);
  border: 1px solid rgba(15,23,42,.10);
}
.em-dealer-footer-logo{
  height: 18px;
  width: auto;
  object-fit: contain;
}
.em-dealer-footer-text{
  font-size: .82rem;
  font-weight: 850;
  color: rgba(11,18,32,.70);
}

/* Small footer pills */
.em-foot-pill{
  display: inline-flex;
  align-items: center;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: rgba(27,118,209,.10);
  border: 1px solid rgba(27,118,209,.18);
  font-weight: 850;
  font-size: .78rem;
  color: rgba(11,18,32,.78);
}

/* Make WhatsApp more pronounced */
.btn-em-whatsapp{
  font-weight: 950 !important;
  padding: .85rem 1.05rem !important;
  border-radius: 999px !important;
  box-shadow: 0 18px 40px rgba(34,197,94,.34) !important;
}
.btn-em-whatsapp:hover{
  transform: translateY(-1px);
  box-shadow: 0 24px 52px rgba(34,197,94,.40) !important;
}

/* Mobile tighten */
@media (max-width: 576px){
  .em-dealer-footer-text{ font-size: .78rem; }
}
/* =========================
   Benefits section upgrade
   ========================= */
.em-benefits{
  position: relative;
  padding: 3.25rem 0;
  background:
    radial-gradient(900px 520px at 10% 10%, rgba(11,92,255,.12), transparent 60%),
    radial-gradient(900px 520px at 90% 0%, rgba(244,180,0,.10), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  border-top: 1px solid rgba(15,23,42,.06);
  border-bottom: 1px solid rgba(15,23,42,.06);
  overflow: hidden;
}

/* subtle “engineering grid” pattern (no image needed) */
.em-benefits::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    linear-gradient(transparent 0 19px, rgba(11,18,32,.05) 20px),
    linear-gradient(90deg, transparent 0 19px, rgba(11,18,32,.05) 20px);
  background-size: 20px 20px;
  opacity: .22;
  mask-image: radial-gradient(circle at 30% 20%, rgba(0,0,0,.9), transparent 65%);
  pointer-events:none;
}

.em-benefits .container{ position:relative; z-index:1; }

.em-benefits-title{
  letter-spacing: -0.02em;
}

.em-benefits-sub{
  max-width: 62ch;
  color: rgba(11,18,32,.66);
}

/* CTA button in section header */
.btn-em-cta{
  border-radius: 999px;
  font-weight: 850;
  padding: .85rem 1.25rem;
  background: linear-gradient(135deg, #0B5CFF, #073BBA);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 18px 38px rgba(11,92,255,.28);
}
.btn-em-cta:hover{
  color:#fff;
  transform: translateY(-1px);
  box-shadow: 0 22px 48px rgba(11,92,255,.34);
}

/* Card styling */
.em-benefit-card{
  position: relative;
  border-radius: 22px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 14px 40px rgba(7,26,58,.08);
  backdrop-filter: blur(8px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
}

/* accent top line */
.em-benefit-card::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height: 5px;
  background: linear-gradient(90deg, #0B5CFF, #69B5FF, rgba(244,180,0,.85));
  opacity: .95;
}

.em-benefit-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 22px 60px rgba(7,26,58,.14);
  border-color: rgba(11,92,255,.22);
}

/* Number badge: smaller, stronger, more “designed” */
.em-step{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  color: #0B1F3B;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(105,181,255,.25)),
    linear-gradient(135deg, rgba(11,92,255,.18), rgba(11,92,255,.04));
  border: 1px solid rgba(11,92,255,.22);
  box-shadow: 0 10px 22px rgba(11,92,255,.12);
}

.em-benefit-h{
  margin-top: .9rem;
  letter-spacing: -0.01em;
}

.em-benefit-p{
  color: rgba(11,18,32,.70);
  margin-bottom: 0;
  line-height: 1.55;
}

/* Mobile spacing */
@media (max-width: 576px){
  .em-benefits{ padding: 2.25rem 0; }
}
