/*
Theme Name: Saltanat Home Concept
Author: Saltanat
Version: 1.0
*/

/* ===============================
   GLOBAL
================================ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Poppins, sans-serif;
  background: #f7f5f0;
  color: #3a3a3a;
}

h1,
h2,
h3 {
  font-family: Montserrat, sans-serif;
  color: #0f5c4c;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===============================
   STICKY HEADER
================================ */
.site-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 999;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

/* Shadow marka la scroll-gareeyo */
.site-header.scrolled {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* ===============================
   HEADER LAYOUT
================================ */
.header-container {
  max-width: 1200px;
  margin: auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.site-logo a {
  font-size: 20px;
  font-weight: 700;
  color: #0f5c4c;
  letter-spacing: 0.5px;
}

.site-logo span {
  color: #ac8a17;
}

/* ===============================
   NAV MENU
================================ */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

/* LINKS */
.nav-menu a {
  font-weight: 500;
  color: #333;
  padding: 6px 0;
  transition: color 0.3s ease;
}

/* Hover */
.nav-menu a:hover {
  color: #ac8a17;
}

/* ===============================
   ACTIVE UNDERLINE 🔥
================================ */
.nav-menu .current-menu-item > a::after,
.nav-menu .current_page_item > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: #ac8a17;
  border-radius: 2px;
}

/* Hover underline animation */
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #ac8a17;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* ===============================
   TOGGLE BUTTON
================================ */
.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
}

/* ===============================
   MOBILE MENU
================================ */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    margin-top: 14px;
    animation: slideDown 0.35s ease forwards;
  }

  .main-nav.active {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    gap: 14px;
  }

  .header-container {
    flex-wrap: wrap;
  }
}

/* ===============================
   SMOOTH MENU ANIMATION 🔥
================================ */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CATALOG BUTTON */
.catalog-btn {
  background: #ac8a17;
  color: #fff;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

.catalog-btn:hover {
  background: #947614;
}

/* ===============================
   FOOTER
================================ */
.site-footer {
  background: #0b0f14;
  color: #ffffff;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  padding: 26px 18px;
  text-align: center;
  font-size: 14px;
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    gap: 12px;
  }

  .main-nav {
    width: 100%;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 12px;
  }

  .catalog-btn {
    width: 100%;
    text-align: center;
  }
}

/* HEADER LAYOUT FIX */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* MENU ICON */
.menu-toggle {
  margin-left: auto;
}
