/*
 * Symeon's Greek Restaurant — Custom Elementor Widgets
 * HERO SLIDER WIDGET  (.sym-hero-slider)
 *
 * Loaded only on pages that contain the Hero Slider widget.
 * Depends on: symeons-base (CSS tokens), symeons-swiper (Swiper.js CSS)
 *
 * Plugin:  Symeon's — Custom Elementor Widgets
 * Author:  Sparrow Media — https://www.sparrow.media
 * Version: 2.1.0
 */


/* ─────────────────────────────────────────
   ENTRANCE ANIMATION KEYFRAMES
   Six directional entrance options + none.
   JS adds .is-animating to trigger them.
───────────────────────────────────────── */

/* Fade Up — soft rise with opacity */
@keyframes sym-fade-up {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* Fade In from Left — enters from the left while fading */
@keyframes sym-fade-in-left {
    from { opacity: 0; transform: translateX(-36px); }
    to   { opacity: 1; transform: translateX(0);     }
}

/* Fade In from Right — enters from the right while fading */
@keyframes sym-fade-in-right {
    from { opacity: 0; transform: translateX(36px); }
    to   { opacity: 1; transform: translateX(0);    }
}

/* Slide from Below — dramatic full-distance entrance */
@keyframes sym-slide-up {
    from { opacity: 0; transform: translateY(70px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* Slide from Left — dramatic full-distance entrance */
@keyframes sym-slide-from-left {
    from { opacity: 0; transform: translateX(-90px); }
    to   { opacity: 1; transform: translateX(0);     }
}

/* Slide from Right — dramatic full-distance entrance */
@keyframes sym-slide-from-right {
    from { opacity: 0; transform: translateX(90px); }
    to   { opacity: 1; transform: translateX(0);    }
}


/* ─────────────────────────────────────────
   .sym-anim — BASE STATE & TRIGGER CLASSES
   Elements start invisible (opacity:0).
   JS adds .is-animating to fire the animation
   keyed off the data-anim attribute.
───────────────────────────────────────── */

.sym-anim {
    opacity: 0;
}

/* Elements with anim="none" are always visible — no animation. */
.sym-anim[data-anim="none"] {
    opacity: 1;
}

/* ── Trigger: add .is-animating to fire ── */
.sym-anim.is-animating[data-anim="fade-up"] {
    animation: sym-fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sym-anim.is-animating[data-anim="fade-in-left"] {
    animation: sym-fade-in-left 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sym-anim.is-animating[data-anim="fade-in-right"] {
    animation: sym-fade-in-right 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sym-anim.is-animating[data-anim="slide-up"] {
    animation: sym-slide-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sym-anim.is-animating[data-anim="slide-from-left"] {
    animation: sym-slide-from-left 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sym-anim.is-animating[data-anim="slide-from-right"] {
    animation: sym-slide-from-right 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* "none" stays visible even when .is-animating is added */
.sym-anim.is-animating[data-anim="none"] {
    opacity: 1;
}

/* In the Elementor editor: skip animations so all content is visible while editing. */
.elementor-editor-active .sym-anim {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
}


/* ─────────────────────────────────────────
   OUTER WIDGET WRAPPER
───────────────────────────────────────── */

.sym-hero-slider {
    position:   relative;
    width:      100%;
    overflow:   hidden;
    line-height: 1;
}


/* ─────────────────────────────────────────
   SWIPER CONTAINER
───────────────────────────────────────── */

.sym-hero-swiper {
    width:    100%;
    height:   100%;
    overflow: hidden;
}


/* ─────────────────────────────────────────
   INDIVIDUAL SLIDE
───────────────────────────────────────── */

.sym-hero-slide {
    /* Height set by Elementor responsive control (hero_height) */
    display:             flex;
    align-items:         center;
    background-color:    var(--sym-blue-dark); /* fallback when no image */
    background-size:     cover;
    background-repeat:   no-repeat;
    position:            relative;
    overflow:            hidden;
}

/* Dark overlay div — colour set inline from Elementor control */
.sym-hero-overlay {
    position:       absolute;
    inset:          0;
    pointer-events: none;
    z-index:        1;
}


/* ─────────────────────────────────────────
   SLIDE INNER — centres content, max-width
───────────────────────────────────────── */

.sym-hero-slide-inner {
    position:        relative;
    z-index:         2;
    width:           100%;
    max-width:       1200px;   /* overridden by Elementor control */
    margin:          0 auto;
    padding:         0 40px;   /* overridden by Elementor control */
    display:         flex;
    align-items:     center;
    gap:             60px;
}


/* ─────────────────────────────────────────
   LEFT COLUMN — text content
───────────────────────────────────────── */

.sym-hero-content {
    flex:           0 0 var(--sym-text-col, 100%);
    max-width:      var(--sym-text-col, 100%);
    min-width:      0;
    display:        flex;
    flex-direction: column;
}


/* ── Eyebrow ── */
.sym-hero-eyebrow {
    font-family:    var(--sym-font-display);   /* Cinzel */
    font-size:      10px;                       /* overridden by Elementor control */
    font-weight:    600;
    letter-spacing: 3px;                        /* overridden by Elementor control */
    text-transform: uppercase;
    color:          var(--sym-gold);            /* overridden by PHP scoped style */
    margin-bottom:  16px;                       /* overridden by Elementor control */
    display:        block;
}

/* ── H1 ── */
.sym-hero-h1 {
    font-family:   var(--sym-font-heading);    /* Cormorant Garamond */
    font-size:     62px;                        /* overridden by Elementor responsive control */
    font-weight:   600;
    line-height:   1.07;
    color:         var(--sym-white);            /* overridden by PHP scoped style */
    margin:        0 0 20px;                   /* overridden by Elementor control */
    letter-spacing: -0.5px;
}

/* ── Subtext ── */
.sym-hero-subtext {
    font-family:   var(--sym-font-body);       /* Lato */
    font-size:     17px;                        /* overridden by Elementor responsive control */
    font-weight:   400;
    line-height:   1.65;
    color:         rgba(255,255,255,0.82);      /* overridden by PHP scoped style */
    margin:        0 0 36px;                   /* overridden by Elementor control */
    max-width:     560px;                       /* overridden by Elementor control */
}

/* ── Button row ── */
.sym-hero-buttons {
    display:   flex;
    flex-wrap: wrap;
    gap:       14px;            /* overridden by Elementor control */
    align-items: center;
}

/* ── Button — base ── */
.sym-hero-btn {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    font-family:     var(--sym-font-body);
    font-weight:     700;
    font-size:       11px;      /* overridden by Elementor control */
    letter-spacing:  1.2px;
    text-transform:  uppercase;
    padding:         14px 30px; /* overridden by Elementor control */
    border-radius:   3px;       /* overridden by Elementor control */
    border:          2px solid transparent;
    text-decoration: none;
    cursor:          pointer;
    transition:      background-color 0.25s ease,
                     color 0.25s ease,
                     border-color 0.25s ease,
                     transform 0.2s ease;
    white-space:     nowrap;
}

.sym-hero-btn:hover {
    transform: translateY(-2px);
}

/* Reuse guest-favorites button styles */
.sym-hero-btn.sym-btn-primary  { background-color: var(--sym-blue);  color: #fff; border-color: var(--sym-blue); }
.sym-hero-btn.sym-btn-primary:hover { background-color: var(--sym-blue-dark); border-color: var(--sym-blue-dark); color: #fff; }

.sym-hero-btn.sym-btn-gold     { background-color: var(--sym-gold);  color: var(--sym-blue-dark); border-color: var(--sym-gold); }
.sym-hero-btn.sym-btn-gold:hover { background-color: #a8892e; border-color: #a8892e; color: var(--sym-blue-dark); }

.sym-hero-btn.sym-btn-outline  { background-color: transparent; color: var(--sym-blue); border-color: var(--sym-blue); }
.sym-hero-btn.sym-btn-outline:hover { background-color: var(--sym-blue); color: #fff; border-color: var(--sym-blue); }

/* Ghost — transparent, white border (designed for use over hero images) */
.sym-hero-btn.sym-hero-btn-ghost { background-color: transparent; color: #fff; border-color: rgba(255,255,255,0.75); }
.sym-hero-btn.sym-hero-btn-ghost:hover { background-color: rgba(255,255,255,0.15); border-color: #fff; color: #fff; }


/* ─────────────────────────────────────────
   RIGHT COLUMN — optional image
───────────────────────────────────────── */

.sym-hero-image-col {
    flex:           1;
    display:        flex;
    align-items:    center;
    justify-content: center;
    min-width:      0;
}

/* Two-column: right column fills remaining flex space after the text column */
.sym-hero-slide--two-col .sym-hero-image-col {
    flex: 1 1 0;
    min-width: 200px;
}

.sym-hero-right-img {
    width:          100%;
    height:         auto;
    max-height:     80%;
    object-fit:     contain;
    display:        block;
    border-radius:  8px;    /* overridden by Elementor control */
}

.sym-hero-right-img--shadow {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}


/* ─────────────────────────────────────────
   SWIPER OVERRIDES — Dots (pagination)
───────────────────────────────────────── */

.sym-hero-swiper .swiper-pagination {
    bottom: 24px;
    z-index: 10;
}

.sym-hero-swiper .swiper-pagination-bullet {
    width:      10px;
    height:     10px;
    background: rgba(255,255,255,0.40);  /* overridden by Elementor color control */
    opacity:    1;
    transition: transform 0.2s ease, background 0.2s ease;
}

.sym-hero-swiper .swiper-pagination-bullet-active {
    background: var(--sym-gold);  /* overridden by Elementor color control */
    transform:  scale(1.3);
}

/* Hide dots when data-show-dots="false" */
.sym-hero-slider[data-show-dots="false"] .swiper-pagination {
    display: none;
}


/* ─────────────────────────────────────────
   SWIPER OVERRIDES — Arrows
───────────────────────────────────────── */

.sym-hero-swiper .swiper-button-prev,
.sym-hero-swiper .swiper-button-next {
    width:          46px;
    height:         46px;
    background:     rgba(0, 50, 112, 0.55); /* overridden by Elementor color control */
    border-radius:  50%;
    color:          #fff;                   /* overridden by Elementor color control */
    transition:     background 0.2s ease, transform 0.2s ease;
    top:            50%;
    margin-top:     -23px;
}

.sym-hero-swiper .swiper-button-prev:hover,
.sym-hero-swiper .swiper-button-next:hover {
    transform:  scale(1.1);
    background: rgba(0, 70, 147, 0.85);
}

.sym-hero-swiper .swiper-button-prev::after,
.sym-hero-swiper .swiper-button-next::after {
    font-size:   14px;
    font-weight: 900;
}

.sym-hero-swiper .swiper-button-prev { left:  20px; }
.sym-hero-swiper .swiper-button-next { right: 20px; }

/* Hide arrows when data-show-arrows="false" */
.sym-hero-slider[data-show-arrows="false"] .swiper-button-prev,
.sym-hero-slider[data-show-arrows="false"] .swiper-button-next {
    display: none;
}


/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
    .sym-hero-slide-inner {
        gap: 40px;
    }

    .sym-hero-h1 {
        font-size: 46px;
    }
}

/* Mobile — stack columns, handle right image per slide setting */
@media (max-width: 767px) {

    .sym-hero-slide-inner {
        flex-direction: column;
        align-items:    flex-start;
        gap:            28px;
        /* Horizontal padding controlled by Elementor responsive content_padding control.
           Vertical padding added here as a sensible mobile default. */
        padding-top:    32px;
        padding-bottom: 32px;
    }

    /* On mobile: text column always full width (columns are stacked, not side by side) */
    .sym-hero-content {
        flex:      1 1 100%;
        max-width: 100%;
        width:     100%;
    }

    /* Default: hide the right column image on mobile */
    .sym-hero-image-col {
        display: none;
    }

    /* Stack mode: show the image below the text */
    .sym-hero-slide--stack-mobile .sym-hero-image-col {
        display:   flex;
        width:     100%;
        max-width: 100%;
    }

    .sym-hero-slide--stack-mobile .sym-hero-right-img {
        width:         100%;
        max-height:    260px;
        object-fit:    cover;
        border-radius: 8px;
    }

    .sym-hero-h1 {
        font-size: 34px;
    }

    .sym-hero-subtext {
        font-size:  15px;
        max-width:  none;
    }

    .sym-hero-buttons {
        flex-direction: column;
        align-items:    stretch;
    }

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

    .sym-hero-swiper .swiper-button-prev,
    .sym-hero-swiper .swiper-button-next {
        display: none; /* arrows too cramped on mobile — use swipe */
    }

    .sym-hero-swiper .swiper-pagination {
        bottom: 14px;
    }
}

@media (max-width: 480px) {
    .sym-hero-slide-inner {
        padding-top:    28px;
        padding-bottom: 28px;
    }

    .sym-hero-h1 {
        font-size:   28px;
        line-height: 1.1;
    }

    .sym-hero-eyebrow {
        font-size: 9px;
    }
}
