/*
Theme Name: Vízvezeték Premium B2C & B2B
Author: Te
Description: Prémium, modern WordPress sablon vízvezeték-szerelő weboldalhoz.
Version: 3.0
*/

/* ==========================================================
   1. TOKENEK
   Mély tengerészkék + réz akcent. A réz a "cső" motívum színe,
   és kizárólag a cselekvésre hívó elemeknél / díszítésnél jelenik meg.
   ========================================================== */
:root {
    --ink: #0A1F33;
    --ink-deep: #071826;
    --navy: #14406B;
    --aqua: #1E8FCB;
    --text: #2D3F51;
    --muted: #5E7284;
    --mist: #EEF3F7;
    --paper: #ffffff;
    --line: #DCE5EC;

    --copper: #A85B2E;
    --copper-deep: #8F4A22;
    --copper-light: #E6A97B;
    --brass: #E3C189;
    --copper-grad: linear-gradient(180deg, #B0622F 0%, #9C5226 100%);

    --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;

    --shadow-sm: 0 1px 2px rgba(10, 31, 51, .06);
    --shadow-md: 0 14px 32px -18px rgba(10, 31, 51, .35);

    --header-h: 72px;
    --gutter: clamp(20px, 4vw, 40px);
    --section-y: clamp(72px, 9vw, 128px);
}

/* ==========================================================
   2. ALAP
   ========================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--mist);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--copper); color: #fff; }

:focus-visible {
    outline: 3px solid var(--aqua);
    outline-offset: 3px;
    border-radius: 6px;
}

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

h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--ink);
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
}

/* Sorkizárás csak nagyobb kijelzőn; telefonon balra zárt (a keskeny hasábban "folyók" keletkeznének) */
.about-text p:not(.lead),
.cta-contact p,
.legal-document p,
.legal-document li,
.info-card li,
.main-service-content p,
.text-justify {
    -webkit-hyphens: auto;
    hyphens: auto;
}

@media (min-width: 769px) {
    .about-text p:not(.lead),
    .cta-contact p,
    .legal-document p,
    .legal-document li,
    .info-card li,
    .main-service-content p,
    .text-justify {
        text-align: justify;
    }
}

/* ==========================================================
   3. HEADER ÉS NAVIGÁCIÓ
   A háttér pszeudo-elemen van, hogy a backdrop-filter ne bontsa meg
   a mobil menü position:fixed elhelyezését.
   ========================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: saturate(1.5) blur(16px);
    backdrop-filter: saturate(1.5) blur(16px);
    border-bottom: 1px solid rgba(10, 31, 51, .08);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-h);
}

.logo a {
    position: relative;
    z-index: 1002;
    display: inline-flex;
    align-items: center;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.025em;
    color: var(--ink);
    text-decoration: none;
    transition: color .3s ease;
}

.logo span {
    font-weight: 500;
    color: var(--copper-deep);
    padding-left: .1em;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
}

.main-nav a {
    display: block;
    padding: 10px 18px;
    font-size: .96rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color .25s ease, color .25s ease;
}

.main-nav a:hover { background: rgba(10, 31, 51, .06); color: var(--ink); }

.main-nav a.active,
.main-nav li.current-menu-item > a,
.main-nav li.current_page_item > a {
    background: var(--ink);
    color: #fff;
}

.hamburger {
    display: none;
    position: relative;
    z-index: 1002;
    width: 46px;
    height: 46px;
    margin-right: -8px;
    background: none;
    border: 0;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    -webkit-tap-highlight-color: transparent;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--ink);
    border-radius: 2px;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1), opacity .2s ease, background-color .3s ease;
}

/* Görgetés-jelző: a "cső" lassan megtelik rézzel a fejléc alján */
.progress-container {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    pointer-events: none;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--brass), var(--copper));
    transition: width .1s linear;
}

/* ==========================================================
   4. GOMBOK
   ========================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 16px 34px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .01em;
    text-decoration: none;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary,
.btn-premium,
.btn-large {
    background: var(--copper-grad);
    color: #fff;
    box-shadow: 0 1px 2px rgba(10, 31, 51, .25);
}

.btn-primary:hover,
.btn-premium:hover,
.btn-large:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 8px 16px -8px rgba(143, 74, 34, .65);
}

.btn i { transition: transform .3s ease; }
.btn-premium:hover i { transform: translateX(5px); }

.btn-premium { padding: 18px 40px; font-size: 1.05rem; }

.btn-large {
    padding: 20px 38px;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
}

/* ==========================================================
   5. KEZDŐLAP – HERO
   ========================================================== */
