/* ============================================================
   ÚJRAHANGOLVA — design system
   Palette (kept): clay #bd926d · sand #EBDBC8 · cream #FAF6F1
                   cocoa #3d3028 · warm brown #5e4d3d
   Type: Fraunces (display / italic accents) + Karla (body / UI)
   ============================================================ */

:root {
    --ink:        #3d3028;
    --ink-soft:   #5e4d3d;
    --clay:       #bd926d;
    --clay-deep:  #9a7555;
    --sand:       #EBDBC8;
    --sand-deep:  #d9c4ab;
    --cream:      #FAF6F1;
    --paper:      #ffffff;
    --line:       #efe8df;
    --muted:      #888888;
    --muted-soft: #999999;

    --serif: 'Fraunces', 'Georgia', serif;
    --sans:  'Karla', 'Helvetica Neue', Arial, sans-serif;

    --header-h: 76px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.8;
    background-color: var(--cream);
    color: var(--ink-soft);
    -webkit-font-smoothing: antialiased;
}

/* Grain — a whisper of paper texture over everything */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    opacity: 0.035;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}

::selection {
    background: var(--sand);
    color: var(--ink);
}

img { max-width: 100%; }

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 500;
    color: var(--ink);
    line-height: 1.2;
    margin: 0;
}

p { margin: 0 0 1.25rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--clay-deep); }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: var(--cream);
    padding: 0.75rem 1.25rem;
    z-index: 500;
    font-family: var(--sans);
    text-decoration: none;
}
.skip-link:focus { left: 0; }

sup, .reg {
    font-size: 0.45em;
    color: var(--clay);
    vertical-align: super;
    line-height: 0;
}

/* ---------- Tuning-bars ornament (brand motif) ---------- */

.tune {
    display: inline-flex;
    align-items: flex-end;
    gap: 5px;
    height: 20px;
    vertical-align: middle;
}

.tune i {
    display: block;
    width: 2px;
    border-radius: 2px;
    background: var(--clay);
}

.tune i:nth-child(1) { height: 9px; }
.tune i:nth-child(2) { height: 19px; }
.tune i:nth-child(3) { height: 13px; }

.tune-center {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

@keyframes tuneBreathe {
    0%, 100% { transform: scaleY(1); }
    50%      { transform: scaleY(0.55); }
}

.brand:hover .tune i,
.sf-brand .tune i {
    transform-origin: bottom;
    animation: tuneBreathe 1.6s var(--ease) infinite;
}
.brand:hover .tune i:nth-child(2),
.sf-brand .tune i:nth-child(2) { animation-delay: 0.18s; }
.brand:hover .tune i:nth-child(3),
.sf-brand .tune i:nth-child(3) { animation-delay: 0.36s; }

/* ---------- Header / navigation ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
}

/* Blur lives on a pseudo-element: backdrop-filter on the header itself
   would become the containing block for the fixed mobile overlay. */
.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(250, 246, 241, 0.9);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    backdrop-filter: blur(14px) saturate(130%);
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: 0.01em;
    color: var(--ink);
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2.1rem;
    margin: 0;
    padding: 0;
}

.main-nav ul li a {
    position: relative;
    display: inline-block;
    padding: 0.4rem 0;
    font-family: var(--sans);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.3s;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -3px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--clay);
    transform: translateX(-50%) scale(0);
    transition: transform 0.3s var(--ease);
}

.main-nav ul li a:hover { color: var(--clay-deep); }

.main-nav ul li a:hover::after,
.main-nav ul li a.is-active::after { transform: translateX(-50%) scale(1); }

.main-nav ul li a.is-active { color: var(--clay-deep); }

.main-nav-meta { display: none; }

/* ---------- Buttons & links ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 1.05rem 2.3rem;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.35s var(--ease), color 0.35s var(--ease),
                box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn-solid {
    background: var(--ink);
    color: var(--cream);
}
.btn-solid:hover { background: var(--clay); color: #fff; }

.btn-line {
    color: var(--ink);
    box-shadow: inset 0 0 0 1px rgba(61, 48, 40, 0.4);
}
.btn-line:hover {
    background: var(--ink);
    color: var(--cream);
    box-shadow: inset 0 0 0 1px var(--ink);
}

.btn-light {
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}
.btn-light:hover {
    background: var(--clay);
    box-shadow: inset 0 0 0 1px var(--clay);
}

.btn-clay {
    background: var(--clay);
    color: #fff;
}
.btn-clay:hover { background: var(--clay-deep); }

.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--clay-deep);
    text-decoration: none;
    transition: color 0.3s;
}

.arrow-link .arr {
    display: inline-block;
    transition: transform 0.35s var(--ease);
}

.arrow-link:hover { color: var(--ink); }
.arrow-link:hover .arr { transform: translateX(6px); }

/* ---------- Shared page hero (subpages) ---------- */

