/* Fedák Felújít, v2: mobil-első, krém és tölgy, Literata + Figtree */
:root {
  --bg: #f5efe5;
  --bg-2: #ece2d2;
  --ink: #241e18;
  --ink-2: #5f554b;
  --oak: #8a5a2b;
  --oak-dark: #6f4620;
  --line: rgba(36, 30, 24, .14);
  --dark: #241e18;
  --on-dark: #f5efe5;
  --serif: "Literata", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, sans-serif;
  --r: 14px;
  --r-lg: 22px;
  --gut: 20px;
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 450; letter-spacing: -.015em; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--oak); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--oak); }
.lead { font-size: 18px; color: var(--ink-2); max-width: 36em; }

/* gomb */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 600 16px/1 var(--sans); text-decoration: none; transition: transform .2s var(--ease), background .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--fill { background: var(--oak); color: #fff; box-shadow: 0 6px 18px -8px rgba(111, 70, 32, .7); }
.btn--fill:hover { background: var(--oak-dark); transform: translateY(-2px); }
.btn--fill:active { transform: translateY(0) scale(.98); }
.btn--line { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--bg); }
.btn--light { background: var(--on-dark); color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); }

/* fejléc */
.top { position: sticky; top: 0; z-index: 50; background: rgba(245, 239, 229, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top__bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: -.01em; }
.logo svg { width: 30px; height: 30px; flex: none; }
.top__nav { display: none; gap: 30px; }
.top__nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.top__nav a:hover { color: var(--ink); }
.top__call { display: none; }
.top__icon { width: 46px; height: 46px; border-radius: 50%; background: var(--oak); color: #fff; display: grid; place-items: center; }
.top__icon svg { width: 20px; height: 20px; }

/* hero */
.hero { padding: 16px 0 48px; }
.hero__grid { display: grid; gap: 28px; }
.hero__photo { position: relative; margin: 0 calc(var(--gut) * -1); }
.hero__photo img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 48% 35%; }
.hero__badge { position: absolute; left: var(--gut); bottom: -22px; background: var(--bg); border-radius: var(--r); padding: 12px 16px; box-shadow: 0 10px 30px -12px rgba(36, 30, 24, .35); display: flex; align-items: center; gap: 12px; }
.hero__badge b { font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1; color: var(--oak); }
.hero__badge span { font-size: 14px; line-height: 1.3; color: var(--ink-2); }
.hero__text { padding-top: 14px; }
.hero h1 { font-size: clamp(38px, 9.5vw, 68px); margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--oak); }
.hero .lead { margin-bottom: 26px; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; }
.hero__facts { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.hero__facts li { display: flex; gap: 10px; align-items: center; font-size: 16px; }
.hero__facts svg { width: 20px; height: 20px; color: var(--oak); flex: none; }

/* halszálka elválasztó */
.herring { height: 26px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='26' viewBox='0 0 52 26'%3E%3Cg fill='none' stroke='%238a5a2b' stroke-opacity='.45' stroke-width='1.4'%3E%3Cpath d='M0 26 13 13 0 0M13 26 26 13 13 0M26 26 39 13 26 0M39 26 52 13 39 0'/%3E%3C/g%3E%3C/svg%3E") repeat-x center / 52px 26px; opacity: .8; }

/* szekciók */
.sec { padding: 64px 0; }
.sec__head { margin-bottom: 32px; }
.sec__head h2 { font-size: clamp(32px, 7.5vw, 52px); margin-bottom: 12px; }
.sec--alt { background: var(--bg-2); }
.sec--dark { background: var(--dark); color: var(--on-dark); }
.sec--dark .lead, .sec--dark p { color: rgba(245, 239, 229, .82); }
.sec--dark .eyebrow { color: #d9b48a; }
.sec--dark .eyebrow::before { background: #d9b48a; }

/* szolgáltatás-kártyák */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.svc { position: relative; border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.svc img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s var(--ease); }
.svc::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(to top, rgba(28, 22, 16, .82), rgba(28, 22, 16, 0)); }
.svc h3 { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; color: #fff; font-size: 19px; line-height: 1.2; }
.svc:hover img { transform: scale(1.04); }

/* munka-kártyák */
.works { display: grid; gap: 22px; }
.work { display: flex; flex-direction: column; text-decoration: none; background: var(--bg); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.work__img { overflow: hidden; }
.work__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.work__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.work h3 { font-size: 23px; line-height: 1.28; padding-bottom: .06em; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.work p { color: var(--ink-2); font-size: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 16px; }
.work__more { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--oak); display: inline-flex; align-items: center; gap: 8px; }
.work__more svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.work__count { font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.work:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(36, 30, 24, .45); }
.work:hover .work__img img { transform: scale(1.04); }
.work:hover .work__more svg { transform: translateX(4px); }

/* lépések */
.steps { display: grid; gap: 28px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.step img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); margin-bottom: 16px; }
.step__num { font-family: var(--serif); font-size: 15px; color: var(--oak); font-weight: 600; margin-bottom: 6px; }
.step h3 { font-size: 24px; margin-bottom: 8px; }
.step p { color: var(--ink-2); }

/* rólam */
.about { display: grid; gap: 28px; }
.about img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); }
.about h2 { font-size: clamp(32px, 7.5vw, 50px); margin-bottom: 18px; }
.about p + p { margin-top: 14px; }
.about__team { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.about__team li { border: 1px solid rgba(245, 239, 229, .28); border-radius: 999px; padding: 7px 14px; font-size: 14px; color: var(--on-dark); }

/* gyik */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq__item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq__item h3 { font-size: 21px; margin-bottom: 8px; }
.faq__item p { color: var(--ink-2); }

/* záró */
.cta { text-align: center; padding: 72px 0 80px; }
.cta h2 { font-size: clamp(34px, 8vw, 58px); margin-bottom: 14px; }
.cta__tel { display: block; font-family: var(--serif); font-size: clamp(32px, 8vw, 54px); color: var(--oak); text-decoration: none; margin: 18px 0 26px; letter-spacing: -.01em; }
.cta .lead { margin: 0 auto; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 96px; font-size: 14px; color: var(--ink-2); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }

/* mobil hívósáv */
.callbar { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; transform: scale(.4); opacity: 0; pointer-events: none; transition: transform .35s var(--ease), opacity .25s; }
.callbar.is-on { transform: none; opacity: 1; pointer-events: auto; }
.callbar a { width: 60px; height: 60px; border-radius: 50%; background: var(--oak); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(36, 30, 24, .6); transition: transform .2s var(--ease), background .2s; }
.callbar a:hover { background: var(--oak-dark); transform: scale(1.06); }
.callbar a:active { transform: scale(.95); }
.callbar svg { width: 26px; height: 26px; }

/* munka-oldal */
.back { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--oak); text-decoration: none; margin: 22px 0 18px; }
.back svg { width: 16px; height: 16px; }
.page-head h1 { font-size: clamp(34px, 8vw, 56px); margin-bottom: 14px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 30px 0 40px; }
.gallery button { all: unset; cursor: zoom-in; border-radius: 12px; overflow: hidden; background: var(--bg-2); display: block; position: relative; }
.gallery button:focus-visible { outline: 3px solid var(--oak); outline-offset: 2px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease), opacity .4s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery button:first-child { grid-column: 1 / -1; }
.more-works { margin-bottom: 40px; }

/* nagyító */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(20, 16, 12, .96); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; touch-action: pan-y; }
.lb.is-open { opacity: 1; visibility: visible; }
.lb__img { max-width: 94vw; max-height: 82vh; border-radius: 10px; transform: scale(.94); opacity: 0; transition: transform .45s var(--ease), opacity .35s; user-select: none; -webkit-user-drag: none; }
.lb__img.is-in { transform: none; opacity: 1; }
.lb__btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(245, 239, 229, .12); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.lb__btn:hover { background: rgba(245, 239, 229, .24); }
.lb__btn svg { width: 22px; height: 22px; }
.lb__close { top: 16px; right: 16px; }
.lb__prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb__next { right: 16px; top: 50%; translate: 0 -50%; }
.lb__count { position: absolute; bottom: calc(22px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: rgba(245, 239, 229, .75); font-size: 15px; }

/* finom megjelenés (csak címek, szövegek) */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } * { transition: none !important; } }