.hero-section {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: min(calc(100svh - var(--header-h)), 900px);
    padding: clamp(72px, 10vw, 140px) 0 clamp(72px, 9vw, 120px);
    color: #fff;
    background-color: var(--ink);
    background-size: cover;
    background-position: 70% center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Sötét fátyol balról: a szöveg olvasható marad, a jobb oldali szerelvények látszanak */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(0deg, rgba(7, 24, 38, .6) 0%, rgba(7, 24, 38, 0) 38%),
        linear-gradient(90deg, rgba(7, 24, 38, .94) 0%, rgba(7, 24, 38, .78) 36%, rgba(7, 24, 38, .2) 76%, rgba(7, 24, 38, .06) 100%);
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
    mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
}

.hero-section .container { width: 100%; }
.hero-content { max-width: 720px; }

.hero-content h1 {
    margin-bottom: 26px;
    font-size: clamp(2.3rem, 1.1rem + 4vw, 4.1rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -.025em;
    color: #fff;
    text-align: left;
    -webkit-hyphens: manual;
    hyphens: manual;
}

.hero-content p {
    -webkit-hyphens: manual;
    hyphens: manual;
    max-width: 58ch;
    margin-bottom: 34px;
    font-size: clamp(1.05rem, .9rem + .5vw, 1.25rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, .86);
    text-align: left;
}

.hero-services {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.service-tag,
a.service-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 20px;
    font-size: .92rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .26);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.service-tag i { color: var(--copper-light); font-size: .8rem; transition: color .25s ease; }

.service-tag:hover,
a.service-tag:hover {
    background: #fff;
    color: var(--ink);
    border-color: #fff;
}
.service-tag:hover i { color: var(--copper); }

.hero-actions { display: flex; gap: 16px; }

/* Egyetlen, koreografált belépés a hero-ban */
@media (prefers-reduced-motion: no-preference) {
    .hero-content > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
    .hero-content > :nth-child(2) { animation-delay: .1s; }
    .hero-content > :nth-child(3) { animation-delay: .2s; }
    .hero-content > :nth-child(4) { animation-delay: .3s; }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
}

/* ==========================================================
   6. KEZDŐLAP – RÓLUNK
   ========================================================== */
.about-section {
    padding: var(--section-y) 0;
    background-color: var(--mist);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}

.section-title {
    margin-bottom: 22px;
    font-size: clamp(2rem, 1.1rem + 3vw, 3.2rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.02em;
    color: var(--ink);
    text-align: center;
}

/* Réz csődarab hollandi anyával: a visszatérő motívum */
.title-underline {
    width: 72px;
    height: 8px;
    margin: 0 auto 40px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--brass) 0 9px, var(--copper-deep) 9px 11px, #C27545 11px 100%);
}

.about-text .section-title { text-align: left; }
.about-text .title-underline { margin-left: 0; }

.about-text .lead {
    margin-bottom: 24px;
    font-size: clamp(1.15rem, 1rem + .5vw, 1.32rem);
    font-weight: 500;
    line-height: 1.55;
    color: var(--ink);
    text-align: left;
}
.about-text .lead strong { color: var(--copper-deep); font-weight: 700; }

.about-text p { margin-bottom: 1.1em; }

.highlight-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(145deg, var(--ink-2, #0F2D4A) 0%, var(--ink) 100%);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.highlight-box i { margin-top: 4px; font-size: 1.7rem; color: var(--copper-light); }

.highlight-box p {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.65;
    color: rgba(255, 255, 255, .88);
    text-align: left;
    -webkit-hyphens: none;
    hyphens: none;
}
.highlight-box strong { color: #fff; font-weight: 700; }

.about-features h3 {
    margin-bottom: 28px;
    font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -.025em;
}

.feature-list {
    --icon: 56px;
    --pad: 22px;
    position: relative;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* A csővezeték, ami az ikonokat köti össze (csak a kártyák közt látszik) */
.feature-list::before {
    content: "";
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: calc(var(--pad) + var(--icon) / 2 - 2px);
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--brass), var(--copper));
}

.feature-list li {
    position: relative;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: var(--pad);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--icon);
    min-width: var(--icon);
    height: var(--icon);
    background: var(--ink);
    border-radius: 6px;
}

.icon-wrap i { font-size: 1.35rem; color: var(--copper-light); }

.feature-content strong {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--ink);
}

.feature-content span {
    display: block;
    font-size: .96rem;
    line-height: 1.6;
    color: var(--text);
    text-align: left;
    -webkit-hyphens: none;
    hyphens: none;
}

/* ==========================================================
   7. CTA
   ========================================================== */
.cta-section {
    padding: clamp(56px, 8vw, 104px) 0;
    color: #fff;
    background-color: var(--ink);
    background-image:
        radial-gradient(60% 90% at 100% 100%, rgba(185, 106, 59, .22) 0%, rgba(185, 106, 59, 0) 70%),
        linear-gradient(135deg, var(--ink) 0%, #12385C 100%);
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: clamp(28px, 5vw, 64px);
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.cta-hours { padding-right: clamp(24px, 5vw, 64px); }

.cta-hours h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -.02em;
    color: #fff;
}
.cta-hours h3 i { color: var(--copper-light); font-size: 1.2rem; }

.cta-hours ul { list-style: none; }

.cta-hours li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    font-size: 1.02rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.cta-hours li strong { font-weight: 700; text-align: right; }
.cta-hours li.weekend { color: var(--copper-light); border-bottom: 0; }

.cta-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-left: clamp(24px, 5vw, 64px);
    border-left: 1px solid rgba(255, 255, 255, .14);
}

.cta-contact p {
    margin-bottom: 24px;
    font-size: 1.12rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, .88);
    text-align: left;
}