.page-hero {
    position: relative;
    text-align: center;
    padding: clamp(3.5rem, 8vw, 6rem) 1.5rem clamp(2rem, 5vw, 3.25rem);
    overflow: hidden;
}

.ghost-word {
    position: absolute;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    font-family: var(--serif);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(4.5rem, 17vw, 11rem);
    line-height: 1;
    color: rgba(189, 146, 109, 0.09);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.page-eyebrow {
    position: relative;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--clay);
    letter-spacing: 0.08em;
    margin-bottom: 0.9rem;
}

.page-title {
    position: relative;
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    font-weight: 500;
    letter-spacing: 0.01em;
    margin-bottom: 1.4rem;
}

.page-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--clay);
}

.page-hero .tune-center { margin-bottom: 1.4rem; }

.page-lead {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    font-size: clamp(0.98rem, 1.4vw, 1.08rem);
    font-weight: 400;
    color: var(--muted);
    line-height: 1.9;
}

/* ============================================================
   HOMEPAGE
   ============================================================ */

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    will-change: transform;
    animation: heroZoom 18s ease-out forwards;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(45, 35, 28, 0.25) 0%,
        rgba(45, 35, 28, 0.45) 45%,
        rgba(45, 35, 28, 0.72) 100%
    );
}

/* melt the hero into the cream page */
.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 90px;
    background: linear-gradient(to top, var(--cream), transparent);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
}

.hero-eyebrow {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.15rem, 2.6vw, 1.5rem);
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.14em;
}

.hero-title {
    font-family: var(--serif);
    font-size: clamp(3rem, 10vw, 6.8rem);
    font-weight: 450;
    color: #fff;
    letter-spacing: 0.01em;
    line-height: 1.02;
    margin: 0.75rem 0 1.75rem;
}

.hero-title em {
    font-style: italic;
    font-weight: 350;
    color: var(--sand);
}

.hero-content .tune-center { margin-bottom: 1.75rem; }
.hero-content .tune i { background: var(--sand); }

.hero-tagline {
    font-family: var(--sans);
    font-size: clamp(0.72rem, 1.4vw, 0.92rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    letter-spacing: 0.34em;
    text-transform: uppercase;
    margin-bottom: 2.75rem;
}

.hero-actions {
    display: flex;
    gap: 1.1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 2.1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.hero-scroll span {
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.55));
    position: relative;
    animation: scrollPulse 2.2s ease-in-out infinite;
}

.hero-scroll span::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: -4px;
    width: 9px;
    height: 9px;
    border-right: 1px solid rgba(255, 255, 255, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
    transform: rotate(45deg);
}

/* ---------- Philosophy ---------- */

.phil {
    position: relative;
    padding: clamp(5rem, 10vw, 8rem) 2rem;
    text-align: center;
    overflow: hidden;
}

.phil-inner {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
}

.phil .ghost-word { top: 40%; }

.phil-eyebrow {
    position: relative;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.02rem;
    letter-spacing: 0.1em;
    color: var(--clay);
    margin-bottom: 1rem;
}

.phil-title {
    position: relative;
    font-size: clamp(1.8rem, 4.4vw, 2.7rem);
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 1.75rem;
}

.phil-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--clay);
}

.phil-body {
    position: relative;
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    color: var(--muted);
    line-height: 2;
    font-weight: 400;
}

/* ---------- Pillars ---------- */

.pillars {
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: clamp(4rem, 8vw, 6.5rem) 2rem;
}

.pillars-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1060px;
    margin: 0 auto;
}

.pillar {
    position: relative;
    text-align: center;
    padding: 0 1rem;
}

.pillar + .pillar::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 1.25rem;
    bottom: 1.25rem;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--sand), transparent);
}

