/*
Theme Name: OneMoving
Text Domain: onemoving
Description: Tema personalizado para OneMoving
Version: 1.0
Requires at least: 5.0
Tested up to: 6.0
Requires PHP: 8.0
Author: Tunnel
Author URI: https://tunnel.ag/
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Redonda', sans-serif;
}

body {
  background-color: #eeeeee;
}

ul {
  list-style: none;
}

a {
  color: #333;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--e-global-color-primary);
}

.container {
  max-width: 1398px;
  margin: 0 auto;
  padding: 0 24px;
}

.menu-shortcode {
  margin: 0;
}

.menu-shortcode-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.menu-shortcode-list li {
  margin: 0;
}

.menu-shortcode-list a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

.menu-shortcode-list a:hover {
  color: #ff6900;
}

.menu-error {
  color: #d63638;
  background: #fef7f1;
  padding: 10px;
  border-left: 4px solid #d63638;
  margin: 10px 0;
}

/* Menu Mobile Styles */
.menu-hamburguer {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-hamburguer span {
  width: 100%;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-hamburguer:hover span {
  background: #ff6900;
}

.menu-hamburguer.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background: #ff6900;
}

.menu-hamburguer.active span:nth-child(2) {
  opacity: 0;
}

.menu-hamburguer.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background: #ff6900;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100%;
  background: #fff;
  z-index: 1000;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 0;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu-header {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1001;
}

.mobile-menu-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #333;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  font-weight: bold;
  line-height: 1;
}

.mobile-menu-close:hover {
  background: #ff6900;
  color: #fff;
}

.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 20px;
}

.mobile-menu-list li {
  margin: 0;
  border-bottom: 1px solid #eee;
}

.mobile-menu-list a {
  display: block;
  padding: 15px 0;
  text-decoration: none;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-menu-list a:hover {
  color: #ff6900;
}

/* Seletor de idiomas no menu mobile */
.mobile-language-selector {
  border-top: 1px solid #eee;
  padding: 20px;
  background: #f9f9f9;
}

.mobile-language-selector h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-language-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-language-list a[href='#pll_switcher'] {
  display: none;
}

.mobile-language-list li {
  margin: 0;
  border-bottom: 1px solid #eee;
}

.mobile-language-list li:last-child {
  border-bottom: none;
}

.mobile-language-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-language-list a:hover {
  color: #ff6900;
}

.mobile-language-list img {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
}

.mobile-language-list .current-language a {
  color: #ff6900;
  font-weight: 600;
}

.mobile-language-list .current-language a::after {
  content: '✓';
  margin-left: auto;
  color: #ff6900;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-hamburguer {
    display: flex;
  }

  .mobile-menu {
    width: 100%;
    max-width: none;
  }
}

/* Layout antigo - mantido para compatibilidade */
.posts-cards {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 1rem;
}

/* Novo layout em grid 2x4 */
.posts-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.post-card {
  background: #111;
  color: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  min-height: 370px;
  height: 100%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: relative;
}

/* Estilos para os itens do grid */
.post-card-grid-item {
  position: relative;
}

/* Overlay para melhor legibilidade */
.post-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  border-radius: 16px;
}

/* Estilos para o botão "Ver mais" */
.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.load-more-btn {
  background: var(--e-global-color-primary, #ff6900);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Redonda', sans-serif;
}

.load-more-btn:hover {
  background: #e55a00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 105, 0, 0.3);
}

.load-more-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.post-card .post-data {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 16px 0;
}

.post-card h2 {
  font-size: 1.375rem;
}

.post-card p {
  font-size: 1rem;
}

.post-card .read-more-btn {
  font-size: 1rem;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  background: var(--e-global-color-primary);
  border-radius: 8px;
  padding: 16px 24px;
  display: flex;
  width: fit-content;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-weight: 400;
  transition: all 0.3s ease;
}

.post-card .read-more-btn:hover {
  background: #e55a00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 105, 0, 0.3);
}

/* Single Post Styles */
.post-single {
  margin-bottom: 64px;
}

.post-single .breadcrumb {
  margin-bottom: 24px;
}

.post-single .breadcrumb span {
  color: var(--e-global-color-primary);
}

.post-single .breadcrumb a {
  text-decoration: none;
  color: var(--e-global-color-secondary);
  transition: color 0.3s ease;
}

.post-single .breadcrumb a:hover {
  color: var(--e-global-color-primary);
  text-decoration: underline;
}

.post-single .post-header {
  margin-bottom: 24px;
}

.post-single .post-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.post-single .post-header .post-meta {
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
}

.post-single .post-header .post-meta .post-author {
  font-size: 1rem;
}

.post-single .post-header .post-featured-image {
  margin-bottom: 24px;
  width: 100%;
}

.post-single .post-header .post-featured-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
}