/* ==========================================================
   8. FOOTER
   ========================================================== */
.site-footer {
    position: relative;
    padding: 56px 0 44px;
    color: rgba(255, 255, 255, .6);
    background-color: var(--ink-deep);
    text-align: center;
    font-size: .94rem;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--copper) 30%, var(--brass) 50%, var(--copper) 70%, transparent);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 22px;
    margin-bottom: 26px;
}

.footer-links a {
    padding: 6px 2px;
    font-weight: 600;
    color: rgba(255, 255, 255, .9);
    text-decoration: none;
    transition: color .25s ease;
}
.footer-links a:hover { color: var(--copper-light); }
.footer-links .separator { color: rgba(255, 255, 255, .22); }

.site-footer p { text-align: center; }
.site-footer p.credit { margin-top: 10px; font-size: .86rem; }
.site-footer p.credit a { color: var(--copper-light); text-decoration: none; transition: color .25s ease; }
.site-footer p.credit a:hover { color: #fff; }

/* Mobilon lebegő hívás-gomb (csak ikon) */
.call-fab {
    display: none;
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 900;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    text-decoration: none;
    background: var(--copper-grad);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 14px 28px -8px rgba(143, 74, 34, .8);
    -webkit-tap-highlight-color: transparent;
}

/* ==========================================================
   9. ALOLDALAK FEJLÉCE
   ========================================================== */
.page-header,
.services-hero {
    position: relative;
    isolation: isolate;
    padding: clamp(64px, 9vw, 116px) 0 clamp(52px, 7vw, 88px);
    color: #fff;
    background-color: var(--ink);
    background-image: url('images/alherobg.jpg');
    background-size: cover;
    background-position: 62% center;
    text-align: center;
}

.page-header::before,
.services-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(0deg, rgba(7, 24, 38, .5), rgba(7, 24, 38, 0) 50%),
        linear-gradient(0deg, rgba(7, 24, 38, .55), rgba(7, 24, 38, .55));
}

