/* ═══════════════════════════════════════════
   MATECH GROUPE SA — matech.css
   ═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #3E8FB0;
  --blue-dark:  #2A6A87;
  --blue-pale:  #EBF4F9;
  --black:      #0C0C0C;
  --dark:       #141414;
  --grey:       #555;
  --grey-mid:   #999;
  --grey-light: #E8E8E8;
  --bg:         #F8F7F5;
  --white:      #FFFFFF;
  --font:       'Poppins', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); background: var(--white); color: var(--dark); -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* ── UTILS ── */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 48px; }
.sec  { padding: 110px 0; }
.sec--dark { background: var(--dark); }
.sec--grey { background: var(--bg); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ''; display: block; width: 28px; height: 1.5px; background: var(--blue); }

h1 { font-size: clamp(44px, 6.5vw, 88px); font-weight: 300; line-height: 1.05; letter-spacing: -0.025em; }
h2 { font-size: clamp(32px, 4vw, 56px); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

p { font-size: 16px; line-height: 1.75; font-weight: 300; color: var(--grey); }
strong { font-weight: 600; color: var(--blue); }
a { text-decoration: none; color: inherit; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px;
  font-family: var(--font); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: none; cursor: pointer;
  transition: all 0.28s cubic-bezier(.4,0,.2,1);
}
.btn-primary   { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(62,143,176,.35); }
.btn-ghost     { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-outline   { background: transparent; color: var(--dark); border: 1px solid rgba(0,0,0,.18); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn svg { width: 15px; height: 15px; transition: transform .28s ease; }
.btn:hover svg { transform: translateX(4px); }

/* ── NAV ── */
nav#matech-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: 68px; display: flex; align-items: center;
  padding: 0 48px; justify-content: space-between;
  background: rgba(255,255,255,.93); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: box-shadow .3s ease;
}
.nav-brand { display: flex; flex-direction: column; gap: 1px; }
.nav-brand-name { font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--black); }
.nav-brand-sub  { font-size: 8.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--grey);
  position: relative; padding-bottom: 3px; transition: color .2s;
}
.nav-links a::after {
  content:''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px; background: var(--blue); transition: width .3s ease;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: #fff; background: var(--blue);
  padding: 10px 22px; transition: background .25s;
}
.nav-cta:hover { background: var(--blue-dark); }

/* ── HERO ── */
#hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: flex-end; position: relative; overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1486325212027-8081e485255e?w=1800&q=80');
  background-size: cover; background-position: center;
  opacity: .16; mix-blend-mode: luminosity;
}
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #0a1520 0%, #111 40%, rgba(10,10,10,.9) 100%);
}
.hero-lines { position: absolute; top: 0; right: 10%; width: 1px; height: 100%; background: rgba(255,255,255,.04); }
.hero-lines::before { content:''; position: absolute; right: -80px; top: 0; width: 1px; height: 100%; background: rgba(255,255,255,.03); }
.hero-lines::after  { content:''; position: absolute; right: -180px; top: 0; width: 1px; height: 100%; background: rgba(255,255,255,.025); }
.hero-accent { position: absolute; top: 0; right: 0; width: 380px; height: 3px; background: var(--blue); }

.hero-inner {
  position: relative; z-index: 2;
  max-width: 1240px; margin: 0 auto; width: 100%;
  padding: 0 48px 72px;
  display: grid; grid-template-columns: 1fr 380px;
  align-items: end; gap: 80px;
}
.hero-tag { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; opacity: 0; animation: fadeUp .7s ease .15s forwards; }
.hero-tag-line { width: 32px; height: 1px; background: var(--blue); }
.hero-tag span { font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,.4); }
#hero h1 { color: #fff; margin-bottom: 28px; opacity: 0; animation: fadeUp .7s ease .3s forwards; }
#hero h1 em { font-style: italic; font-weight: 300; color: var(--blue); }
.hero-desc { font-size: 17px; font-weight: 300; line-height: 1.7; color: rgba(255,255,255,.45); max-width: 520px; margin-bottom: 44px; opacity: 0; animation: fadeUp .7s ease .45s forwards; }
.hero-btns { display: flex; gap: 14px; opacity: 0; animation: fadeUp .7s ease .6s forwards; }
.hero-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(12px); padding: 36px 32px; opacity: 0; animation: fadeIn 1s ease .9s forwards; }
.hero-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.07); }
.stat { padding: 24px 20px; background: rgba(0,0,0,.3); display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-size: 36px; font-weight: 200; color: #fff; letter-spacing: -0.02em; line-height: 1; }
.stat-lbl { font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,.3); }
.hero-strip { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.06); padding: 18px 48px; max-width: 1240px; margin: 0 auto; width: 100%; display: flex; align-items: center; gap: 32px; }
.strip-label { font-size: 9px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,.2); white-space: nowrap; }
.strip-items { display: flex; gap: 0; flex: 1; }
.strip-items span { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,.35); padding: 0 24px; border-left: 1px solid rgba(255,255,255,.08); }
.strip-items span:first-child { border-left: none; padding-left: 0; }

