/* ============ 1. Homepage hero rotation ============ */
.epx-hero-section { position: relative; }
.epx-hero-section > .elementor-container { position: relative; z-index: 2; }
.epx-hero {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #f4f1ee;
}
.epx-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.4s ease;
    pointer-events: none;
}
.epx-slide-img {
    background-size: cover;
    background-position: center;
    will-change: opacity, transform;
}
.epx-slide-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.epx-slide.epx-active { opacity: 1; }
.epx-slide-img.epx-active { animation: epx-kenburns 9s ease-out forwards; }
@keyframes epx-kenburns {
    from { transform: scale(1); }
    to   { transform: scale(1.07); }
}
.epx-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(100deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.42) 45%, rgba(255,255,255,.14) 75%, rgba(255,255,255,.28) 100%);
}

/* ============ 2. Large navigation arrows ============ */
.epx-arrow-host { position: relative; }
.epx-arrow {
    position: absolute;
    z-index: 40;
    width: 62px;
    height: 62px;
    margin-top: -31px;
    border-radius: 50%;
    border: 2px solid #222;
    background: #fff;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,.22);
    transition: background .2s, color .2s, transform .15s;
    padding: 0;
}
.epx-arrow svg { width: 34px; height: 34px; display: block; }
.epx-arrow:hover, .epx-arrow:focus { background: #222; color: #fff; transform: scale(1.06); }
.epx-arrow-left  { left: 4px; }
.epx-arrow-right { right: 4px; }
@media (max-width: 767px) {
    .epx-arrow { width: 46px; height: 46px; margin-top: -23px; }
    .epx-arrow svg { width: 26px; height: 26px; }
    .epx-arrow-left  { left: 2px; }
    .epx-arrow-right { right: 2px; }
}

/* ============ 3. Compact testimonials + ADD COMMENT ============ */
section.epx-compact { padding-top: 42px !important; padding-bottom: 42px !important; }
section.epx-compact .elementor-column-gap-default > .elementor-column > .elementor-widget-wrap,
section.epx-compact .elementor-widget-wrap { padding: 8px 0 !important; }
section.epx-compact .elementor-testimonial-wrapper {
    padding: 16px 22px;
    max-width: 760px;
    margin: 0 auto;
}
section.epx-compact .elementor-testimonial-content {
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
section.epx-compact .elementor-testimonial-name { font-size: 13px; }

.epx-add-comment-wrap { text-align: center; margin: 6px 0 14px; }
.epx-add-comment-btn {
    display: inline-block;
    background: #d99a8f;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 13px 34px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background .2s, transform .15s;
}
.epx-add-comment-btn:hover, .epx-add-comment-btn:focus { background: #c77f73; transform: translateY(-1px); }

.epx-comments-strip {
    position: relative;
    max-width: 760px;
    margin: 14px auto 0;
    min-height: 84px;
}
.epx-comment-card {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .9s ease;
    text-align: center;
    padding: 4px 12px;
}
.epx-comment-card.epx-on { opacity: 1; }
.epx-comment-text { font-size: 13.5px; line-height: 1.5; font-style: italic; color: #444; margin: 0 0 4px; }
.epx-comment-meta { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #999; margin: 0; }

/* ============ 4. Modal form ============ */
.epx-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(20,20,20,.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.epx-modal.epx-open { display: flex; }
.epx-modal-box {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 560px;
    width: 100%;
    padding: 28px 26px 22px;
    box-shadow: 0 18px 50px rgba(0,0,0,.3);
    max-height: 90vh;
    overflow: auto;
}
.epx-modal-box h3 { margin: 0 0 4px; font-size: 22px; color: #222; }
.epx-modal-sub { margin: 0 0 16px; font-size: 13px; color: #777; }
.epx-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #999;
    cursor: pointer;
}
.epx-modal-close:hover { color: #333; }
.epx-feedback-form .epx-row { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.epx-feedback-form input[type=text],
.epx-feedback-form input[type=email],
.epx-feedback-form input[type=tel],
.epx-feedback-form select,
.epx-feedback-form textarea {
    flex: 1 1 200px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 14px;
    background: #fafafa;
}
.epx-feedback-form textarea { margin-bottom: 10px; resize: vertical; }
.epx-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.epx-submit {
    width: 100%;
    background: #d99a8f;
    border: none;
    color: #fff;
    border-radius: 4px;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
}
.epx-submit:hover { background: #c77f73; }
.epx-form-msg { min-height: 18px; font-size: 13px; margin: 8px 0 0; }
.epx-form-msg.epx-ok { color: #2e7d32; }
.epx-form-msg.epx-err { color: #c62828; }
