/* ==========================================================================
   Fonts
   ========================================================================== */
@font-face {
    font-family: 'Eastman';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Eastman-Medium.woff') format('woff');
}

@font-face {
    font-family: 'Eastman';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/Eastman-Bold.woff') format('woff');
}

/* ==========================================================================
   Base
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    color: #fff;
    background: #77B428;
}

/* Every content title is capitalized (headings must not carry an `uppercase` class) */
main :is(h1, h2, h3, h4, h5, h6) {
    text-transform: capitalize;
}

/* ==========================================================================
   Buttons (Elementor "sm" button)
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    transition: background-color .3s, color .3s, border-color .3s;
}

.btn-primary {
    background-color: #77B428;
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: #083F59;
    color: #fff;
}

/* Cookie popup buttons */
.btn-outline,
.btn-accept {
    padding: 12px 24px;
    border: 2px solid #77B428;
}

.btn-outline {
    background-color: #fff;
    color: #77B428;
}

.btn-accept {
    background-color: #77B428;
    color: #F6F6F6;
}

.btn-outline:hover,
.btn-outline:focus-visible,
.btn-accept:hover,
.btn-accept:focus-visible {
    background-color: #083F59;
    border-color: #083F59;
    color: #fff;
}

/* ==========================================================================
   Social icons
   ========================================================================== */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background-color: #77B428;
    color: #fff;
    transition: opacity .3s;
}

.social-icon:hover {
    opacity: .9;
}

/* ==========================================================================
   Calculator
   ========================================================================== */
/* Sits on the dark blue order container */
.countdown-digit {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
}

.litres-range {
    --fill: 0%;
    display: block;
    height: 6px;
    border-radius: 50px;
    background: linear-gradient(to right, #fff var(--fill), rgba(255, 255, 255, .2) var(--fill));
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.litres-range::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    border: 3px solid #083F59;
    border-radius: 50%;
    background: #fff;
    -webkit-appearance: none;
}

.litres-range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 3px solid #083F59;
    border-radius: 50%;
    background: #fff;
}

.litres-range:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 6px;
}

/* ==========================================================================
   Order form (on dark blue)
   ========================================================================== */
.order-label {
    display: block;
    margin: 12px 0 5px;
    font-size: 12.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, .8);
}

.order-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    font-size: 15px;
    color: #fff;
    outline: none;
    transition: border-color .15s, background-color .15s;
}

.order-input::placeholder {
    color: rgba(255, 255, 255, .4);
}

.order-input:focus {
    border-color: #fff;
    background: rgba(255, 255, 255, .12);
}

.order-input:-webkit-autofill {
    -webkit-text-fill-color: #fff;
    box-shadow: 0 0 0 1000px #0d4a67 inset;
}

.order-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1.5px solid #fff;
    border-radius: 50px;
    background: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    color: #083F59;
    transition: background-color .25s ease, color .25s ease;
}

.order-submit__arrow {
    transition: transform .25s ease;
}

/* Hover: fill drains to an outline and the arrow nudges forward */
.order-submit:hover,
.order-submit:focus-visible {
    background: transparent;
    color: #fff;
}

.order-submit:hover .order-submit__arrow,
.order-submit:focus-visible .order-submit__arrow {
    transform: translateX(4px);
}

.order-submit:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* ==========================================================================
   myΘέρμανση
   ========================================================================== */
.mt-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s;
}

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

.mt-kicker {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #77B428;
}

.mt-title {
    margin: 8px 0 12px;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.08;
    text-transform: capitalize;
    color: #083F59;
}

.mt-steps {
    counter-reset: step;
}

/* Numbered green badge on each step card */
.mt-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -18px;
    left: 24px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #77B428;
    box-shadow: 0 6px 16px rgba(119, 180, 40, .4);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.mt-checklist li {
    position: relative;
    margin: 10px 0;
    padding-left: 32px;
}

.mt-checklist li::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #77B428 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Reveal on scroll (class added by main.js, so content stays visible without JS) */
.js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s ease;
}

