/* Nortfly - modern home polish (reversible)
   Toggle: set option 'nortfly_modern_home_ui' to 0 to disable all styles here
*/

:root {
  --nh-gap: 18px;
  --nh-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.page-id-3084 .col-inner {
  animation: nh-fade-up 560ms var(--nh-ease);
}

@keyframes nh-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.nortfly-modern-home .home-intro,
.nortfly-modern-home .banner-elegante {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(13, 83, 144, 0.06), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(13, 83, 144, 0.14);
  box-shadow: 0 18px 40px rgba(15, 45, 84, 0.12);
  padding: 24px;
}

.nortfly-modern-home .home-intro::after,
.nortfly-modern-home .banner-elegante::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  pointer-events: none;
}

.nortfly-modern-home .home-intro h1,
.nortfly-modern-home .banner-elegante h1 {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.015em;
}

.nortfly-modern-home .home-intro p,
.nortfly-modern-home .banner-elegante p {
  color: #444d61;
  margin-bottom: 0;
}

.nortfly-modern-home .home-intro::before,
.nortfly-modern-home .banner-elegante::before {
  content: "";
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(13, 83, 144, 0.16) 0%, transparent 70%);
  position: absolute;
  right: -24px;
  top: -36px;
  pointer-events: none;
}

.nortfly-modern-home .home .section-title,
.nortfly-modern-home h2.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 18px;
  padding-bottom: 12px;
}

.nortfly-modern-home .home .section-title::after,
.nortfly-modern-home h2.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 84px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #0d5390, #7a9c59);
}

.nortfly-modern-home .info-bar {
  margin-top: 12px;
}

.nortfly-modern-home .info-card {
  position: relative;
  overflow: hidden;
}

.nortfly-modern-home .info-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 55%, rgba(13, 83, 144, 0.08));
  opacity: 0;
  transition: opacity 220ms ease;
}

.nortfly-modern-home .info-card:hover::after {
  opacity: 1;
}

.nortfly-modern-home .product-small .box {
  border-radius: 18px;
  border: 1px solid rgba(13, 83, 144, 0.12);
  overflow: hidden;
}

.nortfly-modern-home .product-small .box:hover {
  transform: translateY(-4px) scale(1.01);
}

.nortfly-modern-home .product-small .box .col {
  position: relative;
}

.nortfly-modern-home .product-small .box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(13, 83, 144, 0.06));
  opacity: 0;
  transition: opacity 180ms var(--nh-ease);
  pointer-events: none;
}

.nortfly-modern-home .product-small .box:hover::before {
  opacity: 1;
}

.nortfly-modern-home .product-small .price-wrapper {
  margin-top: 12px;
}

.nortfly-modern-home .product-small .price-wrapper .price {
  font-size: 1.04rem;
}

.nortfly-modern-home .product-small .title-wrapper .name a {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.nortfly-modern-home .add-to-cart-grid {
  border-radius: 100px;
  width: 34px;
  height: 34px;
}

.nortfly-modern-home .add-to-cart-grid .cart-icon {
  border-radius: 100px;
  width: 30px;
  height: 30px;
  font-size: 16px;
}

.nortfly-modern-home .home .banner-elegante + .info-bar {
  position: sticky;
  top: 18px;
  z-index: 2;
}

.nortfly-modern-home .home .section .section-content,
.nortfly-modern-home .home .row {
  gap: var(--nh-gap);
}

.nortfly-modern-home .home .product-small {
  animation: nh-fade-up 560ms var(--nh-ease);
}

.nortfly-modern-home .home .product-small:nth-child(2) { animation-delay: 40ms; }
.nortfly-modern-home .home .product-small:nth-child(3) { animation-delay: 80ms; }
.nortfly-modern-home .home .product-small:nth-child(4) { animation-delay: 120ms; }

.nortfly-modern-home .home .product-small:nth-child(5) { animation-delay: 160ms; }
.nortfly-modern-home .home .product-small:nth-child(6) { animation-delay: 200ms; }

@media (max-width: 768px) {
  .nortfly-modern-home .home-intro,
  .nortfly-modern-home .banner-elegante {
    padding: 18px;
  }

  .nortfly-modern-home .home-intro::before {
    width: 120px;
    height: 120px;
  }

  .nortfly-modern-home .home .section-title::after {
    width: 60px;
  }
}

/* Stronger, obvious overrides for users who still see old style */
.nortfly-modern-home .banner-elegante {
  background: linear-gradient(140deg, #ecf3ff 0%, #ffffff 62%, #f5f8ff 100%) !important;
  border-radius: 24px !important;
  box-shadow: 0 24px 60px rgba(10, 35, 70, 0.18) !important;
  border-color: #bfd4f5 !important;
  transform: translateY(-2px);
}

.nortfly-modern-home .banner-elegante h1 {
  font-size: clamp(2rem, 3.2vw, 2.6rem) !important;
  letter-spacing: -0.02em !important;
  color: #0b3f73 !important;
}

.nortfly-modern-home .info-card {
  border-radius: 16px !important;
  padding: 16px 14px !important;
  transform: translateY(0);
}

.nortfly-modern-home .info-card .big {
  font-size: 24px !important;
  color: #0b3f73 !important;
}

.nortfly-modern-home .product-small .box {
  border-radius: 18px !important;
  border-color: #d5e3f7 !important;
  box-shadow: 0 12px 28px rgba(14, 39, 73, 0.08) !important;
}

.nortfly-modern-home .product-small .title-wrapper .name a {
  color: #17263b !important;
}

.nortfly-modern-home .product-small .price {
  color: #0d2f53 !important;
  font-size: 1.04rem !important;
}