/* tablet */
@media (min-width: 640px) {
  :root { --gut: 32px; }
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .services { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .works { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
/* asztal */
@media (min-width: 1000px) {
  :root { --gut: 40px; }
  body { font-size: 18px; }
  .top__bar { height: 76px; }
  .top__nav { display: flex; }
  .top__call { display: inline-flex; min-height: 46px; }
  .top__icon { display: none; }
  .hero { padding: 48px 0 88px; }
  .hero__grid { grid-template-columns: 1.02fr 1fr; gap: 64px; align-items: center; }
  .hero__photo { order: 2; margin: 0; }
  .hero__photo img { aspect-ratio: 4 / 5; border-radius: var(--r-lg); }
  .hero__badge { left: -28px; bottom: 40px; }
  .hero__text { padding-top: 0; }
  .hero__facts { display: flex; flex-wrap: wrap; gap: 12px 26px; }
  .hero__facts li { white-space: nowrap; }
  .sec { padding: 104px 0; }
  .sec__head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 44px; }
  .sec__head .lead { max-width: 30em; }
  .works { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .about { grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
  .faq { grid-template-columns: 1fr 1fr; column-gap: 56px; border-top: 0; }
  .faq__item:nth-child(-n+2) { border-top: 1px solid var(--line); }
  .cta { padding: 110px 0 120px; }
  .foot { padding-bottom: 32px; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery button:first-child { grid-column: span 2; grid-row: span 2; }
  .gallery button:first-child img { aspect-ratio: auto; height: 100%; }
}
