/* The home page in the C identity: espresso, sand, ivory and champagne gold, Newsreader 300 for display,
   Commissioner for text, 6 px corners. Layout idea: an editorial split with one large serif statement per
   band; the Aranyhegy teaser keeps the project's own look (white, taupe, Albert Sans, square corners). */
.fooldal { background: var(--ivory); }
.f-rule { display: block; width: 64px; height: 1px; background: var(--gold); }
.f-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.f-head h2, .f-about h2, .f-process h2, .f-value h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(34px, 3.7vw, 54px); line-height: 1.1; letter-spacing: -0.005em; }

/* ---------- hero ---------- */
.f-hero { background: radial-gradient(58% 78% at 80% 46%, #54463B 0%, var(--espresso) 62%); color: var(--ivory); overflow: hidden; }
.f-hero__grid { min-height: calc(100dvh - 76px); display: grid; grid-template-columns: minmax(0, 15fr) minmax(0, 9fr); gap: 64px; align-items: center; padding-top: 64px; padding-bottom: 88px; }
.f-hero__text { display: flex; flex-direction: column; gap: 34px; }
.f-hero__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(42px, 6.1vw, 92px); line-height: 1.03; letter-spacing: -0.015em; text-wrap: initial; }
.f-line { display: block; width: max-content; max-width: 100%; overflow: hidden; white-space: nowrap; padding: 0 .04em .17em 0; margin-bottom: -.17em; }
.f-line > span { display: inline-block; }
.f-hero__lead { max-width: 54ch; font-size: 19px; line-height: 1.7; color: var(--sand); }
.f-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }
.f-hero__portrait { margin: 0; justify-self: end; width: min(100%, 470px); padding-right: 18px; }
.f-hero__key { position: relative; }
.f-hero__keyline { position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold); border-radius: var(--radius); }
.f-hero__frame { position: relative; aspect-ratio: 3 / 4; max-height: calc(100dvh - 250px); overflow: hidden; border-radius: var(--radius); background: var(--espresso-2); }
.f-hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; will-change: transform; }
.f-hero__portrait figcaption { display: flex; align-items: center; gap: 14px; margin-top: 40px; font-size: 15px; letter-spacing: .02em; color: var(--sand); }
.f-hero__portrait figcaption::before { content: ""; width: 32px; height: 1px; background: var(--gold); }
.f-hero__portrait figcaption small { margin-left: auto; font-size: 12px; letter-spacing: 0; color: #CFC3B0; }

/* ---------- the Aranyhegy teaser: a window that opens onto the project ---------- */
.f-teaser { background: var(--paper); }
.f-teaser__pin { position: relative; height: min(calc(100dvh - 76px), 880px); min-height: 620px; overflow: hidden; display: flex; align-items: flex-end; }
.f-teaser__word { display: none; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-54%); text-align: center; font-weight: 300; font-size: 20.5vw; line-height: 1; letter-spacing: -0.035em; color: var(--taupe); white-space: nowrap; }
.has-window .f-teaser__word { display: block; }
.f-teaser__window { position: absolute; inset: 0; overflow: hidden; background: var(--taupe); will-change: clip-path; }
.f-teaser__window img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; will-change: transform; }
.f-teaser__credit { position: absolute; right: var(--gutter); bottom: 24px; z-index: 1; padding: 4px 10px; background: var(--ink); color: var(--paper); font-size: 13px; line-height: 1.4; }
.f-teaser__inner { position: relative; width: 100%; padding-bottom: 64px; }
.f-teaser__panel { width: min(560px, 100%); padding: 44px; background: var(--taupe); display: flex; flex-direction: column; gap: 20px; }
.f-teaser__place { font-weight: 500; font-size: 16px; letter-spacing: .02em; }
.f-teaser__panel h2 { font-size: clamp(32px, 3.2vw, 46px); line-height: 1.08; }
.f-teaser__lead { font-size: 18px; line-height: 1.6; }

