/* ================================================
   HEADER & FOOTER — header-footer.css
   Nimbus Global Trade
   ================================================ */

/* ---------- RESET / BOX MODEL ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- ROOT VARIABLES ---------- */
:root {
  --color-blue: #004175;
  --color-orange: #ffa300;
  --color-dark: #161616;
  --color-white: #ffffff;
  --color-gray-bg: #f5f5f5;
  --font-main: "Outfit", sans-serif;
  --header-height: 93px;
  --header-h-mobile: 68px;
  --transition-fast: 0.2s ease;
  --transition-med: 0.3s ease;
}

/* ---------- BODY OFFSET (header fixed) ---------- */
body {
  font-family: var(--font-main);
  color: var(--color-dark);
  padding-top: var(--header-height);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--color-white);
  z-index: 1000;
  transition: box-shadow var(--transition-fast);
}

/* Scroll'da gölge eklenir */
.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

/* Header iç konteyner */
.header-inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 16px 42px;
  height: 100%;
  width: 100%;
  margin: 0 auto;
}

/* ---------- LOGO ---------- */
.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  width: 143px;
  height: 61.23px;
}

.header-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- NAV ---------- */
.header-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 0;
}

.nav-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 46px;
  list-style: none;
  margin-bottom: 0;
  padding: 0;
}

/* Nav link genel stili */
.n-nav-link {
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 15px;
  line-height: 19px;
  color: var(--color-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition-fast);
  position: relative;
}

.n-nav-link:hover {
  color: var(--color-orange);
}

/* Aktif sayfa alt çizgisi */
.n-nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-orange);
  border-radius: 2px;
}

/* --- Dropdown toggle (Kurumsal) --- */
.n-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.chevron-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

/* Ok dönüşü açık halde */
.n-has-dropdown.n-dropdown-open .chevron-icon {
  transform: rotate(180deg);
}

/* --- Dropdown Menü --- */
.n-has-dropdown {
  position: relative;
}

.n-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  padding: 0;
  background: var(--color-white);
  border-top: 2px solid var(--color-orange);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 0 0 4px 4px;
  list-style: none;
  overflow: hidden;
  /* Gizli başlangıç durumu */
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition:
    opacity var(--transition-fast),
    visibility var(--transition-fast),
    transform var(--transition-fast);
}

/* Açık halde */
.n-has-dropdown.n-dropdown-open .n-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.n-dropdown-link {
  display: block;
  padding: 10px 16px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-dark);
  text-decoration: none;
  transition:
    background var(--transition-fast),
    color var(--transition-fast);
}

.n-dropdown-link:hover {
  background: var(--color-gray-bg);
  color: var(--color-blue);
}

/* --- Katalog Butonu --- */
.nav-btn-katalog {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 32px;
  min-width: 117px;
  height: 39px;
  background: var(--color-blue);
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 400;
  line-height: 19px;
  color: var(--color-white);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast);
}

.nav-btn-katalog:hover {
  background: #00325a;
  transform: translateY(-1px);
}

/* ---------- DİL SEÇİCİ (Dropdown TR/EN) ---------- */
.lang-switcher-modern {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  background: #f8fafc;
  padding: 6px 10px;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  margin-left: 20px;
}

.lang-current,
.lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  text-decoration: none;
}

.lang-current {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 2px 4px;
}

.lang-code {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.4px;
}

.lang-caret {
  transition: transform 0.2s ease;
}

.lang-flag-svg {
  width: 26px;
  height: 18px;
  border-radius: 2px;
  display: block;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
  padding: 6px;
  display: none;
  z-index: 120;
}

    .lang-dropdown a {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #334155;
        text-decoration: none;
        font-size: 14px;
        line-height: 22px;
    }

.lang-switcher-modern.is-open .lang-dropdown {
  display: block;
}

.lang-switcher-modern.is-open .lang-caret {
  transform: rotate(180deg);
}

.lang-dropdown .lang-item {
  padding: 6px 8px;
  color: #0f172a;
}

.lang-dropdown .lang-item:hover {
  background: #f1f5f9;
}

/* ---------- MOBİL HAMBURGER ---------- */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background var(--transition-fast);
}

.hamburger-btn:hover {
  background: var(--color-gray-bg);
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition:
    transform var(--transition-med),
    opacity var(--transition-med);
  transform-origin: center;
}

/* Açık (X) hali */
.hamburger-btn.is-active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   FOOTER — içerik sonraki aşamada eklenecek
   ============================================================ */
.site-footer {
  background: var(--color-blue);
  color: var(--color-white);
  font-family: var(--font-main);
}