@media screen and (max-width: 768px) {
  .post-single .post-header .post-featured-image img {
    height: 300px;
  }
}

/* ── “big” cells ───────────────────────────── */
.wide-left {
  grid-column: 1 / span 5;
} /* lines 1‑6 */
.wide-centre {
  grid-column: 3 / span 5;
} /* lines 3‑8 */
.wide-right {
  grid-column: 5 / span 5;
} /* lines 5‑10 */

/* ── “small” cells (0.4fr) ─────────────────── */
.narrow {
  grid-column: span 2;
} /* 2 units   */

.narrow p,
.narrow .post-data {
  display: none;
}

.narrow .post-data {
  margin: 0;
}

.testimonial-card {
  background: #fef9f9;
  padding: 24px;
  border-radius: 16px;
}

.testimonial-card .testimonial-header {
  margin-bottom: 16px;
}

.testimonial-card .testimonial-header .testimonial-service {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  text-transform: uppercase;
  color: var(--e-global-color-text);
}

.testimonial-card .testimonial-body .testimonial-title {
  font-size: 2rem;
  font-weight: 700;
}

.testimonial-card .testimonial-body .testimonial-role {
  font-size: 1rem;
  color: var(--e-global-color-text);
}

.testimonial-card .testimonial-body .testimonial-rate {
  margin-top: 24px;
  margin-bottom: 24px;
}

.testimonial-card .testimonial-body .testimonial-content {
  font-size: 1.25rem;
  color: var(--e-global-color-text);
  height: 270px;
  overflow-y: auto;
  line-height: 2rem;
}

#idioms a {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Swiper Testimonials Styles ───────────────────────────── */
.testimonials-swiper-container {
  position: relative;
  width: 100%;
  padding: 0 20px;
}

.testimonials-swiper {
  width: 100%;
  height: auto;
}

.testimonials-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.testimonials-swiper .testimonial-card {
  width: 100%;
  height: 100%;
  margin: 0;
}

/* Navegação do Swiper */
.testimonials-swiper .swiper-button-next,
.testimonials-swiper .swiper-button-prev {
  width: 48px;
  height: 48px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #333333;
  transition: all 0.3s ease;
}

.testimonials-swiper .swiper-button-next:hover,
.testimonials-swiper .swiper-button-prev:hover {
  background: var(--e-global-color-primary);
  color: #ffffff;
  transform: scale(1.1);
}

.testimonials-swiper .swiper-button-next::after,
.testimonials-swiper .swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
}

/* Paginação do Swiper */
.testimonials-swiper .swiper-pagination {
  position: relative;
  margin-top: 30px;
}

.testimonials-swiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #cccccc;
  opacity: 1;
  transition: all 0.3s ease;
}

.testimonials-swiper .swiper-pagination-bullet-active {
  background: var(--e-global-color-primary);
  transform: scale(1.2);
}

/* Responsividade */

/* Mobile (768px and below) */
@media (max-width: 768px) {
  .testimonials-swiper-container {
    padding: 0 10px;
  }

  .testimonials-swiper .swiper-button-next,
  .testimonials-swiper .swiper-button-prev {
    width: 40px;
    height: 40px;
  }

  .testimonials-swiper .swiper-button-next::after,
  .testimonials-swiper .swiper-button-prev::after {
    font-size: 16px;
  }

  /* Posts Cards Mobile Responsive */
  .posts-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Novo layout em grid - responsivo */
  .posts-cards-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1.5rem;
  }

  .post-card-grid-item .post-card {
    min-height: 250px;
  }

  .post-card-overlay {
    padding: 1rem;
  }

  .post-card-overlay h2 {
    font-size: 1.5rem !important;
  }

  .post-card-overlay p {
    font-size: 1rem !important;
  }
}

/* Responsividade para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .posts-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 1.5rem;
  }

  .post-card-grid-item .post-card {
    min-height: 280px;
  }

  .post-card-overlay h2 {
    font-size: 1.75rem !important;
  }

  .post-card-overlay p {
    font-size: 1.125rem !important;
  }

  .post-card {
    min-height: 400px;
    padding: 20px;
  }

  .post-card h2 {
    font-size: 1.75rem;
  }

  .post-card p {
    font-size: 1.125rem;
  }

  /* Reset grid classes for mobile */
  .wide-left,
  .wide-centre,
  .wide-right,
  .narrow {
    grid-column: 1;
  }

  /* Show content for narrow cards on mobile */
  .narrow p,
  .narrow .post-data {
    display: block;
  }

  .narrow .post-data {
    margin: 16px 0;
  }
}

.menu-hamburguer {
  display: none;
}

.menu-hamburguer .line {
  width: 24px;
  height: 2px;
  background: #000000;
}

@media (max-width: 1280px) {
  .menu-hamburguer {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
}
