/*
 * Villa Palma – fő stíluslap.
 *
 * Az értékek az eredeti villapalmazara.com oldal renderelt (computed) stílusaiból
 * származnak; a kód saját, nem a Strikingly téma másolata.
 * Töréspontok: 899 (tablet), 767 (mobil elrendezés), 500 (kis mobil).
 */

/* ---------- Tokenek ---------- */
:root {
    --c-heading: #231b15;   /* a renderelt szövegszín: a címek és a hero bekezdés sötétebbek a törzsszövegnél */
    --c-text:    #50555c;
    --c-accent:  #9cce06;   /* a címek elején álló › jel */
    --c-btn:     #d6fda2;   /* világoszöld gomb / CTA sáv */
    --c-btn-txt: rgba(0, 0, 0, .8);
    --c-dark:    #1c1c17;
    --c-bg:      #fff;

    --font:      'Barlow', sans-serif;
    --radius:    8px;
    --container: 1200px;
    --gutter:    13px;      /* a tartalom belső margója a 1200 px-es konténeren belül */
}

/* ---------- Alapok ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.45;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; color: var(--c-heading); }
strong { font-weight: 700; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Címek ---------- */
.heading { color: var(--c-heading); font-weight: 400; line-height: 1.3; }
.heading--xl { font-size: 48px; line-height: 1.3; }   /* h1 */
.heading--lg { font-size: 36px; line-height: 1.4; }   /* h2 */
.heading--md { font-size: 24px; line-height: 1.5; }   /* kártyacím */
.heading--hero { font-size: 60px; line-height: 1.2; font-weight: 700; }
.chevron { color: var(--c-accent); font-weight: 700; }
.text-center { text-align: center; }

.lead { font-size: 20px; line-height: 1.5; }
.lead--dark { color: var(--c-heading); }
.heading + .lead { margin-top: 10px; }
.text-body { font-size: 18px; line-height: 1.5; }

