/* ============================================================
   MEMENTO ENGINEERING — Main Stylesheet
   Aesthetic: Tech-Industrial / Dark Premium with Green Accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --green: #7ac143;
  --green-dark: #5a9130;
  --green-light: #e8f5d6;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --section-pad: 100px;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'DM Sans',sans-serif;background:var(--white);color:var(--gray-800);line-height:1.7;overflow-x:hidden}
h1,h2,h3,h4,h5{font-family:'Syne',sans-serif;line-height:1.2}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
ul{list-style:none}

/* NAV */
nav{position:fixed;top:0;left:0;right:0;z-index:999;padding:0 5%;transition:all .3s ease}
nav.scrolled{background:rgba(10,10,10,.97);backdrop-filter:blur(12px);box-shadow:0 2px 40px rgba(0,0,0,.3)}
.nav-inner{display:flex;align-items:center;justify-content:space-between;height:72px}
.nav-logo img{height:44px;width:auto}
.nav-links{display:flex;align-items:center;gap:36px}
.nav-links a{font-size:14px;font-weight:500;color:rgba(255,255,255,.85);letter-spacing:.5px;transition:color .2s}
.nav-links a:hover{color:var(--green)}
.nav-cta{background:var(--green);color:var(--black)!important;padding:10px 24px;border-radius:4px;font-weight:600!important;transition:background .2s!important}
.nav-cta:hover{background:var(--green-dark)!important}
.hamburger{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:4px}
.hamburger span{display:block;width:24px;height:2px;background:white;transition:.3s}
.mobile-menu{display:none;position:fixed;inset:0;background:rgba(10,10,10,.98);z-index:998;flex-direction:column;align-items:center;justify-content:center;gap:32px}
.mobile-menu.open{display:flex}
.mobile-menu a{font-family:'Syne',sans-serif;font-size:28px;font-weight:700;color:white;transition:color .2s}
.mobile-menu a:hover{color:var(--green)}

/* HERO */
#hero{
  min-height:100vh;
  position:relative;
  display:flex;
  align-items:center;
  background:var(--black);
  overflow:hidden;
  padding:120px 5% 80px;
}

.hero-bg{
  position:absolute;
  inset:0;
  background-image:url('../images/cover.webp');
  background-size:cover;
  background-position:center;
  opacity:.35;
  filter:saturate(.6);
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    135deg,
    rgba(10,10,10,.92) 35%,
    rgba(10,10,10,.72) 100%
  );
}

/* =========================
   MAIN CONTAINER
========================= */

.hero-container{
  position:relative;
  z-index:2;
  width:100%;
  display:grid;
  grid-template-columns:1.2fr .9fr;
  gap:70px;
  align-items:center;
}

/* =========================
   LEFT CONTENT
========================= */

.hero-content{
  max-width:820px;
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:rgba(122,193,67,.12);
  border:1px solid rgba(122,193,67,.3);
  color:var(--green);
  font-size:12px;
  font-weight:600;
  letter-spacing:2px;
  text-transform:uppercase;
  padding:8px 16px;
  border-radius:2px;
  margin-bottom:28px;
}

.hero-badge::before{
  content:'';
  width:6px;
  height:6px;
  background:var(--green);
  border-radius:50%;
  animation:pulse 2s infinite;
}

@keyframes pulse{
  0%,100%{
    opacity:1;
    transform:scale(1);
  }
  50%{
    opacity:.5;
    transform:scale(1.4);
  }
}

.hero-content h1{
  font-size:clamp(42px,6vw,80px);
  font-weight:800;
  color:white;
  margin-bottom:24px;
  letter-spacing:0;
  line-height:1.05;
}

.hero-content h1 span{
  color:var(--green);
}

.hero-content p{
  font-size:18px;
  color:rgba(255,255,255,.72);
  max-width:620px;
  margin-bottom:40px;
  line-height:1.8;
}

/* =========================
   BUTTONS
========================= */

