/* Custom CSS for React App */

/* ========== Logo Sizing ========== */
.logo-outer .logo img {
  max-height: 60px;
  width: auto;
}

.mobile-logo img {
  max-height: 50px;
  width: auto;
}

.footer-logo img {
  max-height: 70px;
  width: auto;
}

.footer-logo-img {
  max-height: 80px;
  width: auto;
}

.footer-about-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.8;
}

@media (max-width: 767px) {
  .footer-logo-img {
    max-height: 60px;
  }
}

/* Fixed header logo slightly smaller */
.main-header.fixed-header .logo-outer .logo img {
  max-height: 50px;
}

.main-header.fixed-header .logo-text {
  font-size: 18px;
  color: #242424;
}

/* ========== Logo Text Next to Icon ========== */
.logo-link {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none !important;
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #242424;
  white-space: nowrap;
  text-transform: uppercase;
  transition: all 500ms ease;
}

/* Mobile logo text */
.mobile-logo .logo-text {
  font-size: 16px;
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 15px;
  }
  .mobile-logo .logo-text {
    font-size: 14px;
  }
}

/* ========== Mobile Navigation ========== */
@media only screen and (max-width: 991px) {
  /* Header layout on mobile */
  .header-inner {
    padding: 0 15px !important;
  }

  .logo-outer {
    display: none !important;
  }

  .nav-outer {
    width: 100% !important;
    flex: 1;
  }

  .main-menu .navbar-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  /* Mobile logo — left side */
  .mobile-logo {
    display: flex !important;
    align-items: center;
    padding: 8px 0 !important;
    margin: 0 !important;
    order: 0;
  }

  .mobile-logo .logo-link {
    gap: 10px;
  }

  .mobile-logo img {
    max-height: 40px;
    width: auto;
  }

  /* Hamburger button — right side */
  .navbar-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none !important;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 100001;
    position: relative;
    flex-shrink: 0;
    order: 1;
  }

  .navbar-toggle .icon-bar {
    width: 22px;
    height: 2px;
    background: #242424;
    transition: all 0.3s ease;
    margin: 0 !important;
  }

  /* Hamburger → X animation */
  .navbar-toggle.open .icon-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .navbar-toggle.open .icon-bar:nth-child(2) {
    opacity: 0;
  }
  .navbar-toggle.open .icon-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Hide desktop menu-icons on mobile */
  .menu-icons {
    display: none !important;
  }

  /* ---- Slide-in panel ---- */
  .main-menu .navbar-collapse,
  .main-menu .navbar-collapse.collapse {
    position: fixed !important;
    top: 0 !important;
    right: -320px !important;
    left: auto !important;
    width: 280px !important;
    max-width: 85vw;
    height: 100vh !important;
    z-index: 100000 !important;
    overflow-y: auto !important;
    transition: right 0.35s ease, visibility 0.35s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    padding: 70px 0 30px !important;
    display: block !important;
    visibility: hidden;
    /* Force white everywhere */
    background: #ffffff !important;
    background-color: #ffffff !important;
  }

  .main-menu .navbar-collapse.show,
  .main-menu .navbar-collapse.in {
    right: 0 !important;
    visibility: visible;
  }

  /* Kill any pseudo-elements */
  .main-menu .navbar-collapse::before,
  .main-menu .navbar-collapse::after,
  .main-menu .navbar-collapse.show::before,
  .main-menu .navbar-collapse.in::before,
  .main-menu .navbar-collapse.show::after,
  .main-menu .navbar-collapse.in::after {
    display: none !important;
    content: none !important;
  }

  .main-menu .navbar-collapse > ul,
  .main-menu .navbar-collapse .navigation {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    min-height: 100%;
  }

  .main-menu .navbar-collapse .navigation li {
    display: block !important;
    padding: 0 !important;
    border: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
  }

  .main-menu .navbar-collapse .navigation li:first-child {
    border-top: 1px solid #f0f0f0 !important;
  }

  .main-menu .navbar-collapse .navigation li a {
    display: block !important;
    padding: 15px 25px !important;
    color: #242424 !important;
    font-size: 15px !important;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    line-height: 1.4 !important;
    background: transparent !important;
  }

  .main-menu .navbar-collapse .navigation li a:hover {
    background: #f8f8f8 !important;
    color: #D6B981 !important;
    padding-left: 30px !important;
  }

  .main-menu .navbar-collapse .navigation li.current > a {
    color: #D6B981 !important;
    background: #faf6f0 !important;
    border-left: 3px solid #D6B981;
  }
}

/* ========== Hidden Sidebar ========== */
.hidden-bar.show {
  right: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.form-back-drop.active {
  opacity: 1 !important;
  visibility: visible !important;
}

.sidebar-info h4 {
  color: #ffffff;
  margin-bottom: 30px;
  font-size: 22px;
}

.sidebar-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
  text-align: left;
}

.sidebar-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 22px;
}

.sidebar-contact-list li i {
  color: #D6B981;
  font-size: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}

.sidebar-contact-list li h5 {
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 5px;
  font-weight: 600;
}

.sidebar-contact-list li p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.sidebar-contact-list li a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.sidebar-contact-list li a:hover {
  color: #D6B981;
}

.sidebar-map {
  margin-bottom: 25px;
}