/* ---------- Gombok ---------- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border: 2px solid transparent;
    border-radius: 4px;
    background: var(--c-btn);
    color: var(--c-btn-txt);
    font: 600 20px/24px var(--font);
    text-align: center;
    text-decoration: none;
    transition: opacity .15s;
}
.btn:hover { opacity: .85; }
.btn--block { display: block; width: 100%; }
.btn--dark { background: var(--c-dark); color: #fff; }
.btn--outline { background: transparent; border-color: var(--c-dark); color: var(--c-dark); }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }

/* ---------- Fejléc ---------- */
.site-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 250px;
    padding-top: 30px;
    text-align: center;
}
.site-logo img { width: 250px; height: 100px; object-fit: contain; }
.site-tagline {
    margin-top: 15px;
    color: #333;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: .26em;
    text-transform: uppercase;
}
.site-nav { margin-top: 29px; }
.site-nav ul { display: flex; gap: 32px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
    display: block;
    padding-bottom: 2px;
    color: #000;
    font-size: 16px;
    line-height: 17px;
    letter-spacing: .04em;
    text-decoration: none;
    text-transform: uppercase;
}
.site-nav a.is-active { border-bottom: 1px solid #000; }
.site-nav a:hover { opacity: .65; }

.nav-toggle { display: none; }

/* Nyelvválasztó (csak ha a konfigban több nyelv van) */
.lang-switch { position: absolute; top: 30px; right: 30px; }
.lang-switch__btn { padding: 8px 12px; border: 0; background: none; color: #000; font: 400 14px var(--font); cursor: pointer; }
.lang-switch__list { display: none; position: absolute; right: 0; margin: 0; padding: 8px 0; background: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .15); list-style: none; }
.lang-switch__list.is-open { display: block; }
.lang-switch__list a { display: block; padding: 6px 20px; font-size: 14px; text-decoration: none; white-space: nowrap; }

/* ---------- Szekciók ---------- */
/* A szekciók felső paddingje 80 px; az alsó csak ott kell, ahol nem szekció követi (slider, CTA, lábléc előtt) */
.section { padding: 80px 0 0; }
.section--flush-top { padding-top: 0; }
.section--pad-bottom { padding-bottom: 80px; }
.section--map { padding-top: 129px; padding-bottom: 69px; }
.section-sub {
    margin-top: 14px;
    color: #1b1b17;
    font-size: 18px;
    line-height: 27px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.img-round { border-radius: var(--radius); }
.img-fluid { width: 100%; }

/* Kép + szöveg két oszlopban (a hero szövegsora) */
.split { display: grid; grid-template-columns: 1fr 1fr; column-gap: 70px; align-items: start; }
.split--wide-img { grid-template-columns: 799fr 349fr; column-gap: 25px; align-items: center; }
.split--text-first { margin-top: 15px; }
.split p { text-align: justify; }
.split .lead { text-align: justify; }
.split__title { text-align: center; }   /* a hero bal oldali címblokkja középre igazított */

/* ---------- Hero ---------- */
.hero__img { width: 100%; border-radius: var(--radius); }

/* ---------- Kártyák (3 oszlop) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.card { display: flex; flex-direction: column; text-align: center; }
.card__img { width: 100%; aspect-ratio: 375 / 210; object-fit: cover; border-radius: var(--radius); }
.card__title { margin-top: 6px; }
.card__text { margin-top: 5px; line-height: 1.45; }
.card__action { margin-top: auto; padding-top: 24px; }

/* ---------- Képgaléria ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; margin-top: 47px; }
.gallery a { display: block; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 580 / 323; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.03); }

/* ---------- Szöveges 2x2 rács ---------- */
.text-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 25px; }
.text-grid .heading { margin-bottom: 5px; }

/* ---------- Slider ---------- */
.slider { position: relative; height: 439px; overflow: hidden; }
.slider__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-position: 50% 50%;
    background-size: cover;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s;
}
.slider__slide.is-active { opacity: 1; visibility: visible; }
.slider__body { width: 570px; max-width: 100%; margin-left: max(125px, calc((100% - 1174px) / 2)); text-align: center; }
.slider__body--right { margin-left: auto; margin-right: max(125px, calc((100% - 1174px) / 2)); }
.slider__body .heading { color: #222; }
.slider__body p { margin-top: 10px; color: #222; font-size: 20px; line-height: 30px; }
.slider__body .btn { margin-top: 24px; padding: 14px 28px; }
.slider__arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 100px;
    border: 0;
    background: none;
    cursor: pointer;
}
.slider__arrow--prev { left: 0; }
.slider__arrow--next { right: 0; }
.slider__arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    border: solid #1a1a1a;
    border-width: 0 0 2px 2px;
}
.slider__arrow--prev::before { left: 48px; transform: translateY(-50%) rotate(45deg); }
.slider__arrow--next::before { right: 48px; transform: translateY(-50%) rotate(-135deg); }
.slider__dots { position: absolute; bottom: 38px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 16px; }
.slider__dots button { width: 14px; height: 14px; padding: 0; border: 0; border-radius: 50%; background: rgba(26, 26, 26, .35); cursor: pointer; }
.slider__dots button.is-active { background: #1a1a1a; }

/* ---------- Villa-oldalak ---------- */
.section--half-top { padding-top: 40px; }
.section--pad-bottom-lg { padding-bottom: 130px; }
.text-justify { text-align: justify; }
.chevron--light { font-weight: 300; }

/* Kép + szöveg sorok, felváltva jobbra/balra */
.rows { display: flex; flex-direction: column; gap: 40px; }
.row-feature { display: grid; grid-template-columns: 700fr 435fr; column-gap: 39px; align-items: center; }
.row-feature--reverse { grid-template-columns: 435fr 700fr; }
.row-feature--reverse > img { order: 2; }
.row-feature--photo { grid-template-columns: 708fr 435fr; }
.row-feature--photo.row-feature--reverse { grid-template-columns: 435fr 708fr; }
.row-feature > img { width: 100%; }
.row-feature__body { font-size: 17px; line-height: 1.45; }
.row-feature__body .heading { margin-bottom: 14px; text-align: center; }
.row-feature__body p + p, .row-feature__body ul + p, .row-feature__body p + ul { margin-top: 12px; }
.row-feature--photo .row-feature__body { font-size: 16px; }

.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list--chev li::before { content: '› '; }
.price { font-size: 17px; }
.note { font-size: 13px; font-style: italic; line-height: 1.4; }
.price + .note { margin-top: 2px; }

/* Cím + adatok két oszlopban a teljes szélességű kép alatt */
.split--info { margin-top: 30px; align-items: center; }
.split--info .split__title { margin: 0; }
.split--info p, .split--info li { text-align: left; }
.img-plan { max-width: 1000px; margin: 0 auto; }

/* ---------- Kapcsolat ---------- */
.section--contact { padding-top: 110px; padding-bottom: 80px; }
.contact { display: grid; grid-template-columns: 772fr 368fr; column-gap: 34px; align-items: start; }
.contact__img { width: 100%; aspect-ratio: 386 / 217; object-fit: cover; }
.contact__form { padding: 0 0 0 5px; }
.contact__form .heading { margin-bottom: 18px; text-align: center; }
.contact__form input, .contact__form textarea {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #c8c8c8;
    border-radius: 3px;
    background: #fff;
    color: var(--c-heading);
    font: 400 14px var(--font);
}
.contact__form textarea { height: 134px; resize: vertical; }
.contact__form ::placeholder { color: #8a8d92; }
.contact__submit { margin-top: 4px; text-align: center; }
.btn--sm { padding: 10px 28px; font-size: 18px; font-weight: 500; }

.contact-icons { padding: 70px 0 80px; background: #e9eaeb; }
.contact-icons .heading { font-weight: 300; }
.icon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin: 40px 0 0; padding: 0; list-style: none; text-align: center; }
.icon-grid li { display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: 17px; }
.icon-grid a { text-decoration: none; }
.icon-circle { display: grid; place-items: center; width: 160px; height: 160px; border-radius: 50%; background: #000; }
.icon-circle svg { width: 84px; height: 84px; }

/* ---------- CTA sáv ---------- */
.cta { margin: 0 30px; padding: 110px 0 100px; background: var(--c-btn); text-align: center; }
.cta .heading { color: var(--c-dark); }
.cta .btn { padding: 14px 28px; }

/* ---------- Lábléc ---------- */
.site-footer { margin-top: 37px; padding: 60px 0; font-size: 15px; line-height: 1.45; }
.site-footer .footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; align-items: start; }
.site-footer .footer-col--logo img { width: 274px; max-width: 100%; height: auto; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-small { margin-top: 12px; font-size: 14px; line-height: 21px; text-align: center; }
.site-footer .footer-grid + .footer-small { margin-top: 40px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, .9); }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 92vh; object-fit: contain; }
.lightbox button { position: absolute; border: 0; background: none; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }
.lightbox__close { top: 16px; right: 24px; }
.lightbox__prev { left: 16px; top: 50%; }
.lightbox__next { right: 16px; top: 50%; }

/* ---------- Tablet: 728–899 px ---------- */
@media screen and (max-width: 899px) {
    .heading--hero { font-size: 48px; }
    .slider__body { margin-left: 80px; }
    .slider__body--right { margin-left: auto; margin-right: 80px; }
}

/* ---------- Mobil: legfeljebb 767 px ---------- */
@media screen and (max-width: 767px) {
    .container { padding: 0 16px; }
    .section { padding: 40px 0 0; }
    .section--flush-top { padding-top: 0; }
    .section--pad-bottom { padding-bottom: 40px; }

    /* Fejléc: hamburger bal oldalon, kis logó középen, a menü lenyíló sáv */
    .site-header { height: 60px; padding-top: 5px; }
    .site-logo img { width: 125px; height: 50px; }
    .site-tagline { display: none; }
    .nav-toggle {
        position: absolute;
        top: 20px;
        left: 18px;
        z-index: 20;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        padding: 0;
        border: 0;
        background: none;
        cursor: pointer;
    }
    .nav-toggle span { display: block; height: 3px; border-radius: 2px; background: #000; }
    .site-nav {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        z-index: 15;
        display: none;
        margin: 0;
        padding: 10px 0;
        background: #fff;
        box-shadow: 0 8px 16px rgba(0, 0, 0, .1);
    }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; gap: 0; }
    .site-nav a { padding: 12px 20px; font-size: 14px; }
    .site-nav a.is-active { border-bottom: 0; font-weight: 700; }
    .lang-switch { top: 12px; right: 12px; }

    .heading--xl { font-size: 40px; line-height: 50px; }
    .heading--hero { font-size: 40px; line-height: 50px; }
    .heading--lg { font-size: 30px; line-height: 1.35; }
    .split, .split--wide-img { grid-template-columns: 1fr; row-gap: 12px; }
    .split .heading--hero, .split .heading--xl { text-align: center; }

    .cards { grid-template-columns: 1fr; gap: 40px; padding: 0 4px; }
    .card__action { padding-top: 16px; }
    .gallery { grid-template-columns: 1fr; gap: 12px; }
    .text-grid { grid-template-columns: 1fr; }

    .rows { gap: 30px; }
    .row-feature, .row-feature--reverse, .row-feature--photo, .row-feature--photo.row-feature--reverse { grid-template-columns: 1fr; row-gap: 14px; }
    .row-feature--reverse > img { order: 0; }
    .split--info { grid-template-columns: 1fr; row-gap: 14px; }
    .section--contact { padding-top: 40px; }
    .contact { grid-template-columns: 1fr; row-gap: 24px; }
    .icon-grid { grid-template-columns: 1fr 1fr; row-gap: 30px; }
    .icon-circle { width: 110px; height: 110px; }
    .icon-circle svg { width: 58px; height: 58px; }
    .section--pad-bottom-lg { padding-bottom: 60px; }
    .row-feature__body, .row-feature--photo .row-feature__body { font-size: 18px; }
    .row-feature__body .heading { font-size: 36px; }
    .split .text-body { text-align: center; }

    .slider { height: 480px; }
    .slider__body, .slider__body--right { margin: 0 auto; padding: 0 56px; }
    .slider__body .heading { font-size: 36px; line-height: 44px; }
    .slider__arrow { width: 56px; }
    .slider__arrow--prev::before { left: 20px; }
    .slider__arrow--next::before { right: 20px; }

    .cta { margin: 0 10px; padding: 70px 0; }
    .site-footer .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .site-footer .footer-col--logo img { margin: 0 auto; }
}

/* ---------- Kis mobil: legfeljebb 500 px ---------- */
@media screen and (max-width: 500px) {
    .heading--xl { font-size: 36px; line-height: 46px; }
    .btn { font-size: 18px; }
    .btn-row { flex-direction: column; align-items: stretch; }
}
