/*
Theme Name: MyChild Colibri
Template: colibri-wp
Version: 2.8.0
Description: Дочерняя тема для Colibri WP - финальная версия с воздушной мозаикой и расстоянием между плитками
Author: Your Name
Author URI: https://example.com
Text Domain: mychild-colibri
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ============================================
   CSS Variables
   ============================================ */
:root {
  --mychild-cols: 12;
  --mychild-rows: 8;
  --mychild-gap: 4px;
  --mychild-hero-img: url("assets/hero.jpg");
}

/* ============================================
   Hero Wrapper - Изоляция стилей
   ============================================ */
.mychild-hero-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #fafaf7;
}

/* Вертикальная надпись слева - УБРАНА для органичного вида */
.mychild-hero-wrapper::before {
  display: none;
}

/* Декоративные точечные паттерны - УБРАНЫ для чистого вида */
.hero__grid::before,
.hero__grid::after,
.hero__content::before {
  display: none;
}

/* ============================================
   Hero Section
   ============================================ */
.mychild-hero-wrapper .hero {
  position: relative;
  min-height: 100vh;
  padding: 0;
  max-width: 100%;
  margin: 0;
  background: #fafaf7;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* ============================================
   Hero Grid (Asymmetric Mosaic - 6x4 base grid)
   ============================================ */
.mychild-hero-wrapper .hero__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: var(--mychild-gap);
  position: absolute;
  left: 5%;
  top: 0;
  width: 65vw;
  height: 100vh;
  padding: 3rem 0 3rem 0;
  z-index: 1;
}

.mychild-hero-wrapper .tile {
  background-image: url("assets/hero.jpg");
  background-image: var(--mychild-hero-img); /* Fallback на переменную */
  background-size: 1200% 800% !important; /* 12 колонок x 8 рядов */
  background-repeat: no-repeat !important;
  opacity: 0;
  animation: mychildTileIn 0.6s ease-out forwards;
  animation-delay: var(--delay, 0s);
  overflow: hidden;
}

/* ============================================
   Tile Animation
   ============================================ */
@keyframes mychildTileIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ============================================
   Hero Content (Right Column)
   ============================================ */
.mychild-hero-wrapper .hero__content {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  position: absolute;
  right: 5%;
  top: 50%;
  z-index: 10;
  width: 52%;
  max-width: none;
  min-height: auto;
  align-items: flex-end;
  text-align: right;
  transform: translateY(-38%);
}

.mychild-hero-wrapper .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #FF6B35;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 1rem 0;
  position: relative;
  z-index: 2;
}

.mychild-hero-wrapper .hero__title {
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 1.1;
  color: #1a1a2e;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem 0;
  position: relative;
  z-index: 2;
  max-width: 100%;
}

.mychild-hero-wrapper .hero__text {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #444;
  max-width: 75%;
  margin: 0 0 2rem 0;
  position: relative;
  z-index: 2;
}

