/* ═══════════════════════════════════════════
   BF ENGINEERING — indexhero.css
═══════════════════════════════════════════ */

:root {
  --navy:      #091929;
  --navy-2:    #0b1f34;
  --white:     #ffffff;
  --dim-1:     rgba(255,255,255,0.65);
  --dim-2:     rgba(255,255,255,0.38);
  --font:      'Montserrat', sans-serif;
  --header-h: 64px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  background: transparent;
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: var(--font); cursor: pointer; border: none; background: transparent; }
img { display: block; max-width: 100%; }


/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: 450px;
  min-height: 450px;
  overflow: hidden;
  color: var(--white);
}

/* Fon şəkilləri */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center right;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .9s ease, transform 6s ease;
}
.hero-bg.active {
  opacity: 1;
  transform: scale(1);
}

/* Sol tərəf qaranlıq gradient örtük */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right,
      #091929 0%,
      #091929 28%,
      rgba(9,25,41,.88) 40%,
      rgba(9,25,41,.55) 52%,
      rgba(9,25,41,.18) 65%,
      rgba(9,25,41,.04) 76%,
      transparent 85%
    ),
    linear-gradient(to bottom,
      rgba(9,25,41,.45) 0%,
      transparent 22%,
      transparent 76%,
      rgba(9,25,41,.5) 100%
    );
  pointer-events: none;
}


/* ════════════════════════════════════════
   HEADER / NAV
════════════════════════════════════════ */
.site-header {
  position: absolute;
  top: 14px; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 40px;
  gap: 32px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-logo {
  height: 40px;
  width: auto;
  margin-top: 16px;
}
.brand-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--white);
  white-space: nowrap;
}

/* Nav links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0 auto;
}
.nav-link {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--dim-1);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--white);
}
.nav-link.active {
  color: var(--white);
  border-bottom-color: var(--white);
}

/* Language switcher */
.lang-sw {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 15;
}
.lang-btn {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--dim-1);
  padding: 5px 7px;
  border-radius: 4px;
  transition: color .2s;
}
.lang-btn:not(.active) {
  display: none;
}
.lang-btn:hover {
  color: var(--white);
}
.lang-btn.active {
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.55);
  border-radius: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lang-sw.open {
  position: relative;
  background: transparent;
  border: 0;
  padding: 0;
  min-width: 0;
  box-shadow: none;
}
.lang-sw.open .lang-btn:not(.active) {
  position: absolute;
  top: var(--lang-menu-top, calc(100% + 6px));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  width: 44px;
  height: 28px;
  border-left: 1px solid rgba(255,255,255,.18);
  border-right: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.12);
  border-radius: 0;
  padding: 0;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,.7);
  background: rgba(11,31,52,.96);
  box-shadow: 0 10px 20px rgba(0,0,0,.18);
}
.lang-sw.open .lang-btn.active {
  width: 32px;
  height: 32px;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.55) !important;
  border-radius: 5px !important;
  background: transparent;
}
.lang-sw.open .lang-btn.menu-first {
  border-top: 1px solid rgba(255,255,255,.18);
  border-radius: 5px 5px 0 0;
}
.lang-sw.open .lang-btn.menu-last {
  border-radius: 0 0 5px 5px;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}


/* ════════════════════════════════════════
   HERO CONTENT
════════════════════════════════════════ */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: var(--header-h) 0 0 52px;
}

/* Slayd nömrələri */
.slides {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex-shrink: 0;
}
.slide-btn {
  font-size: 11px;
  font-weight: 700;
  color: var(--dim-2);
  letter-spacing: .5px;
  line-height: 1;
  padding: 0;
  transition: color .3s;
}
.slide-btn.current {
  color: rgba(255,255,255,.88);
}
.slide-line {
  position: absolute;
  left: 0;
  width: 28px;
  height: 1.5px;
  background: rgba(255,255,255,.6);
  transition: top .4s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}

