/* ==========================================================================
   Engineering Store and Services MMC — engstores.com
   Brand: blue (#0b5cab / #3aa0ff) + red (#e01f26 / #ff6a3d)
   ========================================================================== */

:root {
  --blue-900: #063a6e;
  --blue-700: #0b5cab;
  --blue-500: #1e88e5;
  --blue-300: #3aa0ff;
  --red-600:  #e01f26;
  --red-400:  #ff6a3d;
  --ink:      #e9eff7;
  --muted:    #94a5b8;
  --line:     rgba(255,255,255,.10);
  --bg:       #0a1420;
  --bg-soft:  #0e1c2c;
  --surface:  #102032;
  --radius:   14px;
  --shadow:   0 16px 42px rgba(0, 0, 0, .5);
  --wrap:     1160px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.ico { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--blue-900);
  color: #cfe2f6;
  font-size: 13px;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 40px; gap: 16px; }
.topbar__contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__link { display: inline-flex; align-items: center; gap: 7px; color: #cfe2f6; }
.topbar__link:hover { color: #fff; }
.topbar__meta { opacity: .8; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid #e6ebf1;
}
/* Header həmişə açıq fonlu — loqo mətni tünddür, ona görə öz rəngləri */
.header .nav a { color: #16202b; }
.header .nav a:not(.nav__cta):hover { color: var(--blue-700); }
.header .lang { border-color: #e0e6ee; }
.header .lang button { color: #5a6b7b; }
.header .lang button:hover { color: var(--blue-700); }
.header .burger span { background: #16202b; }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 122px; }

.brand { display: inline-flex; align-items: center; }
.brand__img { height: 94px; width: auto; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-weight: 600; font-size: 15px; color: var(--ink); position: relative; }
.nav a:not(.nav__cta):hover { color: var(--blue-700); }
.nav a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--red-600); transition: width .25s ease;
}
.nav a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: #fff !important; padding: 9px 18px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(11,92,171,.28);
}
.nav__cta:hover { filter: brightness(1.05); }

/* Language switcher */
.lang { display: inline-flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-left: 18px; }
.lang button { border: 0; background: none; font: inherit; font-weight: 700; font-size: 13px; padding: 6px 11px; border-radius: 999px; cursor: pointer; color: var(--muted); line-height: 1; transition: .2s; }
.lang button:hover { color: var(--blue-700); }
.lang button.is-active { background: linear-gradient(135deg, var(--blue-700), var(--blue-500)); color: #fff; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: 10px; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(255,106,61,.35), transparent 60%),
    radial-gradient(900px 600px at 10% 120%, rgba(58,160,255,.30), transparent 60%),
    linear-gradient(135deg, #08375f 0%, #0b5cab 55%, #124a86 100%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 42px 42px; mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%);
}
.hero__inner { position: relative; z-index: 1; padding: 84px 22px 96px; max-width: 860px; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 13px; font-weight: 700; color: #ffd0be; margin: 0 0 14px; }
.hero__title { font-size: clamp(32px, 5.2vw, 56px); line-height: 1.08; margin: 0 0 18px; font-weight: 800; }
.hero__title span { color: #ffd6c6; }
.hero__lead { font-size: clamp(16px, 2vw, 19px); color: #d9e8f7; max-width: 640px; margin: 0 0 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; padding: 13px 26px; border-radius: 999px; cursor: pointer; border: 0; transition: .2s; }
.btn--primary { background: linear-gradient(135deg, var(--red-400), var(--red-600)); color: #fff; box-shadow: 0 10px 24px rgba(224,31,38,.32); }
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.10); color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn--ghost:hover { background: rgba(255,255,255,.18); }

.hero__stats { display: flex; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 30px; font-weight: 800; }
.hero__stats span { font-size: 13px; color: #bcd6ef; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--tint { background: var(--bg-soft); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section__eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 12.5px; font-weight: 800; color: var(--red-600); margin: 0 0 10px; }
.section__title { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; margin: 0 0 12px; }
.section__sub { color: var(--muted); font-size: 17px; margin: 0; }

/* ---------- Services grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: .25s; position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--blue-500), var(--red-500, var(--red-600)));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__ico {
  width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(58,160,255,.16), rgba(255,106,61,.16));
  border: 1px solid rgba(255,255,255,.06);
  margin-bottom: 18px;
}
.card__ico svg { width: 28px; height: 28px; fill: var(--blue-300); }
.card h3 { font-size: 19px; margin: 0 0 8px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- Feature (alternating) ---------- */
.feature { padding: 72px 0; }
.feature--alt { background: var(--bg-soft); }
.feature__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.feature__inner--rev .feature__text { order: 2; }
.feature__text h2 { font-size: clamp(24px, 3vw, 32px); margin: 6px 0 16px; font-weight: 800; }
.feature__text p { color: var(--muted); margin: 0 0 14px; }

.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 600; color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
}

.feature__media { position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: #0b2b48; }
.feature__media img { width: 100%; height: 100%; min-height: 320px; max-height: 430px; object-fit: cover; display: block; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.gallery__item { margin: 0; border-radius: 12px; overflow: hidden; position: relative; box-shadow: var(--shadow); background: #000; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item--wide { grid-column: span 2; grid-row: span 2; }
.gallery__item--ba figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; color: #fff; font-weight: 700; font-size: 13px;
  padding: 22px 12px 9px; background: linear-gradient(transparent, rgba(0,0,0,.78));
}

/* ---------- About ---------- */
.about { max-width: 900px; margin: 0 auto; text-align: center; }
.about__head { margin-bottom: 22px; }
.about__lead { font-size: 18px; color: var(--muted); margin: 0 auto 40px; max-width: 760px; }
.about__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: left; }
.about__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.about__item h4 { margin: 0 0 8px; font-size: 17px; color: var(--blue-300); }
.about__item p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Partners ---------- */
.partners { padding: 70px 0; background: linear-gradient(135deg, #08375f, #0b5cab); color: #fff; }
.partners__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.partners__title { font-size: clamp(24px, 3vw, 32px); margin: 0 0 14px; font-weight: 800; }
.partners__inner p { color: #d9e8f7; margin: 0; }
.partners__flags { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.partners__flags span {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 16px;
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: start; }
.contact__sub { color: var(--muted); margin: 0 0 22px; }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.contact__list .ico { fill: var(--red-600); width: 22px; height: 22px; }
.contact__list a:hover { color: var(--blue-700); }

.contact__form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.contact__form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.contact__form input, .contact__form textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #0b1826; color: var(--ink); resize: vertical;
}
.contact__form input::placeholder, .contact__form textarea::placeholder { color: #6c7e91; }
.contact__form input:focus, .contact__form textarea:focus { outline: 2px solid var(--blue-500); background: #0d1c2d; }
.contact__note { margin: 0; font-size: 14px; color: var(--blue-700); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: #060f1b; color: #b9cbe0; padding: 44px 0; border-top: 1px solid rgba(255,255,255,.06); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__brand { display: flex; flex-direction: column; gap: 4px; }
.footer__brand strong { color: #fff; font-size: 16px; }
.footer__brand span { font-size: 13px; }
.footer__social { display: flex; gap: 10px; margin-top: 10px; }
.soc {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); transition: .22s;
}
.soc svg { width: 20px; height: 20px; fill: #cfe0f0; transition: .22s; }
.soc:hover { transform: translateY(-2px); }
.soc--ig:hover { background: linear-gradient(45deg, #f9a03f, #e1306c 45%, #a333c8); border-color: transparent; }
.soc--tt:hover { background: #111; border-color: #25f4ee; }
.soc:hover svg { fill: #fff; }
.footer__links { display: flex; gap: 20px; }
.footer__links a:hover { color: #fff; }
.footer__copy { display: flex; flex-direction: column; text-align: right; gap: 4px; font-size: 13px; }
.footer__copy a:hover { color: #fff; }

/* ---------- Videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 26px; }
.video-card { margin: 0; }
.video-frame {
  position: relative; padding-top: 56.25%; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow); background: #000; border: 1px solid var(--line);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card figcaption { margin-top: 12px; font-weight: 700; font-size: 16px; color: var(--ink); }
.video-empty { text-align: center; color: var(--muted); font-size: 16px; margin: 10px 0 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center;
  background: rgba(6, 20, 34, .92); padding: 30px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lightbox__img {
  max-width: 92vw; max-height: 84vh; width: auto; height: auto;
  border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.6);
  animation: lbin .25s ease;
}
@keyframes lbin { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.lightbox__cap {
  position: fixed; left: 0; right: 0; bottom: 22px; text-align: center;
  color: #eaf1f8; font-weight: 600; font-size: 15px; pointer-events: none; text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.lightbox__close, .lightbox__nav {
  position: fixed; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  color: #fff; cursor: pointer; border-radius: 50%; display: grid; place-items: center; transition: .2s; line-height: 1;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 20px; right: 22px; width: 46px; height: 46px; font-size: 30px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 34px; }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
@media (max-width: 720px) {
  .lightbox__nav { width: 42px; height: 42px; font-size: 26px; }
  .lightbox__prev { left: 8px; } .lightbox__next { right: 8px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; }
  .feature__inner, .contact, .partners__inner { grid-template-columns: 1fr; gap: 32px; }
  .feature__inner--rev .feature__text { order: 0; }
  .partners__flags { justify-content: flex-start; }
  .footer__copy { text-align: left; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gallery__item--wide { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed; inset: 162px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 22px; gap: 4px;
    transform: translateY(-140%); transition: transform .3s ease; box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 4px; font-size: 17px; }
  .nav__cta { text-align: center; margin-top: 6px; }
  .burger { display: flex; }
  .topbar__meta { display: none; }
  .grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 26px; }
}