.hero-btns{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

.btn-primary{
  background:var(--green);
  color:var(--black);
  font-family:'Syne',sans-serif;
  font-weight:700;
  font-size:14px;
  letter-spacing:.5px;
  padding:16px 36px;
  border-radius:4px;
  border:none;
  cursor:pointer;
  transition:all .25s ease;
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
}

.btn-primary:hover{
  background:var(--green-dark);
  transform:translateY(-2px);
}

.btn-secondary{
  background:transparent;
  color:white;
  font-family:'Syne',sans-serif;
  font-weight:600;
  font-size:14px;
  letter-spacing:.5px;
  padding:15px 36px;
  border-radius:4px;
  border:1.5px solid rgba(255,255,255,.3);
  cursor:pointer;
  transition:all .25s ease;
  text-decoration:none;
}

.btn-secondary:hover{
  border-color:white;
  background:rgba(255,255,255,.04);
}

/* =========================
   RIGHT METRICS
========================= */

.hero-visual{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

.hero-metric{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  padding:32px 28px;
  border-radius:10px;
  backdrop-filter:blur(8px);
  transition:.3s ease;
}

.hero-metric:hover{
  transform:translateY(-4px);
  border-color:rgba(122,193,67,.35);
}

.hero-metric strong{
  display:block;
  font-family:'Syne',sans-serif;
  font-size:38px;
  font-weight:800;
  color:var(--green);
  margin-bottom:10px;
  line-height:1;
}

.hero-metric span{
  color:rgba(255,255,255,.6);
  font-size:13px;
  line-height:1.7;
  text-transform:uppercase;
  letter-spacing:1px;
}

.hero-wide{
  grid-column:1/-1;
}

.hero-wide strong{
  font-size:24px;
  line-height:1.4;
}

/* =========================
   MOBILE STATS
========================= */

.hero-stats{
  display:none;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:1100px){

  #hero{
    padding:120px 5% 80px;
  }

  .hero-container{
    grid-template-columns:1fr;
    gap:60px;
  }

  .hero-content{
    max-width:100%;
  }

  .hero-content h1{
    font-size:clamp(42px,7vw,70px);
  }

}

@media(max-width:768px){

  #hero{
    min-height:auto;
    padding:100px 24px 70px;
  }

  .hero-content h1{
    font-size:42px;
    line-height:1.15;
  }

  .hero-content p{
    font-size:16px;
    margin-bottom:32px;
  }

  .hero-btns{
    flex-direction:column;
    align-items:flex-start;
  }

  .btn-primary,
  .btn-secondary{
    width:100%;
    justify-content:center;
  }

  .hero-visual{
    grid-template-columns:1fr;
  }

  .hero-metric{
    padding:28px 24px;
  }

  .hero-metric strong{
    font-size:32px;
  }

  .hero-wide strong{
    font-size:20px;
  }

}

@media(max-width:480px){

  .hero-content h1{
    font-size:34px;
  }

  .hero-content p{
    font-size:15px;
    line-height:1.75;
  }

  .hero-badge{
    font-size:11px;
    letter-spacing:1.5px;
  }

  .hero-metric{
    padding:24px 20px;
  }

}

/* SECTIONS */
section{padding:var(--section-pad) 5%}
.section-tag{display:inline-block;font-size:11px;font-weight:600;letter-spacing:3px;text-transform:uppercase;color:var(--green);margin-bottom:16px}
.section-title{font-size:clamp(28px,4vw,48px);font-weight:800;color:var(--black);margin-bottom:20px;letter-spacing:-1px}
.section-sub{font-size:17px;color:var(--gray-600);max-width:560px;line-height:1.8}
.section-header{margin-bottom:60px}

/* ABOUT */
#about{background:var(--gray-100)}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:center}
.about-img-wrap{position:relative}
.about-img-wrap img{width:100%;border-radius:8px;filter:brightness(.95)}
.about-badge-float{position:absolute;bottom:-20px;right:-20px;background:var(--black);color:white;padding:20px 24px;border-radius:6px;font-family:'Syne',sans-serif}
.about-badge-float strong{display:block;font-size:28px;color:var(--green);font-weight:800}
.about-badge-float span{font-size:11px;letter-spacing:1.5px;text-transform:uppercase;opacity:.7}
.about-points{margin-top:32px;display:flex;flex-direction:column;gap:16px}
.about-point{display:flex;align-items:flex-start;gap:14px}
.about-point-icon{width:36px;height:36px;background:var(--green-light);border-radius:4px;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:2px}
.about-point-icon svg{width:18px;height:18px;stroke:var(--green-dark)}
.about-point h4{font-size:15px;font-weight:600;margin-bottom:2px}
.about-point p{font-size:14px;color:var(--gray-600)}

