/**
 * Homepage Floralis — front-page-only layout overrides.
 * Loaded conditionally via is_front_page() in functions.php.
 * Global typography, tokens, base buttons, section heading ornament live in style.css.
 */

/* ============================================================
 * 1. Section padding shared between front-page sections
 * ============================================================ */
.floralis-section {
  padding: 70px 0 50px;
}

div#rezervare-section {
  background: #f7f0e6 !important;
  background-image: none !important;
}

.floralis-section .floralis-heading {
  font-size: 2.4rem;
  margin-bottom: 2.5rem;
  color: var(--floralis-text);
  text-align: center;
  padding-bottom: 18px;
  line-height: 60px;
  position: relative;
}

@media (max-width: 768px) {
  .floralis-section {
    padding: 45px 0 30px;
  }
  .floralis-section .floralis-heading {
    font-size: 1.9rem;
    margin-bottom: 1.8rem;
  }
}

/* ============================================================
 * 2. Hero slider — single static slide
 * ============================================================ */
.home .swiper-container {
  position: relative;
  height: 540px;
  overflow: hidden;
}

.home .swiper-slide {
  height: 540px;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
}

.home .swiper-slide .slider_overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 60%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
}

.home .swiper-slide .container {
  position: relative;
  z-index: 2;
}

.home .swiper-slide .inner_slide {
  text-align: left;
  max-width: 600px;
  padding-left: 20px;
}

.home .swiper-slide h2 {
  color: #fff;
  font-size: 4rem;
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 1.8rem;
}

.home .swiper-slide p {
  color: #fff;
  font-size: 1.3rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.home .swiper-slide .slide_button .btn-primary-slide {
  font-size: 18px;
  padding: 14px 36px;
}

/* Hide carousel chrome when only one slide */
.home .swiper-button-next,
.home .swiper-button-prev,
.home .swiper-pagination {
  display: none !important;
}

@media (max-width: 768px) {
  .home .swiper-container,
  .home .swiper-slide {
    height: 430px;
  }
  .home .swiper-slide h2 {
    font-size: 2.4rem;
  }
  .home .swiper-slide .inner_slide {
    text-align: center;
    padding: 0 20px;
    margin: 0 auto;
  }
}

/* ============================================================
 * 3. #recomandate-section — best-selling cards reskin (front page)
 * ============================================================ */
.home #recomandate-section {
  padding: 50px 0 0;
}

.home #recomandate-section .custom_box {
  margin-bottom: 30px;
}

.home #recomandate-section .product_box {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.home #recomandate-section .product_box:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
}

.home #recomandate-section .featured_image {
  background: var(--floralis-cream);
}

.home #recomandate-section .featured_image img {
  object-fit: cover;
  display: block;
}

.home #recomandate-section .product_title {
  font-size: 1.3rem;
  font-weight: 500;
  padding: 18px 20px 8px;
  margin: 0;
}

.home #recomandate-section .product_title a {
  color: var(--floralis-text);
  text-decoration: none;
  font-size: 20px;
}

.home #recomandate-section .inner-menu-box {
  padding: 0 20px 20px;
}

.home #recomandate-section .price {
  color: var(--floralis-primary);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.home #recomandate-section .btn_order_now a {
  width: 100%;
  text-align: center;
  font-size: 1rem;
  padding: 10px 20px;
}

.home #recomandate-section .btn_order_now a.added_to_cart,
.home .btn_order_now a.added_to_cart {
  display: none !important;
}

.home #recomandate-section .product-badge {
  background: var(--floralis-primary);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
}

.home .best_selling_custom .inner-menu-box .price ins .woocommerce-Price-amount,
.home .best_selling_custom .inner-menu-box .price > .woocommerce-Price-amount {
  font-size: 20px;
}

@media (max-width: 768px) {
  .home #recomandate-section {
    padding: 35px 0 25px;
  }
}

/* ============================================================
 * 4. #rezervare-section — Aranjamente pentru evenimente
 * ============================================================ */
.home #rezervare-section {
  background: var(--floralis-cream);
  background-image: none;
  padding: 0;
  margin: 50px 0;
  position: relative;
  overflow: hidden;
}

#info-text {
  padding: 50px 0;
  background-color: var(--floralis-cream);
  border-top: 1px solid var(--floralis-cream);
}

.home #rezervare-section > .row {
  margin: 0;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.home #rezervare-section > .row > [class*='col-'] {
  padding: 0;
}

.home #rezervare-section .rezervare-image {
  padding: 0;
  height: 100%;
}

.home #rezervare-section .rezervare-image img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.home #rezervare-section .content {
  padding: 50px 60px;
  max-width: 800px;
}

.home #rezervare-section .content h1,
.home #rezervare-section .content h2,
.home #rezervare-section .content h3 {
  font-weight: 500;
  color: var(--floralis-text);
  font-size: 2.6rem;
  line-height: 1.05;
  margin: 0 0 4px;
}

.home #rezervare-section .content p {
  font-size: 1.05rem;
  color: #5c4a44;
  margin-bottom: 12px;
  line-height: 1.55;
}

.home #rezervare-section .content p:first-of-type {
  margin-top: 18px;
}

