@font-face {
  font-family: 'CascadeScript';
  src: url('../fonts/CascadeScriptLTStd.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
:root{
  --blue:#0B5ED7;
  --blue-dark:#0A2540;
  --orange:#FF6A00;
  --bg:#cad8e5;
  --text:#1A1A1A;
  --muted:#171819;
  --card:#f2ede8;
  --border:#3d79f1;
  --shadow: 0 10px 30px rgba(10,37,64,.08);
  --radius: 16px;
  --radius2: 22px;
  --container: 1160px;
  --trans: 180ms ease;
  font-synthesis-weight:none;
}

*{box-sizing:border-box}
html,body{margin:0; padding:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial; color:var(--text); background: #fff;}
a{color:inherit; text-decoration:none}
.container{max-width:1600px; margin:0 auto; padding:0 18px;}
.muted{color:var(--muted)}
.spacer-12{height:12px}
.spacer-20{height:20px}
.spacer-32{height:32px}

.topbar{background:var(--blue-dark); color:#fff; font-size:13px}
.topbar-inner{display:flex; justify-content:space-between; align-items:center; padding:10px 0; gap:14px}
.pill{background:rgba(255,255,255,.14); padding:6px 10px; border-radius:999px; display:inline-block}
.toplink{opacity:.9}
.toplink:hover{opacity:1}

.nav{position:sticky; top:0; z-index:50; background:#fff; border-bottom:1px solid var(--border)}
.nav-inner{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0}
.brand{display:flex; gap:12px; align-items:center}
.logo{width:82px; height:82px; object-fit:contain}
.brand-name{font-family: 'CascadeScript', cursive; font-size: 34px; letter-spacing: 1px; color:#0b4a8b;}
.brand-tag{font-size:22px; color:var(--muted); margin-top:2px}

.nav-links{display:flex; gap:16px; align-items:center}
.nav-links a{padding:10px 10px; border-radius:12px; color:var(--blue-dark)}
.nav-links a:hover{background:var(--bg)}
.nav-links a.active{background:rgba(11,94,215,.08); color:var(--blue); font-weight:700}

.nav-cta{display:flex; gap:10px; align-items:center}
.btn{display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:11px 14px; border-radius:14px; border:1px solid transparent; transition:var(--trans); font-weight:700; cursor:pointer}
.btn-primary{background:var(--orange); color:#fff; box-shadow:0 10px 25px rgba(255,106,0,.25)}
.btn-primary:hover{transform:translateY(-1px)}
.btn-outline{border-color:var(--border); background:#fff}
.btn-outline:hover{border-color:rgba(11,94,215,.35); color:var(--blue)}
.nav-toggle{display:none; border:1px solid var(--border); background:#fff; padding:10px 12px; border-radius:14px; font-size:18px}

.hero{
  background: linear-gradient(180deg, var(--bg), #fff);
  padding: 42px 0 12px;
}
.hero-grid{display:grid; grid-template-columns: 1.1fr .9fr; gap:22px; align-items:center}
.kicker{display:inline-flex; gap:10px; align-items:center; padding:8px 12px; background:#fff; border:1px solid var(--border); border-radius:999px; box-shadow: var(--shadow); font-size:13px}
.h1{font-size:44px; line-height:1.05; margin:14px 0 10px; color:var(--blue-dark)}
.h1 span{color:var(--blue)}
.lead{font-size:16px; color:var(--muted); line-height:1.7; margin:0 0 16px}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:10px}
.hero-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius0);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.hero-img{width:100%; height:320px; object-fit:cover; display:block; background: #dbeafe}
.hero-img-alt{padding:18px; display:grid; gap:10px}
.statgrid{display:grid; grid-template-columns:repeat(5,1fr); gap:5px; padding:2px}
.stat{background:var(--bg); border:1px solid var(--border); border-radius:16px; padding:14px}
.stat b{font-size:18px; color:var(--blue-dark)}
.section{padding:44px 0}
.section-title{font-size:26px; margin:0 0 6px; color:var(--blue-dark)}
.section-sub{margin:0 0 18px; color:var(--muted); line-height:1.6}

.grid4{display:grid; grid-template-columns:repeat(4,1fr); gap:14px}
.card{
  background:rgb(255, 255, 255);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: 0 12px 28px rgba(10,37,64,.06);
  transition:var(--trans);
}
.card:hover{transform:translateY(-2px)}
.card-icon{
  width:44px; height:44px; border-radius:14px;
  background:rgba(11,94,215,.08);
  display:flex; align-items:center; justify-content:center;
  font-weight:900; color:var(--blue);
  margin-bottom:10px;
}
.card h3{margin:0 0 6px; font-size:16px}
.card p{margin:0; color:var(--muted); line-height:1.6; font-size:14px}
.badge-row{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}
.badge{background:rgba(255,106,0,.10); color:#9A3E00; border:1px solid rgba(255,106,0,.25); padding:7px 10px; border-radius:999px; font-size:13px; font-weight:700}

.split{display:grid; grid-template-columns:1fr 1fr; gap:16px}
.list{display:grid; gap:10px}
.li{display:flex; gap:10px; align-items:flex-start; padding:12px; background:var(--bg); border:1px solid var(--border); border-radius:16px}
.dot{width:10px; height:10px; border-radius:50%; background:var(--orange); margin-top:5px}

.cta{
  background: linear-gradient(90deg, rgba(11,94,215,.10), rgba(255,106,0,.12));
  border:1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.cta h3{margin:0; font-size:18px}
.cta p{margin:4px 0 0; color:var(--muted)}

.footer{background:var(--blue-dark); color:#fff; margin-top:40px}
.footer-grid{display:grid; grid-template-columns: 1.2fr .6fr 1.2fr; gap:16px; padding:34px 0}
.footer-title{font-weight:800; margin-bottom:10px}
.footer-link{display:block; opacity:.9; padding:6px 0}
.footer-link:hover{opacity:1; text-decoration:underline}
.footer-bottom{border-top:1px solid rgba(232, 224, 224, 0.14); padding:14px 0; display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap}
.footer a{color:#fff; text-decoration:underline; text-underline-offset:3px}

.form{
  display:grid; gap:12px;
  background:var(--card); border:1px solid var(--border);
  border-radius: var(--radius2); padding:18px; box-shadow: var(--shadow);
}
.input, textarea, select{
  width:100%;
  border:1px solid var(--border);
  border-radius: 14px;
  padding:12px 12px;
  font-size:14px;
  outline:none;
  background:#fff;
}
.input:focus, textarea:focus, select:focus{border-color: rgba(11,94,215,.45); box-shadow: 0 0 0 4px rgba(11,94,215,.08)}
label{font-weight:700; font-size:13px; color:var(--blue-dark)}
.row2{display:grid; grid-template-columns:1fr 1fr; gap:12px}

.alert{
  border-radius:14px;
  padding:12px 14px;
  border:1px solid var(--border);
  background: var(--bg);
}
.alert.ok{border-color: rgba(16,185,129,.35); background: rgba(16,185,129,.10)}
.alert.bad{border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.10)}

.wa-float{
  position: fixed; right: 18px; bottom: 18px;
  background: #25D366; color:#fff;
  padding: 12px 14px; border-radius: 999px;
  font-weight:800;
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
  z-index: 60;
}

/* Photo placeholders */
.ph-img{
  width:100%;
  height:180px;
  border-radius:16px;
  border:1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(11,94,215,.10), rgba(255,106,0,.12)),
    repeating-linear-gradient(45deg, rgba(10,37,64,.06), rgba(10,37,64,.06) 10px, rgba(255,255,255,.0) 10px, rgba(255,255,255,.0) 20px);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color:rgba(10,37,64,.55);
  text-align:center;
  padding:10px;
}

.gallery{display:grid; grid-template-columns:repeat(3,1fr); gap:14px}

/* Admin mini UI */
.adminbar{
  background: rgba(11,94,215,.06);
  border:1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

#btnFactory, #btnOffice{ width:100%; }

@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
  .grid4{grid-template-columns:1fr 1fr}
  .split{grid-template-columns:1fr}
  .nav-toggle{display:inline-flex}
  .nav-links,.nav-cta{display:none}
  body.nav-open .nav-links{display:flex; flex-direction:column; gap:6px; padding:12px; border:1px solid var(--border); border-radius:16px; background:#fff; position:absolute; left:18px; right:18px; top:74px}
  body.nav-open .nav-cta{display:flex; flex-direction:column; position:absolute; left:18px; right:18px; top:260px; background:#fff; padding:12px; border:1px solid var(--border); border-radius:16px}
  .gallery{grid-template-columns:1fr 1fr}
}

@media (max-width: 560px){
  .grid4{grid-template-columns:1fr}
  .h1{font-size:34px}
  .row2{grid-template-columns:1fr}
  .gallery{grid-template-columns:1fr}
}
/* Apply Cascade Script to all MECHOTRONIX text */
.brand-name,
.footer-title,
.logo-text,
.site-name {
    font-family: 'CascadeScript', cursive !important;
    letter-spacing: 1px;
}
/* Footer: make muted text white-ish ONLY inside footer */
.footer .muted{
  color: rgba(255,255,255,.75);
}
.footer a{
  color:#fff;
}
/* MECHOTRONIX font */
.site-name{
    font-family: 'CascadeScript', cursive !important;
    font-size: 44px;
    letter-spacing: 1px;
    color:#1d8eff;
}

/* Tagline smaller */
.tagline{
    font-family: Arial, sans-serif;
    font-size: 18px;
    margin-left: 10px;
    color:#ffffff;
}
/* Homepage logo spacing control */
.hero-title{
    line-height: 1.05;   /* tight overall */
    margin-bottom: 10px;
}

.hero-title .site-name{
    font-family: 'CascadeScript', cursive !important;
    font-size: 48px;
    line-height: 1;      /* remove extra gap */
    display:block;
    margin-bottom: 0;
}

.hero-title .tagline{
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 1.1;
    margin-top: -38px;    /* pulls tagline closer */
    display:block;
}
/* Homepage logo spacing control */
.hero1-title{
    line-height: 1.05;   /* tight overall */
    margin-bottom: 10px;
}

.hero1-title .site-name{
    font-family: 'CascadeScript', cursive !important;
    font-size: 38px;
    line-height: 1;      /* remove extra gap */
    display:block;
    color: #b2c7e3;
    margin-bottom: 0;
}

.hero1-title .tagline{
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.1;
    color: #b2c7e3;
    margin-top: -38px;    /* pulls tagline closer */
    display:block;
}
/* About page MECHOTRONIX font */
.about-name{
    font-family: 'CascadeScript', cursive !important;
    font-size: 28px;
    letter-spacing: 1px;
    color:#0b4a8b;
}
/* Scrolling customer logos */
  .logo-strip {
  max-width: 900px;  /* or 80%, etc. */
  margin: 0 auto;
  padding-inline: 1rem;
  background: #f2ede8;
    max-width: 1600px;
}
  .logo-strip .strip-head{
    display:flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 10px;
  }
  .logo-strip .strip-head .muted{ margin:0; }
  .marquee{
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  }
  .marquee-track{
    display:flex;
    gap: 22px;
    width: max-content;
    animation: mech_scroll 26s linear infinite;
    padding: 10px 0;
  }
  .marquee:hover .marquee-track{ animation-play-state: paused; }

  @keyframes mech_scroll{
    from{ transform: translateX(0); }
    to{ transform: translateX(-50%); }
  }
  .logo-item{
    width: 150px;
    height: 56px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding: 8px 14px;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(2,6,23,.06);
  }
  .logo-item img{
    max-height: 34px;
    width: auto;
    opacity: .92;
    filter: grayscale(0%);
    transition: .2s ease;
  }
  .logo-item:hover img{
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.02);
  }

  /* Responsive */
  @media (max-width: 980px){
    .hero.hero--full{ padding: 56px 0; }
    .hero-grid.hero-grid--clean{ grid-template-columns: 1fr; }
    .hero--full .hero-img{ height: 210px; }
  }
  .hero.hero--full{
  min-height: 650px;
}

.hero-img{
  height: 650px;
}

  .strip-head-row {
  display: flex;
  align-items: baseline;     /* or center */
  gap: 0.5rem;               /* space between text */
  flex-wrap: nowrap;         /* force single line */
  white-space: nowrap;       /* prevent wrapping inside text */
}

.strip-head-row .section-title,
.strip-head-row .muted {
  margin: 0;
}
/* Product card layout */
.product-card .card-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:8px;
}

.product-card .card-title{
  font-size:20px;       /* increase font */
  font-weight:700;
  margin:0;
}

.product-card .card-icon{
  width:44px;
  height:44px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:14px;
  background:#0b5ed7;
  color:#fff;
}

/* description spacing */
.product-card p{
  margin-top:6px;
  font-size:14px;
  color:#555;
}
/* ===== World-class hero slider ===== */
.hero-slider{ border-radius:14px; overflow:hidden; }
.hero-slide{ position:relative; }

.hero-slide .hero-img{
  width:100%;
  height:520px;                 /* DESKTOP HERO HEIGHT */
  object-fit:cover;
  display:block;
  transform:scale(1.02);
  filter:saturate(1.02) contrast(1.02);
}

/* Readability overlay */
.hero-slide::after{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(900px 420px at 20% 40%, rgba(11,94,215,.20), transparent 60%),
    radial-gradient(900px 420px at 80% 30%, rgba(255,122,0,.18), transparent 60%),
    linear-gradient(90deg, rgba(2,6,23,.62), rgba(2,6,23,.18));
  pointer-events:none;
}

/* Premium left text block */
.hero-copy{
  position:absolute;
  left:46px;
  top:50%;
  transform:translateY(-50%);
  z-index:2;

  max-width:620px;
  padding:22px 24px;
  border-radius:16px;

  background:linear-gradient(90deg, rgba(2,6,23,.55), rgba(2,6,23,.14));
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px);

  opacity:0;
  transform-origin:left center;
}

/* Kicker */
.hero-kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  letter-spacing:.22em;
  font-weight:800;
  font-size:12px;
  color:rgba(255,255,255,.88);
  text-transform:uppercase;
}
.hero-kicker::before{
  content:"";
  width:10px; height:10px;
  border-radius:999px;
  background:#ff7a00;
  box-shadow:0 0 0 6px rgba(255,122,0,.14);
}

/* Headline */
.hero-headline{
  margin-top:12px;
  font-weight:900;
  font-size:46px;
  line-height:1.08;
  color:#fff;
  letter-spacing:-.4px;
}

/* Underline swipe (orange) */
.hero-underline{
  height:4px;
  width:0;
  margin:14px 0 10px;
  border-radius:999px;
  background:linear-gradient(90deg, #ff7a00, rgba(255,122,0,.25));
}

/* Subline */
.hero-sub{
  color:rgba(255,255,255,.86);
  font-size:15px;
  line-height:1.55;
}

/* Swiper dots */
.hero-slider .swiper-pagination-bullet{ opacity:.55; }
.hero-slider .swiper-pagination-bullet-active{ opacity:1; }

/* ===== Animations (synced with slide change) ===== */
.hero-copy.is-anim{
  animation: heroCopyIn .65s ease forwards;
}
.hero-copy.is-anim .hero-underline{
  animation: heroLineIn .75s ease .15s forwards;
}
@keyframes heroCopyIn{
  from{ opacity:0; transform:translateY(-50%) translateX(-10px); }
  to  { opacity:1; transform:translateY(-50%) translateX(0); }
}
@keyframes heroLineIn{
  from{ width:0; }
  to  { width:160px; }
}

/* Ken Burns: only on active slide image */
.swiper-slide-active .hero-img{
  animation: heroKenBurns 6.2s ease-in-out forwards;
}
@keyframes heroKenBurns{
  from{ transform:scale(1.02); }
  to  { transform:scale(1.08); }
}

/* Mobile */
@media (max-width: 980px){
  .hero-slide .hero-img{ height:320px; }
  .hero-copy{
    left:16px; right:16px;
    max-width:none;
    padding:14px 14px;
  }
  .hero-headline{ font-size:26px; }
  .hero-sub{ font-size:13px; }
}
@media(max-width:980px){
  .hero-headline{ font-size:20px; }
  .hero-headline .big{ font-size:34px; }
}
.hero-headline{
  margin-top:12px;
  font-weight:800;
  font-size:28px;
  line-height:1.15;
  color:#fff;
}

.hero-headline .big{
  display:block;
  font-size:64px;
  font-weight:900;
  letter-spacing:1px;
}
@media(max-width:980px){
  .hero-headline{ font-size:20px; }
  .hero-headline .big{ font-size:34px; }
}