.pillar-num {
    display: block;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 300;
    font-size: 1.7rem;
    color: var(--clay);
    margin-bottom: 0.6rem;
    transition: transform 0.4s var(--ease);
}

.pillar:hover .pillar-num { transform: translateY(-4px); }

.pillar h3 {
    font-size: 1.4rem;
    font-weight: 550;
    margin-bottom: 0.9rem;
}

.pillar p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.9;
}

/* ---------- Arch portrait frame ---------- */

.arch {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.arch::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(189, 146, 109, 0.5);
    border-radius: 999px 999px 10px 10px;
    transform: translate(14px, 14px);
    pointer-events: none;
}

.arch-frame {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 999px 999px 10px 10px;
    background: linear-gradient(165deg, var(--sand) 0%, var(--sand-deep) 100%);
    padding: 2.5rem 1.75rem 0;
}

.arch-frame img {
    display: block;
    width: 100%;
    margin: 0 auto;
}

/* ---------- About band (homepage) ---------- */

.about {
    padding: clamp(5rem, 10vw, 8rem) 2rem;
}

.about-inner {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(3rem, 6vw, 5.5rem);
    max-width: 1020px;
    margin: 0 auto;
    align-items: center;
}

.about-eyebrow {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--clay);
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}

.about-text h2 {
    font-size: clamp(1.8rem, 3.8vw, 2.5rem);
    font-weight: 500;
    margin-bottom: 1.1rem;
}

.about-text h2 em {
    font-style: italic;
    font-weight: 400;
    color: var(--clay);
}

.about-text .tune { margin-bottom: 1.5rem; }

.about-text p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.9;
}

.about-text .arrow-link { margin-top: 1.5rem; }

/* ---------- Services (homepage cards) ---------- */

.services {
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding: clamp(5rem, 10vw, 8rem) 2rem;
}

.sec-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(2.75rem, 6vw, 4rem);
}

.sec-eyebrow {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.02rem;
    letter-spacing: 0.1em;
    color: var(--clay);
    margin-bottom: 0.75rem;
}

.sec-title {
    font-size: clamp(1.8rem, 4.4vw, 2.7rem);
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.sec-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--clay);
}

.sec-lead {
    font-size: 1.02rem;
    color: var(--muted);
    line-height: 1.9;
    margin-top: 1.1rem;
}

.srv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    max-width: 980px;
    margin: 0 auto;
}

.srv-card {
    position: relative;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2.75rem 2.4rem 2.5rem;
    overflow: hidden;
    transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.srv-card::before {
    content: attr(data-num);
    position: absolute;
    top: 0.8rem;
    right: 1.5rem;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 300;
    font-size: 5rem;
    line-height: 1;
    color: var(--sand);
    transition: color 0.4s;
}

.srv-card:hover {
    transform: translateY(-6px);
    border-color: var(--clay);
    box-shadow: 0 24px 56px -20px rgba(189, 146, 109, 0.35);
}

.srv-card:hover::before { color: var(--clay); }

.srv-card h3 {
    position: relative;
    font-size: 1.45rem;
    font-weight: 550;
    margin-bottom: 1rem;
    max-width: 80%;
}

.srv-card p {
    position: relative;
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.85;
    margin-bottom: 1.6rem;
}

/* ---------- Quote band (dark) ---------- */

.quote {
    background: var(--ink);
    padding: clamp(5rem, 10vw, 7.5rem) 2rem;
    text-align: center;
}

.quote-inner {
    max-width: 780px;
    margin: 0 auto;
}

.quote-mark {
    font-family: var(--serif);
    font-size: 6rem;
    font-weight: 600;
    color: var(--clay);
    line-height: 0.4;
    margin-bottom: 2rem;
}

.quote-body {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 350;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--cream);
    line-height: 1.55;
    margin: 0 0 2rem;
}

.quote-attrib {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--clay);
}

/* ---------- CTA band ---------- */

.cta {
    background: linear-gradient(135deg, var(--sand) 0%, var(--sand-deep) 100%);
    padding: clamp(5rem, 10vw, 7.5rem) 2rem;
    text-align: center;
}

.cta-eyebrow {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.02rem;
    letter-spacing: 0.14em;
    color: var(--ink-soft);
    margin-bottom: 1rem;
}

