/*!
 * Komel Kft – Laptop szerviz
 * Egyedi, könnyű stíluslap (Bootstrap nélkül)
 */

/* ---------- Design tokens ---------- */
:root {
    --brand:        #0e6fd1;
    --brand-dark:   #0a4f96;
    --brand-darker: #0b3c73;
    --accent:       #f5a524;

    --ink:      #12202f;
    --body:     #45566a;
    --muted:    #6b7c90;
    --line:     #e2e8f0;
    --bg:       #ffffff;
    --bg-soft:  #f4f7fb;
    --bg-brand: #0b3c73;

    --radius:   14px;
    --radius-lg: 22px;
    --shadow:   0 1px 2px rgba(16, 32, 47, .06), 0 12px 32px -12px rgba(16, 32, 47, .18);
    --shadow-sm: 0 1px 2px rgba(16, 32, 47, .06), 0 6px 18px -10px rgba(16, 32, 47, .16);

    --container: 1140px;
    --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 88px; /* sticky fejléc alá ne csússzon az ugrócél */
}
body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--body);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;            /* vízszintes görgetés kizárása kis kijelzőn */
    overflow-wrap: break-word;     /* hosszú szavak tördelése */
}
img, svg, video, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1rem; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 24px);
}

/* Rács-/flex-gyerekek ne feszítsék szét a sort keskeny kijelzőn.
   (A width attribútumos <img> min-content mérete különben kitolja a gridet.) */
.hero-grid > *, .split > *, .contact-grid > *, .card-grid > *,
.trust-grid > *, .steps > *, .footer-grid > *,
.hero-copy, .split-copy, .faq { min-width: 0; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
    position: absolute; left: 12px; top: -60px;
    background: var(--ink); color: #fff; padding: 10px 16px;
    border-radius: 8px; z-index: 200; transition: top .15s;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    font: inherit; font-weight: 700;
    padding: .72em 1.35em;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: .95em 1.7em; font-size: 1.02rem; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px rgba(14, 111, 209, .8); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand-dark); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); background: var(--bg-soft); color: var(--brand-dark); }
.ico { width: 1.1em; height: 1.1em; fill: currentColor; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -16px rgba(16, 32, 47, .35); }
.header-inner {
    display: flex; align-items: center; gap: 18px;
    min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; }
.brand:hover { text-decoration: none; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 10px;
    display: grid; place-items: center;
    background: linear-gradient(150deg, var(--brand) 0%, var(--brand-darker) 100%);
    color: #fff; font-weight: 800; font-size: 1.15rem;
    box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; letter-spacing: .04em; }
.brand-text small { font-size: .62rem; font-weight: 600; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
    color: var(--body); font-weight: 600; padding: .5em .85em; border-radius: 8px;
}
.main-nav a:hover { color: var(--ink); background: var(--bg-soft); text-decoration: none; }

.header-cta { margin-left: 4px; }

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: 10px;
    background: #fff; cursor: pointer;
    padding: 0; place-items: center; gap: 5px;
}
.nav-toggle span {
    display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(1200px 400px at 85% -10%, rgba(14, 111, 209, .12), transparent 70%),
        linear-gradient(180deg, var(--bg-soft), var(--bg));
    padding: clamp(40px, 6vw, 84px) 0;
}
.hero-grid {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px);
    align-items: center;
}
.eyebrow {
    text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700;
    color: var(--brand-dark); margin: 0 0 .8rem;
}
.hero-copy .lead { font-size: 1.15rem; color: var(--body); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 1.4rem; }
.hero-badges {
    display: flex; flex-wrap: wrap; gap: 10px 18px;
    list-style: none; padding: 0; margin: 0;
    font-size: .95rem; font-weight: 600; color: var(--ink);
}
.hero-badges li { display: flex; align-items: center; gap: .5em; }
.hero-badges li::before {
    content: ""; width: 9px; height: 9px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 0 4px rgba(245, 165, 36, .22);
}