.mychild-hero-wrapper .hero__cta {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2.5rem;
  background-color: #1a1a2e;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  width: fit-content;
  margin: 0;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.mychild-hero-wrapper .hero__cta:hover {
  background-color: #FF6B35;
  color: #fff !important;
  transform: translateY(-2px);
}

/* ============================================
   Social Links
   ============================================ */
.mychild-hero-wrapper .hero__socials {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  position: absolute;
  bottom: 2rem;
  right: 8%;
  z-index: 10;
  justify-content: flex-end;
}

.mychild-hero-wrapper .hero__social-link {
  color: #999;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
  font-weight: 500;
}

.mychild-hero-wrapper .hero__social-link:hover {
  color: #1a1a2e;
}

/* ============================================
   Responsive Design (Mobile)
   ============================================ */
@media (max-width: 900px) {
  .mychild-hero-wrapper .hero {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: auto;
  }

  .mychild-hero-wrapper::before {
    display: none;
  }

  .mychild-hero-wrapper .hero__grid {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 400px;
    padding: 2rem 1rem;
    left: auto;
    top: auto;
  }

  .mychild-hero-wrapper .tile {
    background-size: 600% 400% !important;
  }

  .mychild-hero-wrapper .hero__content {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    padding: 3rem 2rem;
    box-shadow: none;
    min-height: auto;
  }

  .mychild-hero-wrapper .hero__title {
    font-size: 2.5rem;
  }

  .mychild-hero-wrapper .hero__text {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .hero__grid::before,
  .hero__grid::after,
  .hero__content::before {
    display: none;
  }
}

@media (max-width: 600px) {
  .mychild-hero-wrapper .hero__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    height: 40vh;
    min-height: 300px;
    padding: 1.5rem 0.5rem;
  }

  .mychild-hero-wrapper .tile {
    background-size: 300% 400% !important;
  }

  .mychild-hero-wrapper .hero__content {
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .mychild-hero-wrapper .hero__title {
    font-size: 1.75rem;
  }

  .mychild-hero-wrapper .hero__text {
    font-size: 0.9rem;
  }

  .mychild-hero-wrapper .hero__cta {
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
  }
}

/* ============================================
   Products Carousel Section
   ============================================ */
.products-carousel {
  padding: 5rem 2rem;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
  margin-top: 0;
  width: 100%;
}

.products-carousel__container {
  max-width: 1600px;
  margin: 0 auto;
}

.products-carousel__title {
  font-size: 3rem;
  font-weight: 900;
  color: #1a1a2e;
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.products-carousel__subtitle {
  font-size: 1.125rem;
  color: #888;
  text-align: center;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.products-carousel__slider {
  margin-top: 2rem;
}

/* Стили для интеграции с Owl Carousel */
.products-carousel__slider .owl-carousel {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.products-carousel__slider .sa_hover_container {
  background-color: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  padding: 2rem !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
  min-height: auto !important;
}

.products-carousel__slider .sa_hover_container:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12) !important;
  border-color: #FF6B35 !important;
}

.products-carousel__slider .sa_hover_container h4 {
  color: #1a1a2e !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  margin-top: 1.5rem !important;
  text-align: center !important;
  transition: color 0.3s ease !important;
}

.products-carousel__slider .sa_hover_container:hover h4 {
  color: #FF6B35 !important;
}

.products-carousel__slider .sa_hover_container img {
  width: 100% !important;
  height: 180px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}

.products-carousel__slider .sa_hover_container a {
  text-decoration: none !important;
  display: block !important;
}

.products-carousel__slider .sa_hover_container > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Owl Carousel Navigation Buttons */
.products-carousel__slider .owl-nav {
  text-align: center;
  margin-top: 2rem;
}

.products-carousel__slider .owl-nav button {
  background: #1a1a2e !important;
  color: white !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  transition: all 0.3s ease !important;
  border: none !important;
  margin: 0 0.5rem !important;
}

.products-carousel__slider .owl-nav button:hover {
  background: #FF6B35 !important;
  transform: translateY(-2px) !important;
}

/* Owl Carousel Dots */
.products-carousel__slider .owl-dots {
  margin-top: 2rem !important;
  text-align: center !important;
}

.products-carousel__slider .owl-dot {
  width: 12px !important;
  height: 12px !important;
  background: #d0d0d0 !important;
  display: inline-block !important;
  margin: 0 0.5rem !important;
  transition: all 0.3s ease !important;
  border: none !important;
  padding: 0 !important;
}

.products-carousel__slider .owl-dot span {
  display: none;
}

.products-carousel__slider .owl-dot.active,
.products-carousel__slider .owl-dot:hover {
  background: #FF6B35 !important;
  transform: scale(1.2) !important;
}

/* Убираем серый фон из встроенных стилей */
.products-carousel__slider .white {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* Responsive для карусели продуктов */
@media (max-width: 900px) {
  .products-carousel {
    padding: 3rem 1.5rem;
  }

  .products-carousel__title {
    font-size: 2.5rem;
  }

  .products-carousel__subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .products-carousel__slider .sa_hover_container {
    padding: 1.5rem !important;
  }

  .products-carousel__slider .sa_hover_container img {
    height: 140px !important;
  }
}

@media (max-width: 600px) {
  .products-carousel {
    padding: 2rem 1rem;
  }

  .products-carousel__title {
    font-size: 1.75rem;
  }

  .products-carousel__subtitle {
    font-size: 0.95rem;
  }

  .products-carousel__slider .sa_hover_container h4 {
    font-size: 1.1rem !important;
  }

  .products-carousel__slider .owl-nav button {
    padding: 0.5rem 1rem !important;
    font-size: 0.8rem !important;
  }
}