/* ── ABOUT ── */
#about .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; }
.about-img { aspect-ratio: 4/5; overflow: hidden; position: relative; }
.about-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.about-img:hover img { transform: scale(1.04); }
.about-img-badge { position: absolute; bottom: -1px; right: -1px; background: var(--blue); color: #fff; padding: 20px 28px; }
.about-img-badge .big { font-size: 32px; font-weight: 200; display: block; line-height: 1; }
.about-img-badge .small { font-size: 9px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.about-text .eyebrow { margin-bottom: 20px; }
.about-text h2 { margin-bottom: 24px; }
.about-text p { margin-bottom: 20px; }
.about-vals { margin-top: 40px; display: flex; flex-direction: column; }
.about-val { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid var(--grey-light); }
.about-val:last-child { border-bottom: 1px solid var(--grey-light); }
.about-val-num { font-size: 11px; font-weight: 600; color: var(--blue); letter-spacing: 0.1em; padding-top: 2px; flex-shrink: 0; width: 24px; }
.about-val-content h4 { font-size: 13px; margin-bottom: 4px; color: var(--dark); }
.about-val-content p { font-size: 14px; margin: 0; }

/* ── SERVICES ── */
#services { background: var(--bg); }
.services-top { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; margin-bottom: 56px; }
.tabs-bar { display: flex; border-bottom: 1px solid var(--grey-light); }
.tab { font-family: var(--font); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 14px 28px; background: none; border: none; cursor: pointer; color: var(--grey-mid); position: relative; transition: color .25s; }
.tab::after { content:''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform .3s ease; }
.tab.on { color: var(--blue); }
.tab.on::after { transform: scaleX(1); }
.tab:hover { color: var(--dark); }
.panel { display: none; }
.panel.on { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; padding: 56px 0; }
.panel-img { aspect-ratio: 3/2; overflow: hidden; }
.panel-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.panel-img:hover img { transform: scale(1.05); }
.panel-text h3 { font-size: 28px; margin-bottom: 14px; }
.panel-text p  { margin-bottom: 28px; }
.service-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; }
.service-list li { font-size: 13px; font-weight: 400; color: var(--grey); display: flex; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.service-list li::before { content:''; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }

/* ── PROCESS ── */
#process { background: var(--dark); }
#process .eyebrow { color: #6aaec8; }
#process .eyebrow::before { background: #6aaec8; }
#process h2 { color: #fff; margin: 16px 0 64px; }
.steps { display: grid; grid-template-columns: repeat(5,1fr); gap: 2px; }
.step { padding: 40px 28px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); position: relative; overflow: hidden; transition: background .3s; }
.step:hover { background: rgba(255,255,255,.06); }
.step::after { content:''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.step:hover::after { transform: scaleX(1); }
.step-n { font-size: 52px; font-weight: 200; color: rgba(255,255,255,.06); line-height: 1; margin-bottom: 24px; letter-spacing: -0.03em; }
.step-bar { width: 20px; height: 2px; background: var(--blue); margin-bottom: 16px; }
.step h4 { color: #fff; font-size: 11px; margin-bottom: 10px; }
.step p  { font-size: 13px; line-height: 1.65; color: rgba(255,255,255,.32); }

/* ── PROJECTS ── */
#projects .proj-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
.proj-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 300px 260px; gap: 3px; }
.proj { position: relative; overflow: hidden; background: var(--dark); cursor: pointer; }
.proj:first-child { grid-row: span 2; }
.proj img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.4,0,.2,1), opacity .45s ease; display: block; }
.proj:hover img { transform: scale(1.07); opacity: .65; }
.proj-meta { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 22px; background: linear-gradient(transparent, rgba(0,0,0,.82)); opacity: 0; transform: translateY(6px); transition: all .38s ease; }
.proj:hover .proj-meta { opacity: 1; transform: translateY(0); }
.proj-meta strong { display: block; font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 3px; }
.proj-meta span   { font-size: 11px; font-weight: 400; color: var(--blue); letter-spacing: 0.08em; text-transform: uppercase; }
.proj:first-child .proj-meta { opacity: 1; transform: translateY(0); }

