/*
Theme Name: Marina Child
Description: A child theme of Marina Theme
Version: 1.0.0
Text Domain: marina
Template: marina
*/


/* ============================================================
   1. GOOGLE FONTS
   Noto Serif Display → hero titles, testimonial headings
   Zen Maru Gothic   → forms, testimonial body text
   (Enqueued also via functions.php for Strong Testimonials)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Display:wght@300;400;700&display=swap');


/* ============================================================
   2. SLICK SLIDER ARROWS — GLOBAL HIDE
   Το Marina theme φορτώνει Slick slider arrows by default.
   Τα κρύβουμε γιατί χρησιμοποιούμε custom hero nav buttons.
   ============================================================ */
.slick-arrow,
.slick-prev,
.slick-next,
.prev_arrow,
.next_arrow,
.prev.slick-arrow,
.next.slick-arrow,
span.prev_arrow,
span.next_arrow,
.arrows .prev,
.arrows .next,
div.arrows span {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}


/* ============================================================
   3. HERO SLIDER — LAYOUT
   Full-viewport slider στην αρχική σελίδα.
   Δομή: .hero-slider-custom > .hero-slider-wrapper > .hero-slide[]
   ============================================================ */

/* Outer container — full viewport height */
.hero-slider-custom {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Inner wrapper */
.hero-slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Gradient overlay (bottom-to-top dark veil) */
.hero-slider-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
    z-index: 9;
}


/* ============================================================
   4. HERO SLIDER — NAVIGATION BUTTONS
   Τοποθετούνται bottom-center πάνω από το slider.
   ============================================================ */
.hero-slider-nav {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99;
}

.hero-nav-btn {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    transition: all 0.3s ease;
}

/* Arrow images με drop-shadow για ορατότητα πάνω σε φωτεινές φωτογραφίες */
.hero-nav-btn img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8))
            drop-shadow(0 2px 15px rgba(0, 0, 0, 0.6))
            drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
    transition: all 0.3s ease;
}

/* Το αριστερό βέλος είναι flip του δεξιού */
.hero-nav-btn img.arrow-left {
    transform: rotate(180deg);
}

.hero-nav-btn:hover {
    transform: scale(1.15);
}

/* Disabled state (πρώτο/τελευταίο slide) */
.hero-nav-btn.hero-nav-disabled {
    pointer-events: none;
    opacity: 0.3;
}

/* Κρύβουμε το nav όταν το curtain menu είναι ανοιχτό */
body.menu-open .hero-slider-nav,
body.menu-open .hero-slider-nav * {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}


/* ============================================================
   5. HERO SLIDER — SLIDES & CURTAIN ANIMATION
   Κάθε slide ξεκινά κρυφό (clip-path: inset(0 100% 0 0)).
   Το .hero-slide-active "ανοίγει" από δεξιά προς αριστερά.
   ============================================================ */
.hero-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    -webkit-clip-path: inset(0 100% 0 0);
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.8s cubic-bezier(0.65, 0.05, 0.36, 1);
}

/* Ελαφρύ σκοτεινό overlay πάνω σε κάθε slide */
.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

/* Active slide — curtain fully open */
.hero-slide.hero-slide-active {
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
}

.hero-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    padding: 0;
}


/* ============================================================
   6. HERO SLIDER — SLIDE TITLES
   Κεντραρισμένος τίτλος + υπότιτλος με fade-in delay.
   ============================================================ */
.hero-slide-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8),
                 0 4px 20px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.6s ease 0.4s; /* fade-in αφού ανοίξει η κουρτίνα */
    padding: 0 20px;
    max-width: 90%;
}

.hero-slide.hero-slide-active .hero-slide-title {
    opacity: 1;
}

.hero-slide-title h1 {
    font-family: 'Noto Serif Display', serif;
    font-size: 4em;
    font-weight: 400;
    margin: 0 0 15px 0;
    line-height: 1.2;
    letter-spacing: 1px;
    color: #ffffff;
}

.hero-slide-title p {
    font-family: 'Noto Serif Display', serif;
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.5px;
    color: #ffffff;
}

@media (max-width: 768px) {
	.hero-slide-title h1 {
		font-family: 'Noto Serif Display', serif;
		font-size: 2.1em !important;
		font-weight: 400;
		margin: 0 0 15px 0;
		line-height: 1.2;
		letter-spacing: 1px;
		color: #fff;
	}
}


/* ============================================================
   7. ELEMENTOR OVERRIDES
   Αφαιρεί default padding/max-width από sections/widgets
   που φιλοξενούν τον hero slider.
   ============================================================ */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 100% !important;
}