/* WhatsApp butonu — ekranda sabit */
.wp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    z-index: 1200;
}

    .wp-btn img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }


    @media only screen and (max-width: 1280px)
    {
        .nav-list {
            gap: 16px;
        }
    }


/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .header-inner {
    padding: 16px 24px;
  }

  .nav-list {
    gap: 28px;
  }

  .nav-link {
    font-size: 14px;
  }
}

/* ============================================================
   RESPONSIVE — MOBİL (≤ 768px)
   ============================================================ */
@media (max-width: 1024px) {
  body {
    padding-top: var(--header-h-mobile);
  }

  .site-header {
    height: var(--header-h-mobile);
  }

  .header-inner {
    padding: 12px 20px;
  }

  .header-logo {
    width: 110px;
    height: auto;
  }

  /* Hamburger görünür */
  .hamburger-btn {
    display: flex;
  }

  /* Mobil nav — kapalı */
  .header-nav {
    position: fixed;
    inset: var(--header-h-mobile) 0 0 0;
    display: block !important;
    background: var(--color-white);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity var(--transition-med),
      visibility var(--transition-med),
      transform var(--transition-med);
    padding: 10px 16px 18px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    z-index: 999;
  }

  /* Mobil nav — açık */
  .header-nav.nav-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid #eeeeee;
  }

  .n-nav-link,
  .nav-btn-katalog {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 4px;
    font-size: 15px;
    width: 100%;
  }

  .nav-btn-katalog {
    margin-top: 12px;
    justify-content: center;
    border-radius: 4px;
    padding: 11px 16px;
    text-align: center;
  }

  .n-nav-link.active::after {
    display: none;
  }

  /* Mobil dropdown */
  .n-dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none !important;
    box-shadow: none;
    border-top: none;
    border-left: 2px solid var(--color-orange);
    padding-left: 12px;
    margin-bottom: 8px;
    margin-top: 2px;
    min-width: 0;
  }

  .n-has-dropdown.n-dropdown-open .n-dropdown-menu,
  .has-dropdown.dropdown-open .dropdown-menu {
    display: block;
    transform: none !important;
  }

  .n-dropdown-link {
    padding: 10px 8px;
  }
}

.lang-and-mobile-button {
    display: flex;
    align-items: center;
    column-gap: 12px;
}

/* ============================================================
   RESPONSIVE — KÜÇÜK MOBİL (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .header-inner {
    padding: 12px 16px;
  }
}

/* ============================================================
   FOOTER
   Figma: Group 304 — #004175, 361px, 1102px centered content
   ============================================================ */
.site-footer {
  background: #004175;
  padding: 51px 0 23px;
}

.footer-inner {
  max-width: 1102px;
  margin: 0 auto;
  padding: 0 42px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── ÜST 3 KOLON ── */
.footer-top {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 97px;
  /* Figma: gap 247px logo→nav + 97px nav→contact */
}

/* Kolon 1: Logo + Açıklama */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 42px;
  width: 281px;
  flex-shrink: 0;
}

.footer-logo {
  display: block;
  width: 157px;
  height: auto;
}

.footer-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.footer-desc {
  font-family: "Poppins", sans-serif;
  font-size: 13.35px;
  font-weight: 400;
  line-height: 20px;
  color: #e6ecf1;
  margin: 0;
}

/* Kolon 2: Öne Çıkan Sayfalar */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-shrink: 0;
}

.footer-nav__title {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  color: #ffffff;
  margin: 0 0 28px 0;
}

.footer-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav__list li a {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: #e6ecf1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav__list li a:hover {
  color: #ffffff;
}

/* Kolon 3: Sosyal medya + İletişim */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 19px;
  flex: 1;
}

/* Sosyal medya ikonları */
.footer-social {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #336791;
  border-radius: 50%;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.footer-social__link:hover {
  background: #4a85b8;
}

.footer-social__link img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* İletişim listesi */
.footer-contact__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact__list li {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.footer-contact__list li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact__list li a,
.footer-contact__list li span {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  color: #e6ecf1;
  text-decoration: none;
}

.footer-contact__list li a:hover {
  color: #ffffff;
}

/* ── ALT BÖLÜM: Ayırıcı + Copyright ── */
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-divider {
  border: none;
  border-top: 0.95px solid #336791;
  margin: 0;
}

.footer-copy {
  font-family: "Poppins", sans-serif;
  font-size: 13.35px;
  font-weight: 400;
  line-height: 20px;
  color: #8aa8c0;
  margin: 0;
}


/* ── FOOTER RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-top {
    gap: 48px;
  }

  .footer-brand {
    width: 220px;
  }
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  .footer-brand {
    width: 100%;
  }
}