/* assets/css/main.css - animation + styles for slider text */

/* Swiper container */
.swiper {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  width: 100%; /* full width always */
  max-width: 100%;
}

/* HERO CONTENT ALIGNMENT VARIANTS */
.hero-content.align-left {
  justify-content: flex-start;
  text-align: left;
}

.hero-content.align-center {
  justify-content: center;
  text-align: center;
}

.hero-content.align-right {
  justify-content: flex-end;
  text-align: right;
}


/* Make each slide a positioned container with height controlled by Customizer */
.swiper-slide {
  position: relative;
  width: 100%;
  min-height: var(--slider-min-height, 500px); /* Customizer sets this via inline CSS */
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}

/* Slider image (fills container) */
.slider-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1; /* ensure image stays behind overlay */
}

/* Overlay wrapper (covers entire slide) */
.slider-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.28); /* fallback */
  box-sizing: border-box;
  z-index: 5; /* sit above image */
  pointer-events: none; /* allow swiping but keep buttons clickable */
  transition: background 0.3s ease;
}

/* Overlay fade animation */
.slide-overlay {
  opacity: 0;
  transition: opacity 600ms ease;
}

.swiper-slide-active .slide-overlay,
.slide-overlay.anim-active {
  opacity: 1;
}

/* enable clicking of controls (button) inside overlay */
.slider-overlay .slide-content {
  pointer-events: auto;
}

/* content wrapper */
.slide-content {
  max-width: 720px;
  color: #fff; /* fallback */
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

/* initial hidden state for animated elements */
.slide-title {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
  will-change: opacity, transform;
  margin: 0 0 12px;
  line-height: 1.15;
  font-weight: 700;
}
.slide-desc {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease 120ms, transform 600ms ease 120ms;
  will-change: opacity, transform;
  margin: 0 0 18px;
  line-height: 1.45;
}
.slide-btn {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease 240ms, transform 600ms ease 240ms;
  will-change: opacity, transform;
}

/* Active slide animation via Swiper's class */
.swiper-slide-active .slide-title,
.swiper-slide-active .slide-desc,
.swiper-slide-active .slide-btn {
  opacity: 1;
  transform: translateY(0);
}

/* Extra: when JS toggles anim-active on slide-content */
.slide-content.anim-active .slide-title,
.slide-content.anim-active .slide-desc,
.slide-content.anim-active .slide-btn {
  opacity: 1;
  transform: translateY(0);
}

/* Button styling (capsule) */
.slide-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 12px 28px;
  background: #ff4081;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.25s ease, transform 0.25s ease;
}
.slide-btn:hover {
  transform: translateY(-2px);
  background: #e73370;
}



/* Distributor Landing */
.winskinco-distributor section {
    padding: 60px 20px;
}

.distributor-hero {
    text-align: center;
}

.distributor-hero h1 {
    font-size: 2.6rem;
    margin-bottom: 10px;
}

.distributor-about {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.distributor-options h2 {
    text-align: center;
    margin-bottom: 40px;
}

.distributor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.distributor-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.distributor-card:hover {
    transform: translateY(-6px);
}

.distributor-card h3 {
    margin-bottom: 10px;
}

.distributor-card .price {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.distributor-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.distributor-card ul li {
    margin-bottom: 8px;
}

.distributor-card .button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    background: #111;
    color: #fff;
    text-decoration: none;
}

.distributor-card .button.primary {
    background: #c59d5f; /* adjust to theme color */
}



/* ABOUT US PAGE */
/* ABOUT PAGE */

.winskinco-about section {
	align-content:center;
    padding: 60px 20px;
}

.about-hero {
    text-align: center;
}

.about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.about-story {
    max-width: 1100px;
    margin: auto;
	align-content:center
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image img {
    width: 75%;
    border-radius: 5px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.value-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}


/* CONTACT PAGE */

.winskinco-contact section {
    padding: 60px 20px;
}

.contact-hero {
    text-align: center;
}

.contact-hero h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form button {
    padding: 12px 25px;
    border: none;
    background: #000;
    color: #fff;
    cursor: pointer;
}

.contact-map {
    text-align: center;
}

.contact-success {
    background:#e8f7ee;
    color:#2f7a45;
    padding:12px 20px;
    border-radius:6px;
    margin-bottom:20px;
}

.contact-success{
    background:#e8f7ee;
    color:#2f7a45;
    padding:15px;
    border-radius:6px;
    margin-bottom:20px;
}



/* small responsive adjustments */
@media (max-width: 768px) {
  .swiper-slide {
    min-height: 360px; /* responsive fallback */
  }
  .slide-content { padding: 8px; }
  .slide-title { font-size: 1.6rem; }
  .slide-desc { font-size: 1rem; }
  .slide-btn { padding: 10px 18px; font-size: .95rem; }
}

@media (max-width: 420px) {
  .swiper-slide { min-height: 260px; }
}