/* Mətn bloku */
.copy {
  max-width: 580px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3.5px;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.copy h1 {
  font-size: clamp(36px, 3.8vw, 56px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.5px;
  margin-bottom: 26px;
}
.lead {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.65;
  color: rgba(255,255,255,.68);
}


/* ════════════════════════════════════════
   MOBILE MENU
════════════════════════════════════════ */
.menu-backdrop {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.45);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.menu-backdrop.open { opacity: 1; pointer-events: auto; }

.mobile-menu {
  position: fixed;
  top: var(--header-h);
  right: -100%;
  width: min(260px, 72vw);
  height: auto;
  max-height: calc(100% - var(--header-h));
  background: #fff;
  z-index: 99;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: right .32s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.open { right: 0; }

/* Nav linkləri */
.mobile-nav { display: flex; flex-direction: column; }

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 24px;
  color: var(--navy);
  border-bottom: 1px solid rgba(9,25,41,.07);
  transition: background .15s;
}
.mobile-nav-link:hover { background: rgba(9,25,41,.03); }

.mnl-text {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .2px;
  color: rgba(9,25,41,.8);
}
.mobile-nav-link.active .mnl-text {
  font-weight: 600;
  color: var(--navy);
}
.mnl-chevron { color: rgba(9,25,41,.28); flex-shrink: 0; }

@media (min-width: 913px) {
  .mobile-menu,
  .menu-backdrop { display: none !important; }
}


/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */

/* ── Surface Pro 9 · Nest Hub Max · iPad Pro landscape (≤1440px) ── */
@media (max-width: 1440px) {
  .copy h1 { font-size: clamp(36px, 3.6vw, 52px); }
}

/* ── iPad Pro portrait · Nest Hub · 1024px ── */
@media (max-width: 1024px) {
  .site-header { padding: 0 28px; gap: 20px; }
  .main-nav { gap: 22px; margin-top: 14px; }
  .lang-sw { margin-top: 14px; }
  .nav-link { font-size: 9.5px; letter-spacing: 1.2px; }
  .hero { height: 350px; min-height: 350px; }
  .hero-content { padding-left: 36px; gap: 32px; }
}

/* ── Surface Pro 7 · iPad Air landscape · 912px ── */
@media (max-width: 912px) {
  .site-header { padding: 0 24px; gap: 16px; }
  .main-nav { gap: 16px; }
  .nav-link { font-size: 9px; letter-spacing: 1px; }
  .hero-content { padding-left: 28px; gap: 24px; }
  .copy h1 { font-size: clamp(32px, 3.8vw, 48px); }
}

/* ── iPad Mini portrait · 768px — nav gizlənir ── */
@media (max-width: 768px) {
  :root { --header-h: 52px; }

  .main-nav  { display: none; }
  .hamburger { display: flex; margin-left: 0; }

  /* Header bərk tünd fon alır */
  .site-header {
    top: 8px;
    height: 60px;
    padding: 0 20px;
    background: var(--navy);
  }

  .brand-logo { height: 28px; margin-top: 10px; }

  /* Compact lang-sw — bütün ≤768px cihazlar */
  .lang-sw               { display: flex; margin-left: auto; gap: 0; position: relative; z-index: 15; }
  .lang-btn.active {
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 3px;
    width: auto;
    height: 24px;
    padding: 0 8px;
    font-size: 10px;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .lang-sw.open {
    margin-top: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    min-width: 0;
  }
  .lang-sw.open .lang-btn.active {
    width: auto;
    height: 24px;
    padding: 0 8px;
    border: 1px solid rgba(255,255,255,.45) !important;
    border-radius: 3px !important;
  }

  /* Slayd göstəriciləri mobildə gizlənir */
  .slides { display: none; }

  .hero {
    height: 100svh;
    height: 100dvh;
    min-height: 480px;
  }

  /* Məzmun şaquli mərkəzə gəlir */
  .hero-content {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: var(--header-h) 24px 48px 24px;
    gap: 0;
  }

  .copy { max-width: 100%; }

  /* Sol tərəf daha güclü gradient — mətn oxunaqlılığı */
  .hero-overlay {
    background:
      linear-gradient(to right,
        rgba(9,25,41,.98)  0%,
        rgba(9,25,41,.95) 40%,
        rgba(9,25,41,.75) 60%,
        rgba(9,25,41,.35) 80%,
        rgba(9,25,41,.10) 100%
      ),
      linear-gradient(to bottom,
        rgba(9,25,41,.40)  0%,
        transparent       20%,
        transparent       70%,
        rgba(9,25,41,.60) 100%
      );
  }

  .copy h1  { font-size: clamp(28px, 8vw, 42px); margin-bottom: 18px; }
  .eyebrow  { font-size: 9px; letter-spacing: 2.5px; margin-bottom: 12px; }
  .lead     { font-size: 12px; max-width: 88%; }
}

/* ── iPad Air · Surface Pro 7 (769px–912px) — tablet layout ── */
@media (min-width: 769px) and (max-width: 912px) {
  .main-nav  { display: none; }
  .lang-sw   { display: flex; margin-left: auto; margin-top: 0; }
  .hamburger { display: flex; margin-left: 0; }
  .slides    { display: none; }

  .site-header { top: 8px; height: 60px; background: var(--navy); }

  .hero { height: 350px; min-height: 350px; }

  .hero-content {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: calc(var(--header-h) + 40px) 48px 0 48px;
    gap: 0;
  }

  .copy { max-width: 58%; }
  .copy h1  { font-size: clamp(32px, 4.5vw, 44px); margin-bottom: 22px; }
  .eyebrow  { font-size: 10px; letter-spacing: 3px; margin-bottom: 14px; }
  .lead     { font-size: 13px; max-width: 100%; }
}

/* ── iPad Mini (600px–768px) — tablet layout ── */
@media (min-width: 600px) and (max-width: 768px) {
  .lang-sw { margin-bottom: 12px; }
  .slides { display: none; }

  .hero { height: 310px; min-height: 310px; }

  .hero-content {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: calc(var(--header-h) + 28px) 40px 0 40px;
    gap: 0;
  }

  .copy { max-width: 62%; }
  .copy h1  { font-size: clamp(30px, 5vw, 42px); margin-bottom: 20px; }
  .eyebrow  { font-size: 9.5px; letter-spacing: 3px; margin-bottom: 14px; }
  .lead     { font-size: 12.5px; max-width: 100%; }
}

/* ── Surface Duo (431px–599px) ── */
@media (min-width: 431px) and (max-width: 599px) {
  .lang-sw { margin-bottom: 12px; }
  .slides { display: none; }

  .hero { height: 280px; min-height: 280px; }

  .hero-content {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: calc(var(--header-h) + 32px) 28px 0 28px;
    gap: 0;
  }

  .copy { max-width: 72%; }
  .copy h1  { font-size: clamp(26px, 5.5vw, 34px); margin-bottom: 16px; }
  .eyebrow  { font-size: 9px; letter-spacing: 2.5px; margin-bottom: 12px; }
  .lead     { font-size: 12px; }
}

/* ── iPhone XR · Pixel 7 · Galaxy S20 Ultra (≤415px) ── */
@media (max-width: 415px) {
  .hero { height: 265px; min-height: 265px; }
  .hero-content {
    justify-content: flex-start;
    padding: calc(var(--header-h) + 20px) 22px 0 22px;
  }
  .copy h1  { font-size: clamp(26px, 7.5vw, 36px); margin-bottom: 16px; }
  .lead     { font-size: 11.5px; }
  .lang-sw  { margin-bottom: 12px; }
}

/* ── iPhone 14 Pro Max (416px–430px) ── */
@media (min-width: 416px) and (max-width: 430px) {
  .hero { height: 280px; min-height: 280px; }
  .hero-content { padding-top: calc(var(--header-h) + 56px); }
  .lang-sw { margin-bottom: 12px; }
}

/* ── iPhone 12 Pro (≤390px) ── */
@media (max-width: 390px) {
  .hero { height: 265px; min-height: 265px; }
  .hero-content {
    justify-content: flex-start;
    padding: calc(var(--header-h) + 32px) 20px 0 20px;
  }
  .copy h1  { font-size: clamp(24px, 7.2vw, 32px); margin-bottom: 14px; }
  .eyebrow  { font-size: 8.5px; letter-spacing: 2px; margin-bottom: 10px; }
  .lead     { font-size: 11px; max-width: 92%; }
}

/* ── iPhone SE (≤375px) ── */
@media (max-width: 375px) {
  .hero { height: 260px; min-height: 260px; }
  .hero-content {
    justify-content: flex-start;
    padding: calc(var(--header-h) + 36px) 18px 0 18px;
  }
  .copy h1  { font-size: clamp(22px, 7vw, 28px); margin-bottom: 12px; }
  .eyebrow  { margin-bottom: 8px; }

  /* iPhone SE üçün düymə bir qədər yuxarı */
  .lang-sw { margin-bottom: 12px; }
}

/* ── Galaxy S8+ · Galaxy Z Fold 5 qapalı (≤360px) ── */
@media (max-width: 360px) {
  .hero { height: 240px; min-height: 240px; }
  .hero-content { padding: calc(var(--header-h) + 28px) 16px 0 16px; }
  .copy h1  { font-size: clamp(20px, 6.5vw, 26px); margin-bottom: 10px; }
  .lead     { font-size: 10.5px; }
  .eyebrow  { font-size: 8px; margin-bottom: 6px; }
}