/* ── CTA ── */
#cta { background: var(--blue); padding: 90px 0; position: relative; overflow: hidden; }
#cta::before { content:'MATECH'; position: absolute; right: -20px; top: 50%; transform: translateY(-50%); font-size: 220px; font-weight: 800; letter-spacing: -0.04em; color: rgba(255,255,255,.05); pointer-events: none; line-height: 1; }
.cta-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 60px; }
#cta h2 { color: #fff; font-size: clamp(30px,3.5vw,50px); }
#cta p  { color: rgba(255,255,255,.65); font-size: 17px; margin-top: 10px; }
.cta-btns { display: flex; gap: 14px; flex-shrink: 0; }

/* ── CONTACT ── */
#contact .cont-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
.cont-info .eyebrow { margin-bottom: 24px; }
.cont-info h2 { margin-bottom: 32px; }
.cont-detail { padding: 20px 0; border-top: 1px solid var(--grey-light); }
.cont-detail:last-of-type { border-bottom: 1px solid var(--grey-light); }
.cont-detail .lbl { font-size: 9px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--grey-mid); margin-bottom: 5px; }
.cont-detail a, .cont-detail span { font-size: 16px; font-weight: 300; color: var(--dark); transition: color .2s; }
.cont-detail a:hover { color: var(--blue); }
.map-box { margin-top: 36px; height: 220px; overflow: hidden; border: 1px solid var(--grey-light); }
.map-box iframe { width: 100%; height: 100%; border: none; display: block; }

/* ── FORM ── */
.matech-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg { display: flex; flex-direction: column; gap: 6px; }
.fg label { font-size: 9px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey-mid); }
.fg input, .fg textarea, .fg select {
  font-family: var(--font); font-size: 14px; font-weight: 300;
  color: var(--dark); background: var(--white);
  border: 1px solid var(--grey-light);
  padding: 13px 16px; outline: none; border-radius: 0;
  -webkit-appearance: none; transition: border-color .25s; width: 100%;
}
.fg input:focus, .fg textarea:focus, .fg select:focus { border-color: var(--blue); }
.fg textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 12px; color: var(--grey-mid); margin-top: 8px; }
.form-feedback { font-size: 14px; padding: 12px 18px; margin-top: 8px; display: none; }
.form-feedback.ok  { background: #e6f4ea; color: #2e7d32; display: block; }
.form-feedback.err { background: #fdecea; color: #c62828; display: block; }

/* ── FOOTER ── */
footer { background: var(--black); padding: 64px 0 32px; }
.foot-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 28px; }
.foot-brand-name { font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; }
.foot-brand-sub  { font-size: 8px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.foot-brand p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.3); }
.foot-col h5 { font-size: 9px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,.25); margin-bottom: 18px; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 13px; font-weight: 300; color: rgba(255,255,255,.42); transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; }
.foot-bottom p, .foot-bottom a { font-size: 11px; color: rgba(255,255,255,.2); }
.foot-bottom a:hover { color: rgba(255,255,255,.5); }

/* ── SCROLL REVEAL ── */
.r { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.r.in { opacity: 1; transform: translateY(0); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .wrap { padding: 0 24px; }
  nav#matech-nav { padding: 0 24px; }
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 60px 24px 48px; }
  .hero-card { display: none; }
  .hero-strip { padding: 16px 24px; flex-wrap: wrap; }
  #about .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-top { grid-template-columns: 1fr; gap: 32px; }
  .panel.on { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .proj-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .proj:first-child { grid-row: span 1; }
  .cta-inner { grid-template-columns: 1fr; gap: 28px; }
  #contact .cont-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .foot-bottom { flex-direction: column; gap: 12px; }
}