.home #rezervare-section .content .btn-primary-slide {
  margin-top: 18px;
  padding: 12px 32px;
  font-size: 1.05rem;
}

/* Decorative floral flourish — desktop only (avoids 3.6MB download on mobile).
 * TODO: replace flori-scaled.png with optimized WebP (~50KB) at 800px wide. */
.home #rezervare-section::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 400px;
  height: 100%;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center right;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

@media (min-width: 769px) {
  .home #rezervare-section::after {
    background-image: url(https://floralis-artaflorilor.ro/wp-content/uploads/2026/05/flori-scaled.png);
  }
}

@media (max-width: 768px) {
  .home #rezervare-section {
    padding: 40px 0;
    margin: 30px 0;
  }
  .home #rezervare-section .content {
    padding: 20px 20px 10px;
    text-align: center;
  }
  .home #rezervare-section .content h1,
  .home #rezervare-section .content h2,
  .home #rezervare-section .content h3 {
    font-size: 2rem;
  }
  .home #rezervare-section .rezervare-image {
    padding: 0 15px;
    margin-bottom: 20px;
  }
  .home #rezervare-section::after {
    display: none;
  }
}

/* ============================================================
 * 5. .produse-recomandate — small circular cards (reusable component)
 * ============================================================ */
.produse-recomandate.floralis-section {
  padding: 30px 0;
  background: #fff;
}

.produse-recomandate .floralis-heading {
  margin-bottom: 1.6rem;
}

.produse-recomandate .produse-recomandate__grid {
  justify-content: center;
}

.produse-recomandate .floralis-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  padding: 8px 6px 14px;
  transition: transform 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.produse-recomandate .floralis-card:hover {
  transform: translateY(-3px);
}

.produse-recomandate .floralis-card__image {
  display: block;
  background: var(--floralis-cream);
  border-radius: 50%;
  width: 110px;
  height: 110px;
  margin: 0 auto 10px;
  overflow: hidden;
}

.produse-recomandate .floralis-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.produse-recomandate .floralis-card__body {
  padding: 0 6px;
  width: 100%;
}

.produse-recomandate .floralis-card__title {
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0 0 2px;
  line-height: 1.2;
}

.produse-recomandate .floralis-card__title a {
  color: var(--floralis-text);
  text-decoration: none;
}

.produse-recomandate .floralis-card__price {
  color: var(--floralis-primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 10px;
}

.produse-recomandate .floralis-card__btn {
  display: inline-block;
  background: var(--floralis-primary);
  color: #fff;
  border-radius: 30px;
  padding: 6px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.2s ease;
}

.produse-recomandate .floralis-card__btn:hover {
  background: var(--floralis-primary-hover);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 768px) {
  .produse-recomandate.floralis-section {
    padding: 25px 0;
  }
}

@media (max-width: 575px) {
  .produse-recomandate .floralis-card__image {
    width: 95px;
    height: 95px;
  }
  .produse-recomandate .floralis-card__title {
    font-size: 0.95rem;
  }
}

/* ============================================================
 * 6. .galerie-foto — 4-up grid (front-page gallery section)
 * ============================================================ */
.galerie-foto {
  background: #fff;
  padding: 40px 0 50px;
}

.galerie-foto > .container-fluid {
  padding-left: 0;
  padding-right: 0;
}

.galerie-foto__grid {
  margin-left: 0;
  margin-right: 0;
}

.galerie-foto__grid > [class*='col-'] {
  padding-left: 15px;
  padding-right: 15px;
  margin-bottom: 15px !important;
}

.row.galerie-foto__grid.no-gutters {
  padding: 0 5%;
}

.galerie-foto__item {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
  aspect-ratio: 4 / 3;
}

.galerie-foto__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform 0.35s ease,
    opacity 0.3s ease;
}

.galerie-foto__item:hover .galerie-foto__img {
  transform: scale(1.04);
  opacity: 0.92;
}

@supports not (aspect-ratio: 4 / 3) {
  .galerie-foto__item {
    height: 0;
    padding-bottom: 75%;
  }
  .galerie-foto__img {
    position: absolute;
    top: 0;
    left: 0;
  }
}

@media (max-width: 768px) {
  .galerie-foto {
    padding: 25px 0 35px;
  }
}

/* ============================================================
 * 7. Header polish — white solid background on front page
 * ============================================================ */
.home header.header.clear.header-type-full.landing-inactive {
  position: relative !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.home header.header.clear.header-type-full.landing-inactive .nav-link,
.home header.header.clear.header-type-full.landing-inactive a,
.home header.header.clear.header-type-full.landing-inactive .navbar-brand {
  color: var(--floralis-text);
}

.home header.header.landing-inactive::after {
  background: transparent !important;
  display: none !important;
}

.top-header * {
  color: #fff !important;
}

.header .main-header .header_action ul li i,
.header .main-header .header_action ul li svg {
  color: var(--floralis-text);
}

.home .navbar .nav-link,
.home .main-header .nav-link,
.home .main-header a {
  font-size: 1.1rem;
  font-weight: 500;
}

.home_links {
  display: inline-block;
  background: var(--floralis-cream);
}

#category-bkg {
  padding: 50px 0 0;
}

@media (max-width: 768px) {
  #category-bkg {
    padding: 35px 0 0;
  }
}