.elementor-widget-html {
    margin: 0 !important;
    padding: 0 !important;
}

.elementor-widget-html .elementor-widget-container {
    margin: 0 !important;
    padding: 0 !important;
}


/* ============================================================
   8. HERO SLIDER — RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-slider-custom {
        height: 83.5vh !important;
    }

    .hero-slide-title h2 { font-size: 3em; }
    .hero-slide-title p  { font-size: 1.2rem; }
}

@media (max-width: 768px) {
    .hero-slider-custom {
        height: 70vh !important;
    }

    .hero-slider-nav {
        bottom: 40px;
        width: 130px;
    }

    .hero-nav-btn img { width: 45px; height: 45px; }
    .hero-slide-title h2 { font-size: 2.5em; }
    .hero-slide-title p  { font-size: 1rem; }
}

@media (max-width: 480px) {
    .hero-slider-nav {
        bottom: 30px;
        width: 110px;
    }

    .hero-nav-btn img { width: 40px; height: 40px; }
    .hero-slide-title h2 { font-size: 2em; margin-bottom: 10px; }
    .hero-slide-title p  { font-size: 0.9rem; }
}


/* ============================================================
   9. SCROLL REVEAL — CARDS ANIMATION
   Κάρτες εμφανίζονται με clip-path animation μόλις
   μπουν στο viewport (IntersectionObserver στο script.js).
   Χρήση: προσθέτεις κλάση .css_animation_down/up/left/right
   + .reveal στο Elementor widget.
   ============================================================ */
.css_animation_down  { visibility: hidden; }
.css_animation_up    { visibility: hidden; }
.css_animation_right { visibility: hidden; }
.css_animation_left  { visibility: hidden; }

.css_animation_down.block_wrap-text_down   { visibility: visible; }
.css_animation_up.block_wrap-text_up       { visibility: visible; }
.css_animation_right.block_wrap-text_right { visibility: visible; }
.css_animation_left.block_wrap-text_left   { visibility: visible; }

/* Κατεβαίνει (από πάνω) */
.block_wrap-text_down {
    transition: 1s ease-out;
    transition-delay: 0.4s;
    position: relative;
    overflow: hidden;
    clip-path: inset(0 0 100% 0);
}
.animating .block_wrap-text_down { clip-path: inset(0 0 0 0); visibility: visible; }

/* Ανεβαίνει (από κάτω) */
.block_wrap-text_up {
    transition: 1s ease-out;
    transition-delay: 0.4s;
    position: relative;
    overflow: hidden;
    clip-path: inset(100% 0 0 0);
}
.animating .block_wrap-text_up { clip-path: inset(0 0 0 0); visibility: visible; }

/* Έρχεται από αριστερά */
.block_wrap-text_right {
    transition: 1s ease-out;
    transition-delay: 0.4s;
    position: relative;
    overflow: hidden;
    clip-path: inset(0 100% 0 0);
}
.animating .block_wrap-text_right { clip-path: inset(0 0 0 0); visibility: visible; }

/* Έρχεται από δεξιά */
.block_wrap-text_left {
    transition: 1s ease-out;
    transition-delay: 0.4s;
    position: relative;
    overflow: hidden;
    clip-path: inset(0 0 0 100%);
}
.animating .block_wrap-text_left { clip-path: inset(0 0 0 0); visibility: visible; }


/* ============================================================
   10. HAMBURGER MENU TRIGGER
   Custom animated burger icon (3 lines → X).
   Το trigger είναι Elementor HTML widget στο header.
   ============================================================ */
.custom-menu-trigger {
    cursor: pointer;
    position: relative;
    z-index: 10001;
    display: inline-block;
    width: 80px;
    height: 75px;
    padding: 15px;
}

.hamburger-box {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
}

/* Οι 3 γραμμές */
.line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    transform-origin: center;
}

/* Μετατροπή σε X όταν το menu ανοίξει */
.custom-menu-trigger.active .line1 {
    transform: translateY(16px) rotate(45deg);
    background-color: #fff;
}
.custom-menu-trigger.active .line2 {
    opacity: 0;
    transform: scaleX(0);
}
.custom-menu-trigger.active .line3 {
    transform: translateY(-7px) rotate(-45deg);
    background-color: #fff;
}

.custom-menu-trigger:hover .line        { opacity: 0.8; }
.custom-menu-trigger.active:hover .line { opacity: 1; }

/* Το header παραμένει πάνω από το curtain */
.elementor-location-header {
    position: relative;
    z-index: 10000 !important;
}