.cta h2 {
    font-size: clamp(1.8rem, 4.4vw, 2.7rem);
    font-weight: 500;
    margin-bottom: 1rem;
}

.cta h2 em {
    font-style: italic;
    font-weight: 400;
    color: var(--clay-deep);
}

.cta p {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--ink-soft);
    margin-bottom: 2.5rem;
}

.cta-btns {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   SERVICE LIST (kezelesek.php + kezeles/* detail pages)
   ============================================================ */

.svc-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem clamp(3.5rem, 7vw, 5rem);
}

.svc-group-title {
    font-size: clamp(1.6rem, 3.4vw, 2.1rem);
    font-weight: 500;
    text-align: center;
    margin: clamp(2.5rem, 6vw, 4rem) 0 0.5rem;
}

.svc-item {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 1.75rem;
    padding: clamp(2.25rem, 5vw, 3.25rem) 0;
    border-bottom: 1px solid var(--line);
}

.svc-item:last-child { border-bottom: 0; }

.svc-num {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 300;
    font-size: 2.4rem;
    color: var(--sand-deep);
    line-height: 1;
    padding-top: 0.3rem;
}

.svc-body h2, .svc-body h3 {
    font-size: clamp(1.4rem, 2.8vw, 1.8rem);
    font-weight: 550;
    margin-bottom: 0.25rem;
}

.svc-meta {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--clay);
    margin-bottom: 1.1rem;
}

.svc-body p {
    font-size: 0.98rem;
    color: var(--muted);
    line-height: 1.95;
}

.svc-body .arrow-link { margin-top: 1.1rem; }

/* ---------- Long-form prose (hegkezelés, rólam) ---------- */

.prose {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem clamp(3rem, 6vw, 4.5rem);
}

.prose p {
    font-size: 1.02rem;
    color: var(--muted);
    line-height: 2;
    margin-bottom: 1.5rem;
}

.prose strong { color: var(--ink-soft); font-weight: 700; }

.prose .pull {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.25rem, 2.4vw, 1.55rem);
    color: var(--ink-soft);
    line-height: 1.6;
    border-left: 2px solid var(--clay);
    padding-left: 1.5rem;
    margin: 2.25rem 0;
}

/* ---------- Inline CTA (page bottoms) ---------- */

.inline-cta {
    text-align: center;
    padding: 0 1.5rem clamp(4rem, 8vw, 6rem);
}

.inline-cta .tune-center { margin-bottom: 1.5rem; }

.inline-cta p {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    color: var(--ink-soft);
    margin-bottom: 1.9rem;
    line-height: 1.6;
}

.inline-cta .btn-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   ROLAM / KAPCSOLAT — split layouts
   ============================================================ */

.split {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(3rem, 6vw, 5rem);
    align-items: center;
    max-width: 1020px;
    margin: 0 auto;
    padding: 1rem 2rem clamp(4rem, 8vw, 6rem);
}

.split .prose { padding: 0; max-width: none; }

/* ---------- Contact ---------- */

.contact-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow: 0 24px 64px -32px rgba(61, 48, 40, 0.18);
}

.contact-name {
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 550;
    color: var(--ink);
    margin-bottom: 0.25rem;
}

.contact-role {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--clay);
    margin-bottom: 2rem;
}

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-list li {
    padding: 1.1rem 0;
    border-top: 1px solid var(--line);
}

.contact-label {
    display: block;
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--clay);
    margin-bottom: 0.3rem;
}

.contact-value,
.contact-value a {
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-value a:hover { color: var(--clay-deep); }

.contact-card .btn { margin-top: 1.75rem; width: 100%; }

/* ============================================================
   ÁRAK
   ============================================================ */

.price-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.5rem clamp(3rem, 6vw, 4.5rem);
}

.price-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: clamp(1.75rem, 4vw, 3rem);
    box-shadow: 0 24px 64px -32px rgba(61, 48, 40, 0.18);
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 1.4rem 0;
}

.price-row + .price-row,
.price-sub + .price-row { border-top: 1px solid var(--line); }

.price-name {
    font-family: var(--serif);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 550;
    color: var(--ink);
    line-height: 1.4;
}

.price-meta {
    display: block;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--clay);
    margin-top: 0.15rem;
}