/* ---------- featured listings ---------- */
.f-list { padding-top: 136px; padding-bottom: 152px; display: flex; flex-direction: column; gap: 56px; }
.f-list__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
.f-card { display: flex; flex-direction: column; gap: 16px; }
.f-card--low { margin-top: 104px; }
.f-card__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.f-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.f-card:hover .f-card__img img { transform: scale(1.035); }
.f-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; font-size: 15px; color: var(--mocha); }
.f-card__status { padding: 3px 12px; border: 1px solid var(--espresso); border-radius: var(--radius); color: var(--espresso); font-weight: 600; font-size: 13px; line-height: 1.5; }
.f-card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap; }
.f-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1.15; }
.f-card h3 a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); }
.f-card:hover h3 a, .f-card h3 a:focus-visible { background-size: 100% 1px; }
.f-card__price { font-weight: 600; font-size: 20px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.f-card__specs { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid rgb(64 53 45 / .16); display: flex; flex-wrap: wrap; row-gap: 6px; font-size: 16px; color: var(--mocha); }
.f-card__specs li + li { margin-left: 16px; padding-left: 16px; border-left: 1px solid rgb(64 53 45 / .24); }

/* ---------- about ---------- */
.f-about { background: var(--espresso); color: var(--sand); }
.f-about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; padding-top: 136px; padding-bottom: 136px; }
.f-about__head { position: sticky; top: 124px; display: flex; flex-direction: column; gap: 28px; }
.f-about h2 { color: var(--ivory); }
.f-about__body { display: flex; flex-direction: column; gap: 26px; font-size: 18px; line-height: 1.75; }
.f-about__lead { font-family: var(--font-display); font-weight: 300; font-size: clamp(23px, 2.2vw, 31px); line-height: 1.42; color: var(--ivory); }
.f-about__sign { margin-top: 10px; font-family: var(--font-display); font-style: italic; font-size: 26px; line-height: 1.3; color: var(--gold); }

/* ---------- the process ---------- */
.f-process { background: var(--sand); }
.f-process > .wrap { padding-top: 136px; padding-bottom: 136px; }
.f-process__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px 72px; align-items: end; }
.f-process__head p { font-size: 18px; line-height: 1.7; color: var(--mocha); }
.f-process__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; margin-top: 88px; }
.f-process__aside { display: none; position: sticky; top: 124px; align-self: start; height: min(calc(100dvh - 200px), 520px); grid-template-columns: minmax(0, 1fr) 1px; gap: 48px; }
.f-process__num { align-self: center; overflow: hidden; padding: 0 .1em .1em 0; font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(150px, 17vw, 250px); line-height: 1; color: var(--espresso); font-variant-numeric: lining-nums; }
.f-process__num span { display: inline-block; }
.f-process__rail { background: rgb(64 53 45 / .18); }
.f-process__rail i { display: block; width: 100%; height: 100%; background: var(--espresso); transform-origin: 50% 0; transform: scaleY(0); }
.f-steps { grid-column: 2; list-style: none; margin: 0; padding: 0; display: grid; }
.f-step { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 24px; padding: 34px 0; border-top: 1px solid rgb(64 53 45 / .18); }
.f-step:last-child { border-bottom: 1px solid rgb(64 53 45 / .18); }
.f-step__n { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 34px; line-height: 1.1; color: var(--mocha); }
.f-step h3 { font-family: var(--font-body); font-weight: 600; font-size: 21px; line-height: 1.35; }
.f-step p { margin-top: 10px; max-width: 56ch; color: var(--mocha); }
.has-story .f-process__aside { display: grid; }
.has-story .f-step { grid-template-columns: minmax(0, 1fr); min-height: 30dvh; align-content: center; padding: 44px 0; }
.has-story .f-step__n { display: none; }
.has-story .f-step h3 { position: relative; font-size: 24px; color: var(--mocha); transition: color .45s var(--ease-out), padding-left .45s var(--ease-out); }
.has-story .f-step h3::before { content: ""; position: absolute; left: 0; top: .68em; width: 0; height: 1px; background: var(--espresso); transition: width .45s var(--ease-out); }
.has-story .f-step.is-active h3 { color: var(--espresso); padding-left: 44px; }
.has-story .f-step.is-active h3::before { width: 30px; }
.f-process__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 64px; }