/* ============================================================
   11. CURTAIN MENU OVERLAY
   Full-screen overlay που "πέφτει" από το header προς τα κάτω.
   Background: #CBBBA6 (brand beige).
   ============================================================ */
.menu-curtain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: #CBBBA6;
    z-index: 9999;
    overflow: hidden;
    transition: height 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    visibility: hidden;
}

.menu-curtain-overlay.active {
    height: 100vh !important;
    visibility: visible;
}

/* Το περιεχόμενο του menu (nav links) slide-in με delay */
.menu-curtain-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 40px;
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.5s ease 0.2s;
    position: relative;
    z-index: 10;
}

.menu-curtain-overlay.active .menu-curtain-content {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   12. HAMBURGER + CURTAIN — RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .custom-menu-trigger {
        width: 50px;
        height: 42px;
        padding: 10px;
    }

    .hamburger-box { gap: 8px; }
    .line { height: 3px; }

    /* Προσαρμογή Y offset για μικρότερο container */
    .custom-menu-trigger.active .line1 { transform: translateY(10px) rotate(45deg); }
    .custom-menu-trigger.active .line3 { transform: translateY(-10px) rotate(-45deg); }

    .menu-curtain-content { padding: 60px 15px 20px; }

    /* HFE sub-menu arrows — μεγαλύτερα για mobile tap */
    .hfe-nav-menu .sub-arrow {
        font-size: 18px !important;
        line-height: 1;
        display: flex;
        cursor: pointer;
        margin-top: -10px !important;
        margin-bottom: -15px !important;
    }
}


/* ============================================================
   13. WPFORMS — CUSTOM STYLING (.skalasunset-form-style)
   Εφαρμόζεται σε WPForms φόρμες που έχουν την κλάση
   .skalasunset-form-style στο wrapper τους (Elementor).
   Σχεδιασμός: διαφανές background, λευκό κείμενο/borders.
   ============================================================ */

/* Input fields, textarea, select */
.skalasunset-form-style .wpforms-field input[type="text"],
.skalasunset-form-style .wpforms-field input[type="email"],
.skalasunset-form-style .wpforms-field input[type="tel"],
.skalasunset-form-style .wpforms-field input[type="number"],
.skalasunset-form-style .wpforms-field input[type="date"],
.skalasunset-form-style .wpforms-field input[type="url"],
.skalasunset-form-style .wpforms-field textarea,
.skalasunset-form-style .wpforms-field select,
.skalasunset-form-style .wpforms-field-large,
.skalasunset-form-style .wpforms-field-required {
    background-color: transparent !important;
    border-style: solid !important;
    border-width: 1px !important;
    border-color: #ddd !important;
    color: #ffffff !important;
    font-family: "Zen Maru Gothic", sans-serif !important;
    -webkit-text-fill-color: #ffffff !important; /* Safari fix */
}

/* Focus state */
.skalasunset-form-style .wpforms-field input:focus,
.skalasunset-form-style .wpforms-field textarea:focus,
.skalasunset-form-style .wpforms-field select:focus {
    background-color: transparent !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Placeholder */
.skalasunset-form-style .wpforms-field input::placeholder,
.skalasunset-form-style .wpforms-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    font-family: "Zen Maru Gothic", sans-serif !important;
}

/* Labels */
.skalasunset-form-style .wpforms-field-label {
    color: #ffffff !important;
    font-family: "Zen Maru Gothic", sans-serif !important;
}

/* Required asterisk */
.skalasunset-form-style .wpforms-required-label {
    color: #ffffff !important;
}

/* Submit button (και standalone .skalasunset-style-button) */
.skalasunset-form-style .wpforms-submit,
.skalasunset-style-button {
    background-color: transparent !important;
    border-style: solid !important;
    border-width: 1px !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    font-family: "Zen Maru Gothic", sans-serif !important;
    padding: 5px 30px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.skalasunset-form-style .wpforms-submit:hover,
.skalasunset-style-button:hover {
    border-color: #ffffff !important;
    color: #ffffff !important;
}

.skalasunset-form-style .wpforms-submit:active,
.skalasunset-style-button:active {
    background-color: rgba(255, 255, 255, 0.2) !important;
}


/* ============================================================
   14. LOGIN PAGE STYLING
   Επιπλέον στυλ για το WP login (βλ. και functions.php
   για το logo + background χρώμα).
   ============================================================ */
.login #backtoblog a,
.login #nav a {
    text-decoration: none;
    color: #ffffff !important;
}

.login #backtoblog a:hover,
.login #nav a:hover,
.login h1 a:hover {
    color: #000000 !important;
}