.page-header h1,
.services-hero h1 {
    margin-bottom: 14px;
    font-size: clamp(2.3rem, 1.2rem + 4vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.025em;
    color: #fff;
    -webkit-hyphens: manual;
    hyphens: manual;
}

.page-header p,
.services-hero p {
    max-width: 56ch;
    margin-left: auto;
    margin-right: auto;
    -webkit-hyphens: manual;
    hyphens: manual;
    font-size: clamp(1.05rem, .95rem + .4vw, 1.22rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, .84);
}

/* ==========================================================
   10. JOGI OLDALAK (Adatkezelés, Céginformáció)
   ========================================================== */
.legal-content-section {
    padding: clamp(48px, 7vw, 96px) 0 var(--section-y);
    background-color: var(--mist);
}

.legal-document {
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 64px);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.legal-document h2 {
    margin: 48px 0 20px;
    padding-bottom: 14px;
    font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -.02em;
    border-bottom: 1px solid var(--line);
}
.legal-document h2:first-child { margin-top: 0; }

.legal-document p { margin-bottom: 1em; }
.legal-document ul { margin: 0 0 28px; padding-left: 22px; }
.legal-document li { margin-bottom: 10px; line-height: 1.7; }
.legal-document li::marker { color: var(--copper); }
.legal-document strong { color: var(--ink); }

.company-details-box {
    margin: 0 0 36px;
    padding: 8px 28px;
    background: var(--mist);
    border: 1px solid var(--line);
    border-left: 4px solid var(--copper);
    border-radius: 4px 8px 8px 4px;
}
.company-details-box ul { margin: 0; padding: 0; list-style: none; }

.company-details-box li {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
}
.company-details-box li:last-child { border-bottom: 0; }
.company-details-box strong { min-width: 170px; font-weight: 700; color: var(--ink); }

/* ==========================================================
   11. SZOLGÁLTATÁSOK
   ========================================================== */
.services-selector-section {
    padding: clamp(48px, 7vw, 88px) 0 var(--section-y);
    background-color: var(--mist);
}

.selector-title {
    max-width: 24ch;
    margin: 0 auto clamp(32px, 5vw, 56px);
    font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.15rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.025em;
    text-align: center;
}

.main-services-accordion {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-service-item {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    scroll-margin-top: calc(var(--header-h) + 20px);
    transition: border-color .3s ease, box-shadow .3s ease;
}

.main-service-item[open] {
    border-color: rgba(168, 91, 46, .4);
    box-shadow: var(--shadow-md);
}

.main-service-item > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 26px 32px;
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
}
.main-service-item > summary::-webkit-details-marker { display: none; }

.main-service-item > summary h2 {
    flex: 1;
    margin: 0;
    font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.02em;
    transition: color .25s ease;
}
.main-service-item:not([open]) > summary:hover h2 { color: var(--copper-deep); }

.main-service-item > summary::after {
    content: '\f067';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    color: var(--ink);
    background: var(--mist);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: transform .4s cubic-bezier(.4, 0, .2, 1), background-color .3s ease, color .3s ease;
}

.main-service-item[open] > summary::after {
    content: '\f00d';
    transform: rotate(90deg);
    color: #fff;
    background: var(--copper-grad);
    border-color: transparent;
}

.main-service-content {
    padding: 4px 32px 36px;
    font-size: 1.04rem;
    color: var(--text);
}
.main-service-content::after { content: ""; display: table; clear: both; }

@media (prefers-reduced-motion: no-preference) {
    .main-service-item[open] .main-service-content { animation: unfold .5s cubic-bezier(.2, .7, .2, 1); }
    .main-service-item.is-closing .main-service-content { animation: fold .35s ease forwards; }
}
@keyframes unfold { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes fold { to { opacity: 0; transform: translateY(-8px); } }

.main-service-content p { margin-bottom: 1.15em; line-height: 1.8; }
.main-service-content strong { color: var(--ink); font-weight: 700; }

.main-service-content .lead {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
    text-align: left;
}

.service-floating-image {
    float: right;
    width: 300px;
    aspect-ratio: 1 / 1;
    margin: 4px 0 22px 36px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

/* Ikonos felsorolások (Szolgáltatások + Kapcsolat) */
.service-list { list-style: none; padding: 0; margin: 4px 0 24px; }

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
    line-height: 1.55;
    text-align: left;
}
.service-list li i { flex-shrink: 0; margin-top: .32em; font-size: .9rem; color: var(--copper); }

.service-list.two-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px 28px;
}
.service-list.two-columns li {
    margin: 0;
    padding: 14px 16px;
    background: var(--mist);
    border-radius: 6px;
}

.mt-4 { margin-top: 1.6rem; }

/* Galéria (Hibakeresés) */
.service-image-gallery {
    position: relative;
    float: right;
    width: 300px;
    margin: 4px 0 22px 36px;
}

.gallery-track {
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}
.gallery-track::-webkit-scrollbar { display: none; }

.gallery-track img {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    scroll-snap-align: center;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    font-size: .85rem;
    color: var(--ink);
    background: rgba(255, 255, 255, .92);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(10, 31, 51, .25);
    transition: background-color .25s ease, color .25s ease;
}
.gallery-arrow:hover { background: var(--copper); color: #fff; }
.gallery-arrow.prev { left: 10px; }
.gallery-arrow.next { right: 10px; }

/* ==========================================================
   12. KAPCSOLAT
   ========================================================== */
.contact-section {
    padding: clamp(48px, 7vw, 96px) 0 var(--section-y);
    background-color: var(--mist);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(36px, 6vw, 88px);
    align-items: start;
}

.contact-form-wrapper h2,
.contact-info-wrapper h2 {
    margin-bottom: 18px;
    font-size: clamp(1.8rem, 1.2rem + 2vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -.02em;
}

.contact-page .title-underline { margin: 0 0 28px; }

.custom-form {
    padding: clamp(24px, 4vw, 48px);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 22px; }
.form-row { display: flex; gap: 20px; }
.form-group.half { flex: 1; min-width: 0; }

.custom-form label {
    display: block;
    margin-bottom: 8px;
    font-size: .94rem;
    font-weight: 700;
    color: var(--ink);
}

.custom-form input[type="text"],
.custom-form input[type="email"],
.custom-form input[type="tel"],
.custom-form textarea {
    width: 100%;
    padding: 15px 18px;
    font-family: inherit;
    font-size: 1rem; /* 16px: iOS ne nagyítson rá */
    color: var(--ink);
    background: var(--mist);
    border: 1.5px solid transparent;
    border-radius: 6px;
    transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.custom-form textarea { resize: vertical; min-height: 140px; }
.custom-form ::placeholder { color: #8DA0B0; }

.custom-form input:focus,
.custom-form textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--aqua);
    box-shadow: 0 0 0 4px rgba(30, 143, 203, .16);
}

.checkbox-group { display: flex; align-items: flex-start; gap: 12px; margin-top: 8px; }
.checkbox-group input[type="checkbox"] { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--copper); cursor: pointer; }
.checkbox-group label { margin: 0; font-size: .92rem; font-weight: 500; line-height: 1.5; color: var(--text); cursor: pointer; }
.checkbox-group a { font-weight: 700; color: var(--copper-deep); }

.btn-submit { width: 100%; margin-top: 18px; padding: 18px; font-size: 1.08rem; }

.alert {
    margin-bottom: 24px;
    padding: 16px 20px;
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.5;
    border-radius: 6px;
    border: 1px solid;
}
.alert-success { color: #0F5132; background: #E7F5EC; border-color: #A9D8BB; }
.alert-error { color: #7A1F1F; background: #FCEBEA; border-color: #EFB3AE; }

.contact-features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.contact-features-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 24px 14px;
    text-align: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.contact-features-list .icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
    color: var(--copper-light);
    background: var(--ink);
    border-radius: 6px;
}

.contact-features-list span { font-size: .94rem; font-weight: 700; line-height: 1.35; color: var(--ink); }

.info-card {
    padding: clamp(24px, 4vw, 40px);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.info-card h3 {
    margin: 28px 0 14px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -.02em;
}
.info-card h3:first-child { margin-top: 0; }
.info-card p { line-height: 1.75; }
.info-card strong { color: var(--ink); }
.info-card .service-list { margin: 16px 0 0; }
.info-card .service-list li { margin-bottom: 12px; }

/* ==========================================================
   13. MUNKÁINK
   ========================================================== */
.portfolio-section { padding: clamp(56px, 8vw, 104px) 0; background-color: var(--mist); }
.portfolio-section.bg-light { background-color: var(--paper); }

/* Egy nagy + négy kicsi kép: szerkesztett, nem sablonrács */
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.portfolio-item {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #D5E0E8;
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: var(--shadow-sm);
}

.portfolio-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

.portfolio-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.portfolio-item:hover img { transform: scale(1.045); }

/* Nagyító (lightbox) */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(7, 24, 38, .94);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; width: auto; height: auto; border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }

.lightbox button {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 1.05rem;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color .25s ease;
}
.lightbox button:hover { background: var(--copper); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; margin-top: -24px; }
.lightbox .lb-next { right: 18px; top: 50%; margin-top: -24px; }

/* ==========================================================
   14. RESZPONZÍV
   ========================================================== */
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }

    .portfolio-gallery { grid-template-columns: repeat(2, 1fr); }
    .portfolio-item:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
}

@media (max-width: 860px) {
    :root { --header-h: 64px; }

    .hamburger { display: flex; }

    /* Teljes képernyős menü */
    .main-nav {
        position: fixed;
        inset: 0;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: calc(var(--header-h) + 24px) 28px 48px;
        background: linear-gradient(160deg, #0F2D4A 0%, var(--ink) 70%);
        opacity: 0;
        visibility: hidden;
        transition: opacity .35s ease, visibility 0s linear .35s;
    }
    .main-nav.active { opacity: 1; visibility: visible; transition: opacity .35s ease; }

    .main-nav ul { flex-direction: column; gap: 0; }

    .main-nav li { border-bottom: 1px solid rgba(255, 255, 255, .12); }
    .main-nav li:first-child { border-top: 1px solid rgba(255, 255, 255, .12); }

    .main-nav a {
        padding: 20px 4px;
        font-family: var(--font-display);
        font-size: clamp(1.7rem, 7vw, 2.2rem);
        font-weight: 600;
        letter-spacing: -.02em;
        color: #fff;
        border-radius: 0;
    }
    .main-nav a:hover { background: none; color: var(--copper-light); }
    .main-nav a.active,
    .main-nav li.current-menu-item > a,
    .main-nav li.current_page_item > a { background: none; color: var(--copper-light); }

    body.nav-open .logo a { color: #fff; }
    body.nav-open .logo span { color: var(--copper-light); }
    body.nav-open .hamburger span { background-color: #fff; }

    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .call-fab { display: flex; }
    body.nav-open .call-fab { display: none; }
}

@media (max-width: 768px) {
    body { font-size: 1rem; }

    .hero-section {
        min-height: 0;
        align-items: flex-start;
        padding: 300px 0 64px;
        background-size: auto 400px;
        background-position: 100% 0;
    }
    .hero-section::before {
        background:
            linear-gradient(180deg, rgba(7, 24, 38, .12) 0, rgba(7, 24, 38, 0) 140px, rgba(10, 31, 51, .78) 290px, var(--ink) 400px);
    }
    .hero-section::after { display: none; }
    .hero-services { gap: 8px; margin-bottom: 32px; }
    .service-tag, a.service-tag { padding: 9px 16px; font-size: .88rem; }
    .hero-actions { flex-direction: column; }
    .btn-premium, .btn-large { width: 100%; }

    .highlight-box { flex-direction: column; gap: 14px; padding: 24px; }
    .feature-list { --icon: 48px; --pad: 18px; }
    .feature-list li { gap: 16px; }
    .icon-wrap { border-radius: 6px; }

    .cta-grid { grid-template-columns: 1fr; padding: 26px 22px; border-radius: 8px; }
    .cta-hours { padding-right: 0; }
    .cta-contact {
        align-items: stretch;
        margin-top: 28px;
        padding: 28px 0 0;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .14);
    }
    .btn-large { padding: 18px 24px; }

    .page-header, .services-hero { padding: 52px 0 44px; }

    .main-service-item { border-radius: 8px; }
    .main-service-item > summary { padding: 20px 18px; gap: 12px; }
    .main-service-item > summary::after { width: 40px; height: 40px; }
    .main-service-content { padding: 0 18px 26px; }

    .service-floating-image,
    .service-image-gallery {
        float: none;
        width: 100%;
        margin: 0 0 20px;
    }
    .service-floating-image { aspect-ratio: 4 / 3; border-radius: 6px; }
    .gallery-track { border-radius: 6px; }
    .gallery-track img { aspect-ratio: 4 / 3; }

    .service-list.two-columns { grid-template-columns: 1fr; }

    .legal-document { border-radius: 8px; }
    .company-details-box { padding: 4px 18px; }
    .company-details-box li { flex-direction: column; gap: 2px; padding: 12px 0; }
    .company-details-box strong { min-width: 0; }

    .form-row { flex-direction: column; gap: 0; }
    .custom-form, .info-card { border-radius: 8px; }

    .contact-features-list { grid-template-columns: 1fr; gap: 10px; }
    .contact-features-list li { flex-direction: row; gap: 16px; padding: 16px 18px; text-align: left; }
    .contact-features-list .icon-box { flex-shrink: 0; width: 46px; height: 46px; border-radius: 6px; }

    /* Munkáink: oldalra húzható képsor */
    .portfolio-gallery {
        display: flex;
        gap: 12px;
        margin: 0 calc(var(--gutter) * -1);
        padding: 0 var(--gutter) 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 var(--gutter);
        scrollbar-width: none;
    }
    .portfolio-gallery::-webkit-scrollbar { display: none; }
    .portfolio-item,
    .portfolio-item:first-child { flex: 0 0 80%; aspect-ratio: 4 / 5; grid-column: auto; scroll-snap-align: center; border-radius: 8px; }

    .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 22px; margin: 0; }
    .lightbox .lb-prev { left: calc(50% - 58px); }
    .lightbox .lb-next { right: calc(50% - 58px); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