.sidebar-info .social-style-one {
  margin-top: 10px;
}

/* ========== Current Menu Item ========== */
.navigation li.current > a {
  color: #FFAF7B !important;
}

.home-one .navigation li.current > a {
  color: #D6B981 !important;
}

/* ========== Fixed Header on Scroll ========== */
.main-header.fixed-header .header-upper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* ========== Search Form ========== */
.nav-search form {
  position: absolute;
  right: 0;
  top: 100%;
  background: #ffffff;
  padding: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: none;
  min-width: 300px;
  z-index: 1000;
}

.nav-search form.show {
  display: block;
}

.nav-search form input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
}

/* ========== Contact Info Items ========== */
.contact-info-item {
  text-align: center;
  padding: 50px 30px;
  background: #f7f7f7;
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.contact-info-item:hover {
  background: #242424;
  color: #ffffff;
}

.contact-info-item:hover h4,
.contact-info-item:hover p {
  color: #ffffff;
}

.contact-info-item i {
  font-size: 55px;
  color: #D6B981;
  margin-bottom: 25px;
  display: block;
}

.contact-info-item h4 {
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.contact-info-item p {
  transition: color 0.3s ease;
}

/* ========== Map ========== */
.contact-page-map iframe {
  width: 100%;
  min-height: 450px;
}

/* ========== Category Item Style Two ========== */
.category-item.style-two {
  border: none;
}

/* ========== Gallery Widget ========== */
.gallery-widget-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.widget-gallery-item {
  width: calc(33.333% - 7px);
  position: relative;
  overflow: hidden;
}

.widget-gallery-item img {
  width: 100%;
  height: auto;
}

.widget-gallery-item a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.widget-gallery-item:hover a {
  opacity: 1;
}

/* ========== Product Add Widget ========== */
.product-add-widget {
  background: url('/assets/images/widgets/product-add.jpg') center/cover no-repeat;
  padding: 50px 30px;
}

/* ========== Search Widget ========== */
.search-widget form {
  position: relative;
}

.search-widget input {
  padding-right: 50px;
}

.search-widget button {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
}

/* ========== Tag Cloud ========== */
.tag-clouds a {
  display: inline-block;
  padding: 8px 20px;
  margin: 5px;
  background: #f7f7f7;
  color: #696969;
  transition: all 0.3s ease;
}

.tag-clouds a:hover {
  background: #D6B981;
  color: white;
}

/* ========== WOW.js Animation Replacements ========== */
.wow {
  visibility: visible !important;
  animation-name: fadeInUp;
  animation-duration: 0.8s;
  animation-fill-mode: both;
}

.fadeInUp {
  animation-name: fadeInUp;
}

.fadeInLeft {
  animation-name: fadeInLeft;
}

.fadeInRight {
  animation-name: fadeInRight;
}

.fadeInDown {
  animation-name: fadeInDown;
}

.zoomIn {
  animation-name: zoomIn;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation delays */
.delay-0-2s { animation-delay: 0.2s; }
.delay-0-4s { animation-delay: 0.4s; }
.delay-0-6s { animation-delay: 0.6s; }
.delay-0-8s { animation-delay: 0.8s; }
.delay-1-0s { animation-delay: 1s; }

/* ========== Video Play Button ========== */
.video-play {
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-play:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

/* ========== Project/Gallery Hover ========== */
.project-item {
  position: relative;
  overflow: hidden;
}

.project-item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

@media (max-width: 767px) {
  .project-item img {
    height: 260px;
  }
}

.project-item:hover img {
  transform: scale(1.1);
}

.project-content {
  transition: all 0.3s ease;
}

/* ========== News Item Hover ========== */
.news-item .image {
  overflow: hidden;
}

.news-item .image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* ========== Blog List Image ========== */
.blog-list-item .image {
  overflow: hidden;
}

.blog-list-item .image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

@media (max-width: 767px) {
  .blog-list-item .image img {
    height: 250px;
  }
  .news-item .image img {
    height: 200px;
  }
}

.news-item:hover .image img {
  transform: scale(1.1);
}

/* ========== Product Item Hover ========== */
.product-item .image {
  overflow: hidden;
}

.product-item .image img {
  transition: transform 0.5s ease;
}

.product-item:hover .image img {
  transform: scale(1.1);
}

/* ========== Instagram Hover ========== */
.instagram-item {
  position: relative;
  overflow: hidden;
}

.instagram-item img {
  transition: transform 0.5s ease;
}

.instagram-item:hover img {
  transform: scale(1.1);
}

.instagram-item a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 30px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.instagram-item:hover a {
  opacity: 1;
}

/* ========== Preloader ========== */
.preloader {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 9999999;
  background-color: #ffffff;
  background-repeat: no-repeat;
  background-position: center center;
  background-image: url('/assets/images/preloader.gif');
}

/* ========== Button Hover Effects ========== */
.theme-btn {
  position: relative;
  overflow: hidden;
}

/* ========== Footer Widget Links Hover ========== */
.footer-widget ul li a {
  transition: all 0.3s ease;
}

.footer-widget ul li a:hover {
  color: #D6B981;
  padding-left: 5px;
}

/* ========== Scroll Top Button ========== */
.scroll-top {
  transition: all 0.3s ease;
}

.scroll-top:hover {
  background: #D6B981;
}