/* ---------- testimonials ---------- */
.f-quotes { padding-top: 136px; padding-bottom: 136px; display: flex; flex-direction: column; gap: 64px; }
.f-quotes__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: start; }
.f-quote { margin: 0; display: flex; flex-direction: column; gap: 22px; }
.f-quote h3 { font-family: var(--font-body); font-weight: 600; font-size: 18px; line-height: 1.4; }
.f-quote blockquote { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 21px; line-height: 1.6; }
.f-quote--lead blockquote { font-size: clamp(22px, 2vw, 28px); line-height: 1.5; }
.f-quote figcaption { padding-top: 18px; border-top: 1px solid rgb(64 53 45 / .16); font-size: 15px; color: var(--mocha); }
.f-quote figcaption b { font-weight: 600; color: var(--espresso); }
.f-quote:not(.f-quote--lead) { padding-top: 47px; }
.f-quotes__note { font-size: 14px; color: var(--mocha); }

/* ---------- the valuation band ---------- */
.f-value { background: var(--gold); color: var(--espresso); }
.f-value__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; padding-top: 112px; padding-bottom: 112px; }
.f-value__text { position: sticky; top: 124px; display: flex; flex-direction: column; gap: 22px; }
.f-value__text p { max-width: 40ch; font-size: 19px; line-height: 1.65; }

@media (max-width: 1080px) {
  .f-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 56px; min-height: 0; padding-top: 64px; padding-bottom: 88px; }
  .f-hero__portrait { justify-self: start; width: min(100%, 380px); }
  .f-list__grid, .f-about__grid, .f-process__head, .f-process__body, .f-quotes__grid, .f-value__grid { grid-template-columns: minmax(0, 1fr); }
  .f-card--low, .f-quote:not(.f-quote--lead) { margin-top: 0; padding-top: 0; }
  .f-about__head, .f-value__text { position: static; }
  .f-steps { grid-column: auto; }
  .f-about__grid, .f-quotes__grid, .f-value__grid { gap: 40px; }
  .f-process__body { margin-top: 56px; }
}
@media (max-width: 760px) {
  .f-hero__grid { padding-top: 44px; padding-bottom: 72px; gap: 44px; }
  .f-hero__text { gap: 22px; }
  .f-hero__title { font-size: clamp(36px, 10.6vw, 48px); }
  .f-line { width: auto; white-space: normal; }
  .f-hero__frame { max-height: none; aspect-ratio: 4 / 5; }
  .f-hero__lead { font-size: 17px; }
  .f-hero__ctas .btn { width: 100%; }
  .f-hero__portrait { width: 100%; padding-right: 14px; }
  .f-hero__keyline { inset: 14px -14px -14px 14px; }
  .f-teaser__pin { height: auto; min-height: 0; flex-direction: column; align-items: stretch; }
  .f-teaser__window { position: relative; height: 300px; }
  .f-teaser__credit { top: 256px; bottom: auto; right: 12px; font-size: 12px; }
  .f-teaser__inner { padding: 0; }
  .f-teaser__panel { width: 100%; padding: 28px 20px 32px; gap: 14px; }
  .f-teaser__panel .pbtn { width: 100%; }
  .f-list, .f-quotes { padding-top: 72px; padding-bottom: 80px; gap: 36px; }
  .f-list__grid { gap: 48px; }
  .f-card h3 { font-size: 27px; }
  .f-about__grid, .f-value__grid { padding-top: 72px; padding-bottom: 80px; }
  .f-process > .wrap { padding-top: 72px; padding-bottom: 80px; }
  .f-about__body { font-size: 17px; }
  .f-step { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 26px 0; }
  .f-step__n { font-size: 28px; }
  .f-step h3 { font-size: 19px; }
  .f-process__ctas { margin-top: 40px; }
  .f-process__ctas .btn { width: 100%; }
}