.hero-media { position: relative; margin: 0; }
.hero-media img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.hero-card {
    position: absolute; left: 18px; bottom: -22px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 12px 16px; box-shadow: var(--shadow-sm);
    font-size: .92rem; color: var(--body);
    max-width: 78%;
}
.hero-card strong { display: block; color: var(--ink); }

/* ---------- Trust bar ---------- */
.trust { padding: 44px 0; border-bottom: 1px solid var(--line); }
.trust-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.trust-item {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px 20px; box-shadow: var(--shadow-sm);
}
.trust-item svg {
    width: 30px; height: 30px; margin-bottom: 10px;
    fill: none; stroke: var(--brand); stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
}
.trust-item svg .check { stroke: var(--accent); }
.trust-item h3 { margin-bottom: .3em; }
.trust-item p { margin: 0; font-size: .95rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(52px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head .eyebrow { margin-bottom: .6rem; }
.section-sub { color: var(--muted); margin: 0; font-size: 1.05rem; }

/* ---------- Service cards ---------- */
.card-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 24px;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe0f4; }
.card-ico {
    display: grid; place-items: center;
    width: 46px; height: 46px; border-radius: 12px;
    background: linear-gradient(150deg, rgba(14, 111, 209, .14), rgba(11, 60, 115, .16));
    margin-bottom: 16px;
}
.card-ico svg {
    width: 24px; height: 24px;
    fill: none; stroke: var(--brand-dark); stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; font-size: .96rem; color: var(--muted); }

/* ---------- Split section ---------- */
.split {
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px);
    align-items: center;
}
.split-media img {
    border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.split-copy h2 { margin-bottom: .5em; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.ticks li {
    position: relative; padding-left: 32px; margin-bottom: .7rem;
    color: var(--ink); font-weight: 500;
}
.ticks li::before {
    content: ""; position: absolute; left: 0; top: 4px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Steps ---------- */
.steps {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    counter-reset: step;
}
.steps li {
    position: relative;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 22px; box-shadow: var(--shadow-sm);
}
.step-no {
    display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--bg-brand); color: #fff; font-weight: 800; font-size: 1.05rem;
    margin-bottom: 14px;
}
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; font-size: .95rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px;
}
.contact-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px; box-shadow: var(--shadow-sm);
}
.contact-card h3 {
    font-size: .78rem; text-transform: uppercase; letter-spacing: .12em;
    color: var(--muted); margin: 1.4rem 0 .3rem;
}
.contact-card h3:first-child { margin-top: 0; }
.contact-card p { margin: 0; color: var(--ink); }
.contact-card .btn { margin-top: 1.8rem; width: 100%; }
.contact-card .btn + .btn { margin-top: .6rem; }
.contact-map {
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    min-height: 420px;
}
.contact-map iframe { display: block; width: 100%; height: 100%; min-height: 420px; }