/* SERVICES */
#services{background:var(--black)}
#services .section-title{color:white}
#services .section-tag{color:var(--green)}
#services .section-sub{color:rgba(255,255,255,.6)}
.services-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.06)}
.service-card{background:var(--black);padding:44px 36px;transition:background .3s;cursor:default;position:relative;overflow:hidden}
.service-card::before{content:'';position:absolute;bottom:0;left:0;right:0;height:3px;background:var(--green);transform:scaleX(0);transition:transform .3s;transform-origin:left}
.service-card:hover{background:#111}
.service-card:hover::before{transform:scaleX(1)}
.service-icon{width:56px;height:56px;background:rgba(122,193,67,.1);border-radius:6px;display:flex;align-items:center;justify-content:center;margin-bottom:24px;transition:background .3s}
.service-card:hover .service-icon{background:rgba(122,193,67,.2)}
.service-icon svg{width:28px;height:28px;stroke:var(--green)}
.service-card h3{font-size:20px;font-weight:700;color:white;margin-bottom:12px}
.service-card p{font-size:14px;color:rgba(255,255,255,.5);line-height:1.8}
.service-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:20px}
.service-tag{font-size:11px;padding:4px 10px;background:rgba(255,255,255,.06);color:rgba(255,255,255,.5);border-radius:3px;letter-spacing:.5px}

/* TECH STACK */
#tech{background:var(--white)}
.tech-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:20px;margin-top:48px}
.tech-card{padding:24px 20px;border:1.5px solid var(--gray-200);border-radius:8px;text-align:center;transition:all .2s}
.tech-card:hover{border-color:var(--green);transform:translateY(-4px);box-shadow:0 8px 30px rgba(122,193,67,.12)}
.tech-icon{width:48px;height:48px;margin:0 auto 12px;background:var(--gray-100);border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:24px}
.tech-card h4{font-size:13px;font-weight:600;color:var(--black);margin-bottom:4px}
.tech-card p{font-size:11px;color:var(--gray-400);line-height:1.5}

/* INDUSTRIES */
#industries{background:var(--gray-100)}
.industries-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.industry-card{background:white;padding:32px 28px;border-radius:8px;border:1px solid var(--gray-200);transition:all .3s;text-align:center}
.industry-card:hover{transform:translateY(-6px);box-shadow:0 20px 60px rgba(0,0,0,.08);border-color:var(--green)}
.industry-icon{font-size:40px;margin-bottom:16px}
.industry-card h3{font-size:17px;font-weight:700;margin-bottom:8px}
.industry-card p{font-size:13px;color:var(--gray-600);line-height:1.7}

