/*
Theme Name: Equichain Child
Template: equichain
Description: Child theme styles for Equichain Wealth Advisors
Version: 1.0
*/

/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Adamina&family=Montserrat:wght@300;400;500;600;700&display=swap");

/* Override and extend parent theme styles */
body {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Adamina", serif;
  font-weight: 400;
  line-height: 1.3;
  margin-top: 0;
}

/* Enhanced Header Styles */
#site-header {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-inner {
  padding: 15px 30px;
}

.site-logo img {
  max-width: 280px;
  transition: transform 0.3s ease;
}

.site-logo img:hover {
  transform: scale(1.02);
}

/* Enhanced Navigation */
.primary-menu > li > a {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* Products Menu Styling */
.primary-menu > li.products_menu > a {
  color: #cd2653;
}

/* Hero Banner / Elementor Sections */
.herobanner {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.herobanner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.herobanner .elementor-container {
  position: relative;
  z-index: 2;
}

.herobanner h2 {
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.herobanner .elementor-text-editor {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Theme Buttons */
.theme_btn .elementor-button {
  background-color: #cd2653;
  color: #ffffff;
  padding: 15px 35px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(205, 38, 83, 0.3);
}

.theme_btn .elementor-button:hover {
  background-color: #a01e42;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(205, 38, 83, 0.4);
}

/* Latest Update Section */
.latest-update-container {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 20px 0;
}

.latest-update h2 {
  font-size: 20px;
  font-weight: 700;
  color: #000000;
  margin: 0;
}

.update-listing ul {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 10px 0;
}

.update-listing li {
  white-space: nowrap;
  font-size: 14px;
}

.update-listing a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.update-listing a:hover {
  color: #cd2653;
}

/* Display Container */
.display_container {
  padding: 60px 0;
}

/* Section Padding Utilities */
.p0 {
  padding: 0 !important;
}

/* Elementor Overrides */
.elementor-section {
  position: relative;
}

.elementor-background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.elementor-widget-heading .elementor-heading-title {
  font-family: "Adamina", serif;
}

.elementor-invisible {
  opacity: 0;
}

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

.elementor-invisible {
  animation: fadeInUp 0.8s ease forwards;
}

/* Post Grid Styles */
.post-grid-inner {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-grid-inner:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.post-grid-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.post_cat_name {
  display: inline-block;
  background-color: #cd2653;
  color: #ffffff;
  padding: 5px 15px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin: 15px;
}

.post-grid-text-wrap {
  padding: 20px;
}

/* Contact Form Styles */
.wpcf7 {
  max-width: 800px;
  margin: 0 auto;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  margin-bottom: 15px;
}

.wpcf7 input[type="submit"] {
  background-color: #cd2653;
  color: #ffffff;
  padding: 12px 40px;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.wpcf7 input[type="submit"]:hover {
  background-color: #a01e42;
}

/* Table Styles */
.tablepress {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
}

.tablepress th {
  background-color: #cd2653;
  color: #ffffff;
  padding: 15px;
  text-align: left;
  font-weight: 600;
}

.tablepress td {
  padding: 12px 15px;
  border-bottom: 1px solid #e6e9ec;
}

.tablepress tr:hover {
  background-color: #f9f9f9;
}

/* Mobile Menu Modal */
.menu-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: none;
  overflow-y: auto;
}

.menu-modal.active {
  display: block;
}

.modal-menu {
  list-style: none;
  padding: 60px 30px;
  margin: 0;
}

.modal-menu li {
  margin-bottom: 20px;
}

.modal-menu a {
  color: #ffffff;
  text-decoration: none;
  font-size: 24px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.modal-menu a:hover {
  color: #cd2653;
}

.close-nav-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #ffffff;
  font-size: 36px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Search Modal */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.search-modal.active {
  display: flex;
}

.search-modal .search-field {
  width: 100%;
  max-width: 600px;
  padding: 20px;
  font-size: 24px;
  border: none;
  border-bottom: 2px solid #cd2653;
  background: transparent;
  color: #ffffff;
}

.search-modal .search-field::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .herobanner h2 {
    font-size: 36px;
  }

  .primary-menu > li {
    margin: 0 10px;
  }
}

@media (max-width: 768px) {
  .herobanner {
    min-height: 400px;
  }

  .herobanner h2 {
    font-size: 28px;
  }

  .herobanner .elementor-text-editor {
    font-size: 16px;
  }

  .site-logo img {
    max-width: 200px;
  }

  .update-listing ul {
    flex-direction: column;
  }

  .update-listing li {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 10px 15px;
  }

  .site-logo img {
    max-width: 160px;
  }

  .herobanner h2 {
    font-size: 24px;
  }

  .entry-title {
    font-size: 28px;
  }
}