.js-reveal [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .js-reveal [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================================================
   Contact form
   ========================================================================== */
/* Mirrors the live Elementor form (size-sm fields, labels above) */
.contact-label {
    display: inline-block;
    padding-bottom: 10px;
    line-height: 1;
    color: #083F59;
    cursor: pointer;
}

.contact-input {
    display: block;
    width: 100%;
    min-height: 40px;
    padding: 5px 14px;
    border: 0;
    border-radius: 0;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    color: #464545;
    outline: 0;
    transition: all .3s;
}

.contact-input::placeholder {
    color: inherit;
    opacity: .6;
}

.contact-input:focus {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 24px;
    border-radius: 50px;
    background-color: #77B428;
    font-size: 1em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    transition: all .3s;
}

.contact-submit:hover,
.contact-submit:focus-visible {
    background-color: #083F59;
}

.order-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50px;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: border-color .15s, background-color .15s, color .15s;
}

.order-chip:hover {
    border-color: rgba(255, 255, 255, .6);
}

input:checked + .order-chip {
    border-color: #fff;
    background: #fff;
    color: #083F59;
}

input:focus-visible + .order-chip {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.order-form.is-sent .order-form__body {
    display: none;
}

.order-form.is-sent .order-form__done {
    display: flex;
}

/* ==========================================================================
   Service cards (homepage)
   ========================================================================== */
/* Title + text always visible at the bottom; on hover the photo zooms a little
   and the "Περισσότερα" CTA slides in (grid rows 0fr -> 1fr, no fixed height) */
.service-card {
    --card-ease: cubic-bezier(.22, 1, .36, 1);
}

.service-card__image {
    transition: transform .7s var(--card-ease);
}

.service-card:hover .service-card__image,
.service-card:focus-visible .service-card__image {
    transform: scale(1.06);
}

.service-card:focus-visible {
    outline: 2px solid #77B428;
    outline-offset: 3px;
}

.service-card__arrow {
    transition: transform .25s ease;
}

.service-card:hover .service-card__arrow {
    transform: translateX(4px);
}

/* CTA: dark blue, turns green when the pointer is on it */
.service-card__btn {
    background-color: #083F59;
    color: #fff;
}

.service-card__btn:hover,
.service-card:focus-visible .service-card__btn {
    background-color: #77B428;
}

/* Desktop only: touch screens have no hover, so the CTA stays visible there */
@media (min-width: 1025px) {
    .service-card__cta {
        display: grid;
        grid-template-rows: 0fr;
        opacity: 0;
        transition: grid-template-rows .45s var(--card-ease), opacity .3s ease;
    }

    .service-card:hover .service-card__cta,
    .service-card:focus-visible .service-card__cta {
        grid-template-rows: 1fr;
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-card__image,
    .service-card__cta,
    .service-card__arrow {
        transition: none;
    }
}

/* ==========================================================================
   Popups (Elementor fadeInRight entrance / exit)
   ========================================================================== */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(100%, 0, 0);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Exit keyframes have their own names: reusing the entrance with `reverse`
   would not restart a finished animation, so it would jump instead of play */
@keyframes fadeOutRight {
    from {
        opacity: 1;
        transform: none;
    }

    to {
        opacity: 0;
        transform: translate3d(100%, 0, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.popup.is-open {
    display: flex;
}

.popup.is-open .popup-content {
    animation: fadeInRight var(--popup-duration, 1s) both;
}

.popup.is-closing .popup-content {
    animation: fadeOutRight var(--popup-duration, 1s) both;
}

/* Frosted backdrop behind the menu column */
.popup.is-open .popup-backdrop {
    animation: fadeIn var(--popup-duration, 1s) both;
}

.popup.is-closing .popup-backdrop {
    animation: fadeOut var(--popup-duration, 1s) both;
}

@media (prefers-reduced-motion: reduce) {
    .popup.is-open .popup-content,
    .popup.is-closing .popup-content,
    .popup.is-open .popup-backdrop,
    .popup.is-closing .popup-backdrop {
        animation-duration: 1ms;
    }
}

/* Menu popup background pattern */
.menu-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/menu-pattern.svg') no-repeat 450px 200px;
    opacity: .15;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .menu-pattern::before {
        background-position: 302px 210px;
    }
}

@media (max-width: 767px) {
    .menu-pattern::before {
        background-position: 0 190px;
    }
}

/* Menu popup items: slide right + growing line */
.menu-popup-item {
    transition: transform .3s;
}

.menu-popup-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -50px;
    z-index: 1;
    width: 0;
    height: 1px;
    background: #77B428;
}

.menu-popup-item:hover {
    transform: translateX(30px);
}

.menu-popup-item:hover::before {
    width: 40px;
    transition: width .4s;
}

/* ==========================================================================
   Footer accordion
   ========================================================================== */
.accordion-content {
    overflow: hidden;
    transition: height .4s ease;
}
