/*
Theme Name: Moti City - Astra Child
Description: Custom child theme for Moti City based on Astra theme with custom header and footer design
Author: Moti City Development Team
Template: astra
Version: 1.0.0
Text Domain: moti-city-child
*/

/* Import parent theme styles */
@import url("../astra/style.css");

/* Custom Moti City Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Override Astra Header */
.ast-desktop-header-content,
.ast-mobile-header-content {
  display: none !important;
}

/* Custom Header Styles */
.moti-city-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.moti-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.moti-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 1001;
}

.moti-logo-img {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

.moti-logo-img:hover {
  transform: scale(1.05);
}

.moti-nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
  align-items: center;
}

.moti-nav-menu a {
  text-decoration: none;
  color: #2c5530;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.moti-nav-menu a:hover {
  color: #4a7c59;
}

.moti-nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #4a7c59;
  transition: width 0.3s ease;
}

.moti-nav-menu a:hover::after {
  width: 100%;
}

.moti-nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.moti-cta-button {
  background: linear-gradient(135deg, #2c5530, #4a7c59);
  color: white !important;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(44, 85, 48, 0.3);
  border: none;
  cursor: pointer;
}

.moti-cta-button:hover {
  color: white !important;
  background: linear-gradient(135deg, #1a3b1e, #2c5530);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 85, 48, 0.4);
}

.moti-mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #2c5530;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.moti-mobile-cta {
  display: none;
}

/* Main Content Spacing */
.ast-container {
  padding-top: 80px;
}

/* Override Astra Footer */
.ast-footer-overlay,
.ast-small-footer {
  display: none !important;
}

/* Custom Footer Styles */
.moti-city-footer {
  background: #1a1a1a;
  color: white;
  padding: 3rem 0 1rem;
}

.moti-footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.moti-footer-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

.moti-footer-section p,
.moti-footer-section a {
  color: #ccc;
  text-decoration: none;
  line-height: 1.8;
}

.moti-footer-section a:hover {
  color: #4a7c59;
}

.moti-footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1rem;
  text-align: center;
  color: #999;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .moti-nav-menu {
    gap: 1.5rem;
  }

  .moti-nav-container {
    padding: 0 1.5rem;
  }

  .moti-footer-content {
    padding: 0 1.5rem;
  }

  .moti-footer-bottom {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (max-width: 768px) {
  .ast-container {
    padding-top: 70px;
  }

  .moti-city-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  }

  .moti-nav-container {
    padding: 0.75rem 1rem;
    position: relative;
  }

  .moti-logo {
    z-index: 1001;
  }

  .moti-logo-img {
    height: 40px;
  }

  .moti-nav-right .moti-cta-button {
    display: none;
  }

  .moti-mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #2c5530;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 1001;
    position: relative;
  }

  .moti-mobile-menu-btn:hover {
    background: #4a7c59;
    transform: scale(1.05);
  }

  .moti-nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    list-style: none;
    overflow-y: auto;
    box-sizing: border-box;
  }

  .moti-nav-menu.active {
    transform: translateX(0);
  }

  .moti-nav-menu li {
    margin: 2px 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 0;
    list-style: none;
  }

  .moti-nav-menu.active li {
    opacity: 1;
  }

  .moti-nav-menu a {
    display: block;
    padding: 2px 0;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    color: #2c5530;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .moti-nav-menu a:hover,
  .moti-nav-menu a:active {
    color: #4a7c59;
  }

  .moti-mobile-cta {
    display: block;
    margin: 20px 0 0 0;
    width: 100%;
    padding: 0;
  }

  .moti-mobile-cta-btn {
    display: block;
    width: 100%;
    padding: 12px 0;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    background: transparent;
    color: #2c5530;
    text-decoration: none;
    border: 2px solid #2c5530;
    border-radius: 4px;
    transition: all 0.2s ease;
  }

  .moti-mobile-cta-btn:hover,
  .moti-mobile-cta-btn:active {
    background: #2c5530;
    color: white;
  }

  .moti-footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .moti-footer-section h3 {
    font-size: 1.1rem;
  }

  .moti-footer-section p,
  .moti-footer-section a {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .moti-footer-bottom {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 480px) {
  .ast-container {
    padding-top: 60px;
  }

  .moti-nav-container {
    padding: 1rem;
  }

  .moti-footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .moti-footer-section {
    text-align: center;
  }

  .moti-footer-section h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }

  .moti-footer-section p,
  .moti-footer-section a {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .moti-footer-bottom p {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .moti-footer-bottom span {
    font-size: 0.7rem !important;
  }
}
