/*
Theme Name: Magnaplan
Author: Te
Version: 2.0
*/


/* ======== LOCAL FONT: Zalando Sans variable ======== */

@font-face {
    font-family: 'Zalando Sans';
    src: url('assets/fonts/ZalandoSans-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900;         /* variable weight tartomány */
    font-stretch: 75% 125%;       /* mivel wdth is változó */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zalando Sans';
    src: url('assets/fonts/ZalandoSans-Italic-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-stretch: 75% 125%;
    font-style: italic;
    font-display: swap;
}

:root {
    --primary: #113251;
    --text: #113251;
    --gold: #113251; /* Visszatesszük az arany színt */
    --light: #fff;
    --section-padding: 60px;
    --side-padding: 100px;
}

/* ======== GLOBAL ======== */

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Zalando Sans', -apple-system, BlinkMacSystemFont, "Segoe UI",
                 system-ui, sans-serif;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

section {
    width: 100%;
    padding: 20px var(--side-padding) 100px;
    box-sizing: border-box;
}

.wrapper {
    max-width: var(--section-max);
    margin: 0 auto;
    width: 100%;
}

/* ======== BUTTONS ======== */
/* Ez maradt ki, ezért tűntek linknek */
.mp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px 14px 40px;
    background: var(--gold);
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
    gap: 25px; /* szöveg és ikon közötti térköz */
}

.mp-btn::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg) translateY(-1px);
    transform-origin: center;
}

.mp-btn:hover {
    opacity: 0.9;
    color: #fff;
}

.hero {
    width: 100%;
    height: 100vh;
    background-image: url('http://magnaplan.hu/wp-content/uploads/2025/11/petikepe.jpg');
    background-size: cover;
    background-position: top;
    padding-top: 140px;
    display: flex;
    align-items: flex-end;
}
.hero-text {
    /*margin-bottom: 150px;*/
}

.hero-inner {
    max-width: var(--section-max);
    box-sizing: border-box;
}

.hero-text h1 {
    font-size: clamp(2.4rem, 4vw + 1rem, 4.5rem);
    font-weight: 300;
    line-height: 1.2;
    max-width: 750px;
    margin: 0;
    color: var(--primary);
}

.hero .mp-btn {
    margin-top: 30px;
}

.hero-carousel {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    padding-top: 140px;
}

.hero-slides {
    height: 100%;
    display: flex;
    transition: transform 0.8s ease-in-out;
    align-items: center;
}

.hero-slide {
    width: 100%;
    height: 100vh;
    min-width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding-bottom: 120px;
    opacity: 0;
    transition: opacity .6s ease;
    position: absolute;
    top:0; left:0;
}

.hero-slide.active {
    opacity: 1;
    position: absolute;
}

.hero-content .white-btn {
    background: white;
    color: var(--primary);
}

.hero-content .white-text {
    color: white;
}

.hero-content {
    max-width: 700px;
    padding-left: var(--side-padding);
    margin-bottom: 100px;
}

.hero-slide h1 {
    font-size: clamp(2.5rem, 4vw + 1rem, 4.6rem);
    font-weight: 300;
    margin: 0 0 20px;
    color: var(--primary);
}

/* CAROUSEL DOTS */
.hero-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-dots .dot {
    width: 12px;
    height: 12px;
    background: rgba(17, 50, 81, .25);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s ease;
}

.hero-dots .dot.active {
    background: var(--primary);
    transform: scale(1.1);
}

/* Mobile */
@media (max-width: 1024px) {
    .hero-carousel {
        padding-top: 120px;
    }
    .hero-slide {
        justify-content: center;
        text-align: center;
        padding-bottom: 60px;
    }
}



/* ======== SERVICES ======== */

.services {
    text-align: center; /* Center helyett left, hogy minden balra igazodjon */
}

.services-inner {
    max-width: var(--section-max);
    box-sizing: border-box;
}

.services h2 {
    font-size: 40px;
    font-weight: 300;
    margin-bottom: 50px;
}

.services-grid {
    max-width: 1400px;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 40px;
    margin: 0 auto;
}

