/* ============================================================
   KOCI 3D — subpage styles (Kód / code theme)
   Extends css/k3d.css. Relies on tokens from the per-page theme.
   ============================================================ */

/* ---- page hero (subpages) ---- */
.pagehero { padding-top: clamp(130px, 17vh, 200px); padding-bottom: clamp(30px, 4vw, 56px); }
.crumb { font-family: var(--font-m); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; align-items: center; margin-bottom: 26px; }
.crumb a { color: var(--muted); transition: color .25s; }
.crumb a:hover { color: var(--accent); }
.crumb span { color: var(--accent-2); }
.pagehero h1 { font-family: var(--font-d); font-weight: 700; letter-spacing: -0.04em; line-height: 0.96; font-size: clamp(2.6rem, 8vw, 6.4rem); margin: 0; }
.pagehero .lead { color: var(--dim); font-size: clamp(1.05rem, 1.6vw, 1.4rem); line-height: 1.55; max-width: 56ch; margin-top: 26px; }

/* ---- terminal card (code motif) ---- */
.terminal { background: rgba(8, 14, 12, 0.66); border: 1px solid var(--glass-brd); border-radius: 16px; overflow: hidden; backdrop-filter: blur(16px); box-shadow: 0 30px 70px -34px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.07); }
.terminal__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.03); }
.terminal__bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.terminal__bar i:nth-child(1){ background:#ff5f57 } .terminal__bar i:nth-child(2){ background:#febc2e } .terminal__bar i:nth-child(3){ background:#28c840 }
.terminal__title { font-family: var(--font-m); font-size: 0.74rem; color: var(--muted); margin-left: 10px; letter-spacing: 0.04em; }
.terminal__body { padding: clamp(18px, 2.4vw, 30px); font-family: var(--font-m); font-size: 0.92rem; line-height: 1.85; color: var(--dim); overflow-x: auto; }
.cl { color: var(--muted); } /* comment */
.kw { color: var(--accent-2); } /* keyword */
.fn { color: var(--accent); } /* function/name */
.st { color: #ffd9a0; } /* string */
.nu { color: #c9b8ff; } /* number */

/* ---- section label (// 01 — ...) ---- */
.sec-label { font-family: var(--font-m); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2); display: inline-flex; align-items: center; gap: 10px; }
.sec-label::before { content: "//"; color: var(--accent); opacity: 0.8; }

/* ---- service detail blocks ---- */
.svc-detail { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 72px); padding-block: clamp(40px, 6vw, 86px); border-top: 1px solid var(--line); align-items: start; }
.svc-detail:first-of-type { border-top: none; }
.svc-detail .num { font-family: var(--font-m); font-size: 0.9rem; color: var(--accent); }
.svc-detail h2 { font-family: var(--font-d); font-weight: 700; letter-spacing: -0.03em; font-size: clamp(1.9rem, 4vw, 3.2rem); margin: 14px 0 0; line-height: 1.02; }
.svc-detail .tagline { color: var(--accent-2); font-family: var(--font-m); font-size: 0.82rem; margin-top: 16px; letter-spacing: 0.02em; }
.svc-detail .body { color: var(--dim); font-size: 1.06rem; line-height: 1.65; }
.svc-detail .points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.svc-detail .points li { background: rgba(10,16,14,0.5); padding: 16px 20px; display: flex; gap: 14px; align-items: flex-start; font-size: 0.98rem; color: var(--ink); }
.svc-detail .points li::before { content: "▸"; color: var(--accent); font-size: 0.9rem; margin-top: 2px; }
.svc-sticky { position: sticky; top: 100px; }

/* ---- generic split + cards ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.infocard { background: var(--glass); border: 1px solid var(--glass-brd); border-radius: 18px; padding: clamp(22px, 2.6vw, 32px); backdrop-filter: blur(14px); }
.infocard h3 { font-family: var(--font-d); font-weight: 600; font-size: 1.3rem; margin: 14px 0 8px; letter-spacing: -0.02em; }
.infocard p { color: var(--dim); line-height: 1.55; margin: 0; font-size: 0.96rem; }
.infocard .ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: rgba(70,240,138,0.12); color: var(--accent-2); border: 1px solid var(--glass-brd); font-size: 1.2rem; }

/* ---- process steps ---- */
.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.proc-step { border-top: 2px solid var(--accent); padding-top: 20px; }
.proc-step .pn { font-family: var(--font-m); font-size: 0.8rem; color: var(--accent); }
.proc-step h3 { font-family: var(--font-d); font-weight: 600; font-size: 1.4rem; margin: 12px 0 10px; letter-spacing: -0.02em; }
.proc-step p { color: var(--dim); line-height: 1.55; margin: 0; font-size: 0.94rem; }

/* ---- portfolio ---- */
.filterbar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 34px; }
.filter { font-family: var(--font-m); font-size: 0.76rem; letter-spacing: 0.04em; padding: 10px 17px; border-radius: 999px; border: 1px solid var(--glass-brd); background: var(--glass); color: var(--dim); cursor: pointer; transition: all .25s; }
.filter:hover { color: var(--ink); border-color: var(--accent); }
.filter.on { background: var(--accent); color: #06100c; border-color: var(--accent); font-weight: 700; }
.work2-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work2-card { position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; border: 1px solid var(--glass-brd); background: var(--glass); transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; text-decoration: none; color: inherit; cursor: pointer; }
.work2-card:hover { transform: translateY(-6px); border-color: rgba(70,240,138,.5); box-shadow: 0 32px 64px -26px rgba(0,0,0,.75), 0 0 0 1px rgba(70,240,138,.12); }

/* image header */
.work2-card .thumb { aspect-ratio: 16/10; overflow: hidden; position: relative; flex-shrink: 0; }
.work2-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s var(--ease); filter: brightness(.88) saturate(.9); display: block; }
.work2-card:hover .thumb img { transform: scale(1.06); filter: brightness(.95) saturate(1); }
.work2-card .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(5,16,12,.72) 100%); pointer-events: none; }
.work2-card .thumb::before { content: attr(data-init); position: absolute; bottom: -0.2em; right: 0.06em; font-family: var(--font-d); font-size: 5.5rem; font-weight: 900; line-height: 1; color: rgba(255,255,255,.07); letter-spacing: -0.04em; pointer-events: none; user-select: none; z-index: 1; transition: transform .5s var(--ease); }
.work2-card:hover .thumb::before { transform: scale(1.08) translateX(-4px); }

