/* ============================================================
   MONTECH SOLUTIONS — SHARED STYLESHEET
   ============================================================ */

/* ---- Design Tokens ---- */
:root {
  --blue:         #2563eb;
  --blue-dark:    #1d4ed8;
  --blue-light:   #eff6ff;
  --blue-mid:     #dbeafe;
  --cyan:         #0891b2;
  --bg:           #ffffff;
  --bg-alt:       #f8fafc;
  --bg-card:      #ffffff;
  --border:       #e2e8f0;
  --border-mid:   #cbd5e1;
  --text:         #0f172a;
  --text-muted:   #64748b;
  --text-light:   #94a3b8;
  --hero-bg:      #0f172a;
  --hero-mid:     #1e293b;
  --hero-border:  #334155;
  --font-head:    'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:    0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:    0 10px 40px rgba(0,0,0,.1);
  --shadow-xl:    0 20px 60px rgba(0,0,0,.12);
  --shadow-blue:  0 8px 24px rgba(37,99,235,.28);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); overflow-x: hidden; line-height: 1.65; }
img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
h1,h2,h3,h4,h5 { font-family: var(--font-head); line-height: 1.15; color: var(--text); }
.container { width: min(1240px, 100% - 3rem); margin-inline: auto; }
.section { padding: 6rem 0; }
.section--alt { background: var(--bg-alt); }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 4px; }

/* ---- Typography Helpers ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 1rem;
}
.eyebrow::before { content: ''; display: block; width: 18px; height: 2px; background: var(--blue); border-radius: 1px; }
.section-title { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 800; color: var(--text); margin-bottom: 1rem; }
.section-sub { color: var(--text-muted); max-width: 560px; font-size: 1.03rem; line-height: 1.72; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600;
  border-radius: 8px; cursor: pointer; border: none;
  transition: all .22s ease; text-decoration: none; line-height: 1;
}
.btn-primary { background: var(--blue); color: #fff; padding: .72rem 1.6rem; font-size: .92rem; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--shadow-blue); }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); padding: .72rem 1.6rem; font-size: .92rem; }
.btn-outline:hover { background: var(--blue-light); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--blue); padding: .72rem 1.6rem; font-size: .92rem; box-shadow: var(--shadow-md); }
.btn-light:hover { background: var(--blue-light); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-lg { padding: .9rem 2.2rem; font-size: 1rem; }

/* ---- Tags ---- */
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { background: var(--blue-light); color: var(--blue); font-size: .73rem; font-weight: 500; padding: .22rem .7rem; border-radius: 50px; border: 1px solid var(--blue-mid); }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  padding: 1rem 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: all .3s ease;
}
.nav.scrolled { padding: .7rem 0; background: rgba(255,255,255,.98); border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__logo { display: flex; align-items: center; gap: .65rem; font-family: var(--font-head); font-weight: 800; font-size: 1.22rem; color: var(--text); }
.nav__logo-img { height: 44px; width: auto; display: block; object-fit: contain; }
.nav__logo-fallback { width: 38px; height: 38px; background: var(--blue); border-radius: 8px; display: none; place-items: center; color: #fff; font-size: .9rem; flex-shrink: 0; }
.nav__links { display: flex; list-style: none; gap: 2.2rem; }
.nav__links a { font-size: .88rem; font-weight: 500; color: var(--text-muted); position: relative; transition: color .2s; }
.nav__links a::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 2px; background: var(--blue); border-radius: 1px; transition: width .25s ease; }
.nav__links a:hover, .nav__links a.active { color: var(--blue); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: .3rem; }
.nav__hamburger span { display: block; width: 23px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }
.nav__mobile { display: none; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-top: .5rem; padding: .75rem; gap: .15rem; box-shadow: var(--shadow-lg); }
.nav__mobile.open { display: flex; }
.nav__mobile a { padding: .65rem 1rem; border-radius: 8px; font-size: .92rem; color: var(--text-muted); transition: all .2s; }
.nav__mobile a:hover, .nav__mobile a.active { background: var(--blue-light); color: var(--blue); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--hero-bg); color: #fff;
  padding: 8rem 0 5rem; position: relative; overflow: hidden;
}
.page-hero__grid {
  position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(rgba(255,255,255,.032) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,.032) 1px,transparent 1px);
  background-size: 60px 60px; animation: gridDrift 30s linear infinite;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}