/* ============================================================
   15. BACK TO TOP BUTTON
   Κυκλικό κουμπί fixed bottom-right.
   Εμφανίζεται με opacity transition μόλις ο χρήστης
   scrollάρει > 300px (λογική στο script.js).
   ============================================================ */
.back-to-top {
    position: fixed;
    right: 10px;
    bottom: 115px;
    width: 66px;
    height: 66px;
    border-radius: 50% !important;
    border: none;
    cursor: pointer;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;

    z-index: 2147483647;

    background: #CBBBA6 !important;
    color: #fff;
    font-size: 23px !important;
    line-height: 1;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover  { background: #aa9e8d !important; }
.back-to-top:active { transform: scale(0.95); }


/* ============================================================
   16. STRONG TESTIMONIALS — READ MORE
   Κόβει το κείμενο στις 8 γραμμές και εμφανίζει
   "Read More" κουμπί (λογική στο functions.php footer JS).
   ============================================================ */
.wpmtst-testimonial-content ._a {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    transition: all 0.3s ease;
}

.wpmtst-testimonial-content ._a.expanded {
    display: block;
    -webkit-line-clamp: unset;
}

.testimonial-read-more-btn {
    display: block;
    margin: 8px auto 0 auto;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #222222 !important;
    background: none !important;
    border: 1px solid #222222 !important;
    padding: 6px 16px;
    text-decoration: none;
    text-align: center;
    width: fit-content;
}

.testimonial-read-more-btn:hover {
    color: #000000 !important;
    border-color: #000000 !important;
}


/* ============================================================
   17. STRONG TESTIMONIALS — CUSTOM FONTS
   Noto Serif Display για τίτλους, Zen Maru Gothic για κείμενο.
   ============================================================ */
.strong-view .wpmtst-testimonial-heading,
.strong-view .wpmtst-testimonial-heading * {
    font-family: "Noto Serif Display", serif !important;
}

.strong-view .wpmtst-testimonial-content,
.strong-view .wpmtst-testimonial-content p {
    font-family: "Zen Maru Gothic", sans-serif !important;
}

/* Thumbnail margin fix για testimonials με εικόνα */
.skalasunset_margin_top_reviews img.attachment-large.size-large.wp-post-image {
    margin-top: 35px;
}


/* ============================================================
   18. HFE NAV MENU — SUB-ARROW (desktop)
   Μεγαλύτερο βέλος για sub-menus στο HFE Navigation widget.
   ============================================================ */
.hfe-nav-menu .sub-arrow {
    font-size: 40px;
    line-height: 1;
    display: flex;
    cursor: pointer;
    margin-top: 0px;
    margin-bottom: -10px;
}


/* ============================================================
   19. GTRANSLATE — RESPONSIVE PADDING
   Προσαρμόζει το GTranslate widget στο mobile menu.
   ============================================================ */
.responsive_gtranslate {
    padding: 25px 0px 0px 20px !important;
}


/* ============================================================
   Footer Contact — Bold Labels (T. / E.)
   ============================================================ */
.elementor-4998 span.bold {
    color: #ffffff !important;
}


/* Hide header on 404 custom page (page-id-6911) */
/* Hide header & footer on 404 custom page (page-id-6911) */
.page-id-6911 #masthead,
.page-id-6911 #colophon {
  display: none !important;
}



/* ============================================
   404 PAGE - ΚΕΝΤΡΑΡΙΣΜΑ ΣΕ ΚΙΝΗΤΑ
   Κεντράρει κάθετα και οριζόντια το περιεχόμενο
   της 404 σελίδας σε οθόνες μέχρι 767px
   ============================================ */
@media (max-width: 767px) {

    /* Κάνει το κύριο container flex 
       ώστε να μπορέσουμε να κεντράρουμε το περιεχόμενο */
    .nicdark_bg_white {
        display: flex !important;
        flex-direction: column !important;  /* Στοίβαξε τα παιδιά κάθετα */
        align-items: center !important;     /* Κεντράρισμα οριζόντια */
        justify-content: center !important; /* Κεντράρισμα κάθετα */
        text-align: center !important;      /* Κεντράρισμα κειμένου */
        min-height: 100vh !important;       /* Γεμίζει όλο το ύψος της οθόνης */
    }
}

/* gtranslate style - ΜΟΝΟ desktop */
@media (min-width: 1025px) {
    .gt_float_switcher .gt-selected .gt-current-lang {
        padding: 10px 20px !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px;
    }
    .gt_float_switcher {
        height: 49px !important;
        display: flex !important;
        align-items: center !important;
        border-radius: 4px;
        padding: 0px !important;
    }
}