.price-dots {
    flex: 1;
    min-width: 2rem;
    border-bottom: 1px dotted var(--sand-deep);
    transform: translateY(-5px);
}

.price-value {
    font-family: var(--serif);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 550;
    color: var(--clay-deep);
    white-space: nowrap;
}

.price-value small {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.price-sub {
    list-style: none;
    margin: -0.5rem 0 0;
    padding: 0 0 1.3rem;
}

.price-sub li {
    position: relative;
    padding: 0.2rem 0 0.2rem 1.4rem;
    font-size: 0.92rem;
    color: var(--muted);
}

.price-sub li::before {
    content: '';
    position: absolute;
    left: 0.25rem;
    top: 0.95em;
    width: 8px;
    height: 1px;
    background: var(--clay);
}

/* ============================================================
   KÉPEK ÉS VÉLEMÉNYEK
   ============================================================ */

.section-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 1rem 1.25rem 4rem;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--line);
}

.tab-button {
    font-family: var(--sans);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted-soft);
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 0.9rem 1.25rem;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.tab-button:hover { color: var(--clay); }

.tab-button[aria-selected="true"] {
    color: var(--clay-deep);
    border-bottom-color: var(--clay);
}

@media (max-width: 540px) {
    .tab-button { padding: 0.75rem; font-size: 0.68rem; letter-spacing: 0.1em; }
}

.testimonial {
    position: relative;
    max-width: 720px;
    margin: 0 auto 2.5rem;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.testimonial::before {
    content: '\201C';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--serif);
    font-size: 5rem;
    line-height: 0.8;
    color: var(--sand);
    font-weight: 600;
}

.testimonial-body {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.05rem, 1.7vw, 1.25rem);
    color: var(--ink-soft);
    line-height: 1.85;
    margin: 0;
}

.testimonial .tune-center { margin: 1.75rem auto 1rem; }

.testimonial-author {
    font-family: var(--sans);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--clay);
}

/* ---------- Slider ---------- */

:root {
    --slider-height: 480px;
    --slider-radius: 14px;
    --slider-autoplay: 5s;
}
@media (min-width: 768px) { :root { --slider-height: 720px; } }

.inner-slider {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
    border-radius: var(--slider-radius);
    border: 1px solid var(--line);
    box-shadow:
        0 1px 2px rgba(61, 48, 40, 0.04),
        0 12px 32px -12px rgba(61, 48, 40, 0.18),
        0 32px 64px -32px rgba(189, 146, 109, 0.25);
    outline: none;
    isolation: isolate;
}

.inner-slider:focus-visible {
    box-shadow:
        0 0 0 3px rgba(189, 146, 109, 0.25),
        0 12px 32px -12px rgba(61, 48, 40, 0.18);
}

.inner-slides {
    display: flex;
    transition: transform 700ms var(--ease);
    will-change: transform;
}