.service-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 2px 0px 10px 5px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.service-inner {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-inner h3 {
    font-size: 32px;
    font-weight: 300;
    margin: 0 0 20px;
    line-height: 1.2;
    letter-spacing: -2px;
    font-stretch: 120%;
}

/* EZ A LÉNYEG:
   az utolsó bekezdés tolja le magát (és a gombot) a kártya aljára */
.service-inner p:last-of-type {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    margin-top: auto;
}

.service-inner .mp-btn {
    margin-top: 10px;
    width: 100%;
    padding: 12px 0; /* Kicsit nagyobb padding */
}

/* szolgáltatás kártyák gombjain NE legyen chevron */
.service-inner .mp-btn::after {
    content: none;
    display: none;
}

/* ======== ABOUT ======== */

.about {
    background: var(--primary);
    color: #fff;
    padding: 90px var(--side-padding);
}

.about-inner {
    margin: 0 auto;
    max-width: 1400px;
    box-sizing: border-box;
}

.about h2 {
    font-size: 40px;
    font-weight: 300;
    margin-bottom: 16px;
}

.about p {
    font-size: 20px;
    line-height: 1.65;
    margin-bottom: 30px;
}

.about .mp-btn {
    background: #fff;
    color: var(--primary);
}

/* iPad-től LEFELÉ: Rólunk oldal-padding 0 */
@media (max-width: 1024px) {
    .about {
        padding-left: 0;
        padding-right: 0;
    }
}

/* ======== STATS ======== */

.stats {
    padding: 90px 0; /* korábban már nulláztuk az oldalsó paddinget desktopon */
}

.stats-grid {
    /* régi: max-width: 900px;
       margin: 0 auto; */
    max-width: 1400px;     /* teljes viewport szélesség */
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    text-align: center;
}

/* stat blokkok (feltételezve, hogy közvetlen gyerek elemek) */
.stats-grid > div {
    flex: 1;
    padding: 0 30px;
}

/* függőleges elválasztó vonal a számok között, de az utolsónál ne legyen – csak desktopon! */
.stats-grid > div:not(:last-child) {
    border-right: 1px solid rgba(17, 50, 81, 0.2);
}

.stat-num {
    font-size: 64px;
    font-weight: 400;
    color: var(--primary);
}

.stat-label {
    margin-top: 8px;
    font-size: 14px;
}

/* mobilon ne legyenek a függőleges divizorok, ott inkább stacked layout legyen */
@media (max-width: 1024px) {
    .stats {
        padding: 60px 20px; /* biztonságos margó a szélektől mobilon */
    }

    .stats-grid {
        flex-direction: column;
    }

    .stats-grid > div {
        padding: 20px 0;
        border-right: none; /* iPad-től lefele: NINCS jobb oldali border */
        border-bottom: 1px solid rgba(17, 50, 81, 0.15);
    }

    .stats-grid > div:last-child {
        border-bottom: none;
    }
}

/* ======== CONTACT ======== */

.contact {
    background: var(--primary);
    color: #fff;
    text-align: center;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    padding-bottom: 100px;
}

.contact h2 {
    font-size: 40px;
    font-weight: 300;
    margin-bottom: 16px;
}

.contact-inner {
    max-width: 900px;
    margin: 40px auto 0;
}

.contact-inner .form-field {
    margin-bottom: 50px;
    text-align: left; /* mezők balra */

}

.contact-inner label {
    display: block;
    font-size: 20px;
    margin-bottom: 6px;
    color: #f5f8fc;
}

.contact-inner label span {
    font-weight: 300;
    opacity: 0.8;
    color: #D0B894;
}

/* input/textarea stílusok */
.contact-inner input,
.contact-inner textarea {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    border-radius: 16px;
    border: none;
    margin: 0;
    font-family: inherit;
    box-sizing: border-box;
}

.contact-inner textarea {
    border-radius: 14px;
    min-height: 160px;
    resize: vertical;
}

/* KÜLDÉS gomb – körvonalas, levél ikonnal */
.contact-inner .contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 21px;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    cursor: pointer;
    margin: 20px auto 0;   /* EZ húzza középre */
    gap: 12px;
    transition: background 0.25s ease, color 0.25s ease,
                transform 0.15s ease, box-shadow 0.25s ease;
}

/* régi ::after ikont hatástalanítjuk, ha még benne van */
.contact-inner .contact-submit::after {
    content: none;
}

/* ikon wrapper */
.contact-inner .contact-submit .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ha <img>-et használsz */
.contact-inner .contact-submit .icon img {
    width: 16px;
    height: 16px;
    display: block;
}

/* ha inline <svg>-t használsz */
.contact-inner .contact-submit .icon svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: currentColor;  /* átveszi a gomb színét */
}

/* hover – ugyanúgy működik az SVG-vel is */
.contact-inner .contact-submit:hover {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

/* kisebb kijelzőkre is maradjon szép */
@media (max-width: 1024px) {
    .contact-inner {
        margin-top: 30px;
    }

    .contact-inner .contact-submit {
        width: auto;
    }
}

/* ======== FOOTER ======== */


/* ======== MOBILE ======== */

@media (max-width: 1024px) {
    /*.mp-header.scrolled,*/
    /*.mp-header-inner,*/
    .hero-inner,
    .about-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .mp-menu { display: none; }
    .mp-burger { display: flex; }

    /* NE piszkáljuk a magasságot: marad 100vh
       csak a tartalmat igazítjuk középre */
    .hero {
        padding-top: 120px;             /* kicsit kisebb fej-margó, opcionális */
        align-items: center;            /* vertikális közép a hero-n belül */
    }

    .hero-inner {
        padding: 0 20px;
        width: 100%;
        display: flex;
        justify-content: center;        /* vízszintes közép */
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h1 {
        font-size: 40px;
        margin: 0 auto;
    }

    .hero .mp-btn {
        margin: 24px auto 0;
        font-size: 16px;
        padding: 14px 36px;
    }

    section {
        padding: 60px 20px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 30px;
    }

    .hero-content {
        padding: 150px;
    }
}

/* ======== REVEAL ANIMÁCIÓ ======== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card.reveal:nth-child(1) { transition-delay: 0.0s; }
.service-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.service-card.reveal:nth-child(3) { transition-delay: 0.2s; }