/* WHY US */
#why{background:var(--black);overflow:hidden;position:relative}
#why::before{content:'';position:absolute;top:-200px;right:-200px;width:600px;height:600px;background:radial-gradient(circle,rgba(122,193,67,.06) 0%,transparent 70%)}
#why .section-title{color:white}
#why .section-tag{color:var(--green)}
#why .section-sub{color:rgba(255,255,255,.6)}
.why-grid{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}
.why-list{display:flex;flex-direction:column;gap:28px}
.why-item{display:flex;gap:20px;align-items:flex-start}
.why-num{font-family:'Syne',sans-serif;font-size:40px;font-weight:800;color:rgba(122,193,67,.2);line-height:1;flex-shrink:0;min-width:56px}
.why-text h3{font-size:18px;font-weight:700;color:white;margin-bottom:6px}
.why-text p{font-size:14px;color:rgba(255,255,255,.5);line-height:1.8}
.why-visual{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.why-metric{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:8px;padding:28px 24px;text-align:center}
.why-metric strong{display:block;font-family:'Syne',sans-serif;font-size:36px;font-weight:800;color:var(--green)}
.why-metric span{font-size:12px;color:rgba(255,255,255,.4);text-transform:uppercase;letter-spacing:1px;display:block;margin-top:6px}

/* CONTACT */
#contact{background:var(--gray-100)}
.contact-grid{display:grid;grid-template-columns:1fr 1.4fr;gap:60px}
.contact-info h2{font-size:36px;font-weight:800;margin-bottom:16px}
.contact-info p{font-size:15px;color:var(--gray-600);margin-bottom:36px;line-height:1.8}
.contact-detail{display:flex;align-items:flex-start;gap:14px;margin-bottom:24px}
.contact-detail-icon{width:44px;height:44px;background:var(--green-light);border-radius:6px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.contact-detail-icon svg{width:20px;height:20px;stroke:var(--green-dark)}
.contact-detail h4{font-size:13px;text-transform:uppercase;letter-spacing:1px;color:var(--gray-400);margin-bottom:2px}
.contact-detail p{font-size:15px;font-weight:500;color:var(--gray-800)}
.contact-detail a{color:var(--gray-800);transition:color .2s}
.contact-detail a:hover{color:var(--green-dark)}
.contact-social{display:flex;gap:12px;margin-top:32px}
.social-btn{width:40px;height:40px;border-radius:6px;background:var(--black);display:flex;align-items:center;justify-content:center;transition:background .2s}
.social-btn:hover{background:var(--green-dark)}
.social-btn svg{width:18px;height:18px;fill:white}

/* FORM */
.contact-form{background:white;padding:48px;border-radius:12px;box-shadow:0 4px 40px rgba(0,0,0,.06)}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.form-group{margin-bottom:20px}
.form-group label{display:block;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:1px;color:var(--gray-600);margin-bottom:8px}
.form-group input,.form-group select,.form-group textarea{width:100%;padding:12px 16px;border:1.5px solid var(--gray-200);border-radius:6px;font-family:'DM Sans',sans-serif;font-size:15px;color:var(--gray-800);outline:none;transition:border-color .2s;background:white}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:var(--green)}
.form-group textarea{resize:vertical;min-height:120px}
.form-required{color:var(--green-dark)}
.form-submit{background:var(--black);color:white;font-family:'Syne',sans-serif;font-weight:700;font-size:15px;letter-spacing:.5px;padding:16px 40px;border-radius:6px;border:none;cursor:pointer;width:100%;transition:background .2s;display:flex;align-items:center;justify-content:center;gap:8px}
.form-submit:hover{background:var(--green-dark)}
.form-msg{margin-top:16px;padding:12px 16px;border-radius:6px;font-size:14px;display:none}
.form-msg.success{background:#e8f5d6;color:var(--green-dark);display:block}
.form-msg.error{background:#fee2e2;color:#991b1b;display:block}

/* MAP PLACEHOLDER */
.map-wrap{border-radius:8px;overflow:hidden;height:200px;margin-top:32px;background:var(--gray-200);position:relative}
.map-wrap iframe{width:100%;height:100%;border:none}

/* FOOTER */
footer{background:#050505;color:rgba(255,255,255,.5);padding:60px 5% 32px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;margin-bottom:48px}
.footer-brand img{height:36px;margin-bottom:16px}
.footer-brand p{font-size:13px;line-height:1.8;max-width:280px}
.footer-col h4{font-family:'Syne',sans-serif;font-size:14px;font-weight:700;color:white;margin-bottom:20px;letter-spacing:.5px}
.footer-col ul{display:flex;flex-direction:column;gap:10px}
.footer-col ul li a{font-size:13px;color:rgba(255,255,255,.4);transition:color .2s}
.footer-col ul li a:hover{color:var(--green)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.06);padding-top:24px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}
.footer-bottom p{font-size:12px}
.footer-bottom a{color:var(--green);font-weight:500}

.footer-social-btn {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.08);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
  text-decoration: none;
}

.footer-social-btn:hover {
  background: rgba(122,193,67,.2);
}

.footer-social-btn svg {
  width: 14px;
  height: 14px;
  fill: rgba(255,255,255,.7);
}

/* SCROLL ANIMATION */
.reveal{opacity:0;transform:translateY(30px);transition:opacity .7s ease,transform .7s ease}
.reveal.visible{opacity:1;transform:none}

/* RESPONSIVE */
@media(max-width:1024px){
  .services-grid{grid-template-columns:1fr 1fr}
  .industries-grid{grid-template-columns:1fr 1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
  .why-grid,.about-grid{grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr}
}
@media(max-width:768px){
  :root{--section-pad:70px}
  .nav-links{display:none}
  .hamburger{display:flex}
  .services-grid{grid-template-columns:1fr}
  .industries-grid{grid-template-columns:1fr 1fr}
  .hero-stats{flex-direction:column}
  .stat-item{border-right:none;border-bottom:1px solid rgba(255,255,255,.08)}
  .stat-item:last-child{border-bottom:none}
  .form-row{grid-template-columns:1fr}
  .contact-form{padding:28px}
  .footer-grid{grid-template-columns:1fr}
  .why-visual{grid-template-columns:1fr 1fr}
  .about-badge-float{position:static;margin-top:16px;display:inline-block}
}