.inner-slide {
    min-width: 100%;
    height: var(--slider-height);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.inner-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.inner-slider::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 34%;
    background: linear-gradient(
        to top,
        rgba(61, 48, 40, 0.55) 0%,
        rgba(61, 48, 40, 0.18) 55%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
    border-bottom-left-radius: var(--slider-radius);
    border-bottom-right-radius: var(--slider-radius);
}

.slide-counter {
    position: absolute;
    left: 1.25rem;
    bottom: 1.1rem;
    z-index: 2;
    font-family: var(--serif);
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.slide-counter .current { font-size: 1.6rem; font-weight: 550; line-height: 1; }
.slide-counter .sep { opacity: 0.5; font-size: 0.85rem; }
.slide-counter .total { font-size: 0.85rem; opacity: 0.75; }

.controls {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
    display: flex;
    gap: 0.4rem;
    padding: 0.3rem;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 9999px;
}

.controls button {
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    border: 0;
    width: 38px;
    height: 38px;
    border-radius: 9999px;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    font-family: var(--serif);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.controls button:hover {
    background: var(--clay);
    color: #fff;
    transform: scale(1.05);
}

.controls button:active { transform: scale(0.96); }

@media (max-width: 540px) {
    .slide-counter { left: 1rem; bottom: 0.85rem; }
    .slide-counter .current { font-size: 1.3rem; }
    .controls { right: 0.75rem; bottom: 0.75rem; gap: 0.3rem; padding: 0.25rem; }
    .controls button { width: 34px; height: 34px; font-size: 1rem; }
}

.dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0 1rem;
}

.dots button {
    flex: 1 1 0;
    max-width: 56px;
    height: 3px;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background: var(--sand);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

.dots button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--clay);
    transform-origin: left center;
    transform: scaleX(0);
}

.dots button:hover { background: var(--sand-deep); }
.dots button[aria-current="true"] { background: rgba(189, 146, 109, 0.25); }

.dots button[aria-current="true"]::before {
    animation: progressFill var(--slider-autoplay) linear forwards;
}

.inner-slider:hover ~ .dots button[aria-current="true"]::before,
.dots:hover button[aria-current="true"]::before {
    animation-play-state: paused;
}

@keyframes progressFill {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

.tab-panel { animation: fadePanel 0.5s ease both; }
.tab-panel.hidden { display: none; }

@keyframes fadePanel {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   404
   ============================================================ */

.nf {
    position: relative;
    text-align: center;
    padding: clamp(5rem, 12vw, 9rem) 1.5rem;
    overflow: hidden;
}

.nf .ghost-word {
    font-size: clamp(9rem, 32vw, 20rem);
    top: 50%;
}

.nf-title {
    position: relative;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 500;
    margin-bottom: 1rem;
}

.nf-text {
    position: relative;
    color: var(--muted);
    margin-bottom: 2.25rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--sans);
    padding: clamp(3.5rem, 7vw, 5rem) 2rem 2rem;
}

.site-footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1.3fr;
    gap: 3rem;
    max-width: 1020px;
    margin: 0 auto;
}

.sf-brand .tune { margin-bottom: 1rem; }
.sf-brand .tune i { background: var(--clay); }

.sf-name {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 550;
    color: var(--cream);
    margin-bottom: 0.4rem;
}

.sf-tag {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.02rem;
    color: rgba(255, 255, 255, 0.42);
}

.sf-col h4 {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--clay);
    margin-bottom: 1.1rem;
}

.sf-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sf-col ul li {
    margin-bottom: 0.55rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.sf-col ul li a {
    color: rgba(255, 255, 255, 0.58);
    text-decoration: none;
    transition: color 0.3s;
}

.sf-col ul li a:hover { color: var(--clay); }

.sf-bottom {
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.28);
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes heroZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.06); }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50%      { opacity: 0.4; transform: translateY(8px); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.anim-up {
    opacity: 0;
    animation: fadeUp 0.9s var(--ease) forwards;
}

.anim-d1 { animation-delay: 0.18s; }
.anim-d2 { animation-delay: 0.36s; }
.anim-d3 { animation-delay: 0.54s; }
.anim-d4 { animation-delay: 0.72s; }
.anim-d5 { animation-delay: 1.0s; }

/* Scroll reveal — content only hides once JS confirms it can reveal it */
.js-reveal .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-reveal .reveal.reveal-d1 { transition-delay: 0.15s; }
.js-reveal .reveal.reveal-d2 { transition-delay: 0.3s; }
.js-reveal .reveal.reveal-d3 { transition-delay: 0.45s; }

.js-reveal .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 880px) {
    .site-header-inner { padding: 0 1.25rem; }
    :root { --header-h: 68px; }
}

@media (max-width: 768px) {
    .pillars-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .pillar + .pillar::before { display: none; }

    .about-inner,
    .split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .about-text .tune { margin-left: auto; margin-right: auto; }
    .arch { max-width: 300px; }

    .srv-grid { grid-template-columns: 1fr; }

    .svc-item { grid-template-columns: 1fr; gap: 0.5rem; }
    .svc-num { font-size: 1.8rem; padding-top: 0; }

    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 2.25rem;
        text-align: center;
    }
    .sf-brand .tune { margin-left: auto; margin-right: auto; }

    .price-row { flex-wrap: wrap; }
    .price-dots { display: none; }
    .price-value { width: 100%; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .anim-up { animation: none; opacity: 1; }
    .reveal { transition: none; opacity: 1; transform: none; }
    .hero-bg,
    .hero-scroll span,
    .brand:hover .tune i,
    .sf-brand .tune i { animation: none; }
    .dots button[aria-current="true"]::before { animation: none; transform: scaleX(1); }
    .inner-slides { transition: none; }
    .tab-panel { animation: none; }
}