@keyframes gridDrift { 0%{transform:translate(0,0)} 100%{transform:translate(60px,60px)} }
.page-hero__blob { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; animation: blobDrift 14s ease-in-out infinite alternate; }
.page-hero__blob-1 { width: 420px; height: 420px; background: rgba(37,99,235,.2); top: -120px; right: -60px; }
.page-hero__blob-2 { width: 260px; height: 260px; background: rgba(8,145,178,.16); bottom: -40px; left: 5%; animation-delay: -5s; }
@keyframes blobDrift { from{transform:translate(0,0) scale(1)} to{transform:translate(20px,-30px) scale(1.08)} }
.page-hero__inner { position: relative; z-index: 2; max-width: 680px; }
.page-hero__badge { display: inline-flex; align-items: center; gap: .55rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: .38rem 1rem; border-radius: 50px; font-size: .8rem; color: rgba(255,255,255,.82); margin-bottom: 1.8rem; }
.page-hero__title { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; color: #fff; margin-bottom: 1rem; }
.page-hero__title .accent { background: linear-gradient(90deg, #60a5fa, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero__desc { color: rgba(255,255,255,.68); font-size: 1.05rem; line-height: 1.75; max-width: 520px; }
.page-hero__breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: rgba(255,255,255,.45); margin-top: 1.8rem; }
.page-hero__breadcrumb a { color: rgba(255,255,255,.55); transition: color .2s; }
.page-hero__breadcrumb a:hover { color: #fff; }
.page-hero__breadcrumb i { font-size: .65rem; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, #1e40af 100%);
  padding: 6rem 0; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 28px 28px; }
.cta-banner__inner { position: relative; z-index: 2; }
.cta-banner h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: #fff; margin-bottom: .9rem; }
.cta-banner p { color: rgba(255,255,255,.82); max-width: 540px; margin: 0 auto 2.2rem; font-size: 1.03rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--hero-bg); color: rgba(255,255,255,.7); padding: 5rem 0 2.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 3rem; margin-bottom: 4rem; }
.footer__brand p { color: rgba(255,255,255,.48); font-size: .88rem; margin: 1rem 0 1.5rem; max-width: 270px; line-height: 1.72; }
.footer__socials { display: flex; gap: .65rem; }
.footer__socials a { width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center; color: rgba(255,255,255,.52); font-size: .82rem; transition: all .22s; }
.footer__socials a:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }
.footer__col h4 { font-size: .92rem; color: #fff; margin-bottom: 1.2rem; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer__col ul a { font-size: .86rem; color: rgba(255,255,255,.48); transition: color .2s; }
.footer__col ul a:hover { color: #fff; }
.footer__contact-list { display: flex; flex-direction: column; gap: .85rem; }
.footer__contact-item { display: flex; gap: .65rem; align-items: flex-start; }
.footer__contact-item i { color: #60a5fa; font-size: .82rem; margin-top: .25rem; }
.footer__contact-item span { font-size: .85rem; color: rgba(255,255,255,.48); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 2rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer__bottom p { font-size: .82rem; color: rgba(255,255,255,.36); }
.footer__bottom-links { display: flex; gap: 1.5rem; }
.footer__bottom-links a { font-size: .82rem; color: rgba(255,255,255,.36); transition: color .2s; }
.footer__bottom-links a:hover { color: rgba(255,255,255,.7); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav__links, .nav__cta-btn { display: none; }
  .nav__hamburger { display: flex; }
  .section { padding: 4.5rem 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 2.2rem; }
}
@media (max-width: 480px) {
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