/* category gradient fallback (no image) */
.work2-card[data-cat="Weboldal"] .thumb:not(:has(img[src]:not([src=""]))) { background: linear-gradient(100deg,#071e30,#0d2c44,#46f08a18); }
.work2-card[data-cat="Webáruház"] .thumb { background: linear-gradient(100deg,#071e14,#0a2c1c,#38e8ff18); }
.work2-card[data-cat="Arculat"] .thumb { background: linear-gradient(100deg,#16083a,#201050,#a855f718); }
.work2-card[data-cat="Hirdetés"] .thumb { background: linear-gradient(100deg,#281000,#361800,#f59e0b18); }
.work2-card[data-cat="SEO"] .thumb { background: linear-gradient(100deg,#062018,#0c2e20,#38e8ff18); }

/* meta */
.work2-card .meta { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.work2-card .meta .top { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-m); font-size: 0.7rem; letter-spacing: 0.06em; margin-bottom: 10px; }
.work2-card .meta .top span:first-child { color: var(--accent); }
.work2-card .meta .top span:last-child { color: var(--muted); }
.work2-card .meta h3 { font-family: var(--font-d); font-weight: 700; font-size: clamp(1.3rem,1.7vw,1.6rem); margin: 0 0 10px; letter-spacing: -0.03em; line-height: 1.1; }
.work2-card .meta p { color: var(--dim); font-size: 0.88rem; line-height: 1.55; margin: 0 0 16px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.tags span { font-family: var(--font-m); font-size: 0.63rem; letter-spacing: 0.05em; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

/* ---- team ---- */
.team2-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.team2-card { border-radius: 18px; overflow: hidden; border: 1px solid var(--glass-brd); background: var(--glass); transition: transform .4s var(--ease), border-color .4s; }
.team2-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.team2-card .ph { aspect-ratio: 1; overflow: hidden; position: relative; background: linear-gradient(135deg, rgba(70,240,138,0.14), rgba(56,232,255,0.1)); display: grid; place-items: center; }
.team2-card .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.team2-card .ph .mono-ph { font-family: var(--font-d); font-weight: 700; font-size: 2.4rem; color: var(--accent); opacity: 0.85; }
.team2-card .info { padding: 22px; }
.team2-card .info .role { font-family: var(--font-m); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); }
.team2-card .info h3 { font-family: var(--font-d); font-weight: 600; font-size: 1.35rem; margin: 6px 0 10px; letter-spacing: -0.02em; }
.team2-card .info p { color: var(--dim); font-size: 0.9rem; line-height: 1.5; margin: 0; }

/* ---- values ---- */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.values > div { background: rgba(10,16,14,0.5); padding: clamp(24px, 3vw, 40px); }
.values h3 { font-family: var(--font-d); font-weight: 600; font-size: 1.5rem; color: var(--accent); margin: 0 0 10px; letter-spacing: -0.02em; }
.values p { color: var(--dim); line-height: 1.55; margin: 0; }

/* ---- testimonials ---- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote { background: var(--glass); border: 1px solid var(--glass-brd); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.quote .q { font-size: 1.02rem; line-height: 1.55; color: var(--ink); }
.quote .by { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.quote .by strong { font-weight: 700; }
.quote .by span { font-family: var(--font-m); font-size: 0.68rem; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--accent-2); }
.quote .mark { font-family: var(--font-d); font-size: 2.4rem; line-height: 0.4; color: var(--accent); }

/* ---- FAQ accordion ---- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--glass-brd); border-radius: 14px; background: var(--glass); overflow: hidden; transition: border-color .3s; }
.faq-item.open { border-color: var(--accent); }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--ink); padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 18px; cursor: pointer; font-family: var(--font-d); font-weight: 600; font-size: clamp(1.02rem, 1.6vw, 1.25rem); letter-spacing: -0.01em; }
.faq-q .cat { font-family: var(--font-m); font-size: 0.66rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px; margin-right: auto; }
.faq-q .pm { font-size: 1.4rem; color: var(--accent); transition: transform .3s; flex-shrink: 0; }
.faq-item.open .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a > div { padding: 0 24px 24px; color: var(--dim); line-height: 1.65; font-size: 1rem; }

/* ---- contact form ---- */
.form-card { background: var(--glass); border: 1px solid var(--glass-brd); border-radius: 22px; padding: clamp(26px, 4vw, 46px); backdrop-filter: blur(18px); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-family: var(--font-m); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(6,12,10,0.6); color: var(--ink); font-family: var(--font-b); font-size: 1rem; outline: none; transition: border-color .25s; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-sel { font-family: var(--font-m); font-size: 0.74rem; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: rgba(6,12,10,0.5); color: var(--dim); cursor: pointer; transition: all .2s; }
.chip-sel.on { background: var(--accent); color: #06100c; border-color: var(--accent); font-weight: 700; }
.form-ok { text-align: center; padding: 30px 0; }
.form-ok .big { font-family: var(--font-d); font-size: 2.6rem; color: var(--accent); }

/* ---- contact info rows ---- */
.cinfo { display: flex; flex-direction: column; gap: 2px; }
.cinfo a, .cinfo .row { display: flex; flex-direction: column; gap: 4px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cinfo .k { font-family: var(--font-m); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cinfo .v { font-family: var(--font-d); font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.9rem); letter-spacing: -0.02em; }

/* ---- mobile menu ---- */
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--glass-brd); border-radius: 12px; background: var(--glass); flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.burger span { width: 18px; height: 2px; background: var(--ink); transition: .3s; }
.mobnav { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none !important; }
  .burger { display: flex; }
  .nav-cta-btn { display: none !important; }
  .mobnav.open { display: flex; flex-direction: column; gap: 4px; padding: 10px; margin-top: 8px; background: rgba(6,10,16,0.92); border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(16px); }
  .mobnav a { padding: 14px 16px; border-radius: 10px; font-family: var(--font-d); font-weight: 600; font-size: 1.2rem; }
  .svc-detail { grid-template-columns: 1fr; gap: 24px; }
  .svc-sticky { position: static; }
  .split { grid-template-columns: 1fr; }
  .proc-grid { grid-template-columns: 1fr 1fr; }
  .work2-grid, .team2-grid, .quotes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .proc-grid, .work2-grid, .team2-grid, .quotes, .values { grid-template-columns: 1fr; }
}
