/*
Theme Name: generatepress-child
Template: generatepress
Version: 32
Author: Elahe Ekbatani
Description: Child theme for generatepress - Final Clean Version (Forced LTR)
*/

/* ===== پایه ===== */
* {
  box-sizing: border-box;
}
html,
body,
.th-site {
  direction: ltr !important;
  text-align: left !important;
}
.th-site {
  font-family: Arial, sans-serif;
}

/* ===== هدر ===== */
.header {
  background: #ffffff;
  border-bottom: 1px solid #dce4ef;
  position: sticky;
  top: 0;
  z-index: 999;
  direction: ltr;
}
.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  flex-wrap: nowrap;
  gap: 12px;
  direction: ltr;
}
.logo {
  display: flex;
  align-items: center;
  font-weight: 800;
  color: #083b83;
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
}
.logo-mark {
  background: #0b5ed7;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  margin-right: 8px;
  font-weight: 900;
}
.menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  position: relative;
  direction: ltr;
  text-align: left;
}
.menu > li {
  position: relative;
}
.menu a {
  text-decoration: none;
  color: #1d2733;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 0;
  display: inline-block;
}
.menu a:hover {
  color: #0b5ed7;
}

/* زیرمنو */
.menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 12px 0;
  margin: 0;
  list-style: none;
  min-width: 220px;
  z-index: 1000;
  border: 1px solid #e5e9f0;
  text-align: left;
}
.menu li:hover > .sub-menu {
  display: block;
}
.menu .sub-menu a {
  padding: 8px 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: #374151;
  display: block;
}
.menu .sub-menu a:hover {
  background: #f8fafc;
  color: #0b5ed7;
}

/* دکمه‌ها */
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-btn {
  border: 1px solid #dce4ef;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
}
.track-btn {
  background: #0b5ed7;
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

/* ===== هامبرگر منو موبایل (CSS خالص) ===== */
.menu-toggle {
  display: none;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #1d2733;
  border-radius: 3px;
  transition: all 0.3s ease;
}
.menu-toggle:checked + .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}
.menu-toggle:checked + .hamburger span:nth-child(2) {
  opacity: 0;
}
.menu-toggle:checked + .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* ===== ریسپانسیو ===== */
@media (max-width: 1100px) {
  .nav {
    gap: 10px;
  }
  .menu {
    gap: 14px;
  }
  .menu a {
    font-size: 13.5px;
  }
}
@media (max-width: 900px) {
  .nav {
    position: relative;
    padding: 14px 20px;
  }
  .hamburger {
    display: flex;
    order: 2;
  }
  .logo {
    order: 1;
  }
  .actions {
    display: none;
  }
  .main-menu-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 15px 24px;
    z-index: 1000;
    border-top: 1px solid #f1f5f9;
    direction: ltr;
    text-align: left;
  }
  .menu-toggle:checked ~ .main-menu-container {
    display: block;
  }
  .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }
  .menu > li {
    width: 100%;
  }
  .menu a {
    font-size: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    display: block;
    width: 100%;
  }
  .menu .sub-menu {
    position: static;
    box-shadow: none;
    padding: 0 0 0 15px;
    border: none;
    display: block;
    background: #f8fafc;
  }
  .menu .sub-menu a {
    border-bottom: none;
    padding: 8px 15px;
    font-size: 14px;
  }
}
@media (max-width: 640px) {
  .nav {
    padding: 12px 16px;
  }
  .logo {
    font-size: 13px;
  }
  .logo-mark {
    padding: 4px 8px;
    margin-right: 6px;
  }
}

/* ===== فوتر ===== */
.site-footer {
  background: #111;
  color: #ccc;
  padding: 50px 0 20px;
  font-size: 14px;
  direction: ltr;
  text-align: left;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 35px;
}
.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 9px;
}
.footer-col ul li a {
  color: #ccc;
  text-decoration: none;
}
.footer-col ul li a:hover {
  color: #0b5ed7;
}
.footer-desc {
  line-height: 1.7;
  margin-top: 12px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 12px;
}
.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 45px;
  padding-top: 20px;
  text-align: center;
  color: #888;
  font-size: 13px;
}
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }
  .footer-col {
    text-align: center;
  }
  .footer-logo {
    justify-content: center;
  }
}

/* ===== فرم دیدگاه زیبا + انیمیشن (TrueHarbor) ===== */
#respond,
.comment-respond,
#commentform,
.comment-form {
  background: #ffffff !important;
  border-radius: 16px !important;
  padding: 28px 30px !important;
  box-shadow: 0 12px 40px rgba(11, 94, 215, 0.10) !important;
  border: 1px solid #e0eaf8 !important;
  animation: commentFadeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both !important;
  margin-top: 30px !important;
  direction: ltr !important;
  text-align: left !important;
}

@keyframes commentFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.comment-reply-title,
#reply-title {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #0b5ed7 !important;
  margin-bottom: 20px !important;
  position: relative !important;
  padding-bottom: 12px !important;
}

.comment-reply-title::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 48px !important;
  height: 3px !important;
  background: linear-gradient(90deg, #0b5ed7, #3b82f6) !important;
  border-radius: 4px !important;
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100% !important;
  border: 1.5px solid #d0dceb !important;
  border-radius: 11px !important;
  padding: 14px 16px !important;
  font-size: 15px !important;
  background: #f7fafc !important;
  transition: all 0.28s ease !important;
  margin-bottom: 14px !important;
  box-shadow: none !important;
  direction: ltr !important;
}

#commentform input:focus,
#commentform textarea:focus,
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: #0b5ed7 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(11, 94, 215, 0.13) !important;
  outline: none !important;
  transform: translateY(-2px) !important;
}

#comment,
textarea[name="comment"] {
  min-height: 150px !important;
}

#submit,
.form-submit input[type="submit"],
button[name="submit"] {
  background: linear-gradient(135deg, #0b5ed7, #1d4ed8) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 11px !important;
  padding: 14px 36px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 6px 20px rgba(11, 94, 215, 0.32) !important;
}

#submit:hover,
.form-submit input[type="submit"]:hover,
button[name="submit"]:hover {
  transform: translateY(-4px) scale(1.04) !important;
  box-shadow: 0 12px 28px rgba(11, 94, 215, 0.42) !important;
}

.comment-form-cookies-consent {
  margin: 16px 0 20px !important;
  font-size: 13.5px !important;
  color: #64748b !important;
}

.logged-in-as {
  background: #f0f7ff !important;
  padding: 12px 16px !important;
  border-radius: 10px !important;
  border-left: 4px solid #0b5ed7 !important;
  margin-bottom: 18px !important;
}