/* ---------- FAQ / GYIK ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.faq summary {
    list-style: none; cursor: pointer;
    padding: 18px 52px 18px 22px; position: relative;
    font-weight: 700; color: var(--ink); font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; position: absolute; right: 20px; top: 50%;
    width: 11px; height: 11px; margin-top: -7px;
    border-right: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand);
    transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details[open] summary { color: var(--brand-dark); }
.faq details > p {
    margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: .97rem;
}

/* ---------- Areas / SEO ---------- */
.areas { padding: 48px 0 64px; background: var(--bg-soft); border-top: 1px solid var(--line); }
.areas h2 { font-size: 1.15rem; }
.areas p { margin: 0; color: var(--muted); font-size: .95rem; max-width: 90ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-brand); color: #cdd9ea; padding: 56px 0 28px; }
.site-footer h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .9rem; }
.site-footer a { color: #cdd9ea; }
.site-footer a:hover { color: #fff; }
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
    padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-grid nav { display: flex; flex-direction: column; gap: .45rem; align-items: flex-start; }
.brand--footer { color: #fff; margin-bottom: 12px; }
.brand--footer .brand-text small { color: #9db6d6; }
.footer-grid p { color: #cdd9ea; margin: 0; }
.footer-bottom {
    padding-top: 20px;
    display: flex; flex-wrap: wrap; gap: 6px 20px;
    justify-content: space-between; align-items: baseline;
}
.footer-bottom p { margin: 0; font-size: .88rem; color: #9db6d6; }
.footer-bottom a { color: #cdd9ea; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Legal / Impresszum ---------- */
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { margin-bottom: .5rem; }
.legal .lead { color: var(--muted); font-size: 1.05rem; margin-bottom: 1rem; }
.legal h2 {
    font-size: 1.1rem; margin: 2.4rem 0 .9rem;
    padding-bottom: .4rem; border-bottom: 1px solid var(--line);
}
.legal dl {
    display: grid; grid-template-columns: minmax(140px, max-content) 1fr;
    gap: .55rem 1.6rem; margin: 0;
}
.legal dt { font-weight: 700; color: var(--ink); }
.legal dd { margin: 0; color: var(--body); }
.legal .back { margin-top: 2.6rem; }
@media (max-width: 560px) {
    .legal dl { grid-template-columns: 1fr; gap: .15rem; }
    .legal dt { margin-top: .9rem; }
    .legal dt:first-child { margin-top: 0; }
}

/* ---------- Floating call button (mobile) ---------- */
.call-fab {
    display: none;
    position: fixed; right: 16px; bottom: 16px; z-index: 90;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--brand); color: #fff;
    place-items: center;
    box-shadow: 0 12px 28px -8px rgba(14, 111, 209, .7);
}
.call-fab svg { width: 24px; height: 24px; fill: currentColor; }

/* ===================================================================
   Responsive – mobil-first finomhangolás
   Töréspontok: 1080 / 960 / 780 / 620 / 460 px
   =================================================================== */

/* Nagy tablet / kis laptop */
@media (max-width: 1080px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet */
@media (max-width: 960px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-map, .contact-map iframe { min-height: 360px; }
}

/* A navigáció összecsukása – tablet és lefelé */
@media (max-width: 860px) {
    .header-inner { min-height: 64px; gap: 12px; }
    .header-cta { display: none; }
    .nav-toggle { display: grid; }

    .main-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; gap: 2px;
        background: #fff; border-bottom: 1px solid var(--line);
        padding: 10px 16px 16px;
        box-shadow: 0 20px 30px -20px rgba(16, 32, 47, .4);
        max-height: calc(100dvh - 64px);
        overflow-y: auto;
        display: none;
    }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: .9em .7em; border-radius: 8px; }

    .hero { padding: 32px 0 40px; }
    .hero-grid { grid-template-columns: 1fr; gap: 24px; }
    .hero-copy .lead { max-width: none; }
    .hero-media { order: -1; }
    .hero-card { position: static; max-width: none; margin-top: 14px; }

    .split { grid-template-columns: 1fr; }
    .split-media { order: -1; }

    .call-fab { display: grid; }
}

/* Nagy telefon */
@media (max-width: 780px) {
    .card-grid { grid-template-columns: 1fr; }
    .section-head { text-align: left; }
    .contact-card { padding: 24px; }
}

/* Telefon */
@media (max-width: 620px) {
    body { font-size: 16px; }
    .trust-grid, .steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .btn-lg { width: 100%; }
    .brand-text small { display: none; }
    .contact-map, .contact-map iframe { min-height: 300px; }
    .faq summary { font-size: .98rem; padding-right: 46px; }
}

/* Kis telefon */
@media (max-width: 460px) {
    h1 { font-size: 1.85rem; }
    .brand-mark { width: 34px; height: 34px; font-size: 1rem; }
    .trust-item, .card, .steps li { padding: 20px 18px; }
    .contact-card { padding: 20px; }
    .call-fab { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}

/* Rövid, fekvő képernyő */
@media (max-height: 480px) and (orientation: landscape) {
    .call-fab { display: none; }
    .main-nav { max-height: calc(100dvh - 56px); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}
